puppeteer/website/versioned_docs/version-15.3.1/api/puppeteer.viewport.devicescalefactor.md

16 lines
319 B
Markdown
Raw Normal View History

---
sidebar_label: Viewport.deviceScaleFactor
---
# Viewport.deviceScaleFactor property
Specify device scale factor. See [devicePixelRatio](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) for more info.
**Signature:**
```typescript
interface Viewport {
deviceScaleFactor?: number;
}
```