screen/layoutViewport

Methods

(inner) devicePixelRatio() → {number}

Returns the ratio of device pixels to CSS pixels.

Returns:
Type
number

(inner) height() → {number}

Returns the height of the layout viewport in CSS pixels. Depends on page- and system zoom.

Returns:
Type
number

(inner) offsetX() → {number}

Returns the horizontal offset of the layout viewport from the document.

Returns:
Type
number

(inner) offsetY() → {number}

Returns the vertical offset of the layout viewport from the document.

Returns:
Type
number

(inner) width() → {number}

Returns the width of the layout viewport in CSS pixels. Depends on page- and system zoom.

Returns:
Type
number