dino-ge
    Preparing search index...

    Class Canvas

    Simple wrapper for creating and managing a canvas element. Supports full-screen or container-relative sizing.

    Index
    canvas: HTMLCanvasElement

    The underlying HTMLCanvasElement.

    onResize?: () => void

    Optional callback fired when the canvas resizes.

    • Resizes the canvas to match its container or window dimensions.

      Parameters

      • Optionalparent: HTMLElement

        Optional parent element to match size with.

      Returns void