Abstract
Creates an instance of BaseBimCanvas.
The HTML div element to attach the canvas to.
Optional
options: BaseBimCanvasOptionsOptional configuration options for the canvas.
Gets the canvas element.
Gets the height of the canvas element.
Gets the width of the canvas element.
Gets the clipping regions instance.
Gets the container div element (supplied in initialization time).
Sets a custom cursor for the canvas.
The URL of the custom cursor image.
Abstract
gpuGets the markups div element.
Gets the canvas recreate event dispatcher.
Gets the options for the canvas.
Gets the overlay instance.
Gets the renderer.
Sets the renderer.
The renderer to set.
Gets the viewer div element.
Gets the viewer div element.
Gets the bounding rectangle of the wrapper element.
Gets the height of the wrapper element. WARN: Not accurate on zooming windows.
Gets the width of the wrapper element.
Abstract
clearCrops a snapshot of the canvas at a specific location with given dimensions.
If drawOverlays
is true, it includes html overlays in the output.
A promise that resolves to a URI containing the cropped image.
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.
Optional
transparentBackgroundColor: RGBGets the current cursor type.
Abstract
pushSets the close event callback.
The owner of the callback.
Optional
closeEventCallback: ((event: BimEvent) => void)The callback function.
Sets the cursor type for the canvas.
The cursor type to set.
Sets the external mouse move callback.
The owner of the callback.
The callback function.
Sets the external mouse up callback.
The owner of the callback.
The callback function.
Sets the resize event callback.
The owner of the callback.
Optional
resizeEventCallback: ((event: ResizeBimEvent) => void)The callback function.
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.
Optional
closeButtonCallback: (() => void)An optional callback function to be executed when the close button is clicked.
Optional
buttonTextI18n: stringAn optional text to be displayed on the close button.
Optional
closeCallback: ((result?: "yes" | "no") => void)Optional
result: "yes" | "no"Takes a snapshot image and maintains aspect ratio.
A URI that contains the image to download or use.
Optional
requestedWidth: numberThe requested width of the snapshot.
Optional
requestedHeight: numberThe requested height of the snapshot.
Takes a snapshot of the top view of the canvas.
Optional
bBox: BoundingBox3DThe bounding box to capture.
Optional
transparentBackgroundColor: boolean
Abstract base class for BIM canvas, providing core functionalities and event handling.