three-cad-viewer 3.5.0 → 3.5.1
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 +11 -9
- package/dist/three-cad-viewer.esm.js.map +1 -0
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +11 -9
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +1 -1
- package/src/_version.js +1 -1
- package/src/cad_tools/tools.js +0 -1
- package/src/display.js +7 -0
- package/src/viewer.js +3 -7
|
@@ -80927,7 +80927,6 @@ class Tools {
|
|
|
80927
80927
|
* @param {Object} response
|
|
80928
80928
|
*/
|
|
80929
80929
|
handleResponse(response) {
|
|
80930
|
-
console.log(response);
|
|
80931
80930
|
const toolType = response.tool_type;
|
|
80932
80931
|
switch (toolType) {
|
|
80933
80932
|
case ToolTypes.DISTANCE:
|
|
@@ -80994,6 +80993,10 @@ class Display {
|
|
|
80994
80993
|
|
|
80995
80994
|
this.cadBody = this._getElement("tcv_cad_body");
|
|
80996
80995
|
|
|
80996
|
+
this.measureTools = options.measureTools;
|
|
80997
|
+
this.measurementDebug = options.measurementDebug;
|
|
80998
|
+
this.selectTool = options.selectTool;
|
|
80999
|
+
|
|
80997
81000
|
// this.cadTool = this._getElement("tcv_cad_toolbar");
|
|
80998
81001
|
this.cadTool = new Toolbar(
|
|
80999
81002
|
this._getElement("tcv_cad_toolbar"),
|
|
@@ -81421,6 +81424,9 @@ class Display {
|
|
|
81421
81424
|
this.showHelp(false);
|
|
81422
81425
|
this.showDistancePanel(false);
|
|
81423
81426
|
this.showPropertiesPanel(false);
|
|
81427
|
+
|
|
81428
|
+
this.showMeasureTools(this.measureTools);
|
|
81429
|
+
this.showSelectTool(this.selectTool);
|
|
81424
81430
|
}
|
|
81425
81431
|
|
|
81426
81432
|
/**
|
|
@@ -87789,7 +87795,7 @@ class Camera {
|
|
|
87789
87795
|
}
|
|
87790
87796
|
}
|
|
87791
87797
|
|
|
87792
|
-
const version = "3.5.
|
|
87798
|
+
const version = "3.5.1";
|
|
87793
87799
|
|
|
87794
87800
|
Mesh.prototype.dispose = function () {
|
|
87795
87801
|
if (this.geometry) {
|
|
@@ -87932,6 +87938,9 @@ class Viewer {
|
|
|
87932
87938
|
this.tools = true;
|
|
87933
87939
|
this.keymap = { shift: "shiftKey", ctrl: "ctrlKey", meta: "metaKey" };
|
|
87934
87940
|
this.newTreeBehavior = true;
|
|
87941
|
+
this.measureTools = true;
|
|
87942
|
+
this.selectTool = true;
|
|
87943
|
+
this.measurementDebug = true;
|
|
87935
87944
|
|
|
87936
87945
|
for (var option in options) {
|
|
87937
87946
|
if (this[option] == null) {
|
|
@@ -87963,8 +87972,6 @@ class Viewer {
|
|
|
87963
87972
|
this.defaultOpacity = 0.5;
|
|
87964
87973
|
this.edgeColor = 0x707070;
|
|
87965
87974
|
this.normalLen = 0;
|
|
87966
|
-
this.measureTools = false;
|
|
87967
|
-
// this.selectTool = false;
|
|
87968
87975
|
|
|
87969
87976
|
for (var option in options) {
|
|
87970
87977
|
if (this[option] === undefined) {
|
|
@@ -88011,8 +88018,6 @@ class Viewer {
|
|
|
88011
88018
|
this.position = null;
|
|
88012
88019
|
this.quaternion = null;
|
|
88013
88020
|
this.target = null;
|
|
88014
|
-
this.measureTools = true;
|
|
88015
|
-
this.selectTool = true;
|
|
88016
88021
|
|
|
88017
88022
|
this.zoom = 1;
|
|
88018
88023
|
|
|
@@ -89181,9 +89186,6 @@ class Viewer {
|
|
|
89181
89186
|
);
|
|
89182
89187
|
this.orientationMarker.create();
|
|
89183
89188
|
|
|
89184
|
-
this.display.showMeasureTools(viewerOptions.measureTools);
|
|
89185
|
-
this.display.showSelectTool(viewerOptions.selectTool);
|
|
89186
|
-
|
|
89187
89189
|
//
|
|
89188
89190
|
// update UI elements
|
|
89189
89191
|
//
|