puppeteer/website/versioned_docs/version-17.1.3/api/puppeteer.device.viewport.md

21 lines
284 B
Markdown
Raw Normal View History

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