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
|
@@ -58955,6 +58955,7 @@ class Display {
|
|
|
58955
58955
|
!["distance", "properties", "angle"].includes(this.currentButton)
|
|
58956
58956
|
) {
|
|
58957
58957
|
this.viewer.toggleGroup(true);
|
|
58958
|
+
this.viewer.toggleTab(true);
|
|
58958
58959
|
}
|
|
58959
58960
|
this.viewer.setRaycastMode(flag);
|
|
58960
58961
|
this.shapeFilterDropDownMenu.setRaycaster(this.viewer.raycaster);
|
|
@@ -58973,6 +58974,7 @@ class Display {
|
|
|
58973
58974
|
} else {
|
|
58974
58975
|
if (this.currentButton == name || name == "explode") {
|
|
58975
58976
|
this.viewer.toggleGroup(false);
|
|
58977
|
+
this.viewer.toggleTab(false);
|
|
58976
58978
|
this.currentButton = null;
|
|
58977
58979
|
}
|
|
58978
58980
|
this.viewer.checkChanges({ activeTool: ToolTypes.NONE });
|
|
@@ -64958,7 +64960,7 @@ class Camera {
|
|
|
64958
64960
|
}
|
|
64959
64961
|
}
|
|
64960
64962
|
|
|
64961
|
-
const version = "3.2.
|
|
64963
|
+
const version = "3.2.3";
|
|
64962
64964
|
|
|
64963
64965
|
Mesh.prototype.dispose = function () {
|
|
64964
64966
|
if (this.geometry) {
|
|
@@ -66037,7 +66039,16 @@ class Viewer {
|
|
|
66037
66039
|
this.display.addCadTree(t);
|
|
66038
66040
|
this.treeview.render();
|
|
66039
66041
|
timer.split("rendered tree");
|
|
66042
|
+
timer.stop();
|
|
66043
|
+
}
|
|
66040
66044
|
|
|
66045
|
+
/**
|
|
66046
|
+
* Toggle tab and ensure collaps is treated correctly
|
|
66047
|
+
* Needs to be called in sync with toggleGroup!
|
|
66048
|
+
* @param boolean disable - true to disable clipping tab
|
|
66049
|
+
*/
|
|
66050
|
+
toggleTab(disable) {
|
|
66051
|
+
var timer = new Timer("toggleTab", this.timeit);
|
|
66041
66052
|
this.display.selectTabByName("tree");
|
|
66042
66053
|
timer.split("collapse tree");
|
|
66043
66054
|
switch (this.collapse) {
|
|
@@ -66058,7 +66069,7 @@ class Viewer {
|
|
|
66058
66069
|
this.checkChanges({ states: this.getStates() }, true);
|
|
66059
66070
|
timer.split("notify state changes");
|
|
66060
66071
|
timer.stop();
|
|
66061
|
-
this.display.toggleClippingTab(!
|
|
66072
|
+
this.display.toggleClippingTab(!disable);
|
|
66062
66073
|
}
|
|
66063
66074
|
|
|
66064
66075
|
/**
|
|
@@ -66298,6 +66309,8 @@ class Viewer {
|
|
|
66298
66309
|
|
|
66299
66310
|
this.clipping.setVisible(false);
|
|
66300
66311
|
|
|
66312
|
+
this.toggleTab(false);
|
|
66313
|
+
|
|
66301
66314
|
this.display.metalnessSlider.setValue(this.metalness * 100);
|
|
66302
66315
|
this.display.roughnessSlider.setValue(this.roughness * 100);
|
|
66303
66316
|
this.display.ambientlightSlider.setValue(this.ambientIntensity * 100);
|