Skip to main content

Function: captureDrop()

function captureDrop<TId>(point: Vec3, candidates: readonly RegionCandidate<TId>[]):
| RegionCandidate<TId>
| undefined;

Defined in: packages/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

ParameterType
pointVec3
candidatesreadonly RegionCandidate<TId>[]

Returns

| RegionCandidate<TId> | undefined