Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesOnSelectionDrag

OnSelectionDrag

Source on GitHub 

The OnSelectionDrag type is a callback function that is called when dragging a selection of nodes. It receives the mouse event and an array of the nodes being dragged.

type OnSelectionDrag<NodeType extends Node = Node> = ( event: MouseEvent, nodes: NodeType[], ) => void;
Parameters:
NameTypeDefault
eventMouseEvent
nodesNodeBase<Record<string, unknown>, string | undefined>[]
Returns:
void
Last updated on