Skip to Content
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
nodesNodeType[]
Returns:
void
Last updated on