Lines Matching refs:o

52             o = element.node,
54 s = o.style,
124 $(o, {
151 updatePosition = function (o) { argument
152 var bbox = o.getBBox(1);
153 … $(o.pattern, {patternTransform: o.matrix.invert() + " translate(" + bbox.x + "," + bbox.y + ")"});
155 addArrow = function (o, value, isEnd) { argument
156 if (o.type == "path") {
158 p = o.paper,
160 node = o.node,
161 attrs = o.attrs,
206 if (o._.arrows) {
208 o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;
209 o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;
211 o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;
212 o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;
215 o._.arrows = {};
219 markerId = "raphael-marker-" + se + type + w + h + "-obj" + o.id;
256 from = o._.arrows.startdx * stroke || 0;
260 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
268 o._.arrows[se + "Path"] = pathId;
269 o._.arrows[se + "Marker"] = markerId;
270 o._.arrows[se + "dx"] = delta;
271 o._.arrows[se + "Type"] = type;
272 o._.arrows[se + "String"] = value;
275 from = o._.arrows.startdx * stroke || 0;
279 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
281 o._.arrows[se + "Path"] && $(node, {d: R.getSubpath(attrs.path, from, to)});
282 delete o._.arrows[se + "Path"];
283 delete o._.arrows[se + "Marker"];
284 delete o._.arrows[se + "dx"];
285 delete o._.arrows[se + "Type"];
286 delete o._.arrows[se + "String"];
306 addDashes = function (o, value, params) { argument
309 var width = o.attrs["stroke-width"] || "1",
310 …butt = {round: width, square: width, butt: 0}[o.attrs["stroke-linecap"] || params["stroke-linecap"…
316 $(o.node, {"stroke-dasharray": dashes.join(",")});
319 $(o.node, {"stroke-dasharray": "none"});
322 setFillAndStroke = function (o, params) { argument
323 var node = o.node,
324 attrs = o.attrs,
336 o.blur(value);
370 o.transform(value);
373 addArrow(o, value);
376 addArrow(o, value, 1);
381 o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);
392 o.paper.defs.appendChild(el);
394 o.clip = rc;
402 delete o.clip;
407 if (o.type == "path") {
409 o._.dirty = 1;
410 if (o._.arrows) {
411 "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
412 "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
418 o._.dirty = 1;
430 if (att == "rx" && o.type == "rect") {
435 o.pattern && updatePosition(o);
436 o._.dirty = 1;
440 o._.dirty = 1;
452 if (att == "ry" && o.type == "rect") {
457 o.pattern && updatePosition(o);
458 o._.dirty = 1;
461 if (o.type == "rect") {
466 o._.dirty = 1;
469 if (o.type == "image") {
474 if (o._.sx != 1 || o._.sy != 1) {
475 value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;
479 addDashes(o, attrs["stroke-dasharray"], params);
481 if (o._.arrows) {
482 "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
483 "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
487 addDashes(o, value, params);
507 o.paper.defs.appendChild(el);
509 o.pattern = el;
510 o.pattern && updatePosition(o);
523 …} else if ((o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradien…
540 if (att == "stroke" && o._.arrows) {
541 "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
542 "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
546 …(o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, va…
568 o._.dirty = 1;
575 tuneText(o, params);