mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: fix typo in Viewport fields (#9293)
The `deviceScalarFactor` field of `Viewport` is actually named `deviceScaleFactor`.
This commit is contained in:
parent
b6ffa732ac
commit
0a2d310e4e
@ -20,7 +20,7 @@ class Page {
|
||||
|
||||
- `height`: page's height in pixels
|
||||
|
||||
- `deviceScalarFactor`: Specify device scale factor (can be though of as dpr). Defaults to `1`.
|
||||
- `deviceScaleFactor`: Specify device scale factor (can be though of as dpr). Defaults to `1`.
|
||||
|
||||
- `isMobile`: Whether the meta viewport tag is taken into account. Defaults to `false`.
|
||||
|
||||
|
@ -1948,7 +1948,7 @@ export class Page extends EventEmitter {
|
||||
*
|
||||
* - `height`: page's height in pixels
|
||||
*
|
||||
* - `deviceScalarFactor`: Specify device scale factor (can be though of as
|
||||
* - `deviceScaleFactor`: Specify device scale factor (can be though of as
|
||||
* dpr). Defaults to `1`.
|
||||
*
|
||||
* - `isMobile`: Whether the meta viewport tag is taken into account. Defaults
|
||||
|
@ -2258,7 +2258,7 @@ export class CDPPage extends Page {
|
||||
*
|
||||
* - `height`: page's height in pixels
|
||||
*
|
||||
* - `deviceScalarFactor`: Specify device scale factor (can be though of as
|
||||
* - `deviceScaleFactor`: Specify device scale factor (can be though of as
|
||||
* dpr). Defaults to `1`.
|
||||
*
|
||||
* - `isMobile`: Whether the meta viewport tag is taken into account. Defaults
|
||||
|
@ -20,7 +20,7 @@ class Page {
|
||||
|
||||
- `height`: page's height in pixels
|
||||
|
||||
- `deviceScalarFactor`: Specify device scale factor (can be though of as dpr). Defaults to `1`.
|
||||
- `deviceScaleFactor`: Specify device scale factor (can be though of as dpr). Defaults to `1`.
|
||||
|
||||
- `isMobile`: Whether the meta viewport tag is taken into account. Defaults to `false`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user