supervision-js
    Preparing search index...

    Interface DisplayBoxResolutionOptions

    interface DisplayBoxResolutionOptions {
        boxWidth: number;
        boxHeight: number;
        devicePixelRatio: number;
        maxDevicePixelRatio?: number;
    }
    Index
    boxWidth: number

    CSS-pixel width of the box the consumer paints frames into.

    boxHeight: number

    CSS-pixel height of that box.

    devicePixelRatio: number

    The consumer's own devicePixelRatio; the engine has none to read.

    maxDevicePixelRatio?: number

    Ceiling on that ratio. Default 2, matching viewportResolution.