Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Page.LayoutViewport
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.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.