Lines Matching refs:gradient
48 addGradientFill = function (element, gradient) { argument
50 id = element.id + gradient,
57 gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {
70 gradient = gradient.split(/\s*\-\s*/);
72 var angle = gradient.shift();
90 var dots = R._parseDots(gradient);
96 if (element.gradient && id != element.gradient.id) {
97 SVG.defs.removeChild(element.gradient);
98 delete element.gradient;
101 if (!element.gradient) {
103 element.gradient = el;
515 delete params.gradient;
516 delete attrs.gradient;
525 … var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
526 if (gradient) {
527 var stops = gradient.getElementsByTagName("stop");
531 attrs.gradient = value;
549 if (attrs.gradient && !attrs[has]("stroke-opacity")) {
554 if (attrs.gradient) {
555 … gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
556 if (gradient) {
557 stops = gradient.getElementsByTagName("stop");
916 if (this.gradient) {
917 paper.defs.removeChild(this.gradient);
1059 res.gradient && res.fill == "none" && (res.fill = res.gradient) && delete res.gradient;
1064 if (name == "fill" && this.attrs.fill == "none" && this.attrs.gradient) {
1065 return this.attrs.gradient;