WebARSessionOptions
interface WebARSessionOptions
Options for WebARSession
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
features | object | ✔️ | {} | Additional features(see XRSessionInit) of the WebXR session. |
vertical | boolean | ✔️ | false | Whether to place 3D model vertically on the wall. |
overlayRoot | HTMLElement | string | null | ✔️ | dom-overlay 's root element. You can set either HTMLElement or query selector for that element. | |
useLightEstimation | boolean | ✔️ | true | Whether to use light-estimation feature. |
rotate | boolean | ARSwirlControlOptions | ✔️ | true | Options for the rotate control inside the AR session. You can disable rotate control by giving false . |
translate | boolean | ARTranslateControlOptions | ✔️ | true | Options for the translate control inside the AR session. You can disable translate control by giving false . |
scale | boolean | ARScaleControlOptions | ✔️ | true | Options for the scale control inside the AR session. You can disable scale control by giving false . |
ring | FloorIndicatorOptions | ✔️ | {} | Options for the floor ring. |
deadzone | DeadzoneCheckerOptions | ✔️ | {} | Control's deadzone options. |
initialScale | "auto" | number | ✔️ | "auto" | Initial scale of the model. If set to "auto", it will modify big overflowing 3D model's scale to fit the screen when it's initially displayed. This won't increase the 3D model's scale more than 1. |