Options
All
  • Public
  • Public/Protected
  • All
Menu

see IRenderSettings.viewport. size of the browser in pixels.

NOTE: this sets the browser viewport dimensions, does not impact screenshot size. For that, see IRenderSettings.clipRectangle

Hierarchy

  • IViewportOptions

Index

Properties

Optional deviceScaleFactor

deviceScaleFactor: number

new for Chrome backend. (not available on WebKit).

set screen dpi scaling. default is 1.

Optional hasTouch

hasTouch: boolean

new for Chrome backend. (not available on WebKit). if touch events are supported

default

false

height

height: number

by default, height is not used when taking screenshots (png/pdf). The image will be as tall as required to fit the content. To customize your screenshot dimensions, use the IRenderSettings.clipRectangle property.

Optional isLandscape

isLandscape: boolean

new for Chrome backend. (not available on WebKit). if landscape mode is used

default

false

Optional isMobile

isMobile: boolean

new for Chrome backend. (not available on WebKit). if set, the meta viewport tag is used

default

false

width

width: number