mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
042d61030c
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
1.6 KiB
1.6 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. Remarks: Setting this value to |
|
hasTouch |
|
boolean |
Specify if the viewport supports touch events. |
|
height |
number |
The page height in CSS pixels. Remarks: Setting this value to | ||
isLandscape |
|
boolean |
Specifies if the viewport is in landscape mode. |
|
isMobile |
|
boolean |
Whether the |
|
width |
number |
The page width in CSS pixels. Remarks: Setting this value to |