One distance measurement — two world-space anchors plus the overlay DOM/SVG that shows the diagonal length and its X / Y / Z component decomposition.
Instances are created and owned by DistanceMeasurementTool; external callers should go through the tool's DistanceMeasurementTool.createMeasurement factory and call DistanceMeasurementTool.destroyMeasurement (or DistanceMeasurementTool.clear) to tear them down.
The measurement composes 4 wires and 4 labels:
The X / Y / Z polyline traces the right-angled "stair-step" between the two anchors so the user can visualise each component separately. The four label divs sit at each wire's midpoint.
Toggles visible, wireVisible, axisVisible, labelsVisible compose like CSS visibility — hiding the whole measurement (visible = false) overrides the others.
visible = false
Readonly
Stable id for this measurement. Used as the registry key.
Color for the diagonal length wire / its label / the anchor dots.
True once destroy has run.
Diagonal world length between the two anchors.
World-space origin anchor.
World-space target anchor.
Tear down all DOM/SVG. Idempotent.
Move both endpoints in one shot. The tool will re-project on its next sync tick.
One distance measurement — two world-space anchors plus the overlay DOM/SVG that shows the diagonal length and its X / Y / Z component decomposition.
Instances are created and owned by DistanceMeasurementTool; external callers should go through the tool's DistanceMeasurementTool.createMeasurement factory and call DistanceMeasurementTool.destroyMeasurement (or DistanceMeasurementTool.clear) to tear them down.
Layout
The measurement composes 4 wires and 4 labels:
The X / Y / Z polyline traces the right-angled "stair-step" between the two anchors so the user can visualise each component separately. The four label divs sit at each wire's midpoint.
Toggles visible, wireVisible, axisVisible, labelsVisible compose like CSS visibility — hiding the whole measurement (
visible = false) overrides the others.