mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
25 lines
1.0 KiB
Markdown
25 lines
1.0 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) > [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). |
|
||
|
|