Skip to content

@graphty/graphty-element / config / XRUIConfig

Interface: XRUIConfig ​

Defined in: graphty-element/src/config/XRConfig.ts:12

UI configuration for XR buttons

Properties ​

enabled ​

enabled: boolean

Defined in: graphty-element/src/config/XRConfig.ts:17

Enable or disable the XR UI buttons

Default ​

ts
true

position ​

position: "top-right" | "top-left" | "bottom-left" | "bottom-right"

Defined in: graphty-element/src/config/XRConfig.ts:23

Position of the XR buttons on screen

Default ​

ts
"bottom-left"

showAvailabilityWarning ​

showAvailabilityWarning: boolean

Defined in: graphty-element/src/config/XRConfig.ts:37

Show "VR / AR NOT AVAILABLE" warning when XR is not available When false, no message is displayed if AR/VR aren't available

Default ​

ts
false

unavailableMessageDuration ​

unavailableMessageDuration: number

Defined in: graphty-element/src/config/XRConfig.ts:30

Duration in milliseconds to show "not available" message Set to 0 to keep message visible permanently

Default ​

ts
5000