AbstractCreates an instance of BaseBimCanvas.
The HTML div element to attach the canvas to.
Optionaloptions: BaseBimCanvasOptionsOptional configuration options for the canvas.
AbstractgpuGets the GPU information.
Gets the options for the canvas.
Gets the renderer.
Gets the canvas recreate event dispatcher.
Gets the bounding rectangle of the wrapper element.
Gets the width of the wrapper element.
Gets the height of the wrapper element. WARN: Not accurate on zooming windows.
Gets the width of the canvas element.
Gets the height of the canvas element.
Gets the canvas element.
Sets a custom cursor for the canvas.
The URL of the custom cursor image.
Gets the markups div element.
Gets the legend div element.
Gets the overlay instance.
Gets the clipping regions instance.
Gets the markups instance.
Gets the legend instance.
Gets the pins instance.
Gets the viewer div element.
Gets the viewer div element.
Gets the document window.
Sets the document window.
Gets the viewer div element.
Gets the container div element (supplied in initialization time).
OptionalcloseCallback: () => voidHides the docked notification element and removes its classes.
Controls the visibility of the close button and optionally sets a callback for the button's click event.
A boolean indicating whether to show or hide the close button.
OptionalcloseButtonCallback: () => voidAn optional callback function to be executed when the close button is clicked.
OptionalbuttonTextI18n: stringAn optional text to be displayed on the close button.
Updates the close button with the given parameters.
OptionalbuttonTextI18n: stringChecks if the close button is visible.
True if the close button is visible, false otherwise.
Destroys the canvas and performs cleanup.
Sets the resize event callback.
The owner of the callback.
OptionalresizeEventCallback: (event: ResizeBimEvent) => voidThe callback function.
Sets the close event callback.
The owner of the callback.
OptionalcloseEventCallback: (event: BimEvent) => voidThe callback function.
Sets a custom cursor override for a specific class name.
The class name of the element to override the cursor for (cursor-pan, cursor-rotate, cursor-crosshair, cursor-move, cursor-ne-resize, cursor-nw-resize, cursor-se-resize, cursor-sw-resize, cursor-pointer).
Deletes a custom cursor override for a specific class name and resets the cursor to default.
The class name of the element to delete override the cursor for (cursor-pan, cursor-rotate, cursor-crosshair, cursor-move, cursor-ne-resize, cursor-nw-resize, cursor-se-resize, cursor-sw-resize, cursor-pointer).
Sets the cursor type for the canvas.
The cursor type to set.
Gets the current cursor type.
Recreates the canvas.
Resizes the canvas.
AbstractpushAbstractclearTakes a snapshot image and maintains aspect ratio.
OptionalrequestedWidth: numberThe requested width of the snapshot.
OptionalrequestedHeight: numberThe requested height of the snapshot.
A URI that contains the image to download or use.
OptionalrequestedWidth: numberOptionalrequestedHeight: numberCrops a snapshot of the canvas at a specific location with given dimensions.
If drawOverlays is true, it includes html overlays in the output.
The x-coordinate of the top-left corner of the crop area.
The y-coordinate of the top-left corner of the crop area.
The width of the crop area.
The height of the crop area.
Whether to include overlays in the snapshot.
OptionaltransparentBackgroundColor: RGBA promise that resolves to a URI containing the cropped image.
Takes a snapshot of the top view of the canvas.
OptionalbBox: BoundingBox3DThe bounding box to capture.
OptionaltransparentBackgroundColor: booleanSets the visibility of the splash screen.
Whether the splash screen should be visible.
OptionalgifImagePath: stringThe path to the GIF image for the splash screen.
Sets the visibility of the game legend.
Whether the game legend should be visible.
Abstract base class for BIM canvas, providing core functionalities and event handling.