@ujjwalvivek/tinyts
    Preparing search index...

    Interface CanvasOptions

    Configuration options for creating a CanvasManager.

    interface CanvasOptions {
        canvas?: HTMLCanvasElement;
        parent?: HTMLElement;
        pixelated?: boolean;
        scaleMode?: ScaleMode;
        size: { height: number; width: number };
    }
    Index

    Properties

    canvas?: HTMLCanvasElement

    Optional existing canvas element to manage.

    parent?: HTMLElement

    Parent element to append the created canvas to.

    pixelated?: boolean

    Enable nearest-neighbor pixelated rendering.

    scaleMode?: ScaleMode

    Canvas scaling mode.

    size: { height: number; width: number }

    Logical resolution in pixels.