pixi.js
    Preparing search index...

    Interface ViewSystemOptionsAdvanced

    Options passed to the ViewSystem

    interface ViewSystemOptions {
        antialias?: boolean;
        autoDensity?: boolean;
        canvas?: ICanvas;
        depth?: boolean;
        height?: number;
        resolution?: number;
        view?: ICanvas;
        width?: number;
    }
    Index

    Properties

    antialias?: boolean

    Whether to enable anti-aliasing. This may affect performance.

    autoDensity?: boolean

    Resizes renderer view in CSS pixels to allow for resolutions other than 1.

    This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.

    canvas?: ICanvas

    The canvas to use as a view, optional.

    depth?: boolean

    Whether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer.

    height?: number

    The height of the screen.

    600
    
    resolution?: number

    The resolution / device pixel ratio of the renderer.

    view?: ICanvas

    Alias for canvas.

    since 8.0.0

    width?: number

    The width of the screen.

    800