puppeteer/docs/api/puppeteer.viewport.devicescalefactor.md

24 lines
437 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
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:
2022-07-05 13:41:43 +00:00
```typescript
interface Viewport {
deviceScaleFactor?: number;
}
```
#### Default value:
1
## Remarks
Setting this value to `0` will set the deviceScaleFactor to the system default.