Function: captureDrop()
function captureDrop<TId>(point: Vec3, candidates: readonly RegionCandidate<TId>[]):
| RegionCandidate<TId>
| undefined;
Defined in: webxr-uiextensions/src/core/region-layout.ts:89
Which region captures a window dropped at point? The nearest region whose
snapRadius contains the point and which still has capacity; undefined
when the drop lands in open space (the window stays world-locked where it
was released).
Type Parameters
| Type Parameter |
|---|
TId |
Parameters
| Parameter | Type |
|---|---|
point | Vec3 |
candidates | readonly RegionCandidate<TId>[] |
Returns
| RegionCandidate<TId>
| undefined