konva 4.2.0 → 5.0.1
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.
- package/CHANGELOG.md +28 -0
- package/konva.js +742 -378
- package/konva.min.js +3 -3
- package/lib/BaseLayer.js +4 -3
- package/lib/Container.js +6 -17
- package/lib/FastLayer.js +0 -4
- package/lib/Global.js +1 -1
- package/lib/Layer.js +4 -9
- package/lib/Node.js +40 -41
- package/lib/Shape.js +17 -13
- package/lib/Stage.js +1 -1
- package/lib/Util.js +42 -0
- package/lib/shapes/Arrow.js +1 -1
- package/lib/shapes/Line.js +4 -4
- package/lib/shapes/Text.js +9 -4
- package/lib/shapes/TextPath.js +4 -4
- package/lib/shapes/Transformer.js +502 -206
- package/package.json +1 -1
- package/types/BaseLayer.d.ts +3 -4
- package/types/Container.d.ts +10 -6
- package/types/FastLayer.d.ts +0 -1
- package/types/Layer.d.ts +6 -8
- package/types/Node.d.ts +10 -8
- package/types/Shape.d.ts +1 -1
- package/types/Util.d.ts +13 -13
- package/types/_CoreInternals.d.ts +2 -1
- package/types/_FullInternals.d.ts +2 -1
- package/types/shapes/Transformer.d.ts +21 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## Not released:
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
## 5.0.1 - 2020-04-22
|
|
10
|
+
|
|
11
|
+
* Fixes for `Konva.Transformer` when parent scale is changed
|
|
12
|
+
* Fixes for `Konva.Transformer` when parent is draggable
|
|
13
|
+
* Performance optimizations
|
|
14
|
+
|
|
15
|
+
## 5.0.0 - 2020-04-21
|
|
16
|
+
|
|
17
|
+
* **New `Konva.Transformer` implementation!**. Old API should work. But I mark this release is `major` (breaking) just for smooth updates. Changes:
|
|
18
|
+
* Support of transforming multiple nodes at once: `tr.nodes([shape1, shape2])`.
|
|
19
|
+
* `tr.node()`, `tr.setNode()`, `tr.attachTo()` methods are deprecated. Use `tr.nodes(array)` instead
|
|
20
|
+
* Fixes for center scaling
|
|
21
|
+
* Fixes for better `padding` support
|
|
22
|
+
* `Transformer` can be placed anywhere in the tree of a stage tree (NOT just inside a parent of attached node).
|
|
23
|
+
* Fix `imageSmoothEnabled` resets when stage is resized
|
|
24
|
+
* Memory usage optimizations when a node is cached
|
|
25
|
+
|
|
26
|
+
## 4.2.2 - 2020-03-26
|
|
27
|
+
|
|
28
|
+
* Fix hit stroke issues
|
|
29
|
+
|
|
30
|
+
## 4.2.1 - 2020-03-26
|
|
31
|
+
|
|
32
|
+
* Fix some issues with `mouseenter` and `mouseleave` events.
|
|
33
|
+
* Deprecate `hitStrokeEnabled` property
|
|
34
|
+
* Fix rounding issues for `getClientRect()` for some shapes
|
|
35
|
+
|
|
8
36
|
## 4.2.0 - 2020-03-14
|
|
9
37
|
|
|
10
38
|
* Add `rotationSnapTolerance` property to `Konva.Transformer`.
|