true if activateLaserPreview has been called.
false if not called or if either deactivateLaserPreview or dispose
is called.
Creates and updates laser preview on canvas upon mouse move, by means of createOrUpdateLaserPreview.
Removes all measurements and deactivates laser preview. Also removes coordinate trackers for labels if present.
Gets the pointer positions on screen and finds where the geometry is hit. From that intersection on the geometry it creates a preview laser measurement. This method can be run for every frame or activated using activateLaserPreview.
This method adds a visual measurement to viewer from a intersection on the geometry.
String for identifying a unique measurement.
The origin position of the measurement, including surface normal to project ray for finding endpoint of distance to measure.
Value between 0 and 1 to describe in percent distance from origin along the ray to use as label coordinate anchor. Default 0.75 (75%).
OptionalonLabelUpdate: LabelUpdateHandlerIf this optional callback is provided it tracks the position calculated from labelDistanceFromOrigin and tells where the coordinate is in screen space.
Deactivates and removes laser preview on canvas upon mouse move.
Removes all measurements and deactivates laser preview. Also removes coordinate trackers for labels if present.
Use clear instead. The naming convention for this method is incorrect as it does not actually dispose the object but clears it.
Removes a measurement by its ID.
of measurement to be removed.
true if wall laser was removed. ´false´ if it did not exist.
Contains methods to add, remove and preview distance measurement.