Fix autodrawing for Konva.Transformer when it is on a different layer

This commit is contained in:
Anton Lavrenov
2020-11-20 12:21:15 -05:00
parent 0e2a09ba46
commit 184322e2a9
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
* Fix autodrawing for `Konva.Transformer` when it is on a different layer
* Fix `Konva.RegularPolygon` size calculations.
## 7.1.8

View File

@@ -1033,6 +1033,7 @@ export class Transformer extends Group {
node.setAttrs(attrs);
this._fire('transform', { evt: evt, target: node });
node._fire('transform', { evt: evt, target: node });
node.getLayer()?.batchDraw();
});
this.rotation(Util._getRotation(newAttrs.rotation));
this._resetTransformCache();