Interface ICanvasStaticProps

Static properties for canvas configuration.

interface ICanvasStaticProps {
    __staticProp?: null;
    append?: boolean;
    container?: null | HTMLElement;
    resizeDebounce?: number;
    resizeOnInit?: boolean;
    resizeOnRuntime?: boolean;
    viewportTarget?: keyof IViewportCallbacksMap;
}

Hierarchy (View Summary)

Properties

__staticProp?: null
append?: boolean

If true, appends the canvas to the container. Ignored if container is null.

true
container?: null | HTMLElement

Parent element used to determine canvas size. If null, it uses the viewport.

null
resizeDebounce?: number

Debounce time (ms) for resize handling.

0
resizeOnInit?: boolean

Automatically adjusts canvas size on initialization.

true
resizeOnRuntime?: boolean

Enables dynamic resizing based on viewport or container changes.

false
viewportTarget?: keyof IViewportCallbacksMap

Defines which dimension(s) should trigger a resize.

'any'