mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 01:31:01 +08:00
Merge branch 'master' of https://github.com/allada/konva into allada-master
This commit is contained in:
commit
0fe91fd1a1
@ -650,7 +650,10 @@
|
|||||||
update: function() {
|
update: function() {
|
||||||
var attrs = this._getNodeRect();
|
var attrs = this._getNodeRect();
|
||||||
var node = this.getNode();
|
var node = this.getNode();
|
||||||
var scale = node ? node.getAbsoluteScale() : { x: 1, y: 1 };
|
var scale = { x: 1, y: 1 };
|
||||||
|
if (node && node.getParent()) {
|
||||||
|
scale = node.getParent().getAbsoluteScale();
|
||||||
|
}
|
||||||
var invertedScale = {
|
var invertedScale = {
|
||||||
x: 1 / scale.x,
|
x: 1 / scale.x,
|
||||||
y: 1 / scale.y
|
y: 1 / scale.y
|
||||||
|
Loading…
Reference in New Issue
Block a user