Lines Matching refs:attrs

161                 attrs = o.attrs,
162 stroke = attrs["stroke-width"],
197 stroke: attrs.stroke
202 fill: attrs.stroke,
257 to = R.getTotalLength(attrs.path) - delta * stroke;
260 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
265 attr.d = R.getSubpath(attrs.path, from, to);
276 to = R.getTotalLength(attrs.path) - from;
279 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
281 o._.arrows[se + "Path"] && $(node, {d: R.getSubpath(attrs.path, from, to)});
309 var width = o.attrs["stroke-width"] || "1",
310 …butt = {round: width, square: width, butt: 0}[o.attrs["stroke-linecap"] || params["stroke-linecap"…
324 attrs = o.attrs,
333 attrs[att] = value;
408 $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : "M0,0"});
419 if (attrs.fx) {
421 value = attrs.x;
426 if (attrs.fx) {
427 value = -attrs.x - (attrs.width || 0);
441 if (attrs.fy) {
443 value = attrs.y;
448 if (attrs.fy) {
449 value = -attrs.y - (attrs.height || 0);
478 if (attrs["stroke-dasharray"]) {
479 addDashes(o, attrs["stroke-dasharray"], params);
516 delete attrs.gradient;
517 !R.is(attrs.opacity, "undefined") &&
519 $(node, {opacity: attrs.opacity});
520 !R.is(attrs["fill-opacity"], "undefined") &&
522 $(node, {"fill-opacity": attrs["fill-opacity"]});
524 if ("opacity" in attrs || "fill-opacity" in attrs) {
528 …s.length - 1], {"stop-opacity": ("opacity" in attrs ? attrs.opacity : 1) * ("fill-opacity" in attr…
531 attrs.gradient = value;
532 attrs.fill = "none";
549 if (attrs.gradient && !attrs[has]("stroke-opacity")) {
554 if (attrs.gradient) {
583 var a = el.attrs,
687 this.attrs = this.attrs || {};
874 var sw = this.attrs[has]("stroke-width") ? this.attrs["stroke-width"] : 1;
1056 for (var a in this.attrs) if (this.attrs[has](a)) {
1057 res[a] = this.attrs[a];
1064 if (name == "fill" && this.attrs.fill == "none" && this.attrs.gradient) {
1065 return this.attrs.gradient;
1074 if (name in this.attrs) {
1075 out[name] = this.attrs[name];
1102 this.attrs[key] = params[key];
1191 t.attrs.blur = size;
1202 delete t.attrs.blur;
1212 res.attrs = {cx: x, cy: y, r: r, fill: "none", stroke: "#000"}; class in res
1214 $(el, res.attrs);
1221 …res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: "none", stroke: "#000"… class in res
1223 $(el, res.attrs);
1230 res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: "none", stroke: "#000"}; class in res
1232 $(el, res.attrs);
1241 res.attrs = {x: x, y: y, width: w, height: h, src: src}; class in res
1249 res.attrs = { class in res
1260 setFillAndStroke(res, res.attrs);
1342 sw = "stroke-width" in top.attrs ? top.attrs["stroke-width"] : 1;