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

20 lines
344 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.
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
interface Viewport {
deviceScaleFactor?: number;
}
```
2022-10-24 14:31:12 +00:00
#### Default value:
1