Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Page.Viewport
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { Viewport } = Protocol.Page;

Viewport for capturing screenshot.

Properties

x: number

X offset in device independent pixels (dip).

y: number

Y offset in device independent pixels (dip).

width: number

Rectangle width in device independent pixels (dip).

height: number

Rectangle height in device independent pixels (dip).

scale: number

Page scale factor.