ScreenshotOptions
Type alias in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Type alias
type ScreenshotOptions = {
annotations?: boolean;
backgroundColor?: Color;
height?: number;
includeText?: boolean;
viewpoint?: ViewPoint;
width?: number;
};Members#
| Member | Kind | Description |
|---|---|---|
| annotations | Property | Draw the template annotations shown (annotation layers, their compact states) over the view. Cards, text labels, icons and image annotations are not drawn; i… |
| backgroundColor | Property | Override the default background-color (which is #FFFFFF00, fully transparent) |
| height | Property | |
| includeText | Property | Draw the plan labels shown (2D mode, Viewer3dSettings.planLabels) over the view, under the annotations. Default false. Not drawn in an offscreen screenshot (… |
| viewpoint | Property | Render from this viewpoint (measurement frame, metres, as Camera.getViewpoint gives) instead of the current camera |
| width | Property | The image size in pixels, both or neither; default the canvas size. With a size or a viewpoint the viewer renders offscreen and leaves the view on screen, it… |
annotations#
annotations?: booleanDraw the template annotations shown (annotation layers, their compact states) over the view. Cards, text labels, icons and image annotations are not drawn; images by URL inside a template stay out. Default false. Not drawn in an offscreen screenshot (width/height or viewpoint)
backgroundColor#
Override the default background-color (which is #FFFFFF00, fully transparent)
height#
height?: numberincludeText#
includeText?: booleanDraw the plan labels shown (2D mode, Viewer3dSettings.planLabels) over the view, under the annotations. Default false. Not drawn in an offscreen screenshot (width/height or viewpoint)
viewpoint#
Render from this viewpoint (measurement frame, metres, as Camera.getViewpoint gives) instead of the current camera
width#
width?: numberThe image size in pixels, both or neither; default the canvas size. With a size or a viewpoint the viewer renders offscreen and leaves the view on screen, its camera and the camera pose broadcast alone