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§
- Node
Drag Activation Input - Screen-space input for deciding whether a node drag should activate.
- Node
Drag Item - One node movement inside a drag plan.
- Node
Drag Plan - Planned node drag transaction.
- Node
Drag Request - Canvas-space request for moving a primary node to a target position.
- Node
Nudge Plan - Planned keyboard nudge transaction.
- Node
Nudge Request - Request for nudging the current selected nodes.
- Pointer
Gesture Claim Input - Input for resolving which headless pointer gesture should claim a drag start.
Enums§
- Node
Nudge Direction - Keyboard nudge direction.
- Pointer
Gesture Claim - 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