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

ViewportOptions

Properties

PropertyTypeDescription
deviceScaleFactor?numberThe device scale factor, defaults to 1 Default 1
hasTouch?booleanWhether the viewport supports touch events, defaults to false Default false
heightnumberThe height of the viewport in pixels
landscape?booleanWhether the viewport is in landscape orientation, defaults to false Default false
mobile?booleanWhether to simulate a mobile device, defaults to false Default false
widthnumberThe width of the viewport in pixels