three-cad-viewer 3.2.2 → 3.2.3

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.
@@ -58961,6 +58961,7 @@ void main() {
58961
58961
  !["distance", "properties", "angle"].includes(this.currentButton)
58962
58962
  ) {
58963
58963
  this.viewer.toggleGroup(true);
58964
+ this.viewer.toggleTab(true);
58964
58965
  }
58965
58966
  this.viewer.setRaycastMode(flag);
58966
58967
  this.shapeFilterDropDownMenu.setRaycaster(this.viewer.raycaster);
@@ -58979,6 +58980,7 @@ void main() {
58979
58980
  } else {
58980
58981
  if (this.currentButton == name || name == "explode") {
58981
58982
  this.viewer.toggleGroup(false);
58983
+ this.viewer.toggleTab(false);
58982
58984
  this.currentButton = null;
58983
58985
  }
58984
58986
  this.viewer.checkChanges({ activeTool: ToolTypes.NONE });
@@ -64964,7 +64966,7 @@ void main() {
64964
64966
  }
64965
64967
  }
64966
64968
 
64967
- const version = "3.2.2";
64969
+ const version = "3.2.3";
64968
64970
 
64969
64971
  Mesh.prototype.dispose = function () {
64970
64972
  if (this.geometry) {
@@ -66043,7 +66045,16 @@ void main() {
66043
66045
  this.display.addCadTree(t);
66044
66046
  this.treeview.render();
66045
66047
  timer.split("rendered tree");
66048
+ timer.stop();
66049
+ }
66046
66050
 
66051
+ /**
66052
+ * Toggle tab and ensure collaps is treated correctly
66053
+ * Needs to be called in sync with toggleGroup!
66054
+ * @param boolean disable - true to disable clipping tab
66055
+ */
66056
+ toggleTab(disable) {
66057
+ var timer = new Timer("toggleTab", this.timeit);
66047
66058
  this.display.selectTabByName("tree");
66048
66059
  timer.split("collapse tree");
66049
66060
  switch (this.collapse) {
@@ -66064,7 +66075,7 @@ void main() {
66064
66075
  this.checkChanges({ states: this.getStates() }, true);
66065
66076
  timer.split("notify state changes");
66066
66077
  timer.stop();
66067
- this.display.toggleClippingTab(!expanded);
66078
+ this.display.toggleClippingTab(!disable);
66068
66079
  }
66069
66080
 
66070
66081
  /**
@@ -66304,6 +66315,8 @@ void main() {
66304
66315
 
66305
66316
  this.clipping.setVisible(false);
66306
66317
 
66318
+ this.toggleTab(false);
66319
+
66307
66320
  this.display.metalnessSlider.setValue(this.metalness * 100);
66308
66321
  this.display.roughnessSlider.setValue(this.roughness * 100);
66309
66322
  this.display.ambientlightSlider.setValue(this.ambientIntensity * 100);