Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/dep/puppeteer/mod.ts>Viewport

A frugal web framework
Latest
interface Viewport
Re-export
import { type Viewport } from "https://deno.land/x/frugal@0.9.6/dep/puppeteer/mod.ts";

Sets the viewport of the page.

Properties

width: number

The page width in pixels.

height: number

The page height in pixels.

optional
deviceScaleFactor: number

Specify device scale factor. See devicePixelRatio for more info.

optional
isMobile: boolean

Whether the meta viewport tag is taken into account.

optional
isLandscape: boolean

Specifies if the viewport is in landscape mode.

optional
hasTouch: boolean

Specify if the viewport supports touch events.