templateAnnotationImages
Function in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Function
TypeScript#
function templateAnnotationImagesMembers#
| Member | Kind | Description |
|---|---|---|
| templateAnnotationImages | Method | The template annotations shown in a viewer's overlay element (Viewer3D's htmlOverlay.div, Viewer2D's annotation overlay) as images of width × height pixels t… |
templateAnnotationImages#
TypeScript#
templateAnnotationImages(container: HTMLElement, width: number, height: number, cssWidth?: number, cssHeight?: number): Promise<(HTMLImageElement)[]>The template annotations shown in a viewer's overlay element (Viewer3D's htmlOverlay.div, Viewer2D's annotation overlay) as images of width × height pixels to draw over a picture of the view, back to front: one per template. Viewer3d.screenshot({annotations: true}) and Viewer2d.screenshot() use it. Compact states only; images by URL inside a template are left out
Parameters#
| Name | Type | Description |
|---|---|---|
container |
HTMLElement |
|
width |
number |
|
height |
number |
|
cssWidth |
number |
|
cssHeight |
number |