correct transformer on scaled parent

This commit is contained in:
Anton Lavrenov 2018-03-07 12:24:48 +08:00
parent 0343f525dc
commit 64cfd8e934
3 changed files with 503 additions and 491 deletions

981
konva.js

File diff suppressed because it is too large Load Diff

8
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -348,7 +348,9 @@
return;
}
var absPos = this.findOne('.top-left').getAbsolutePosition();
var absPos = this.findOne('.top-left').getAbsolutePosition(
this.getParent()
);
x = absPos.x;
y = absPos.y;
@ -383,6 +385,7 @@
},
_fitNodeInto: function(attrs) {
console.log(attrs);
this._settings = true;
var node = this.getNode();
if (attrs.rotation !== undefined) {