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

Properties

orientation: ("vertical" | "horizontal")

Orientation of a display feature in relation to screen (DisplayFeatureOrientation enum)

offset: integer

The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.

maskLength: integer

A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.