Skip to content

@graphty/graphty-element / index / XrUnavailableReason

Type Alias: XrUnavailableReason ​

XrUnavailableReason = "no-webxr" | "insecure-context" | "unsupported" | "webgpu-renderer" | "disabled" | "probing"

Defined in: graphty-element/src/acceleration/types.ts:318

Why an immersive mode cannot be entered.

  • "no-webxr": the browser has no WebXR.
  • "insecure-context": WebXR needs a secure (https) page.
  • "unsupported": the browser has WebXR but no device for this mode, or did not answer in time.
  • "webgpu-renderer": the graph draws through WebGPU, which WebXR cannot present.
  • "disabled": the element's XR configuration switched this mode off.
  • "probing": the element has not finished asking the browser yet.