Expand description
Renderer-neutral selection helpers.
These helpers turn canvas-space marquee rectangles into ordered selection state without depending on a renderer, DOM measurement, or platform input events.
Structs§
- Node
Drag Start Selection Input - Input for resolving the selection side-effect of starting a node drag.
- Node
Pointer Down Decision - Combined decision for a node pointer-down that may update selection and enable node dragging.
- Node
Pointer Down Input - Input for resolving the first node pointer-down decision.
- Selection
BoxDecision - Resolved selection-box outcome ready to be applied by a store or inspected by tests.
- Selection
BoxInput - Renderer-neutral input for a canvas-space marquee selection gesture.
- Selection
BoxOptions - Options for applying a marquee selection box.
- Selection
BoxResult - Ordered selection result produced by a marquee selection box.
- Selection
Drag Activation Input - Screen-space input for deciding whether a marquee selection drag should activate.
- Selection
Pointer Claim Input - Normalized pointer state for deciding whether selection should claim a drag gesture first.
Enums§
- Node
Drag Start Selection Action - Selection mutation implied by starting a node drag.
- Selection
Modifier - Modifier state that controls whether a selection gesture adds to existing selection.
- Selection
Pointer Claim - Selection’s current ownership status over a normalized pointer drag.
Functions§
- compute_
selection_ box - Computes the ordered selection state for a canvas-space marquee selection box.
- resolve_
node_ drag_ start_ selection - Resolves XyFlow-compatible selection behavior for a node-drag start.
- resolve_
node_ pointer_ down - Resolves the first headless decision for a node pointer-down.
- resolve_
selection_ box - Resolves the ordered selection state for a canvas-space marquee selection gesture.
- resolve_
selection_ pointer_ claim - selection_
drag_ threshold_ met - Returns whether pointer movement should start a marquee selection drag.