Lines Matching refs:fill

294         var fill = this.get("fill"),
305 if(fill && fill.color)
340 * Ends a fill and stroke
519 fill,
525 fill = this._getFillProps();
564 if(fill)
566 if(fill.node)
568 fillstring = fill.node;
571 if(fill.color)
573 nodestring += ' fillcolor="' + fill.color + '"';
575 nodestring += ' filled="' + fill.filled + '"';
838 * Calculates and returns properties for setting an initial fill.
847 var fill = this.get("fill"),
854 if(fill)
858 if(fill.type == "radial" || fill.type == "linear")
860 fillOpacity = parseFloat(fill.opacity);
863 gradient = this._getGradientFill(fill);
864 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" opacity="' + fillOpacity + '"';
875 else if(fill.color)
877 fillOpacity = parseFloat(fill.opacity);
879 props.color = fill.color;
886 props.node = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" type="solid" opacity="' + fillOpacity + '"/>';
896 * Adds a fill to the shape node.
908 fill = this.get("fill"),
914 if(fill)
916 if(fill.type == "radial" || fill.type == "linear")
919 gradient = this._getGradientFill(fill);
939 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;"';
952 else if(fill.color)
954 node.fillcolor = fill.color;
955 fillOpacity = parseFloat(fill.opacity);
959 fill.opacity = fillOpacity;
970 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" type="solid" opacity="' + fillOpacity + '"/>';
991 this._fillNode = this._createGraphicNode("fill");
997 * Calculates and returns an object containing gradient properties for a fill node.
1000 * @param {Object} fill Object containing fill properties.
1004 _getGradientFill: function(fill)
1009 type = fill.type,
1014 stops = fill.stops,
1021 cx = fill.cx,
1022 cy = fill.cy,
1023 fx = fill.fx,
1024 fy = fill.fy,
1025 r = fill.r,
1028 rotation = fill.rotation || 0;
1363 * Value function for fill attribute
1640 * Contains information about the fill of the shape.
1642 * <dt>color</dt><dd>The color of the fill.</dd>
1643 * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1.</dd>
1644 * <dt>type</dt><dd>Type of fill.
1646 * <dt>solid</dt><dd>Solid single color fill. (default)</dd>
1647 * <dt>linear</dt><dd>Linear gradient fill.</dd>
1648 * <dt>radial</dt><dd>Radial gradient fill.</dd>
1652 * <p>If a `linear` or `radial` is specified as the fill type. The following additional property is used:
1679 * @config fill
1682 fill: {
1688 fill,
1689 tmpl = this.get("fill") || this._getDefaultFill();
1693 //ensure, fill type is solid if color is explicitly passed.
1706 fill = tmpl;
1707 if(fill && fill.color)
1709 if(fill.color === undefined || fill.color == "none")
1711 fill.color = null;
1715 return fill;