Skip to content

@graphty/graphty-element / index / XRSessionStartedEvent

Interface: XRSessionStartedEvent ​

Defined in: graphty-element/src/events.ts:489

Emitted when a VR or AR session has started and the graph is drawing into it.

Properties ​

mode ​

mode: "vr" | "ar"

Defined in: graphty-element/src/events.ts:492

Which kind of session: "vr" or "ar", as setViewMode names them.


referenceSpace ​

referenceSpace: "unbounded" | "local" | "local-floor" | "bounded-floor" | "viewer"

Defined in: graphty-element/src/events.ts:499

The reference space the device granted: the requested one, or the first fallback it accepted (local-floor, then local), or "viewer" when it refused all of them.


requestedReferenceSpace ​

requestedReferenceSpace: "unbounded" | "local" | "local-floor" | "bounded-floor"

Defined in: graphty-element/src/events.ts:494

The reference space the configuration asked for (xr.vr or xr.ar referenceSpaceType).


type ​

type: "xr-session-started"

Defined in: graphty-element/src/events.ts:490