mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
36 lines
3.1 KiB
Plaintext
36 lines
3.1 KiB
Plaintext
@param {String} [config.fill] fill color
|
|
* @param {Image} [config.fillPatternImage] fill pattern image
|
|
* @param {Number} [config.fillPatternX]
|
|
* @param {Number} [config.fillPatternY]
|
|
* @param {Array|Object} [config.fillPatternOffset] array with two elements or object with x and y component
|
|
* @param {Array|Object} [config.fillPatternScale] array with two elements or object with x and y component
|
|
* @param {Number} [config.fillPatternRotation]
|
|
* @param {String} [config.fillPatternRepeat] can be 'repeat', 'repeat-x', 'repeat-y', or 'no-repeat'. The default is 'no-repeat'
|
|
@param {Array|Object} [config.fillLinearGradientStartPoint] array with two elements or object with x and y component
|
|
* @param {Array|Object} [config.fillLinearGradientEndPoint] array with two elements or object with x and y component
|
|
* @param {Array} [config.fillLinearGradientColorStops] array of color stops
|
|
* @param {Array|Object} [config.fillRadialGradientStartPoint] array with two elements or object with x and y component
|
|
* @param {Array|Object} [config.fillRadialGradientEndPoint] array with two elements or object with x and y component
|
|
* @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 {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 {Number} [config.shadowBlur]
|
|
* @param {Obect} [config.shadowOffset]
|
|
* @param {Number} [config.shadowOffset.x]
|
|
* @param {Number} [config.shadowOffset.y]
|
|
* @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 |