mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
1.6 KiB
Markdown
28 lines
1.6 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Page](./puppeteer.protocol.page.md) > [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). |
|
||
|
|