mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.4 KiB
1.4 KiB
sidebar_label |
---|
Viewport |
Viewport interface
Signature:
export interface Viewport
Properties
Property |
Modifiers |
Type |
Description |
Default |
---|---|---|---|---|
deviceScaleFactor |
|
number |
Specify device scale factor. See devicePixelRatio for more info. |
|
hasTouch |
|
boolean |
Specify if the viewport supports touch events. |
|
height |
number |
The page height in CSS pixels. | ||
isLandscape |
|
boolean |
Specifies if the viewport is in landscape mode. |
|
isMobile |
|
boolean |
Whether the |
|
width |
number |
The page width in CSS pixels. |