Skip to main content

BaseNode

BaseNode<T> is the common wrapper around a Konva node.

API

node.getNode();
node.setPosition({ x: 100, y: 200 });
node.getPosition();
node.remove();

Example

const text = engine.nodes.addText({ x: 100, y: 100, text: 'Hello' });
text.getNode().draggable(true);