Skip to content

DraggingActionState

since v0.8.0

State tracking a drag operation in progress.

accumulatedDeltas: Map<string, Point>

Accumulated deltas per node that haven’t yet resulted in a snap movement. Key is node ID, value is the accumulated delta that hasn’t been applied due to snapping.


modifiers: InputModifiers

Input modifiers (e.g., Ctrl, Shift) active during the drag.


movementStarted: boolean

Whether the pointer has moved beyond the move threshold, indicating an actual drag. false when the drag state is first created (on pointer down), true once movement exceeds the threshold.


nodeIds: string[]

IDs of all nodes participating in the drag (selected + children, filtered by draggable).