You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a linear gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2057
-
* See {{#crossLink "Graphics/beginLinearGradientStroke"}}{{/crossLink}} for more information.
2058
-
* @method linearGradient
2059
-
* @param {Array} colors
2060
-
* @param {Array} ratios
2061
-
* @param {Number} x0
2062
-
* @param {Number} y0
2063
-
* @param {Number} x1
2064
-
* @param {Number} y1
2065
-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2066
-
*/
2067
-
p.linearGradient=G.Fill.prototype.linearGradient;
2068
-
/**
2069
-
* Creates a radial gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2070
-
* See {{#crossLink "Graphics/beginRadialGradientStroke"}}{{/crossLink}} for more information.
2071
-
* @method radialGradient
2072
-
* @param {Array} colors
2073
-
* @param {Array} ratios
2074
-
* @param {Number} x0
2075
-
* @param {Number} y0
2076
-
* @param {Number} r0
2077
-
* @param {Number} x1
2078
-
* @param {Number} y1
2079
-
* @param {Number} r1
2080
-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2081
-
*/
2082
-
p.radialGradient=G.Fill.prototype.radialGradient;
2083
-
/**
2084
-
* Creates a bitmap fill style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2085
-
* See {{#crossLink "Graphics/beginBitmapStroke"}}{{/crossLink}} for more information.
2086
-
* @method bitmap
2087
-
* @param {HTMLImageElement} image
2088
-
* @param {String} [repetition] One of: repeat, repeat-x, repeat-y, or no-repeat.
2089
-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2090
-
*/
2091
-
p.bitmap=G.Fill.prototype.bitmap;
2092
-
p.path=false;
2093
2017
2094
-
/**
2095
-
* Graphics command object. See {{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information.
2096
-
* @class StrokeStyle
2097
-
* @constructor
2098
-
* @param {Number} width
2099
-
* @param {String} [caps=butt]
2100
-
* @param {String} [joints=miter]
2101
-
* @param {Number} [miterLimit=10]
2102
-
* @param {Boolean} [ignoreScale=false]
2103
-
**/
2104
-
/**
2105
-
* @property width
2106
-
* @type Number
2107
-
*/
2108
-
/**
2109
-
* One of: butt, round, square
2110
-
* @property caps
2111
-
* @type String
2112
-
*/
2113
-
/**
2114
-
* One of: round, bevel, miter
2115
-
* @property joints
2116
-
* @type String
2117
-
*/
2118
-
/**
2119
-
* @property miterLimit
2120
-
* @type Number
2121
-
*/
2122
-
/**
2123
-
* Execute the Graphics command in the provided Canvas context.
2124
-
* @method exec
2125
-
* @param {CanvasRenderingContext2D} ctx The canvas rendering context
0 commit comments