@xeokit/xeokit-sdk 2.3.3 → 2.3.4

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.
@@ -81143,6 +81143,9 @@ class DistanceMeasurement extends Component {
81143
81143
  this._targetVisible = false;
81144
81144
  this._wireVisible = false;
81145
81145
  this._axisVisible = false;
81146
+ this._xAxisVisible = false;
81147
+ this._yAxisVisible = false;
81148
+ this._zAxisVisible = false;
81146
81149
  this._axisEnabled = true;
81147
81150
  this._labelsVisible = false;
81148
81151
  this._clickable = true;
@@ -81445,20 +81448,30 @@ class DistanceMeasurement extends Component {
81445
81448
  * @type {Boolean}
81446
81449
  */
81447
81450
  set visible(value) {
81451
+
81448
81452
  value = value !== undefined ? Boolean(value) : this.plugin.defaultVisible;
81453
+
81449
81454
  this._visible = value;
81455
+
81450
81456
  this._originDot.setVisible(this._visible && this._originVisible);
81451
81457
  this._targetDot.setVisible(this._visible && this._targetVisible);
81452
81458
  this._lengthWire.setVisible(this._visible && this._wireVisible);
81453
81459
  this._lengthLabel.setVisible(this._visible && this._wireVisible);
81454
- var axisVisible = this._visible && this._axisVisible;
81455
- this._xAxisWire.setVisible(axisVisible);
81456
- this._yAxisWire.setVisible(axisVisible);
81457
- this._zAxisWire.setVisible(axisVisible);
81458
- this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
81459
- this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
81460
- this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
81460
+
81461
+ const xAxisVisible = this._visible && this._axisVisible && this._xAxisVisible;
81462
+ const yAxisVisible = this._visible && this._axisVisible && this._yAxisVisible;
81463
+ const zAxisVisible = this._visible && this._axisVisible && this._zAxisVisible;
81464
+
81465
+ this._xAxisWire.setVisible(xAxisVisible);
81466
+ this._yAxisWire.setVisible(yAxisVisible);
81467
+ this._zAxisWire.setVisible(zAxisVisible);
81468
+
81469
+ this._xAxisLabel.setVisible(xAxisVisible && !this._xAxisLabelCulled);
81470
+ this._yAxisLabel.setVisible(yAxisVisible && !this._yAxisLabelCulled);
81471
+ this._zAxisLabel.setVisible(zAxisVisible && !this._zAxisLabelCulled);
81472
+
81461
81473
  this._cpDirty = true;
81474
+
81462
81475
  this._needUpdate();
81463
81476
  }
81464
81477
 
@@ -81575,6 +81588,90 @@ class DistanceMeasurement extends Component {
81575
81588
  return this._axisVisible;
81576
81589
  }
81577
81590
 
81591
+ /**
81592
+ * Sets if the X-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81593
+ *
81594
+ * Wires are only shown if enabled and visible.
81595
+ *
81596
+ * @type {Boolean}
81597
+ */
81598
+ set xAxisVisible(value) {
81599
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81600
+ this._xAxisVisible = value;
81601
+ const axisVisible = this._visible && this._axisVisible && this._xAxisVisible && this._axisEnabled;
81602
+ this._xAxisWire.setVisible(axisVisible);
81603
+ this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
81604
+ this._cpDirty = true;
81605
+ this._needUpdate();
81606
+ }
81607
+
81608
+ /**
81609
+ * Gets if the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81610
+ *
81611
+ * Wires are only shown if enabled and visible.
81612
+ *
81613
+ * @type {Boolean}
81614
+ */
81615
+ get xAxisVisible() {
81616
+ return this._xAxisVisible;
81617
+ }
81618
+
81619
+ /**
81620
+ * Sets if the Y-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81621
+ *
81622
+ * Wires are only shown if enabled and visible.
81623
+ *
81624
+ * @type {Boolean}
81625
+ */
81626
+ set yAxisVisible(value) {
81627
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81628
+ this._yAxisVisible = value;
81629
+ const axisVisible = this._visible && this._axisVisible && this._yAxisVisible && this._axisEnabled;
81630
+ this._yAxisWire.setVisible(axisVisible);
81631
+ this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
81632
+ this._cpDirty = true;
81633
+ this._needUpdate();
81634
+ }
81635
+
81636
+ /**
81637
+ * Gets if the Y-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81638
+ *
81639
+ * Wires are only shown if enabled and visible.
81640
+ *
81641
+ * @type {Boolean}
81642
+ */
81643
+ get yAxisVisible() {
81644
+ return this._yAxisVisible;
81645
+ }
81646
+
81647
+ /**
81648
+ * Sets if the Z-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81649
+ *
81650
+ * Wires are only shown if enabled and visible.
81651
+ *
81652
+ * @type {Boolean}
81653
+ */
81654
+ set zAxisVisible(value) {
81655
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81656
+ this._zAxisVisible = value;
81657
+ const axisVisible = this._visible && this._axisVisible && this._zAxisVisible && this._axisEnabled;
81658
+ this._zAxisWire.setVisible(axisVisible);
81659
+ this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
81660
+ this._cpDirty = true;
81661
+ this._needUpdate();
81662
+ }
81663
+
81664
+ /**
81665
+ * Gets if the Z-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81666
+ *
81667
+ * Wires are only shown if enabled and visible.
81668
+ *
81669
+ * @type {Boolean}
81670
+ */
81671
+ get zAxisVisible() {
81672
+ return this._zAxisVisible;
81673
+ }
81674
+
81578
81675
  /**
81579
81676
  * Sets if the direct point-to-point wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81580
81677
  *
@@ -87603,6 +87700,9 @@ class DistanceMeasurementsControl extends Component {
87603
87700
  this._currentDistanceMeasurementByMouseInittouchState = {
87604
87701
  wireVisible: null,
87605
87702
  axisVisible: null,
87703
+ xAxisVisible: null,
87704
+ yaxisVisible: null,
87705
+ zAxisVisible: null,
87606
87706
  targetVisible: null,
87607
87707
  };
87608
87708
 
@@ -87690,6 +87790,9 @@ class DistanceMeasurementsControl extends Component {
87690
87790
  if (this._currentDistanceMeasurementByMouse) {
87691
87791
  this._currentDistanceMeasurementByMouse.wireVisible = this._currentDistanceMeasurementByMouseInittouchState.wireVisible;
87692
87792
  this._currentDistanceMeasurementByMouse.axisVisible = this._currentDistanceMeasurementByMouseInittouchState.axisVisible && this.plugin.defaultAxisVisible;
87793
+ this._currentDistanceMeasurementByMouse.xAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.xAxisVisible && this.plugin.defaultXAxisVisible;
87794
+ this._currentDistanceMeasurementByMouse.yAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.yAxisVisible && this.plugin.defaultYAxisVisible;
87795
+ this._currentDistanceMeasurementByMouse.zAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.zAxisVisible && this.plugin.defaultZAxisVisible;
87693
87796
  this._currentDistanceMeasurementByMouse.targetVisible = this._currentDistanceMeasurementByMouseInittouchState.targetVisible;
87694
87797
  this._currentDistanceMeasurementByMouse.target.entity = mouseHoverEntity;
87695
87798
  this._currentDistanceMeasurementByMouse.target.worldPos = mouseWorldPos;
@@ -87754,6 +87857,11 @@ class DistanceMeasurementsControl extends Component {
87754
87857
  approximate: true
87755
87858
  });
87756
87859
  this._currentDistanceMeasurementByMouseInittouchState.axisVisible = this._currentDistanceMeasurementByMouse.axisVisible && this.plugin.defaultAxisVisible;
87860
+
87861
+ this._currentDistanceMeasurementByMouseInittouchState.xAxisVisible = this._currentDistanceMeasurementByMouse.xAxisVisible && this.plugin.defaultXAxisVisible;
87862
+ this._currentDistanceMeasurementByMouseInittouchState.yAxisVisible = this._currentDistanceMeasurementByMouse.yAxisVisible && this.plugin.defaultYAxisVisible;
87863
+ this._currentDistanceMeasurementByMouseInittouchState.zAxisVisible = this._currentDistanceMeasurementByMouse.zAxisVisible && this.plugin.defaultZAxisVisible;
87864
+
87757
87865
  this._currentDistanceMeasurementByMouseInittouchState.wireVisible = this._currentDistanceMeasurementByMouse.wireVisible;
87758
87866
  this._currentDistanceMeasurementByMouseInittouchState.targetVisible = this._currentDistanceMeasurementByMouse.targetVisible;
87759
87867
  this._currentDistanceMeasurementByMouse.clickable = false;
@@ -88141,6 +88249,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88141
88249
  * @param {boolean} [cfg.defaultWireVisible=true] The default value of the DistanceMeasurements `wireVisible` property.
88142
88250
  * @param {boolean} [cfg.defaultLabelsVisible=true] The default value of the DistanceMeasurements `labelsVisible` property.
88143
88251
  * @param {boolean} [cfg.defaultAxisVisible=true] The default value of the DistanceMeasurements `axisVisible` property.
88252
+ * @param {boolean} [cfg.defaultXAxisVisible=true] The default value of the DistanceMeasurements `xAxisVisible` property.
88253
+ * @param {boolean} [cfg.defaultYAxisVisible=true] The default value of the DistanceMeasurements `yAxisVisible` property.
88254
+ * @param {boolean} [cfg.defaultZAxisVisible=true] The default value of the DistanceMeasurements `zAxisVisible` property.
88144
88255
  * @param {string} [cfg.defaultColor=#00BBFF] The default color of the length dots, wire and label.
88145
88256
  * @param {number} [cfg.zIndex] If set, the wires, dots and labels will have this zIndex (+1 for dots and +2 for labels).
88146
88257
  *
@@ -88163,6 +88274,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88163
88274
  this.defaultWireVisible = cfg.defaultWireVisible !== false;
88164
88275
  this.defaultLabelsVisible = cfg.defaultLabelsVisible !== false;
88165
88276
  this.defaultAxisVisible = cfg.defaultAxisVisible !== false;
88277
+ this.defaultXAxisVisible = cfg.defaultXAxisVisible !== false;
88278
+ this.defaultYAxisVisible = cfg.defaultYAxisVisible !== false;
88279
+ this.defaultZAxisVisible = cfg.defaultZAxisVisible !== false;
88166
88280
  this.defaultColor = cfg.defaultColor !== undefined ? cfg.defaultColor : "#00BBFF";
88167
88281
  this.zIndex = cfg.zIndex || 10000;
88168
88282
 
@@ -88259,6 +88373,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88259
88373
  * @param {Boolean} [params.targetVisible=true] Whether to initially show the {@link DistanceMeasurement} target.
88260
88374
  * @param {Boolean} [params.wireVisible=true] Whether to initially show the direct point-to-point wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88261
88375
  * @param {Boolean} [params.axisVisible=true] Whether to initially show the axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88376
+ * @param {Boolean} [params.xAxisVisible=true] Whether to initially show the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88377
+ * @param {Boolean} [params.yAxisVisible=true] Whether to initially show the Y-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88378
+ * @param {Boolean} [params.zAxisVisible=true] Whether to initially show the Z-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88262
88379
  * @param {Boolean} [params.labelsVisible=true] Whether to initially show the labels.
88263
88380
  * @param {string} [params.color] The color of the length dot, wire and label.
88264
88381
  * @returns {DistanceMeasurement} The new {@link DistanceMeasurement}.
@@ -88285,6 +88402,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88285
88402
  visible: params.visible,
88286
88403
  wireVisible: params.wireVisible,
88287
88404
  axisVisible: params.axisVisible !== false && this.defaultAxisVisible !== false,
88405
+ xAxisVisible: params.xAxisVisible !== false && this.defaultXAxisVisible !== false,
88406
+ yAxisVisible: params.yAxisVisible !== false && this.defaultYAxisVisible !== false,
88407
+ zAxisVisible: params.zAxisVisible !== false && this.defaultZAxisVisible !== false,
88288
88408
  labelsVisible: params.labelsVisible !== false && this.defaultLabelsVisible !== false,
88289
88409
  originVisible: params.originVisible,
88290
88410
  targetVisible: params.targetVisible,
@@ -88327,6 +88447,7 @@ class DistanceMeasurementsPlugin extends Plugin {
88327
88447
  }
88328
88448
  }
88329
88449
 
88450
+
88330
88451
  /**
88331
88452
  * Destroys all {@link DistanceMeasurement}s.
88332
88453
  */
@@ -164318,7 +164439,7 @@ class LASLoaderPlugin extends Plugin {
164318
164439
  * @param {Number|String} value Valid values are 8, 16 and "auto".
164319
164440
  */
164320
164441
  set colorDepth(value) {
164321
- this._colorDepth = !!value;
164442
+ this._colorDepth = value || "auto";
164322
164443
  }
164323
164444
 
164324
164445
  /**
@@ -164473,10 +164594,10 @@ class LASLoaderPlugin extends Plugin {
164473
164594
  reject("No positions found in file");
164474
164595
  return;
164475
164596
  }
164476
-
164597
+
164477
164598
  let positionsValue;
164478
164599
  let colorsCompressed;
164479
-
164600
+
164480
164601
  switch (pointsFormatId) {
164481
164602
  case 0:
164482
164603
  positionsValue = readPositions(attributes.POSITION);
@@ -81139,6 +81139,9 @@ class DistanceMeasurement extends Component {
81139
81139
  this._targetVisible = false;
81140
81140
  this._wireVisible = false;
81141
81141
  this._axisVisible = false;
81142
+ this._xAxisVisible = false;
81143
+ this._yAxisVisible = false;
81144
+ this._zAxisVisible = false;
81142
81145
  this._axisEnabled = true;
81143
81146
  this._labelsVisible = false;
81144
81147
  this._clickable = true;
@@ -81441,20 +81444,30 @@ class DistanceMeasurement extends Component {
81441
81444
  * @type {Boolean}
81442
81445
  */
81443
81446
  set visible(value) {
81447
+
81444
81448
  value = value !== undefined ? Boolean(value) : this.plugin.defaultVisible;
81449
+
81445
81450
  this._visible = value;
81451
+
81446
81452
  this._originDot.setVisible(this._visible && this._originVisible);
81447
81453
  this._targetDot.setVisible(this._visible && this._targetVisible);
81448
81454
  this._lengthWire.setVisible(this._visible && this._wireVisible);
81449
81455
  this._lengthLabel.setVisible(this._visible && this._wireVisible);
81450
- var axisVisible = this._visible && this._axisVisible;
81451
- this._xAxisWire.setVisible(axisVisible);
81452
- this._yAxisWire.setVisible(axisVisible);
81453
- this._zAxisWire.setVisible(axisVisible);
81454
- this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
81455
- this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
81456
- this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
81456
+
81457
+ const xAxisVisible = this._visible && this._axisVisible && this._xAxisVisible;
81458
+ const yAxisVisible = this._visible && this._axisVisible && this._yAxisVisible;
81459
+ const zAxisVisible = this._visible && this._axisVisible && this._zAxisVisible;
81460
+
81461
+ this._xAxisWire.setVisible(xAxisVisible);
81462
+ this._yAxisWire.setVisible(yAxisVisible);
81463
+ this._zAxisWire.setVisible(zAxisVisible);
81464
+
81465
+ this._xAxisLabel.setVisible(xAxisVisible && !this._xAxisLabelCulled);
81466
+ this._yAxisLabel.setVisible(yAxisVisible && !this._yAxisLabelCulled);
81467
+ this._zAxisLabel.setVisible(zAxisVisible && !this._zAxisLabelCulled);
81468
+
81457
81469
  this._cpDirty = true;
81470
+
81458
81471
  this._needUpdate();
81459
81472
  }
81460
81473
 
@@ -81571,6 +81584,90 @@ class DistanceMeasurement extends Component {
81571
81584
  return this._axisVisible;
81572
81585
  }
81573
81586
 
81587
+ /**
81588
+ * Sets if the X-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81589
+ *
81590
+ * Wires are only shown if enabled and visible.
81591
+ *
81592
+ * @type {Boolean}
81593
+ */
81594
+ set xAxisVisible(value) {
81595
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81596
+ this._xAxisVisible = value;
81597
+ const axisVisible = this._visible && this._axisVisible && this._xAxisVisible && this._axisEnabled;
81598
+ this._xAxisWire.setVisible(axisVisible);
81599
+ this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
81600
+ this._cpDirty = true;
81601
+ this._needUpdate();
81602
+ }
81603
+
81604
+ /**
81605
+ * Gets if the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81606
+ *
81607
+ * Wires are only shown if enabled and visible.
81608
+ *
81609
+ * @type {Boolean}
81610
+ */
81611
+ get xAxisVisible() {
81612
+ return this._xAxisVisible;
81613
+ }
81614
+
81615
+ /**
81616
+ * Sets if the Y-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81617
+ *
81618
+ * Wires are only shown if enabled and visible.
81619
+ *
81620
+ * @type {Boolean}
81621
+ */
81622
+ set yAxisVisible(value) {
81623
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81624
+ this._yAxisVisible = value;
81625
+ const axisVisible = this._visible && this._axisVisible && this._yAxisVisible && this._axisEnabled;
81626
+ this._yAxisWire.setVisible(axisVisible);
81627
+ this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
81628
+ this._cpDirty = true;
81629
+ this._needUpdate();
81630
+ }
81631
+
81632
+ /**
81633
+ * Gets if the Y-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81634
+ *
81635
+ * Wires are only shown if enabled and visible.
81636
+ *
81637
+ * @type {Boolean}
81638
+ */
81639
+ get yAxisVisible() {
81640
+ return this._yAxisVisible;
81641
+ }
81642
+
81643
+ /**
81644
+ * Sets if the Z-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81645
+ *
81646
+ * Wires are only shown if enabled and visible.
81647
+ *
81648
+ * @type {Boolean}
81649
+ */
81650
+ set zAxisVisible(value) {
81651
+ value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
81652
+ this._zAxisVisible = value;
81653
+ const axisVisible = this._visible && this._axisVisible && this._zAxisVisible && this._axisEnabled;
81654
+ this._zAxisWire.setVisible(axisVisible);
81655
+ this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
81656
+ this._cpDirty = true;
81657
+ this._needUpdate();
81658
+ }
81659
+
81660
+ /**
81661
+ * Gets if the Z-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
81662
+ *
81663
+ * Wires are only shown if enabled and visible.
81664
+ *
81665
+ * @type {Boolean}
81666
+ */
81667
+ get zAxisVisible() {
81668
+ return this._zAxisVisible;
81669
+ }
81670
+
81574
81671
  /**
81575
81672
  * Sets if the direct point-to-point wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
81576
81673
  *
@@ -87599,6 +87696,9 @@ class DistanceMeasurementsControl extends Component {
87599
87696
  this._currentDistanceMeasurementByMouseInittouchState = {
87600
87697
  wireVisible: null,
87601
87698
  axisVisible: null,
87699
+ xAxisVisible: null,
87700
+ yaxisVisible: null,
87701
+ zAxisVisible: null,
87602
87702
  targetVisible: null,
87603
87703
  };
87604
87704
 
@@ -87686,6 +87786,9 @@ class DistanceMeasurementsControl extends Component {
87686
87786
  if (this._currentDistanceMeasurementByMouse) {
87687
87787
  this._currentDistanceMeasurementByMouse.wireVisible = this._currentDistanceMeasurementByMouseInittouchState.wireVisible;
87688
87788
  this._currentDistanceMeasurementByMouse.axisVisible = this._currentDistanceMeasurementByMouseInittouchState.axisVisible && this.plugin.defaultAxisVisible;
87789
+ this._currentDistanceMeasurementByMouse.xAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.xAxisVisible && this.plugin.defaultXAxisVisible;
87790
+ this._currentDistanceMeasurementByMouse.yAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.yAxisVisible && this.plugin.defaultYAxisVisible;
87791
+ this._currentDistanceMeasurementByMouse.zAxisVisible = this._currentDistanceMeasurementByMouseInittouchState.zAxisVisible && this.plugin.defaultZAxisVisible;
87689
87792
  this._currentDistanceMeasurementByMouse.targetVisible = this._currentDistanceMeasurementByMouseInittouchState.targetVisible;
87690
87793
  this._currentDistanceMeasurementByMouse.target.entity = mouseHoverEntity;
87691
87794
  this._currentDistanceMeasurementByMouse.target.worldPos = mouseWorldPos;
@@ -87750,6 +87853,11 @@ class DistanceMeasurementsControl extends Component {
87750
87853
  approximate: true
87751
87854
  });
87752
87855
  this._currentDistanceMeasurementByMouseInittouchState.axisVisible = this._currentDistanceMeasurementByMouse.axisVisible && this.plugin.defaultAxisVisible;
87856
+
87857
+ this._currentDistanceMeasurementByMouseInittouchState.xAxisVisible = this._currentDistanceMeasurementByMouse.xAxisVisible && this.plugin.defaultXAxisVisible;
87858
+ this._currentDistanceMeasurementByMouseInittouchState.yAxisVisible = this._currentDistanceMeasurementByMouse.yAxisVisible && this.plugin.defaultYAxisVisible;
87859
+ this._currentDistanceMeasurementByMouseInittouchState.zAxisVisible = this._currentDistanceMeasurementByMouse.zAxisVisible && this.plugin.defaultZAxisVisible;
87860
+
87753
87861
  this._currentDistanceMeasurementByMouseInittouchState.wireVisible = this._currentDistanceMeasurementByMouse.wireVisible;
87754
87862
  this._currentDistanceMeasurementByMouseInittouchState.targetVisible = this._currentDistanceMeasurementByMouse.targetVisible;
87755
87863
  this._currentDistanceMeasurementByMouse.clickable = false;
@@ -88137,6 +88245,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88137
88245
  * @param {boolean} [cfg.defaultWireVisible=true] The default value of the DistanceMeasurements `wireVisible` property.
88138
88246
  * @param {boolean} [cfg.defaultLabelsVisible=true] The default value of the DistanceMeasurements `labelsVisible` property.
88139
88247
  * @param {boolean} [cfg.defaultAxisVisible=true] The default value of the DistanceMeasurements `axisVisible` property.
88248
+ * @param {boolean} [cfg.defaultXAxisVisible=true] The default value of the DistanceMeasurements `xAxisVisible` property.
88249
+ * @param {boolean} [cfg.defaultYAxisVisible=true] The default value of the DistanceMeasurements `yAxisVisible` property.
88250
+ * @param {boolean} [cfg.defaultZAxisVisible=true] The default value of the DistanceMeasurements `zAxisVisible` property.
88140
88251
  * @param {string} [cfg.defaultColor=#00BBFF] The default color of the length dots, wire and label.
88141
88252
  * @param {number} [cfg.zIndex] If set, the wires, dots and labels will have this zIndex (+1 for dots and +2 for labels).
88142
88253
  *
@@ -88159,6 +88270,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88159
88270
  this.defaultWireVisible = cfg.defaultWireVisible !== false;
88160
88271
  this.defaultLabelsVisible = cfg.defaultLabelsVisible !== false;
88161
88272
  this.defaultAxisVisible = cfg.defaultAxisVisible !== false;
88273
+ this.defaultXAxisVisible = cfg.defaultXAxisVisible !== false;
88274
+ this.defaultYAxisVisible = cfg.defaultYAxisVisible !== false;
88275
+ this.defaultZAxisVisible = cfg.defaultZAxisVisible !== false;
88162
88276
  this.defaultColor = cfg.defaultColor !== undefined ? cfg.defaultColor : "#00BBFF";
88163
88277
  this.zIndex = cfg.zIndex || 10000;
88164
88278
 
@@ -88255,6 +88369,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88255
88369
  * @param {Boolean} [params.targetVisible=true] Whether to initially show the {@link DistanceMeasurement} target.
88256
88370
  * @param {Boolean} [params.wireVisible=true] Whether to initially show the direct point-to-point wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88257
88371
  * @param {Boolean} [params.axisVisible=true] Whether to initially show the axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88372
+ * @param {Boolean} [params.xAxisVisible=true] Whether to initially show the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88373
+ * @param {Boolean} [params.yAxisVisible=true] Whether to initially show the Y-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88374
+ * @param {Boolean} [params.zAxisVisible=true] Whether to initially show the Z-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target}.
88258
88375
  * @param {Boolean} [params.labelsVisible=true] Whether to initially show the labels.
88259
88376
  * @param {string} [params.color] The color of the length dot, wire and label.
88260
88377
  * @returns {DistanceMeasurement} The new {@link DistanceMeasurement}.
@@ -88281,6 +88398,9 @@ class DistanceMeasurementsPlugin extends Plugin {
88281
88398
  visible: params.visible,
88282
88399
  wireVisible: params.wireVisible,
88283
88400
  axisVisible: params.axisVisible !== false && this.defaultAxisVisible !== false,
88401
+ xAxisVisible: params.xAxisVisible !== false && this.defaultXAxisVisible !== false,
88402
+ yAxisVisible: params.yAxisVisible !== false && this.defaultYAxisVisible !== false,
88403
+ zAxisVisible: params.zAxisVisible !== false && this.defaultZAxisVisible !== false,
88284
88404
  labelsVisible: params.labelsVisible !== false && this.defaultLabelsVisible !== false,
88285
88405
  originVisible: params.originVisible,
88286
88406
  targetVisible: params.targetVisible,
@@ -88323,6 +88443,7 @@ class DistanceMeasurementsPlugin extends Plugin {
88323
88443
  }
88324
88444
  }
88325
88445
 
88446
+
88326
88447
  /**
88327
88448
  * Destroys all {@link DistanceMeasurement}s.
88328
88449
  */
@@ -164314,7 +164435,7 @@ class LASLoaderPlugin extends Plugin {
164314
164435
  * @param {Number|String} value Valid values are 8, 16 and "auto".
164315
164436
  */
164316
164437
  set colorDepth(value) {
164317
- this._colorDepth = !!value;
164438
+ this._colorDepth = value || "auto";
164318
164439
  }
164319
164440
 
164320
164441
  /**
@@ -164469,10 +164590,10 @@ class LASLoaderPlugin extends Plugin {
164469
164590
  reject("No positions found in file");
164470
164591
  return;
164471
164592
  }
164472
-
164593
+
164473
164594
  let positionsValue;
164474
164595
  let colorsCompressed;
164475
-
164596
+
164476
164597
  switch (pointsFormatId) {
164477
164598
  case 0:
164478
164599
  positionsValue = readPositions(attributes.POSITION);