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.
- package/dist/three-cad-viewer.esm.js +15 -2
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +15 -2
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +1 -1
- package/src/_version.js +1 -1
- package/src/display.js +2 -0
- package/src/viewer.js +12 -1
package/package.json
CHANGED
package/src/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "3.2.
|
|
1
|
+
export const version = "3.2.3";
|
package/src/display.js
CHANGED
|
@@ -715,6 +715,7 @@ class Display {
|
|
|
715
715
|
!["distance", "properties", "angle"].includes(this.currentButton)
|
|
716
716
|
) {
|
|
717
717
|
this.viewer.toggleGroup(true);
|
|
718
|
+
this.viewer.toggleTab(true);
|
|
718
719
|
}
|
|
719
720
|
this.viewer.setRaycastMode(flag);
|
|
720
721
|
this.shapeFilterDropDownMenu.setRaycaster(this.viewer.raycaster);
|
|
@@ -733,6 +734,7 @@ class Display {
|
|
|
733
734
|
} else {
|
|
734
735
|
if (this.currentButton == name || name == "explode") {
|
|
735
736
|
this.viewer.toggleGroup(false);
|
|
737
|
+
this.viewer.toggleTab(false);
|
|
736
738
|
this.currentButton = null;
|
|
737
739
|
}
|
|
738
740
|
this.viewer.checkChanges({ activeTool: ToolTypes.NONE });
|
package/src/viewer.js
CHANGED
|
@@ -1103,7 +1103,16 @@ class Viewer {
|
|
|
1103
1103
|
this.display.addCadTree(t);
|
|
1104
1104
|
this.treeview.render();
|
|
1105
1105
|
timer.split("rendered tree");
|
|
1106
|
+
timer.stop();
|
|
1107
|
+
}
|
|
1106
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* Toggle tab and ensure collaps is treated correctly
|
|
1111
|
+
* Needs to be called in sync with toggleGroup!
|
|
1112
|
+
* @param boolean disable - true to disable clipping tab
|
|
1113
|
+
*/
|
|
1114
|
+
toggleTab(disable) {
|
|
1115
|
+
var timer = new Timer("toggleTab", this.timeit);
|
|
1107
1116
|
this.display.selectTabByName("tree");
|
|
1108
1117
|
timer.split("collapse tree");
|
|
1109
1118
|
switch (this.collapse) {
|
|
@@ -1126,7 +1135,7 @@ class Viewer {
|
|
|
1126
1135
|
this.checkChanges({ states: this.getStates() }, true);
|
|
1127
1136
|
timer.split("notify state changes");
|
|
1128
1137
|
timer.stop();
|
|
1129
|
-
this.display.toggleClippingTab(!
|
|
1138
|
+
this.display.toggleClippingTab(!disable);
|
|
1130
1139
|
}
|
|
1131
1140
|
|
|
1132
1141
|
/**
|
|
@@ -1366,6 +1375,8 @@ class Viewer {
|
|
|
1366
1375
|
|
|
1367
1376
|
this.clipping.setVisible(false);
|
|
1368
1377
|
|
|
1378
|
+
this.toggleTab(false);
|
|
1379
|
+
|
|
1369
1380
|
this.display.metalnessSlider.setValue(this.metalness * 100);
|
|
1370
1381
|
this.display.roughnessSlider.setValue(this.roughness * 100);
|
|
1371
1382
|
this.display.ambientlightSlider.setValue(this.ambientIntensity * 100);
|