Skip to main content

Konva_Node

title: Accessing the Konva node layout: svelte_page


In some cases you might need to access the underlying Konva node of the svelte-konva component directly. You can do this by binding the handle prop of the component or by accessing it in the payload of a Konva event.

Caution: The node is initially undefined and becomes defined one tick after the component has been mounted. If you want to access the node directly after component mounting you need to await a Svelte tick() before the handle prop becomes defined.