widgets Component – <AutoCanvas>

const AutoCanvas: LiveComponent<AutoCanvasProps>

Props

canvas?
HTMLCanvasElement

Adopt HTML canvas

selector?
string

Adopt from, or create HTML canvas in CSS selector

format?
GPUTextureFormat

Color format

depthStencil?
GPUTextureFormat

Depth stencil format

backgroundColor?
GPUColor

Canvas background

samples?
number

Multisampling / Anti-aliasing

autofocus?
boolean

Autofocus keyboard on canvas

events?
boolean

Enable DOM events

picking?
boolean

Enable GPU picking

iframe?
boolean

If running in an iframe, avoid preventing default on scroll. children?

| LiveElement<ArrowFunction>[]
| ReactElementInterop
| DeferredCall<ArrowFunction>

Source

packages / webgpu / src / components / auto-canvas.ts

menu
format_list_numbered