mirror of
https://github.com/konvajs/konva.git
synced 2025-04-23 00:39:22 +08:00
61 lines
5.0 KiB
Plaintext
61 lines
5.0 KiB
Plaintext
@param {String} [config.fill] fill color
|
|
* @param {Object} [config.fillRGB] set fill color with an object literal containing an r, g, and b component
|
|
* @param {Integer} [config.fillR] set fill red component
|
|
* @param {Integer} [config.fillG] set fill green component
|
|
* @param {Integer} [config.fillB] set fill blue component
|
|
* @param {Image} [config.fillPatternImage] fill pattern image
|
|
* @param {Number} [config.fillPatternX]
|
|
* @param {Number} [config.fillPatternY]
|
|
* @param {Number|Array|Object} [config.fillPatternOffset] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillPatternOffsetX]
|
|
* @param {Number} [config.fillPatternOffsetY]
|
|
* @param {Number|Array|Object} [config.fillPatternScale] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillPatternScaleX]
|
|
* @param {Number} [config.fillPatternScaleY]
|
|
* @param {Number} [config.fillPatternRotation]
|
|
* @param {String} [config.fillPatternRepeat] can be 'repeat', 'repeat-x', 'repeat-y', or 'no-repeat'. The default is 'no-repeat'
|
|
* @param {Number|Array|Object} [config.fillLinearGradientStartPoint] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillLinearGradientStartPointX]
|
|
* @param {Number} [config.fillLinearGradientStartPointY]
|
|
* @param {Number|Array|Object} [config.fillLinearGradientEndPoint] number, array with two elements, or object with x and y component
|
|
* @param {Number|Array|Object} [config.fillLinearGradientEndPoint] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillLinearGradientEndPointX]
|
|
* @param {Number} [config.fillLinearGradientEndPointY]
|
|
* @param {Array} [config.fillLinearGradientColorStops] array of color stops
|
|
* @param {Number|Array|Object} [config.fillRadialGradientStartPoint] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillRadialGradientStartPointX]
|
|
* @param {Number} [config.fillRadialGradientStartPointY]
|
|
* @param {Number|Array|Object} [config.fillRadialGradientEndPoint] number, array with two elements, or object with x and y component
|
|
* @param {Number} [config.fillRadialGradientEndPointX]
|
|
* @param {Number} [config.fillRadialGradientEndPointY]
|
|
* @param {Number} [config.fillRadialGradientStartRadius]
|
|
* @param {Number} [config.fillRadialGradientEndRadius]
|
|
* @param {Array} [config.fillRadialGradientColorStops] array of color stops
|
|
* @param {Boolean} [config.fillEnabled] flag which enables or disables the fill. The default value is true
|
|
* @param {String} [config.fillPriority] can be color, linear-gradient, radial-graident, or pattern. The default value is color. The fillPriority property makes it really easy to toggle between different fill types. For example, if you want to toggle between a fill color style and a fill pattern style, simply set the fill property and the fillPattern properties, and then use setFillPriority('color') to render the shape with a color fill, or use setFillPriority('pattern') to render the shape with the pattern fill configuration
|
|
* @param {String} [config.stroke] stroke color
|
|
* @param {Object} [config.strokeRGB] set stroke color with an object literal containing an r, g, and b component
|
|
* @param {Integer} [config.strokeR] set stroke red component
|
|
* @param {Integer} [config.strokeG] set stroke green component
|
|
* @param {Integer} [config.strokeB] set stroke blue component
|
|
* @param {Number} [config.strokeWidth] stroke width
|
|
* @param {Boolean} [config.strokeScaleEnabled] flag which enables or disables stroke scale. The default is true
|
|
* @param {Boolean} [config.strokeEnabled] flag which enables or disables the stroke. The default value is true
|
|
* @param {String} [config.lineJoin] can be miter, round, or bevel. The default
|
|
* is miter
|
|
* @param {String} [config.lineCap] can be butt, round, or sqare. The default
|
|
* is butt
|
|
* @param {String} [config.shadowColor]
|
|
* @param {Object} [config.shadowColorRGB] set shadowColor color with an object literal containing an r, g, and b component
|
|
* @param {Integer} [config.shadowColorR] set shadowColor red component
|
|
* @param {Integer} [config.shadowColorG] set shadowColor green component
|
|
* @param {Integer} [config.shadowColorB] set shadowColor blue component
|
|
* @param {Number} [config.shadowBlur]
|
|
* @param {Object} [config.shadowOffset]
|
|
* @param {Number} [config.shadowOffsetX]
|
|
* @param {Number} [config.shadowOffsetY]
|
|
* @param {Number} [config.shadowOpacity] shadow opacity. Can be any real number
|
|
* between 0 and 1
|
|
* @param {Boolean} [config.shadowEnabled] flag which enables or disables the shadow. The default value is true
|
|
* @param {Array} [config.dashArray]
|
|
* @param {Boolean} [config.dashArrayEnabled] flag which enables or disables the dashArray. The default value is true |