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

25 lines
1.0 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; [Viewport](./puppeteer.protocol.page.viewport.md)
## Protocol.Page.Viewport interface
Viewport for capturing screenshot.
<b>Signature:</b>
```typescript
export interface Viewport
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [height](./puppeteer.protocol.page.viewport.height.md) | number | Rectangle height in device independent pixels (dip). |
| [scale](./puppeteer.protocol.page.viewport.scale.md) | number | Page scale factor. |
| [width](./puppeteer.protocol.page.viewport.width.md) | number | Rectangle width in device independent pixels (dip). |
| [x](./puppeteer.protocol.page.viewport.x.md) | number | X offset in device independent pixels (dip). |
| [y](./puppeteer.protocol.page.viewport.y.md) | number | Y offset in device independent pixels (dip). |