Events

viewer3d.measure

invoked when a measurement changes example usage const onmeasurementchange = function (event) { const { measure, measures } = event; console log("viewer3d measure", "measure ", measure, "measures", measures); }; viewer3d addeventlistener("viewer3d measure", onmeasurementchange); jquery const onmeasurementchange = function (event, measure, measures) { console log("viewer measure", "measure ", measure, "measures", measures); }; $("#viewer 3d") on("viewer measure", onmeasurementchange); parameters onmeasurementchange function called when a measurement changes type (event object) => void event name type description measure object the changed measurement measures array\[object] the current measurements measure name type description uuid string id of the measure mode string mode of the measurement values map\[object] values of the measurement mode valid values are dimension laser point values map of measurement components point measurements have a single component point laser measurements have three components a , b , and c corresponding to the x , y and z axis dimension measurements have four components depth , distance , height , and width name type description color string color of this component points array\[object] list of measurement points point name type description distance number distance from this point to the previous point point vector3 docid\ kewrhktc8iq2hlt48srfq the measurement point function called when a measurement changes type (event object, measure object, measures array\[object]) => void event jquery event https //api jquery com/category/events/event object/ measure name type description uuid string id of the measure mode string mode of the measurement values map\[object] values of the measurement mode valid values are dimension laser point values map of measurement components point measurements have a single component point laser measurements have three components a , b , and c corresponding to the x , y and z axis dimension measurements have four components depth , distance , height , and width name type description color string color of this component points array\[object] list of measurement points point name type description distance number distance from this point to the previous point point vector3 docid\ kewrhktc8iq2hlt48srfq the measurement point