OptionaldprExtra multiplier for width and height, on top of the device pixel ratio the viewer already renders at. If not set, no extra multiplier is applied.
OptionalfileThe name of the downloaded PNG file. If not set 'screenshot_{CURRENT_DATE_IN_UNIX_TIME}.png' is used.
OptionalsizeSet a custom resolution in CSS pixels. If not set the current render canvas size is used. The camera aspect follows the requested size.
Options for taking a screenshot.