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

Viewport

data class Viewport

Viewport for capturing screenshot.

Official doc

Constructors

<init>

Viewport for capturing screenshot.

Viewport(x: Double, y: Double, width: Double, height: Double, scale: Double)

Properties

height

Rectangle height in device independent pixels (dip).

val height: Double

scale

Page scale factor.

val scale: Double

width

Rectangle width in device independent pixels (dip).

val width: Double

x

X offset in device independent pixels (dip).

val x: Double

y

Y offset in device independent pixels (dip).

val y: Double