konva 8.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CHANGELOG.md +1140 -0
  2. package/LICENSE +22 -0
  3. package/README.md +189 -0
  4. package/konva.js +18090 -0
  5. package/konva.min.js +12 -0
  6. package/lib/Animation.d.ts +24 -0
  7. package/lib/Animation.js +141 -0
  8. package/lib/Canvas.d.ts +32 -0
  9. package/lib/Canvas.js +107 -0
  10. package/lib/Container.d.ts +47 -0
  11. package/lib/Container.js +318 -0
  12. package/lib/Context.d.ts +76 -0
  13. package/lib/Context.js +520 -0
  14. package/lib/Core.d.ts +3 -0
  15. package/lib/Core.js +3 -0
  16. package/lib/DragAndDrop.d.ts +17 -0
  17. package/lib/DragAndDrop.js +104 -0
  18. package/lib/Factory.d.ts +11 -0
  19. package/lib/Factory.js +117 -0
  20. package/lib/FastLayer.d.ts +4 -0
  21. package/lib/FastLayer.js +12 -0
  22. package/lib/Global.d.ts +30 -0
  23. package/lib/Global.js +53 -0
  24. package/lib/Group.d.ts +6 -0
  25. package/lib/Group.js +13 -0
  26. package/lib/Layer.d.ts +60 -0
  27. package/lib/Layer.js +301 -0
  28. package/lib/Node.d.ts +318 -0
  29. package/lib/Node.js +1381 -0
  30. package/lib/PointerEvents.d.ts +11 -0
  31. package/lib/PointerEvents.js +37 -0
  32. package/lib/Shape.d.ts +184 -0
  33. package/lib/Shape.js +515 -0
  34. package/lib/Stage.d.ts +85 -0
  35. package/lib/Stage.js +687 -0
  36. package/lib/Tween.d.ts +86 -0
  37. package/lib/Tween.js +516 -0
  38. package/lib/Util.d.ts +87 -0
  39. package/lib/Util.js +742 -0
  40. package/lib/Validators.d.ts +11 -0
  41. package/lib/Validators.js +171 -0
  42. package/lib/_CoreInternals.d.ts +144 -0
  43. package/lib/_CoreInternals.js +34 -0
  44. package/lib/_FullInternals.d.ts +188 -0
  45. package/lib/_FullInternals.js +78 -0
  46. package/lib/filters/Blur.d.ts +2 -0
  47. package/lib/filters/Blur.js +697 -0
  48. package/lib/filters/Brighten.d.ts +2 -0
  49. package/lib/filters/Brighten.js +12 -0
  50. package/lib/filters/Contrast.d.ts +2 -0
  51. package/lib/filters/Contrast.js +34 -0
  52. package/lib/filters/Emboss.d.ts +2 -0
  53. package/lib/filters/Emboss.js +102 -0
  54. package/lib/filters/Enhance.d.ts +2 -0
  55. package/lib/filters/Enhance.js +83 -0
  56. package/lib/filters/Grayscale.d.ts +2 -0
  57. package/lib/filters/Grayscale.js +9 -0
  58. package/lib/filters/HSL.d.ts +2 -0
  59. package/lib/filters/HSL.js +24 -0
  60. package/lib/filters/HSV.d.ts +2 -0
  61. package/lib/filters/HSV.js +24 -0
  62. package/lib/filters/Invert.d.ts +2 -0
  63. package/lib/filters/Invert.js +8 -0
  64. package/lib/filters/Kaleidoscope.d.ts +2 -0
  65. package/lib/filters/Kaleidoscope.js +132 -0
  66. package/lib/filters/Mask.d.ts +2 -0
  67. package/lib/filters/Mask.js +140 -0
  68. package/lib/filters/Noise.d.ts +2 -0
  69. package/lib/filters/Noise.js +12 -0
  70. package/lib/filters/Pixelate.d.ts +2 -0
  71. package/lib/filters/Pixelate.js +60 -0
  72. package/lib/filters/Posterize.d.ts +2 -0
  73. package/lib/filters/Posterize.js +10 -0
  74. package/lib/filters/RGB.d.ts +2 -0
  75. package/lib/filters/RGB.js +39 -0
  76. package/lib/filters/RGBA.d.ts +2 -0
  77. package/lib/filters/RGBA.js +49 -0
  78. package/lib/filters/Sepia.d.ts +2 -0
  79. package/lib/filters/Sepia.js +11 -0
  80. package/lib/filters/Solarize.d.ts +2 -0
  81. package/lib/filters/Solarize.js +25 -0
  82. package/lib/filters/Threshold.d.ts +2 -0
  83. package/lib/filters/Threshold.js +10 -0
  84. package/lib/index-node.d.ts +2 -0
  85. package/lib/index-node.js +18 -0
  86. package/lib/index-types.d.ts +179 -0
  87. package/lib/index.d.ts +2 -0
  88. package/lib/index.js +2 -0
  89. package/lib/shapes/Arc.d.ts +19 -0
  90. package/lib/shapes/Arc.js +35 -0
  91. package/lib/shapes/Arrow.d.ts +24 -0
  92. package/lib/shapes/Arrow.js +94 -0
  93. package/lib/shapes/Circle.d.ts +13 -0
  94. package/lib/shapes/Circle.js +33 -0
  95. package/lib/shapes/Ellipse.d.ts +16 -0
  96. package/lib/shapes/Ellipse.js +37 -0
  97. package/lib/shapes/Image.d.ts +23 -0
  98. package/lib/shapes/Image.js +100 -0
  99. package/lib/shapes/Label.d.ts +35 -0
  100. package/lib/shapes/Label.js +166 -0
  101. package/lib/shapes/Line.d.ts +28 -0
  102. package/lib/shapes/Line.js +155 -0
  103. package/lib/shapes/Path.d.ts +37 -0
  104. package/lib/shapes/Path.js +627 -0
  105. package/lib/shapes/Rect.d.ts +9 -0
  106. package/lib/shapes/Rect.js +42 -0
  107. package/lib/shapes/RegularPolygon.d.ts +22 -0
  108. package/lib/shapes/RegularPolygon.js +65 -0
  109. package/lib/shapes/Ring.d.ts +16 -0
  110. package/lib/shapes/Ring.js +33 -0
  111. package/lib/shapes/Sprite.d.ts +30 -0
  112. package/lib/shapes/Sprite.js +108 -0
  113. package/lib/shapes/Star.d.ts +17 -0
  114. package/lib/shapes/Star.js +38 -0
  115. package/lib/shapes/Text.d.ts +59 -0
  116. package/lib/shapes/Text.js +347 -0
  117. package/lib/shapes/TextPath.d.ts +54 -0
  118. package/lib/shapes/TextPath.js +343 -0
  119. package/lib/shapes/Transformer.d.ts +112 -0
  120. package/lib/shapes/Transformer.js +944 -0
  121. package/lib/shapes/Wedge.d.ts +17 -0
  122. package/lib/shapes/Wedge.js +38 -0
  123. package/lib/types.d.ts +50 -0
  124. package/lib/types.js +22 -0
  125. package/package.json +111 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1140 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## 8.1.4
7
+
8
+ - Fix `dblclick` event when `cancelBubble` is used.
9
+
10
+ ## 8.1.3
11
+
12
+ - Fix `fillPattern` cache invalidation on shapes
13
+
14
+ ## 8.1.2
15
+
16
+ - Fix memory leak for `Konva.Image`
17
+
18
+ ## 8.1.1
19
+
20
+ - Fix `Konva.Transformer` dragging draw when `shouldOverdrawWholeArea = true`.
21
+ - Fix auto redraw when `container.removeChildren()` or `container.destroyChildren()` are used
22
+
23
+ ## 8.1.0
24
+
25
+ - New property `useSingleNodeRotation` for `Konva.Transformer`.
26
+
27
+ ## 8.0.4
28
+
29
+ - Fix fill pattern updates on `fillPatternX` and `fillPatternY` changes.
30
+
31
+ ## 8.0.2
32
+
33
+ - Fix some transform caches
34
+ - Fix cache with hidden shapes
35
+
36
+ ## 8.0.1
37
+
38
+ - Some typescript fixes
39
+
40
+ ## 8.0.0
41
+
42
+ This is a very large release! The long term of `Konva` API is to make it simpler and faster. So when possible I am trying to optimize the code and remove unpopular/confusing API methods.
43
+
44
+ **BREAKING:**
45
+
46
+ - `Konva.Collection` is removed. `container.children` is a simple array now. `container.find()` will returns an array instead of `Konva.Collection()` instance.
47
+ `Konva.Collection` was confusing for many users. Also it was slow and worked with a bit of magic. So I decided to get rif of it. Now we are going to use good old arrays.
48
+
49
+ ```js
50
+ // old code:
51
+ group.find('Shape').visible(false);
52
+
53
+ // new code:
54
+ group.find('Shape').forEach((shape) => shape.visible(false));
55
+ ```
56
+
57
+ - argument `selector` is removed from `node.getIntersection(pos)` API. I don't think you even knew about it.
58
+ - `Konva.Util.extend` is removed.
59
+ - All "content" events from `Konva.Stage` are removed. E.g. instead of `contentMousemove` just use `mousemove` event.
60
+
61
+ **New features:**
62
+
63
+ - All updates on canvas will do automatic redraw with `layer.batchDraw()`. This features is configurable with `Konva.autoDrawEnabled` property. Konva will automatically redraw layer when you change any property, remove or add nodes, do caching. So you don't need to call `layer.draw()` or `layer.batchDraw()` in most of the cases.
64
+ - New method `layer.getNativeCanvasElement()`
65
+ - new `flipEnabled` property for `Konva.Transformer`
66
+ - new `node.isClientRectOnScreen()` method
67
+ - Added `Konva.Util.degToRad` and `Konva.Util.radToDeg`
68
+ - Added `node.getRelativePointerPosition()`
69
+
70
+ **Changes and fixes:**
71
+
72
+ - **Full migration to ES modules package (!), commonjs code is removed.**
73
+ - **`konva-node` is merged into `konva` npm package. One package works for both environments.**
74
+ - Full event system rewrite. Much better `pointer` events support.
75
+ - Fix `TextPath` recalculations on `fontSize` change
76
+ - Better typescript support. Now every module has its own `*.d.ts` file.
77
+ - Removed `Konva.UA`, `Konva._parseUA` (it was used for old browser detection)
78
+ - Fixed Arrow head position when an arrow has tension
79
+ - `textPath.getKerning()` is removed
80
+ - Fix `a` command parsing for `Konva.Path`
81
+ - Fix fill pattern for `Konva.Text` when the pattern has an offset or rotation
82
+ - `Konva.names` and `Konva.ids` are removed
83
+ - `Konva.captureTouchEventsEnabled` is renamed to `Konva.capturePointerEventsEnabled`
84
+
85
+ ## 7.2.5
86
+
87
+ - Fix transform update on `letterSpacing` change of `Konva.Text`
88
+
89
+ ## 7.2.4
90
+
91
+ - Fix wrong `mouseleave` trigger for `Konva.Stage`
92
+
93
+ ## 7.2.3
94
+
95
+ - Fix transformer rotation when parent of a node is rotated too.
96
+
97
+ ## 7.2.2
98
+
99
+ - Fix wrong size calculations for `Konva.Line` with tension
100
+ - Fix `shape.intersects()` behavior when a node is dragged
101
+ - Fix ellipsis rendering for `Konva.Text`
102
+
103
+ ## 7.2.1
104
+
105
+ - Fix correct rendering of `Konva.Label` when heigh of text is changed
106
+ - Fix correct `transformstart` and `transformend` events when several nodes are attached with `Konva.Transformer`
107
+
108
+ ## 7.2.0
109
+
110
+ - New property `fillAfterStrokeEnabled` for `Konva.Shape`. See API docs for more information.
111
+ - Fix for `Konva.Transformer` when it may fail to draw.
112
+ - Fix rendering of `TextPath` one more time.
113
+
114
+ ## 7.1.9
115
+
116
+ - Fix autodrawing for `Konva.Transformer` when it is on a different layer
117
+ - Fix `Konva.RegularPolygon` size calculations.
118
+
119
+ ## 7.1.8
120
+
121
+ - Fix incorrect rendering of `TextPath` in some cases. (again)
122
+
123
+ ## 7.1.7
124
+
125
+ - Fix incorrect rendering of `TextPath` in some cases.
126
+
127
+ ## 7.1.6
128
+
129
+ - Fix for correct image/dataURL/canvas exports for `Konva.Stage`.
130
+
131
+ ## 7.1.5
132
+
133
+ - Performance fixes for dragging many nodes with `Konva.Transformer`.
134
+ - Documentation updates
135
+
136
+ ## 7.1.4
137
+
138
+ - Perf fixes
139
+ - Change events trigger flow, so adding new events INSIDE event callback will work correctly.
140
+ - Fix double `dragend`, `dragstart`, `dragmove` triggers on `Konva.Transformer`
141
+
142
+ ## 7.1.3
143
+
144
+ - Text rendering fixes
145
+
146
+ ## 7.1.2
147
+
148
+ - fix ellipses behavior for `Konva.Text`.
149
+ - fix scaled fill pattern for text.
150
+
151
+ ## 7.1.1
152
+
153
+ - fixes for `dragstart` event when `Konva.Transformer` is used. `dragstart` event will have correct native `evt` reference
154
+ - Better unicode support in `Konva.Text` and `Konva.TextPath`. Emoji should work better now 👍
155
+
156
+ ## 7.1.0
157
+
158
+ - Multi row support for `ellipsis` config for `Konva.Text`
159
+ - Better `Konva.Transfomer` behavior when single attached node is programmatically rotated.
160
+
161
+ ## 7.0.7
162
+
163
+ - fixes for `dragstart` event when `Konva.Transformer` is used. `dragstart` will not bubble from transformer.
164
+ - `string` and `fill` properties validation can accept `CanvasGradient` as valid value
165
+
166
+ ## 7.0.6
167
+
168
+ - Better performance for stage dragging
169
+
170
+ ## 7.0.5
171
+
172
+ - Fixes for `node.cache()` function.
173
+
174
+ ## 7.0.4
175
+
176
+ - Add `onUpdate` callbacks to `Konva.Tween` configuration and `node.to()` method.
177
+ - Up to 6x faster initializations of objects, like `const shape = new Konva.Shape()`.
178
+
179
+ ## 7.0.3 - 2020-07-09
180
+
181
+ - Fix wring `dragend` trigger on `draggable` property change inside `click`
182
+ - Fix incorrect text rendering with `letterSpacing !== 0`
183
+ - Typescript fixes
184
+
185
+ ## 7.0.2 - 2020-06-30
186
+
187
+ - Fix wrong trigger `dbltap` and `click` on mobile
188
+
189
+ ## 7.0.1 - 2020-06-29
190
+
191
+ - Fixes for different font families support.
192
+ - Fixes for `Konva.Transformer` positions
193
+ - Types fixes for better Typescript support
194
+
195
+ ## 7.0.0 - 2020-06-23
196
+
197
+ - **BREAKING** `inherit` option is removed from `visible` and `listening`. They now just have boolean values `true` or `false`. If you do `group.listening(false);` then whole group and all its children will be removed from the hitGraph (and they will not listen to events). Probably 99% `Konva` applications will be not affected by this _breaking change_.
198
+ - **Many performance fixes and code size optimizations. Up to 70% performance boost for many moving nodes.**
199
+ - `layer.hitGraphEnabled()` is deprecated. Just use `layer.listening(false)` instead
200
+ - Better support for font families with spaces inside (like `Font Awesome 5`).
201
+ - Fix wrong `dblclick` and `dbltap` triggers
202
+ - Deprecate `Konva.FastLayer`. Use `new Konva.Layer({ listening: false });` instead.
203
+ - `dragmove` event will be fired on `Konva.Transformer` too when you drag a node.
204
+ - `dragmove` triggers only after ALL positions of dragging nodes are changed
205
+
206
+ ## 6.0.0 - 2020-05-08
207
+
208
+ - **BREAKING!** `boundBoxFunc` of `Konva.Transformer` works in absolute coordinates of whole transformer. Previously in was working in local coordinates of transforming node.
209
+ - Many `Konva.Transformer` fixes. Now it works correctly when you transform several rotated shapes.
210
+ - Fix for wrong `mouseleave` and `mouseout` fire on shape remove/destroy.
211
+
212
+ ## 5.0.3 - 2020-05-01
213
+
214
+ - Fixes for `boundBoxFunc` of `Konva.Transformer`.
215
+
216
+ ## 5.0.2 - 2020-04-23
217
+
218
+ - Deatach fixes for `Konva.Transformer`
219
+
220
+ ## 5.0.1 - 2020-04-22
221
+
222
+ - Fixes for `Konva.Transformer` when parent scale is changed
223
+ - Fixes for `Konva.Transformer` when parent is draggable
224
+ - Performance optimizations
225
+
226
+ ## 5.0.0 - 2020-04-21
227
+
228
+ - **New `Konva.Transformer` implementation!**. Old API should work. But I marked this release is `major` (breaking) just for smooth updates. Changes:
229
+ - Support of transforming multiple nodes at once: `tr.nodes([shape1, shape2])`.
230
+ - `tr.node()`, `tr.setNode()`, `tr.attachTo()` methods are deprecated. Use `tr.nodes(array)` instead
231
+ - Fixes for center scaling
232
+ - Fixes for better `padding` support
233
+ - `Transformer` can be placed anywhere in the tree of a stage tree (NOT just inside a parent of attached node).
234
+ - Fix `imageSmoothEnabled` resets when stage is resized
235
+ - Memory usage optimizations when a node is cached
236
+
237
+ ## 4.2.2 - 2020-03-26
238
+
239
+ - Fix hit stroke issues
240
+
241
+ ## 4.2.1 - 2020-03-26
242
+
243
+ - Fix some issues with `mouseenter` and `mouseleave` events.
244
+ - Deprecate `hitStrokeEnabled` property
245
+ - Fix rounding issues for `getClientRect()` for some shapes
246
+
247
+ ## 4.2.0 - 2020-03-14
248
+
249
+ - Add `rotationSnapTolerance` property to `Konva.Transformer`.
250
+ - Add `getActiveAnchor()` method to `Konva.Transformer`
251
+ - Fix hit for non-closed `Konva.Path`
252
+ - Some fixes for experimental Offscreen canvas support inside a worker
253
+
254
+ ## 4.1.6 - 2020-02-25
255
+
256
+ - Events fixes for `Konva.Transformer`
257
+ - Now `Konva` will keep `id` in a cloned node
258
+ - Better error messages on tainted canvas issues
259
+
260
+ ## 4.1.5 - 2020-02-16
261
+
262
+ - Fixes for `path.getClientRect()` function calculations
263
+
264
+ ## 4.1.4 - 2020-02-10
265
+
266
+ - Fix wrong internal caching of absolute attributes
267
+ - Fix `Konva.Transformer` behavior on scaled with CSS stage
268
+
269
+ ## 4.1.3 - 2020-01-30
270
+
271
+ - Fix line with tension calculations
272
+ - Add `node.getAbsoluteRotation()` method
273
+ - Fix cursor on anchors for rotated parent
274
+
275
+ ## 4.1.2 - 2020-01-08
276
+
277
+ - Fix possible `NaN` in content calculations
278
+
279
+ ## 4.1.1 - 2020-01-07
280
+
281
+ - Add ability to use `width = 0` and `height = 0` for `Konva.Image`.
282
+ - Fix `cache()` method of `Konva.Arrow()`
283
+ - Add `Transform` to `Konva` default exports. So `Konva.Transform` is available now.
284
+
285
+ ## 4.1.0 - 2019-12-23
286
+
287
+ - Make events work on some CSS transforms
288
+ - Fix caching on float dimensions
289
+ - Fix `mouseleave` event on stage.
290
+ - Increase default anchor size for `Konva.Transformer` on touch devices
291
+
292
+ ## 4.0.18 - 2019-11-20
293
+
294
+ - Fix `path.getClientRect()` calculations for `Konva.Path`
295
+ - Fix wrong fire of `click` and `tap` events on stopped drag events.
296
+
297
+ ## 4.0.17 - 2019-11-08
298
+
299
+ - Allow hitStrokeWidth usage, even if a shape has not stroke visible
300
+ - Better IE11 support
301
+
302
+ ## 4.0.16 - 2019-10-21
303
+
304
+ - Warn on undefined return value of `dragBoundFunc`.
305
+ - Better calculations for `container.getClientRect()`
306
+
307
+ ## 4.0.15 - 2019-10-15
308
+
309
+ - TS fixes
310
+ - Better calculations for `TextPath` with align = right
311
+ - Better `textPath.getClientRect()`
312
+
313
+ ## 4.0.14 - 2019-10-11
314
+
315
+ - TS fixes
316
+ - Fix globalCompositeOperation + cached hit detections.
317
+ - Fix absolute position calculations for cached parent
318
+
319
+ ## 4.0.13 - 2019-10-02
320
+
321
+ - Fix `line.getClientRect()` calculations for line with a tension or low number of points
322
+
323
+ ## 4.0.12 - 2019-09-17
324
+
325
+ - Fix some bugs when `Konva.Transformer` has `padding > 0`
326
+
327
+ ## 4.0.10 - 2019-09-10
328
+
329
+ - Fix drag position handling
330
+ - Fix multiple selector for find() method
331
+
332
+ ## 4.0.9 - 2019-09-06
333
+
334
+ - Fix `Konva.Transformer` behavior on mirrored nodes
335
+ - Fix `stage.getPointerPosition()` logic.
336
+
337
+ ## 4.0.8 - 2019-09-05
338
+
339
+ - Fix `dragend` event on click
340
+ - Revert fillPatternScale for text fix.
341
+
342
+ ## 4.0.7 - 2019-09-03
343
+
344
+ - Fixed evt object on `dragstart`
345
+ - Fixed double tap trigger after dragging
346
+
347
+ ## 4.0.6 - 2019-08-31
348
+
349
+ - Fix fillPatternScale for text
350
+
351
+ ## 4.0.5 - 2019-08-17
352
+
353
+ - Fix `dragstart` flow when `node.startDrag()` is called.
354
+ - Fix `tap` and `dbltap` double trigger on stage
355
+
356
+ ## 4.0.4 - 2019-08-12
357
+
358
+ - Add `node.isCached()` method
359
+ - Fix nested dragging bug
360
+
361
+ ## 4.0.3 - 2019-08-08
362
+
363
+ - Slightly changed `mousemove` event flow. It triggers for first `mouseover` event too
364
+ - Better `Konva.hitOnDragEnabled` support for mouse inputs
365
+
366
+ ## 4.0.2 - 2019-08-08
367
+
368
+ - Fixed `node.startDrag()` behavior. We can call it at any time.
369
+
370
+ ## 4.0.1 - 2019-08-07
371
+
372
+ - Better `Konva.Arrow` + tension drawing
373
+ - Typescript fixes
374
+
375
+ ## 4.0.0 - 2019-08-05
376
+
377
+ Basically the release doesn't have any breaking changes. You may only have issues if you are using something from `Konva.DD` object (which is private and never documented). Otherwise you should be fine. `Konva` has major upgrade about touch events system and drag&drop flow. The API is exactly the same. But the internal refactoring is huge so I decided to make a major version. Please upgrade carefully. Report about any issues you have.
378
+
379
+ - Better multi-touch support. Now we can trigger several `touch` events on one or many nodes.
380
+ - New drag&drop implementation. You can drag several shapes at once with several pointers.
381
+ - HSL colors support
382
+
383
+ ## 3.4.1 - 2019-07-18
384
+
385
+ - Fix wrong double tap trigger
386
+
387
+ ## 3.4.0 - 2019-07-12
388
+
389
+ - TS types fixes
390
+ - Added support for different values for `cornerRadius` of `Konva.Rect`
391
+
392
+ ## 3.3.3 - 2019-06-07
393
+
394
+ - Some fixes for better support `konva-node`
395
+ - TS types fixes
396
+
397
+ ## 3.3.2 - 2019-06-03
398
+
399
+ - TS types fixes
400
+
401
+ ## 3.3.1 - 2019-05-28
402
+
403
+ - Add new property `imageSmoothingEnabled` to the node caching
404
+ - Even more ts fixes. Typescript need a lot of attention, you know...
405
+
406
+ ## 3.3.0 - 2019-05-28
407
+
408
+ - Enable strict mode for ts types
409
+ - Add new property `imageSmoothingEnabled` to the layer
410
+
411
+ ## 3.2.7 - 2019-05-27
412
+
413
+ - Typescript fixes
414
+ - Experimental pointer events support. Do `Konva._pointerEventsEnabled = true;` to enable
415
+ - Fix some `Konva.Transformer` bugs.
416
+
417
+ ## 3.2.6 - 2019-05-09
418
+
419
+ - Typescript fixes again
420
+
421
+ ## 3.2.5 - 2019-04-17
422
+
423
+ - Show a warning when `Konva.Transformer` and attaching node have different parents.
424
+ - Typescript fixes
425
+
426
+ ## 3.2.4 - 2019-04-05
427
+
428
+ - Fix some stage events. `mouseenter` and `mouseleave` should work correctly on empty spaces
429
+ - Fix some typescript types
430
+ - Better detection of production mode (no extra warnings)
431
+
432
+ ## 3.2.3 - 2019-03-21
433
+
434
+ - Fix `hasName` method for empty name cases
435
+
436
+ ## 3.2.2 - 2019-03-19
437
+
438
+ - Remove `dependencies` from npm package
439
+
440
+ ## 3.2.1 - 2019-03-18
441
+
442
+ - Better `find` and `findOne` lookup. Now we should not care about duplicate ids.
443
+ - Better typescript definitions
444
+
445
+ ## 3.2.0 - 2019-03-10
446
+
447
+ - new property `shape.hitStrokeWidth(10)`
448
+ - Better typescript definitions
449
+ - Remove `Object.assign` usage (for IE11 support)
450
+
451
+ ## 3.1.7 - 2019-03-06
452
+
453
+ - Better modules and TS types
454
+
455
+ ## 3.1.6 - 2019-02-27
456
+
457
+ - Fix commonjs exports
458
+ - Fix global injections
459
+
460
+ ## 3.1.0 - 2019-02-27
461
+
462
+ - Make `Konva` modular: `import Konva from 'konva/lib/Core';`;
463
+ - Fix incorrect `Transformer` behavior
464
+ - Fix drag&drop for touch devices
465
+
466
+ ## 3.0.0 - 2019-02-25
467
+
468
+ ## Breaking
469
+
470
+ Customs builds are temporary removed from npm package. You can not use `import Konva from 'konva/src/Core';`.
471
+ This feature will be added back later.
472
+
473
+ ### Possibly breaking
474
+
475
+ That changes are private and internal specific. They should not break most of `Konva` apps.
476
+
477
+ - `Konva.Util.addMethods` is removed
478
+ - `Konva.Util._removeLastLetter` is removed
479
+ - `Konva.Util._getImage` is removed
480
+ - `Konv.Util._getRGBAString` is removed
481
+ - `Konv.Util._merge` is removed
482
+ - Removed polyfill for `requestAnimationFrame`.
483
+ - `id` and `name` properties defaults are empty strings, not `undefined`
484
+ - internal `_cache` property was updated to use es2015 `Map` instead of `{}`.
485
+ - `Konva.Validators` is removed.
486
+
487
+ ### Added
488
+
489
+ - Show a warning when a stage has too many layers
490
+ - Show a warning on duplicate ids
491
+ - Show a warning on weird class in `Node.create` parsing from JSON
492
+ - Show a warning for incorrect value for component setters.
493
+ - Show a warning for incorrect value for `zIndex` property.
494
+ - Show a warning when user is trying to reuse destroyed shape.
495
+ - new publish method `measureSize(string)` for `Konva.Text`
496
+ - You can configure what mouse buttons can be used for drag&drop. To enable right button you can use `Konva.dragButtons = [0, 1]`.
497
+ - Now you can hide stage `stage.visible(false)`. It will set its container display style to "none".
498
+ - New method `stage.setPointersPositions(event)`. Usually you don't need to use it manually.
499
+ - New method `layer.toggleHitCanvas()` to show and debug hit areas
500
+
501
+ ### Changed
502
+
503
+ - Full rewrite to Typescript with tons of refactoring and small optimizations. The public API should be 100% the same
504
+ - Fixed `patternImage` and `radialGradient` for `Konva.Text`
505
+ - `Konva.Util._isObject` is renamed to `Konva.Util._isPlainObject`.
506
+ - A bit changed behavior of `removeId` (private method), now it doesn't clear node ref, if object is changed.
507
+ - simplified `batchDraw` method (it doesn't use `Konva.Animation`) now.
508
+ - Performance improvements for shapes will image patterns, linear and radial fills
509
+ - `text.getTextHeight()` is deprecated. Use `text.height()` or `text.fontSize()` instead.
510
+ - Private method `stage._setPointerPosition()` is deprecated. Use `stage.setPointersPositions(event)`;
511
+
512
+ ### Fixed
513
+
514
+ - Better mouse support on mobile devices (yes, that is possible to connect mouse to mobile)
515
+ - Better implementation of `mouseover` event for stage
516
+ - Fixed underline drawing for text with `lineHeight !== 1`
517
+ - Fixed some caching behavior when a node has `globalCompositeOperation`.
518
+ - Fixed automatic updates for `Konva.Transformer`
519
+ - Fixed container change for a stage.
520
+ - Fixed warning for `width` and `height` attributes for `Konva.Text`
521
+ - Fixed gradient drawing for `Konva.Text`
522
+ - Fixed rendering with `strokeWidth = 0`
523
+
524
+ ## 2.6.0 - 2018-12-14
525
+
526
+ ### Changed
527
+
528
+ - Performance fixes when cached node has many children
529
+ - Better drawing for shape with `strokeScaleEnabled = false` on HDPI devices
530
+
531
+ ### Added
532
+
533
+ - New `ignoreStroke` for `Konva.Transformer`. Good to use when a shape has `strokeScaleEnabled = false`
534
+
535
+ ### Changed
536
+
537
+ - `getKerning` TextPath API is deprecated. Use `kerningFunc` instead.
538
+
539
+ ## 2.5.1 - 2018-11-08
540
+
541
+ ### Changed
542
+
543
+ - Use custom functions for `trimRight` and `trimLeft` (for better browsers support)
544
+
545
+ ## 2.5.0 - 2018-10-24
546
+
547
+ ### Added
548
+
549
+ - New `anchorCornerRadius` for `Konva.Transformer`
550
+
551
+ ### Fixed
552
+
553
+ - Performance fixes for caching
554
+
555
+ ### Changed
556
+
557
+ - `dragstart` event behavior is a bit changed. It will fire BEFORE actual position of a node is changed.
558
+
559
+ ## 2.4.2 - 2018-10-12
560
+
561
+ ### Fixed
562
+
563
+ - Fixed a wrong cache when a shape inside group has `listening = false`
564
+
565
+ ## 2.4.1 - 2018-10-08
566
+
567
+ ### Changed
568
+
569
+ - Added some text trim logic to wrap in better
570
+
571
+ ### Fixed
572
+
573
+ - `getClientRect` for complex paths fixes
574
+ - `getClientRect` calculation fix for groups
575
+ - Update `Konva.Transformer` on `rotateEnabled` change
576
+ - Fix click stage event on dragend
577
+ - Fix some Transformer cursor behavior
578
+
579
+ ## 2.4.0 - 2018-09-19
580
+
581
+ ### Added
582
+
583
+ - Centered resize with ALT key for `Konva.Transformer`
584
+ - New `centeredScaling` for `Konva.Transformer`
585
+
586
+ ### Fixed
587
+
588
+ - Tween support for gradient properties
589
+ - Add `user-select: none` to the stage container to fix some "selected contend around" issues
590
+
591
+ ## 2.3.0 - 2018-08-30
592
+
593
+ ### Added
594
+
595
+ - new methods `path.getLength()` and `path.getPointAtLength(val)`
596
+ - `verticalAlign` for `Konva.Text`
597
+
598
+ ## 2.2.2 - 2018-08-21
599
+
600
+ ### Changed
601
+
602
+ - Default duration for tweens and `node.to()` methods is now 300ms
603
+ - Typescript fixes
604
+ - Automatic validations for many attributes
605
+
606
+ ## 2.2.1 - 2018-08-10
607
+
608
+ ### Added
609
+
610
+ - New properties for `Konva.Transformer`: `borderStroke`, `borderStrokeWidth`, `borderDash`, `anchorStroke`, `anchorStrokeWidth`, `anchorSize`.
611
+
612
+ ### Changed
613
+
614
+ - Some properties of `Konva.Transformer` are renamed. `lineEnabled` -> `borderEnabled`. `rotateHandlerOffset` -> `rotateAnchorOffset`, `enabledHandlers` -> `enabledAnchors`.
615
+
616
+ ## 2.1.8 - 2018-08-01
617
+
618
+ ### Fixed
619
+
620
+ - Some `Konva.Transformer` fixes
621
+ - Typescript fixes
622
+ - `stage.toDataURL()` fixes when it has hidden layers
623
+ - `shape.toDataURL()` automatically adjust position and size of resulted image
624
+
625
+ ## 2.1.7 - 2018-07-03
626
+
627
+ ### Fixed
628
+
629
+ - `toObject` fixes
630
+
631
+ ## 2.1.7 - 2018-07-03
632
+
633
+ ### Fixed
634
+
635
+ - Some drag&drop fixes
636
+
637
+ ## 2.1.6 - 2018-06-16
638
+
639
+ ### Fixed
640
+
641
+ - Removed wrong dep
642
+ - Typescript fixes
643
+
644
+ ## 2.1.5 - 2018-06-15
645
+
646
+ ### Fixed
647
+
648
+ - Typescript fixes
649
+ - add shape as second argument for `sceneFunc` and `hitFunc`
650
+
651
+ ## 2.1.4 - 2018-06-15
652
+
653
+ ### Fixed
654
+
655
+ - Fixed `Konva.Text` justify drawing for a text with decoration
656
+ - Added methods `data()`,`setData()` and `getData()` methods to `Konva.TextPath`
657
+ - Correct cache reset for `Konva.Transformer`
658
+
659
+ ## 2.1.3 - 2018-05-17
660
+
661
+ ### Fixed
662
+
663
+ - `Konva.Transformer` automatically track shape changes
664
+ - `Konva.Transformer` works with shapes with offset too
665
+
666
+ ## 2.1.2 - 2018-05-16
667
+
668
+ ### Fixed
669
+
670
+ - Cursor fixes for `Konva.Transformer`
671
+ - Fixed lineHeight behavior for `Konva.Text`
672
+ - Some performance optimizations for `Konva.Text`
673
+ - Better wrap algorithm for `Konva.Text`
674
+ - fixed `Konva.Arrow` with tension != 0
675
+ - Some fixes for `Konva.Transformer`
676
+
677
+ ## 2.0.3 - 2018-04-21
678
+
679
+ ### Added
680
+
681
+ - Typescript defs for `Konva.Transformer`
682
+ - Typescript defs for `globalCompositeOperation`
683
+
684
+ ## Changes
685
+
686
+ - Fixed flow for `contextmenu` event. Now it will be triggered on shapes too
687
+ - `find()` method for Containers can use a function as a parameter
688
+
689
+ ### Fixed
690
+
691
+ - some bugs fixes for `group.getClientRect()`
692
+ - `Konva.Arrow` will not draw dash for pointers
693
+ - setAttr will trigger change event if new value is the same Object
694
+ - better behavior of `dblclick` event when you click fast on different shapes
695
+ - `stage.toDataURL` will use `pixelRatio = 1` by default.
696
+
697
+ ## 2.0.2 - 2018-03-15
698
+
699
+ ### Fixed
700
+
701
+ - Even more bugs fixes for `Konva.Transformer`
702
+
703
+ ## 2.0.1 - 2018-03-15
704
+
705
+ ### Fixed
706
+
707
+ - Several bugs fixes for `Konva.Transformer`
708
+
709
+ ## 2.0.0 - 2018-03-15
710
+
711
+ ### Added
712
+
713
+ - new `Konva.Transformer`. It is a special group that allow simple resizing and rotation of a shape.
714
+ - Add ability to remove event by callback `node.off('event', callback)`.
715
+ - new `Konva.Filters.Contrast`.
716
+ - new `Konva.Util.haveIntersection()` to detect simple collusion
717
+ - add `Konva.Text.ellipsis` to add '…' to text string if width is fixed and wrap is set to 'none'
718
+ - add gradients for strokes
719
+
720
+ ## Changed
721
+
722
+ - stage events are slightly changed. `mousedown`, `click`, `mouseup`, `dblclick`, `touchstart`, `touchend`, `tap`, `dbltap` will be triggered when clicked on empty areas too
723
+
724
+ ### Fixed
725
+
726
+ - Some typescript fixes
727
+ - Pixelate filter fixes
728
+ - Fixes for path data parsing
729
+ - Fixed shadow size calculation
730
+
731
+ ## Removed
732
+
733
+ - Some deprecated methods are removed. If previous version was working without deprecation warnings for you, this one will work fine too.
734
+
735
+ ## 1.7.6 - 2017-11-01
736
+
737
+ ### Fixed
738
+
739
+ - Some typescript fixes
740
+
741
+ ## 1.7.4 - 2017-10-30
742
+
743
+ ### Fixed
744
+
745
+ - `isBrowser` detection for electron
746
+
747
+ ## 1.7.3 - 2017-10-19
748
+
749
+ ### Changed
750
+
751
+ - Changing size of a stage will redraw it in synchronous way
752
+
753
+ ### Fixed
754
+
755
+ - Some fixes special for nodejs
756
+
757
+ ## 1.7.2 - 2017-10-11
758
+
759
+ ### Fixed
760
+
761
+ - Fixed `Konva.document is undefined`
762
+
763
+ ## 1.7.1 - 2017-10-11
764
+
765
+ ### Changed
766
+
767
+ - Konva for browser env and Konva for nodejs env are separate packages now. You can use `konva-node` for NodeJS env.
768
+
769
+ ## 1.7.0 - 2017-10-08
770
+
771
+ ### Fixed
772
+
773
+ - Several typescript fixes
774
+
775
+ ### Changed
776
+
777
+ - Default value for `dragDistance` is changed to 3px.
778
+ - Fix rare error throw on drag
779
+ - Caching with height = 0 or width = 0 with throw async error. Caching will be ignored.
780
+
781
+ ## 1.6.8 - 2017-08-19
782
+
783
+ ### Changed
784
+
785
+ - The `node.getClientRect()` calculation is changed a bit. It is more powerfull and correct. Also it takes parent transform into account. See docs.
786
+ - Upgrade nodejs deps
787
+
788
+ ## 1.6.7 - 2017-07-28
789
+
790
+ ### Fixed
791
+
792
+ - Fix bug with double trigger wheel in Firefox
793
+ - Fix `node.getClientRect()` calculation in a case of Group + invisible child
794
+ - Fix dblclick issue https://github.com/konvajs/konva/issues/252
795
+
796
+ ## 1.6.3 - 2017-05-24
797
+
798
+ ### Fixed
799
+
800
+ - Fixed bug with pointer detection. css 3d transformed stage will not work now.
801
+
802
+ ## 1.6.2 - 2017-05-08
803
+
804
+ ### Fixed
805
+
806
+ - Fixed bug with automatic shadow for negative scale values
807
+
808
+ ## 1.6.1 - 2017-04-25
809
+
810
+ ### Fixed
811
+
812
+ - Fix pointer position detection
813
+
814
+ ### Changed
815
+
816
+ - moved `globalCompositeOperation` property to `Konva.Node`
817
+
818
+ ## 1.6.0 - 2017-04-21
819
+
820
+ ### Added
821
+
822
+ - support of globalCompositeOperation for `Konva.Shape`
823
+
824
+ ### Fixed
825
+
826
+ - getAllIntersections now works ok for Text shapes (https://github.com/konvajs/konva/issues/224)
827
+
828
+ ### Changed
829
+
830
+ - Konva a bit changed a way to detect pointer position. Now it should be OK to apply css transform on Konva container. https://github.com/konvajs/konva/pull/215
831
+
832
+ ## 1.5.0 - 2017-03-20
833
+
834
+ ### Added
835
+
836
+ - support for `lineDashOffset` property for `Konva.Shape`.
837
+
838
+ ## 1.4.0 - 2017-02-07
839
+
840
+ ## Added
841
+
842
+ - `textDecoration` of `Konva.Text` now supports `line-through`
843
+
844
+ ## 1.3.0 - 2017-01-10
845
+
846
+ ## Added
847
+
848
+ - new align value for `Konva.Text` and `Konva.TextPath`: `justify`
849
+ - new property for `Konva.Text` and `Konva.TextPath`: `textDecoration`. Right now it sports only '' (no decoration) and 'underline' values.
850
+ - new property for `Konva.Text`: `letterSpacing`
851
+ - new event `contentContextmenu` for `Konva.Stage`
852
+ - `align` support for `Konva.TextPath`
853
+ - new method `toCanvas()` for converting a node into canvas element
854
+
855
+ ### Changed
856
+
857
+ - changing a size of `Konva.Stage` will update it in async way (via `batchDraw`).
858
+ - `shadowOffset` respect pixel ratio now
859
+
860
+ ### Fixed
861
+
862
+ - Fixed bug when `Konva.Tag` width was not changing its width dynamically
863
+ - Fixed "calling remove() for dragging shape will throw an error"
864
+ - Fixed wrong opacity level for cached group with opacity
865
+ - More consistent shadows on HDPI screens
866
+ - Fixed memory leak for nodes with several names
867
+
868
+ ## 1.2.2 - 2016-09-15
869
+
870
+ ### Fixed
871
+
872
+ - refresh stage hit and its `dragend`
873
+ - `getClientRect` calculations
874
+
875
+ ## 1.2.0 - 2016-09-15
876
+
877
+ ## Added
878
+
879
+ - new properties for `Konva.TextPath`: `letterSpacing` and `textBaseline`.
880
+
881
+ ## 1.1.4 - 2016-09-13
882
+
883
+ ### Fixed
884
+
885
+ - Prevent throwing an error when text property of `Konva.Text` = undefined or null
886
+
887
+ ## 1.1.3 - 2016-09-12
888
+
889
+ ### Changed
890
+
891
+ - Better hit function for `TextPath`.
892
+ - Validation of `Shape` filters.
893
+
894
+ ## 1.1.2 - 2016-09-10
895
+
896
+ ### Fixed
897
+
898
+ - Fixed "Dragging Group on mobile view throws "missing preventDefault" error" #169
899
+
900
+ ## 1.1.1 - 2016-08-30
901
+
902
+ ### Fixed
903
+
904
+ - Fixed #166 bug of drag&drop
905
+
906
+ ## 1.1.0 - 2016-08-21
907
+
908
+ ## Added
909
+
910
+ - new property of `Konva.Shape` - `preventDefault`.
911
+
912
+ ## 1.0.3 - 2016-08-14
913
+
914
+ ### Fixed
915
+
916
+ - Fixed some typescript definitions
917
+
918
+ ## 1.0.2 - 2016-07-08
919
+
920
+ ## Changed
921
+
922
+ - `Konva.Text` will interpret undefined `width` and `height` as `AUTO`
923
+
924
+ ## 1.0.1 - 2016-07-05
925
+
926
+ ### Changed
927
+
928
+ - you can now unset property by `node.x(undefined)` or `node.setAttr('x', null)`
929
+
930
+ ### Fixed
931
+
932
+ - Bug fix for case when `touchend` event throws error
933
+
934
+ ## 1.0.0 - 2016-07-05
935
+
936
+ ### Fixed
937
+
938
+ - Bug fix for case when `touchend` event throws error
939
+
940
+ ## 0.15.0 - 2016-06-18
941
+
942
+ ## Added
943
+
944
+ - Custom clip function
945
+
946
+ ## 0.14.0 - 2016-06-17
947
+
948
+ ### Fixed
949
+
950
+ - fixes in typescript definitions
951
+ - fixes for bug with `mouseenter` event on deep nesting case
952
+
953
+ ## 0.13.9 - 2016-05-14
954
+
955
+ ### Changed
956
+
957
+ - typescript definition in npm package
958
+ - node@5.10.1, canvas@1.3.14, jsdom@8.5.0 support
959
+ - `Konva.Path` will be filled when it is not closed
960
+ - `Animation.start()` will not not immediate sync draw. This should improve performance a little.
961
+ - Warning when node for `Tween` is not in layer yet.
962
+ - `removeChildren()` remove only first level children. So it will not remove grandchildren.
963
+
964
+ ## 0.12.4 - 2016-04-19
965
+
966
+ ### Changed
967
+
968
+ - `batchDraw` will do not immediate `draw()`
969
+
970
+ ### Fixed
971
+
972
+ - fix incorrect shadow offset on rotation
973
+
974
+ ## 0.12.3 - 2016-04-07
975
+
976
+ ### Fixed
977
+
978
+ - `batchDraw` function works less time now
979
+ - lighter npm package
980
+
981
+ ## 0.12.2 - 2016-03-31
982
+
983
+ ### Fixed
984
+
985
+ - repair `cancelBubble` event property behaviour
986
+ - fix wrong `Path` `getClientRect()` calculation
987
+ - better HDPI support
988
+ - better typescript definitions
989
+ - node 0.12 support
990
+
991
+ ### Changed
992
+
993
+ - more universal stage container selector
994
+ - `mousewheel` event changed to `wheel`
995
+
996
+ ## 0.11.1 - 2016-01-16
997
+
998
+ ### Fixed
999
+
1000
+ - correct `Konva.Arrow` drawing. Now it works better.
1001
+ - Better support for dragging when mouse out of stage
1002
+ - Better corner radius for `Label` shape
1003
+ - `contentTap` event for stage
1004
+
1005
+ ### Added
1006
+
1007
+ - event delegation. You can use it in this way: `layer.on('click', 'Circle', handler);`
1008
+ - new `node.findAncestors(selector)` and `node.findAncestor(selector)` functions
1009
+ - optional selector parameter for `stage.getIntersection` and `layer.getIntersection`
1010
+ - show warning message if several instances of Konva are added to page.
1011
+
1012
+ ### Changed
1013
+
1014
+ - `moveTo` and some other methods return `this`
1015
+ - `getAbsolutePosition` support optional relative parent argument (useful to find absolute position inside of some of parent nodes)
1016
+ - `change` event will be not fired if changed value is the same as old value
1017
+
1018
+ ## 0.10.0 - 2015-10-27
1019
+
1020
+ ### Added
1021
+
1022
+ - RGBA filter. Thanks to [@codefo](https://github.com/codefo)
1023
+ - `stroke` and `fill` support for `Konva.Sprite`
1024
+
1025
+ ### Fixed
1026
+
1027
+ - Correct calculation in `getClientRect` method of `Konva.Line` and `Konva.Container`.
1028
+ - Correct `toObject()` behaviour for node with attrs with extended native prototypes
1029
+ - Fixed bug for caching where buffer canvas is required
1030
+
1031
+ ### Changed
1032
+
1033
+ - Dragging works much better. If your pointer is out of stage content dragging will still continue.
1034
+ - `Konva.Node.create` now works with objects.
1035
+ - `Konva.Tween` now supports tweening points to state with different length
1036
+
1037
+ ## 0.9.5 - 2015-05-28
1038
+
1039
+ ### Fixed
1040
+
1041
+ - `to` will not throw error if no `onFinish` callback
1042
+ - HDPI support for desktop
1043
+ - Fix bug when filters are not correct for HDPI
1044
+ - Fix bug when hit area is not correct for HDPI
1045
+ - Fix bug for incorrect `getClientRect` calculation
1046
+ - Repair fill gradient for text
1047
+
1048
+ ### Changed
1049
+
1050
+ - context wrapper is more capable with native context.
1051
+ So you can use `context.fillStyle` property in your `sceneFunc` without accessing native context.
1052
+ - `toDataURL` now handles pixelRatio. you can pass `config.pixelRatio` argument
1053
+ - Correct `clone()` for custom nodes
1054
+ - `FastLayer` can now have transforms
1055
+ - `stage.toDataURL()` method now works synchronously. So `callback` argument is not required.
1056
+ - `container.find(selector)` method now has a validation step. So if you forgot to add `#` or `.` you will see a warning message in the console.
1057
+
1058
+ ### Added
1059
+
1060
+ - new `Konva.Image.fromURL` method
1061
+
1062
+ ### Deprecated
1063
+
1064
+ - `fillRed`, `fillGreen`, `fillBlue`, `fillAlpha` are deprecated. Use `fill` instead.
1065
+ - `strokeRed`, `strokeGreen`, `strokeBlue`, `strokeAlpha` are deprecated. Use `stroke` instead.
1066
+ - `shadowRed`, `shadowGreen`, `shadowBlue`, `shadowAlpha` are deprecated. Use `shadow` instead.
1067
+ - `dashArray` is deprecated. Use `dash` instead.
1068
+ - `drawFunc` is deprecated. Use `sceneFunc` instead.
1069
+ - `drawHitFunc` is deprecated. Use `hitFunc` instead.
1070
+ - `rotateDeg` is deprecated. Use `rotate` instead.
1071
+
1072
+ ## 0.9.0 - 2015-02-27
1073
+
1074
+ ### Fixed
1075
+
1076
+ - cache algorithm has A LOT OF updates.
1077
+
1078
+ ### Changed
1079
+
1080
+ - `scale` now affects `shadowOffset`
1081
+ - performance optimization (remove some unnecessary draws)
1082
+ - more expected drawing when shape has opacity, stroke and shadow
1083
+ - HDPI for caching.
1084
+ - Cache should work much better. Now you don't need to pass bounding box {x,y,width,height} to `cache` method for all buildin Konva shapes. (only for your custom `Konva.Shape` instance).
1085
+ - `Tween` now supports color properties (`fill`, `stroke`, `shadowColor`)
1086
+
1087
+ ### Added
1088
+
1089
+ - new methods for working with node's name: `addName`, `removeName`, `hasName`.
1090
+ - new `perfectDrawEnabled` property for shape. See [http://konvajs.org/docs/performance/Disable_Perfect_Draw.html](http://konvajs.org/docs/performance/Disable_Perfect_Draw.html)
1091
+ - new `shadowForStrokeEnabled` property for shape. See [http://konvajs.org/docs/performance/All_Performance_Tips.html](http://konvajs.org/docs/performance/All_Performance_Tips.html)
1092
+ - new `getClientRect` method.
1093
+ - new `to` method for every node for shorter tweening
1094
+
1095
+ ## 0.8.0 - 2015-02-04
1096
+
1097
+ - Bug Fixes
1098
+ - browser crashing on pointer events fixed
1099
+ - optimized `getIntersection` function
1100
+ - Enhancements
1101
+ - `container.findOne()` method
1102
+ - new `strokeHitEnabled` property. Useful for performance optimizations
1103
+ - typescript definitions. see `/resources/konva.d.ts`
1104
+
1105
+ ## Rebranding release 2015-01-28
1106
+
1107
+ Differences from last official `KineticJS` release
1108
+
1109
+ - Bug Fixes
1110
+
1111
+ - `strokeScaleEnabled = false` is disabled for text as I can not find a way to implement this
1112
+ - `strokeScaleEnabled = false` for Line now creates a correct hit graph
1113
+ - working "this-example" as name for nodes
1114
+ - Konva.Text() with no config will not throw exception
1115
+ - Konva.Line() with no config will not throw exception
1116
+ - Correct stage resizing with `FastLayer`
1117
+ - `batchDraw` method for `FastLayer`
1118
+ - Correct mouseover/mouseout/mouseenter/mouseleave events for groups
1119
+ - cache node before adding to layer
1120
+ - `intersects` function now works for shapes with shadow
1121
+
1122
+ - Enhancements
1123
+ - `cornerRadius` of Rect is limited by `width/2` and `height/2`
1124
+ - `black` is default fill for text
1125
+ - true class extending. Now `rect instanceOf Konva.Shape` will return true
1126
+ - while dragging you can redraw layer that is not under drag. hit graph will be updated in this case
1127
+ - now you can move object that is dragging into another layer.
1128
+ - new `frameOffsets` attribute for `Konva.Sprite`
1129
+ - much better dragging performance
1130
+ - `browserify` support
1131
+ - applying opacity to cached node
1132
+ - remove all events with `node.off()`
1133
+ - mouse dragging only with left button
1134
+ - opacity now affects cached shapes
1135
+ - Label corner radius
1136
+ - smart changing `width`, `height`, `radius` attrs for circle, start, ellipse, ring.
1137
+ - `mousewheel` support. Thanks [@vmichnowicz](https://github.com/vmichnowicz)
1138
+ - new Arrow plugin
1139
+ - multiple names: `node.name('foo bar'); container.find('.foo');` (thanks [@mattslocum](https://github.com/mattslocum))
1140
+ - `Container.findOne()`