dino-ge
    Preparing search index...

    Class default

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

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    canvas: HTMLCanvasElement

    The underlying HTMLCanvasElement.

    onResize?: () => void

    Optional callback fired when the canvas resizes.

    Methods

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

      Parameters

      • Optionalparent: HTMLElement

        Optional parent element to match size with.

      Returns void