API

Type Alias CanvasViewerOptions

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

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