Skip to main content

Module drag

Module drag 

Source
Expand description

Renderer-neutral node dragging helpers.

These helpers turn canvas-space drag intent into normal graph transactions without depending on pointer capture, DOM state, windowing, or renderer APIs.

Structs§

NodeDragActivationInput
Screen-space input for deciding whether a node drag should activate.
NodeDragItem
One node movement inside a drag plan.
NodeDragPlan
Planned node drag transaction.
NodeDragRequest
Canvas-space request for moving a primary node to a target position.
NodeNudgePlan
Planned keyboard nudge transaction.
NodeNudgeRequest
Request for nudging the current selected nodes.
PointerGestureClaimInput
Input for resolving which headless pointer gesture should claim a drag start.

Enums§

NodeNudgeDirection
Keyboard nudge direction.
PointerGestureClaim
Which runtime gesture should own the current pointer drag.

Constants§

NODE_DRAG_TRANSACTION_LABEL
Default transaction label used for committed node drag updates.
NODE_NUDGE_TRANSACTION_LABEL
Default transaction label used for committed keyboard nudge updates.

Functions§

node_drag_threshold_met
Returns whether a pointer movement should start a node drag.
plan_node_drag
Plans a node drag update without mutating the graph.
plan_node_nudge
Plans a keyboard nudge update for the currently selected nodes without mutating the graph.
resolve_pointer_gesture_claim