Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.Page.Viewport

Headless Chrome Deno API
Latest
interface Protocol.Page.Viewport
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.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.