OptionalanchorOptionalcameraThe camera used to position the anchors. If viewer is defined, then the projection view matrix of the viewer will be used.
OptionaldistanceThe distance between start and end in real world units. Value will be undefined if the start and end positions are undefined, or if the measurement is invalid.
OptionalendThe world position of the ending anchor.
OptionalendThe world position of the ending anchor, as a JSON string. The JSON string can be an array or object representation in the format of [x, y, z] or {"x": 0, "y": 0, "z": 0}.
OptionalfractionalThe number of fraction digits to display.
OptionalhitOptionalindicatorOptionalinteractingA property that reflects which anchor is currently being interacted with.
OptionalinvalidIndicates if the measurement is invalid. A measurement is invalid if either the start or end position are not on the surface of the model.
OptionallabelAn optional formatter that can be used to format the display of a distance. The formatting function is passed a calculated real-world distance and is expected to return a string.
OptionallineThe length of the caps at each end of the distance measurement.
OptionalmeasurementThe measurement model that will be updated when this measurement changes. You can pass this to a
OptionalmodeA mode that specifies how the measurement component should behave.
When unset, the component will not respond to interactions with the handles.
When edit, the measurement anchors are interactive and the user is able to reposition them.
When replace, anytime the user clicks on the canvas, a new measurement will be created and replace any existing measurement. After a measurement is created, the measurement will be editable.
OptionalonAn event that is dispatched anytime the user begins editing the measurement.
OptionalonAn event that is dispatched when the user has finished editing the measurement.
OptionalshowEnables the display of axis reference lines between the start and end point.
OptionalsnapThe distance, in pixels, between the mouse and nearest snappable edge. A value of 0 disables snapping.
OptionalstartThe world position of the starting anchor.
OptionalstartThe world position of the starting anchor, as a JSON string. The JSON string can be an array or object representation in the format of [x, y, z] or {"x": 0, "y": 0, "z": 0}.
OptionalunitsThe unit of measurement.
OptionalviewerThe viewer to connect to this measurement. The measurement will redraw any time the viewer redraws the scene.
The distance from an anchor to its label.