chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / VisualViewport

VisualViewport

data class VisualViewport

Visual viewport position, dimensions, and scale.

Official doc

Constructors

<init>

Visual viewport position, dimensions, and scale.

VisualViewport(offsetX: Double, offsetY: Double, pageX: Double, pageY: Double, clientWidth: Double, clientHeight: Double, scale: Double, zoom: Double? = null)

Properties

clientHeight

Height (CSS pixels), excludes scrollbar if present.

val clientHeight: Double

clientWidth

Width (CSS pixels), excludes scrollbar if present.

val clientWidth: Double

offsetX

Horizontal offset relative to the layout viewport (CSS pixels).

val offsetX: Double

offsetY

Vertical offset relative to the layout viewport (CSS pixels).

val offsetY: Double

pageX

Horizontal offset relative to the document (CSS pixels).

val pageX: Double

pageY

Vertical offset relative to the document (CSS pixels).

val pageY: Double

scale

Scale relative to the ideal viewport (size at width=device-width).

val scale: Double

zoom

Page zoom factor (CSS to device independent pixels ratio).

val zoom: Double?