Reference·JavaScript · @bimworks/viewer3dJavaScript

ScreenshotOptions

Type alias in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Type alias

TypeScript#
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#

TypeScript#
annotations?: boolean

Draw 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#

TypeScript#
backgroundColor?: Color

Override the default background-color (which is #FFFFFF00, fully transparent)

height#

TypeScript#
height?: number

includeText#

TypeScript#
includeText?: boolean

Draw 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#

TypeScript#
viewpoint?: ViewPoint

Render from this viewpoint (measurement frame, metres, as Camera.getViewpoint gives) instead of the current camera

width#

TypeScript#
width?: number

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, its camera and the camera pose broadcast alone