monitor-api - v1.8.0
    Preparing search index...

    Interface ScreenInfo

    Screen size in CSS pixels and the device pixel ratio.

    interface ScreenInfo {
        height: number | null;
        pixelRatio: number | null;
        width: number | null;
    }
    Index

    Properties

    height: number | null
    pixelRatio: number | null

    window.devicePixelRatio, which also changes with browser zoom.

    width: number | null