Lines Matching refs:fill
436 fill = this.get("fill");
486 if(fill && fill.color)
503 * Ends a fill and stroke
712 * Value function for fill attribute
844 * Adds a fill to the shape node.
852 fill = this.get("fill"),
855 if(fill)
857 type = fill.type;
860 this._setGradientFill(fill);
861 node.setAttribute("fill", "url(#grad" + this.get("id") + ")");
863 else if(!fill.color)
865 node.setAttribute("fill", "none");
869 fillOpacity = parseFloat(fill.opacity);
871 node.setAttribute("fill", fill.color);
872 node.setAttribute("fill-opacity", fillOpacity);
877 node.setAttribute("fill", "none");
882 * Creates a gradient fill
888 _setGradientFill: function(fill) {
896 type = fill.type,
898 stops = fill.stops,
901 rotation = fill.rotation,
912 cx = fill.cx,
913 cy = fill.cy,
914 fx = fill.fx,
915 fy = fill.fy,
916 r = fill.r,
1467 * Contains information about the fill of the shape.
1469 * <dt>color</dt><dd>The color of the fill.</dd>
1470 * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1.</dd>
1471 * <dt>type</dt><dd>Type of fill.
1473 * <dt>solid</dt><dd>Solid single color fill. (default)</dd>
1474 * <dt>linear</dt><dd>Linear gradient fill.</dd>
1475 * <dt>radial</dt><dd>Radial gradient fill.</dd>
1479 * <p>If a `linear` or `radial` is specified as the fill type. The following additional property is used:
1504 * @config fill
1507 fill: {
1512 var fill,
1513 tmpl = this.get("fill") || this._getDefaultFill();
1514 fill = (val) ? Y.merge(tmpl, val) : null;
1515 if(fill && fill.color)
1517 if(fill.color === undefined || fill.color == "none")
1519 fill.color = null;
1522 return fill;