Gleam - v1.0.2
    Preparing search index...

    Interface CanvasHolder

    Entry stored in CanvasManager.canvasHolder for each registered canvas.

    interface CanvasHolder {
        canvas: HTMLCanvasElement;
        context: CanvasRenderingContext2D;
        id: string;
        resize: boolean;
        type: symbol;
    }

    Hierarchy (View Summary)

    Index

    Properties

    canvas: HTMLCanvasElement

    The <canvas> element.

    context: CanvasRenderingContext2D

    Its 2D rendering context.

    id: string

    Selector the canvas was registered under (also the map key).

    resize: boolean

    Whether this canvas participates in CanvasManager.resize (rescaled to fit the window while preserving its buffer aspect ratio).

    type: symbol

    Role tag — one of CANVAS_TYPES.