puppeteer/new-docs/puppeteer.protocol.page.visualviewport.md
2020-07-13 14:01:35 +01:00

28 lines
1.6 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Page](./puppeteer.protocol.page.md) &gt; [VisualViewport](./puppeteer.protocol.page.visualviewport.md)
## Protocol.Page.VisualViewport interface
Visual viewport position, dimensions, and scale.
<b>Signature:</b>
```typescript
export interface VisualViewport
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [clientHeight](./puppeteer.protocol.page.visualviewport.clientheight.md) | number | Height (CSS pixels), excludes scrollbar if present. |
| [clientWidth](./puppeteer.protocol.page.visualviewport.clientwidth.md) | number | Width (CSS pixels), excludes scrollbar if present. |
| [offsetX](./puppeteer.protocol.page.visualviewport.offsetx.md) | number | Horizontal offset relative to the layout viewport (CSS pixels). |
| [offsetY](./puppeteer.protocol.page.visualviewport.offsety.md) | number | Vertical offset relative to the layout viewport (CSS pixels). |
| [pageX](./puppeteer.protocol.page.visualviewport.pagex.md) | number | Horizontal offset relative to the document (CSS pixels). |
| [pageY](./puppeteer.protocol.page.visualviewport.pagey.md) | number | Vertical offset relative to the document (CSS pixels). |
| [scale](./puppeteer.protocol.page.visualviewport.scale.md) | number | Scale relative to the ideal viewport (size at width=device-width). |
| [zoom](./puppeteer.protocol.page.visualviewport.zoom.md) | number | Page zoom factor (CSS to device independent pixels ratio). |