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

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 | TouchEvent
nodesNodeType[]
Returns:
void