mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
3.1 KiB
3.1 KiB
Home > puppeteer > Protocol > Emulation > SetDeviceMetricsOverrideRequest
Protocol.Emulation.SetDeviceMetricsOverrideRequest interface
Signature:
export interface SetDeviceMetricsOverrideRequest
Properties
Property | Type | Description |
---|---|---|
deviceScaleFactor | number | Overriding device scale factor value. 0 disables the override. |
dontSetVisibleSize | boolean | Do not set visible view size, rely upon explicit setVisibleSize call. |
height | integer | Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. |
mobile | boolean | Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. |
positionX | integer | Overriding view X position on screen in pixels (minimum 0, maximum 10000000). |
positionY | integer | Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). |
scale | number | Scale to apply to resulting view image. |
screenHeight | integer | Overriding screen height value in pixels (minimum 0, maximum 10000000). |
screenOrientation | ScreenOrientation | Screen orientation override. |
screenWidth | integer | Overriding screen width value in pixels (minimum 0, maximum 10000000). |
viewport | Page.Viewport | If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions. |
width | integer | Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. |