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

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

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