Skip to Content
Svelte Flow 2 is out! Read the announcement →
ReferenceTypes

NodeEventWithPointer

Source on GitHub 

The NodeEventWithPointer type represents an event that occurs during node interactions, including pointer position and event details. It extends the base node event with pointer-specific information.

type NodeEventWithPointer<NodeType extends Node = Node> = { event: PointerEvent; node: NodeType; };
Parameters:
NameTypeDefault
__0{ node: NodeType; event: T; }
Returns:
void