Closed azev closed 7 years ago
@azev dragBoundFunc
in not a property. It is a method of an instance. Take a look at API docs: http://konvajs.github.io/api/Konva.Node.html#dragBoundFunc
node.dragBoundFunc(function(pos){
return {
x: this.getAbsolutePosition().x,
y: pos.y
};
});
Thanks! attention failed :)
Works:
Doesn't work:
How can I set dragBoundFunc after the object creation?