Lines Matching refs:fill
114 fill,
120 fill = this._getFillProps();
159 if(fill)
161 if(fill.node)
163 fillstring = fill.node;
166 if(fill.color)
168 nodestring += ' fillcolor="' + fill.color + '"';
170 nodestring += ' filled="' + fill.filled + '"';
433 * Calculates and returns properties for setting an initial fill.
442 var fill = this.get("fill"),
449 if(fill)
453 if(fill.type == "radial" || fill.type == "linear")
455 fillOpacity = parseFloat(fill.opacity);
458 gradient = this._getGradientFill(fill);
459 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" opacity="' + fillOpacity + '"';
470 else if(fill.color)
472 fillOpacity = parseFloat(fill.opacity);
474 props.color = fill.color;
481 props.node = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" type="solid" opacity="' + fillOpacity + '"/>';
491 * Adds a fill to the shape node.
503 fill = this.get("fill"),
509 if(fill)
511 if(fill.type == "radial" || fill.type == "linear")
514 gradient = this._getGradientFill(fill);
534 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;"';
547 else if(fill.color)
549 node.fillcolor = fill.color;
550 fillOpacity = parseFloat(fill.opacity);
554 fill.opacity = fillOpacity;
565 fillstring = '<fill xmlns="urn:schemas-microsft.com:vml" class="vmlfill" style="behavior:url(#default#VML);display:inline-block;" type="solid" opacity="' + fillOpacity + '"/>';
586 this._fillNode = this._createGraphicNode("fill");
592 * Calculates and returns an object containing gradient properties for a fill node.
595 * @param {Object} fill Object containing fill properties.
599 _getGradientFill: function(fill)
604 type = fill.type,
609 stops = fill.stops,
616 cx = fill.cx,
617 cy = fill.cy,
618 fx = fill.fx,
619 fy = fill.fy,
620 r = fill.r,
623 rotation = fill.rotation || 0;
958 * Value function for fill attribute
1235 * Contains information about the fill of the shape.
1237 * <dt>color</dt><dd>The color of the fill.</dd>
1238 * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1.</dd>
1239 * <dt>type</dt><dd>Type of fill.
1241 * <dt>solid</dt><dd>Solid single color fill. (default)</dd>
1242 * <dt>linear</dt><dd>Linear gradient fill.</dd>
1243 * <dt>radial</dt><dd>Radial gradient fill.</dd>
1247 * <p>If a `linear` or `radial` is specified as the fill type. The following additional property is used:
1274 * @config fill
1277 fill: {
1283 fill,
1284 tmpl = this.get("fill") || this._getDefaultFill();
1288 //ensure, fill type is solid if color is explicitly passed.
1301 fill = tmpl;
1302 if(fill && fill.color)
1304 if(fill.color === undefined || fill.color == "none")
1306 fill.color = null;
1310 return fill;