VisualViewport

@Serializable
data class VisualViewport(val offsetX: Double, val offsetY: Double, val pageX: Double, val pageY: Double, val clientWidth: Double, val clientHeight: Double, val scale: Double, val zoom: Double? = null)

Visual viewport position, dimensions, and scale.

Constructors

Link copied to clipboard
constructor(offsetX: Double, offsetY: Double, pageX: Double, pageY: Double, clientWidth: Double, clientHeight: Double, scale: Double, zoom: Double? = null)

Properties

Link copied to clipboard

Height (CSS pixels), excludes scrollbar if present.

Link copied to clipboard

Width (CSS pixels), excludes scrollbar if present.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Horizontal offset relative to the document (CSS pixels).

Link copied to clipboard

Vertical offset relative to the document (CSS pixels).

Link copied to clipboard

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

Link copied to clipboard
val zoom: Double? = null

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