puppeteer/website/versioned_docs/version-18.2.1/api/puppeteer.device.viewport.md
2022-10-06 12:22:55 +02:00

21 lines
284 B
Markdown

---
sidebar_label: Device.viewport
---
# Device.viewport property
**Signature:**
```typescript
interface Device {
viewport: {
width: number;
height: number;
deviceScaleFactor: number;
isMobile: boolean;
hasTouch: boolean;
isLandscape: boolean;
};
}
```