@xeokit/xeokit-sdk 2.4.0-alpha-96 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.4.0-alpha-96",
3
+ "version": "2.4.0-alpha-97",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -460,6 +460,26 @@ class DistanceMeasurementsPlugin extends Plugin {
460
460
  }
461
461
  }
462
462
 
463
+ /**
464
+ * Shows all or hides the axis wires of each {@link DistanceMeasurement}.
465
+ *
466
+ * @param {Boolean} labelsShown Whether or not to show the axis wires.
467
+ */
468
+ setAxisVisible(axisVisible) {
469
+ for (const [key, measurement] of Object.entries(this.measurements)) {
470
+ measurement.axisVisible = axisVisible;
471
+ }
472
+ this.defaultAxisVisible = axisVisible;
473
+ }
474
+
475
+ /**
476
+ * Gets if the axis wires of each {@link DistanceMeasurement} are visible.
477
+ *
478
+ * @returns {Boolean} Whether or not the axis wires are visible.
479
+ */
480
+ getAxisVisible() {
481
+ return this.defaultAxisVisible;
482
+ }
463
483
 
464
484
  /**
465
485
  * Destroys all {@link DistanceMeasurement}s.