Lines Matching refs:fill
172 * Value function for fill attribute
304 * Adds a fill to the shape node.
312 fill = this.get("fill"),
315 if(fill)
317 type = fill.type;
320 this._setGradientFill(fill);
321 node.setAttribute("fill", "url(#grad" + this.get("id") + ")");
323 else if(!fill.color)
325 node.setAttribute("fill", "none");
329 fillOpacity = parseFloat(fill.opacity);
331 node.setAttribute("fill", fill.color);
332 node.setAttribute("fill-opacity", fillOpacity);
337 node.setAttribute("fill", "none");
342 * Creates a gradient fill
348 _setGradientFill: function(fill) {
356 type = fill.type,
358 stops = fill.stops,
361 rotation = fill.rotation,
372 cx = fill.cx,
373 cy = fill.cy,
374 fx = fill.fx,
375 fy = fill.fy,
376 r = fill.r,
927 * Contains information about the fill of the shape.
929 * <dt>color</dt><dd>The color of the fill.</dd>
930 * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1.</dd>
931 * <dt>type</dt><dd>Type of fill.
933 * <dt>solid</dt><dd>Solid single color fill. (default)</dd>
934 * <dt>linear</dt><dd>Linear gradient fill.</dd>
935 * <dt>radial</dt><dd>Radial gradient fill.</dd>
939 * <p>If a `linear` or `radial` is specified as the fill type. The following additional property is used:
964 * @config fill
967 fill: {
972 var fill,
973 tmpl = this.get("fill") || this._getDefaultFill();
974 fill = (val) ? Y.merge(tmpl, val) : null;
975 if(fill && fill.color)
977 if(fill.color === undefined || fill.color == "none")
979 fill.color = null;
982 return fill;