mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.0 KiB
1.0 KiB
Home > puppeteer > Protocol > Page > Viewport
Protocol.Page.Viewport interface
Viewport for capturing screenshot.
Signature:
export interface Viewport
Properties
Property | Type | Description |
---|---|---|
height | number | Rectangle height in device independent pixels (dip). |
scale | number | Page scale factor. |
width | number | Rectangle width in device independent pixels (dip). |
x | number | X offset in device independent pixels (dip). |
y | number | Y offset in device independent pixels (dip). |