mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
node.setPosition() now uses setX() and setY() which handles the transform cache
This commit is contained in:
@@ -353,8 +353,8 @@
|
||||
*/
|
||||
setPosition: function() {
|
||||
var pos = Kinetic.Util._getXY([].slice.call(arguments));
|
||||
this.setAttr(X, pos.x);
|
||||
this.setAttr(Y, pos.y);
|
||||
this.setX(pos.x);
|
||||
this.setY(pos.y);
|
||||
},
|
||||
/**
|
||||
* get node position relative to parent
|
||||
|
Reference in New Issue
Block a user