From a56916927b48583df479c2aca6fa45af53c9b3dd Mon Sep 17 00:00:00 2001 From: lavrton Date: Thu, 28 May 2015 13:17:34 +0700 Subject: [PATCH] 0.9.5 --- CHANGELOG.md | 2 + konva.js | 192 ------------------------- resources/doc-includes/ShapeParams.txt | 12 -- 3 files changed, 2 insertions(+), 204 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e4300e1..0780f545 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Not released][Not released] +## [0.9.5][2015-05-28] + ### Fixed - `to` don't throw error if no `onFinish` callback - HDPI support for desktop diff --git a/konva.js b/konva.js index b98e17cc..8624a58b 100644 --- a/konva.js +++ b/konva.js @@ -6776,10 +6776,6 @@ var Konva = {}; * @augments Konva.Node * @param {Object} config * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -6810,10 +6806,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -6825,10 +6817,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -10968,10 +10956,6 @@ var Konva = {}; * @param {Object} config * @param {Number} [config.cornerRadius] * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11002,10 +10986,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11017,10 +10997,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -11131,10 +11107,6 @@ var Konva = {}; * @param {Object} config * @param {Number} config.radius * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11165,10 +11137,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11180,10 +11148,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -11299,10 +11263,6 @@ var Konva = {}; * @param {Object} config * @param {Object} config.radius defines x and y radius * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11333,10 +11293,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11348,10 +11304,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -11512,10 +11464,6 @@ var Konva = {}; * @param {Number} config.outerRadius * @param {Boolean} [config.clockwise] * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11546,10 +11494,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11561,10 +11505,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -11701,10 +11641,6 @@ var Konva = {}; * @param {Number} config.radius * @param {Boolean} [config.clockwise] * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11735,10 +11671,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11750,10 +11682,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -11913,10 +11841,6 @@ var Konva = {}; * @param {Number} config.outerRadius * @param {Boolean} [config.clockwise] * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -11947,10 +11871,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -11962,10 +11882,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -12143,10 +12059,6 @@ var Konva = {}; * @param {Image} config.image * @param {Object} [config.crop] * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -12177,10 +12089,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -12192,10 +12100,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -12479,10 +12383,6 @@ var Konva = {}; * @param {Number} [config.lineHeight] default is 1 * @param {String} [config.wrap] can be word, char, or none. Default is word * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -12513,10 +12413,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -12528,10 +12424,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -13017,10 +12909,6 @@ var Konva = {}; * The default is 0 * @param {Boolean} [config.closed] defines whether or not the line shape is closed, creating a polygon or blob * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -13051,10 +12939,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -13066,10 +12950,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -13337,10 +13217,6 @@ var Konva = {}; * @param {Integer} [config.frameIndex] animation frame index * @param {Image} config.image image object * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -13371,10 +13247,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -13386,10 +13258,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -13757,10 +13625,6 @@ var Konva = {}; * @param {Object} config * @param {String} config.data SVG data string * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -13791,10 +13655,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -13806,10 +13666,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -14496,10 +14352,6 @@ var Konva = {}; * @param {String} config.text * @param {String} config.data SVG data string * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -14530,10 +14382,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -14545,10 +14393,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -15009,10 +14853,6 @@ var Konva = {}; * @param {Number} config.sides * @param {Number} config.radius * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -15043,10 +14883,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -15058,10 +14894,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -15203,10 +15035,6 @@ var Konva = {}; * @param {Number} config.innerRadius * @param {Number} config.outerRadius * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -15237,10 +15065,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -15252,10 +15076,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] @@ -15786,10 +15606,6 @@ var Konva = {}; * @param {Number} config.pointerLength * @param {Number} config.pointerWidth * @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -15820,10 +15636,6 @@ var Konva = {}; * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -15835,10 +15647,6 @@ var Konva = {}; * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX] diff --git a/resources/doc-includes/ShapeParams.txt b/resources/doc-includes/ShapeParams.txt index 298839a0..5193f3d9 100644 --- a/resources/doc-includes/ShapeParams.txt +++ b/resources/doc-includes/ShapeParams.txt @@ -1,8 +1,4 @@ @param {String} [config.fill] fill color - * @param {Integer} [config.fillRed] set fill red component - * @param {Integer} [config.fillGreen] set fill green component - * @param {Integer} [config.fillBlue] set fill blue component - * @param {Integer} [config.fillAlpha] set fill alpha component * @param {Image} [config.fillPatternImage] fill pattern image * @param {Number} [config.fillPatternX] * @param {Number} [config.fillPatternY] @@ -33,10 +29,6 @@ * @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 {Integer} [config.strokeRed] set stroke red component - * @param {Integer} [config.strokeGreen] set stroke green component - * @param {Integer} [config.strokeBlue] set stroke blue component - * @param {Integer} [config.strokeAlpha] set stroke alpha component * @param {Number} [config.strokeWidth] stroke width * @param {Boolean} [config.strokeHitEnabled] flag which enables or disables stroke hit region. The default is true * @param {Boolean} [config.perfectDrawEnabled] flag which enables or disables using buffer canvas. The default is true @@ -48,10 +40,6 @@ * @param {String} [config.lineCap] can be butt, round, or sqare. The default * is butt * @param {String} [config.shadowColor] - * @param {Integer} [config.shadowRed] set shadow color red component - * @param {Integer} [config.shadowGreen] set shadow color green component - * @param {Integer} [config.shadowBlue] set shadow color blue component - * @param {Integer} [config.shadowAlpha] set shadow color alpha component * @param {Number} [config.shadowBlur] * @param {Object} [config.shadowOffset] object with x and y component * @param {Number} [config.shadowOffsetX]