size
size: Readonly<WritableXAndY> | undefined
Optional dimensions to which to resize the captured image. If the aspect ratio of these dimensions does not match that of the captured image, horizontal or vertical bars will be added to the resized image using the viewport's background color. If unspecified, the image will not be resized.
Defined in
- core/frontend/src/Viewport.ts Line 220
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.