mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.6 KiB
1.6 KiB
Home > puppeteer > Protocol > Page > VisualViewport
Protocol.Page.VisualViewport interface
Visual viewport position, dimensions, and scale.
Signature:
export interface VisualViewport
Properties
| Property | Type | Description |
|---|---|---|
| clientHeight | number | Height (CSS pixels), excludes scrollbar if present. |
| clientWidth | number | Width (CSS pixels), excludes scrollbar if present. |
| offsetX | number | Horizontal offset relative to the layout viewport (CSS pixels). |
| offsetY | number | Vertical offset relative to the layout viewport (CSS pixels). |
| pageX | number | Horizontal offset relative to the document (CSS pixels). |
| pageY | number | Vertical offset relative to the document (CSS pixels). |
| scale | number | Scale relative to the ideal viewport (size at width=device-width). |
| zoom | number | Page zoom factor (CSS to device independent pixels ratio). |