API

Type Alias CanvasViewerOptions

CanvasViewerOptions: ViewerOptions & { onFaulted?: (error: Error) => void } & (
    | { engine?: undefined } & WebXRSpatialLayerType
    | { engine: "WebGL" } & WebXRSpatialLayerType
    | { engine: "WebGPU" } & WebXRSpatialLayerType
)

Options for creating a Viewer instance that is bound to an HTML canvas.