OptionalapplyApply ops without checkpointing or pushing a history entry. The optional
label parameter is accepted (and ignored by transient implementations)
so that this signature is compatible with MoveAdapter.applyOps.
Optionallabel: stringOptionalgetCurrent selection — read by behaviors to compute additive merges.
OptionalhitReturns ids of nodes intersecting the world-space rect.
OptionalsetMutator wired by setSelection op.
Narrow adapter for
useAreaSelect. Transient: no checkpoint, no history. The hook callsapplyOps(ops)instead ofapplyOps(ops, label).All fields are optional — area-select is opt-in.
useSelectToolonly wires the default marquee behavior whenhitTestArea,getSelection,setSelection, andapplyOpsare all present on the adapter; otherwise the gesture short-circuits (empty-space drags do nothing, sub-threshold empty clicks still clear selection via the tool'sonClickpath). Demos that don't need marquee selection can omit these methods entirely.