@xeokit/xeokit-sdk 2.4.0-alpha-95 → 2.4.0-alpha-97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xeokit-sdk.cjs.js +10 -0
- package/dist/xeokit-sdk.es.js +10 -0
- package/dist/xeokit-sdk.es5.js +5 -1
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -1
- package/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.js +10 -0
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -51532,6 +51532,16 @@ class DistanceMeasurementsPlugin extends Plugin {
|
|
|
51532
51532
|
for (const [key, measurement] of Object.entries(this.measurements)) {
|
|
51533
51533
|
measurement.axisVisible = axisVisible;
|
|
51534
51534
|
}
|
|
51535
|
+
this.defaultAxisVisible = axisVisible;
|
|
51536
|
+
}
|
|
51537
|
+
|
|
51538
|
+
/**
|
|
51539
|
+
* Gets if the axis wires of each {@link DistanceMeasurement} are visible.
|
|
51540
|
+
*
|
|
51541
|
+
* @returns {Boolean} Whether or not the axis wires are visible.
|
|
51542
|
+
*/
|
|
51543
|
+
getAxisVisible() {
|
|
51544
|
+
return this.defaultAxisVisible;
|
|
51535
51545
|
}
|
|
51536
51546
|
|
|
51537
51547
|
/**
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -51528,6 +51528,16 @@ class DistanceMeasurementsPlugin extends Plugin {
|
|
|
51528
51528
|
for (const [key, measurement] of Object.entries(this.measurements)) {
|
|
51529
51529
|
measurement.axisVisible = axisVisible;
|
|
51530
51530
|
}
|
|
51531
|
+
this.defaultAxisVisible = axisVisible;
|
|
51532
|
+
}
|
|
51533
|
+
|
|
51534
|
+
/**
|
|
51535
|
+
* Gets if the axis wires of each {@link DistanceMeasurement} are visible.
|
|
51536
|
+
*
|
|
51537
|
+
* @returns {Boolean} Whether or not the axis wires are visible.
|
|
51538
|
+
*/
|
|
51539
|
+
getAxisVisible() {
|
|
51540
|
+
return this.defaultAxisVisible;
|
|
51531
51541
|
}
|
|
51532
51542
|
|
|
51533
51543
|
/**
|
package/dist/xeokit-sdk.es5.js
CHANGED
|
@@ -14623,7 +14623,11 @@ this._originDot.setVisible(this._visible&&this._originVisible);this._targetDot.s
|
|
|
14623
14623
|
* Shows all or hides the axis wires of each {@link DistanceMeasurement}.
|
|
14624
14624
|
*
|
|
14625
14625
|
* @param {Boolean} labelsShown Whether or not to show the axis wires.
|
|
14626
|
-
*/},{key:"setAxisVisible",value:function setAxisVisible(axisVisible){for(var _i173=0,_Object$entries3=Object.entries(this.measurements);_i173<_Object$entries3.length;_i173++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i173],2),key=_Object$entries3$_i[0],measurement=_Object$entries3$_i[1];measurement.axisVisible=axisVisible;}}/**
|
|
14626
|
+
*/},{key:"setAxisVisible",value:function setAxisVisible(axisVisible){for(var _i173=0,_Object$entries3=Object.entries(this.measurements);_i173<_Object$entries3.length;_i173++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i173],2),key=_Object$entries3$_i[0],measurement=_Object$entries3$_i[1];measurement.axisVisible=axisVisible;}this.defaultAxisVisible=axisVisible;}/**
|
|
14627
|
+
* Gets if the axis wires of each {@link DistanceMeasurement} are visible.
|
|
14628
|
+
*
|
|
14629
|
+
* @returns {Boolean} Whether or not the axis wires are visible.
|
|
14630
|
+
*/},{key:"getAxisVisible",value:function getAxisVisible(){return this.defaultAxisVisible;}/**
|
|
14627
14631
|
* Destroys all {@link DistanceMeasurement}s.
|
|
14628
14632
|
*/},{key:"clear",value:function clear(){var ids=Object.keys(this._measurements);for(var i=0,len=ids.length;i<len;i++){this.destroyMeasurement(ids[i]);}}/**
|
|
14629
14633
|
* Destroys this DistanceMeasurementsPlugin.
|