puppeteer/docs/api/puppeteer.device.viewport.md

21 lines
284 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Device.viewport
---
# Device.viewport property
**Signature:**
```typescript
interface Device {
viewport: {
width: number;
height: number;
deviceScaleFactor: number;
isMobile: boolean;
hasTouch: boolean;
isLandscape: boolean;
};
}
```