For AI agents: a documentation index is available at /llms.txt
Skip to main content

ViewportResponse

Response returned after setting the viewport

type ViewportResponse {
width: Float
height: Float
deviceScaleFactor: Float
mobile: Boolean
hasTouch: Boolean
landscape: Boolean
time: Float
}

Fields​

ViewportResponse.width ● Float scalar​

The width of the viewport in pixels

ViewportResponse.height ● Float scalar​

The height of the viewport in pixels

ViewportResponse.deviceScaleFactor ● Float scalar​

The device scale factor

ViewportResponse.mobile ● Boolean scalar​

Whether the device is in mobile mode

ViewportResponse.hasTouch ● Boolean scalar​

Whether the viewport supports touch events

ViewportResponse.landscape ● Boolean scalar​

Whether the viewport is in landscape orientation

ViewportResponse.time ● Float scalar​

The time it took to set the viewport

Returned By​

viewport mutation

Was this page helpful?