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