puppeteer/website/versioned_docs/version-15.4.0/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;
};
}
```