PhantomJsCloud Automation API
    Preparing search index...

    Interface Viewport

    interface Viewport {
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        height: number;
        isLandscape?: boolean;
        isMobile?: boolean;
        width: number;
    }
    Index
    deviceScaleFactor?: number

    Specify device scale factor (can be thought of as dpr).

    1
    
    hasTouch?: boolean

    Specifies if viewport supports touch events.

    false
    
    height: number

    The page height in pixels.

    isLandscape?: boolean

    Specifies if viewport is in landscape mode.

    false
    
    isMobile?: boolean

    Whether the meta viewport tag is taken into account.

    false
    
    width: number

    The page width in pixels.