@moxijs/core - v0.3.4
    Preparing search index...

    Interface ResizeHandlerOptions

    Options for configuring the resize handler

    interface ResizeHandlerOptions {
        canvasStyles?: Record<string, string>;
        height: number;
        pixelArtMode?: boolean;
        rootElement: HTMLElement;
        rootStyles?: Record<string, string>;
        width: number;
    }
    Index

    Properties

    canvasStyles?: Record<string, string>

    Optional CSS properties to apply to the canvas element

    height: number

    The desired height of the game viewport

    pixelArtMode?: boolean

    Whether to use pixel art optimized rendering

    rootElement: HTMLElement

    Root element containing the canvas

    rootStyles?: Record<string, string>

    Optional CSS properties to apply to the root element

    width: number

    The desired width of the game viewport