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

Layout viewport position and dimensions.

Properties

pageX: integer

Horizontal offset relative to the document (CSS pixels).

pageY: integer

Vertical offset relative to the document (CSS pixels).

clientWidth: integer

Width (CSS pixels), excludes scrollbar if present.

clientHeight: integer

Height (CSS pixels), excludes scrollbar if present.