From 0a2d310e4e050a1c8e0f6bded27d67d766ecb18c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 17 Nov 2022 17:27:07 +0100 Subject: [PATCH] docs: fix typo in Viewport fields (#9293) The `deviceScalarFactor` field of `Viewport` is actually named `deviceScaleFactor`. --- docs/api/puppeteer.page.viewport.md | 2 +- packages/puppeteer-core/src/api/Page.ts | 2 +- packages/puppeteer-core/src/common/Page.ts | 2 +- .../version-19.2.2/api/puppeteer.page.viewport.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/puppeteer.page.viewport.md b/docs/api/puppeteer.page.viewport.md index e17a0bbd91d..cb37bf36b07 100644 --- a/docs/api/puppeteer.page.viewport.md +++ b/docs/api/puppeteer.page.viewport.md @@ -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`. diff --git a/packages/puppeteer-core/src/api/Page.ts b/packages/puppeteer-core/src/api/Page.ts index 644fd243c2c..7f33695cbf3 100644 --- a/packages/puppeteer-core/src/api/Page.ts +++ b/packages/puppeteer-core/src/api/Page.ts @@ -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 diff --git a/packages/puppeteer-core/src/common/Page.ts b/packages/puppeteer-core/src/common/Page.ts index 34d72fb56c3..7c265d3b708 100644 --- a/packages/puppeteer-core/src/common/Page.ts +++ b/packages/puppeteer-core/src/common/Page.ts @@ -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 diff --git a/website/versioned_docs/version-19.2.2/api/puppeteer.page.viewport.md b/website/versioned_docs/version-19.2.2/api/puppeteer.page.viewport.md index e17a0bbd91d..cb37bf36b07 100644 --- a/website/versioned_docs/version-19.2.2/api/puppeteer.page.viewport.md +++ b/website/versioned_docs/version-19.2.2/api/puppeteer.page.viewport.md @@ -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`.