@inweb/viewer-visualize 25.11.1 → 25.11.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/viewer-visualize.js +8 -8
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +6 -3
- package/dist/viewer-visualize.module.js.map +1 -1
- package/package.json +6 -6
- package/src/Viewer/Draggers/OdaWalkDragger.ts +2 -1
- package/src/Viewer/Viewer.ts +6 -6
package/dist/viewer-visualize.js
CHANGED
|
@@ -15456,7 +15456,8 @@
|
|
|
15456
15456
|
//avp.lensLength = this.viewParams.lensLength;
|
|
15457
15457
|
avp.delete();
|
|
15458
15458
|
}
|
|
15459
|
-
|
|
15459
|
+
// CLOUD-5359 Demo Viewer crashes after the Walk Mode
|
|
15460
|
+
this.subject.update(true);
|
|
15460
15461
|
this.subject.options.enableZoomWheel = this.enableZoomWheelPreviousValue;
|
|
15461
15462
|
}
|
|
15462
15463
|
keydown(ev) {
|
|
@@ -17667,7 +17668,7 @@
|
|
|
17667
17668
|
* `Viewer.visualize` library you are using.
|
|
17668
17669
|
*/
|
|
17669
17670
|
configure(params) {
|
|
17670
|
-
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/
|
|
17671
|
+
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/25.11/Visualize.js";
|
|
17671
17672
|
return this;
|
|
17672
17673
|
}
|
|
17673
17674
|
/**
|
|
@@ -17900,24 +17901,23 @@
|
|
|
17900
17901
|
if (device.isNull())
|
|
17901
17902
|
return this;
|
|
17902
17903
|
const view = device.getActiveView();
|
|
17903
|
-
// setup light
|
|
17904
17904
|
view.enableDefaultLighting(true, visLib.DefaultLightingType.kTwoLights);
|
|
17905
17905
|
view.setDefaultLightingIntensity(1.25);
|
|
17906
|
+
// Visualize.js 25.11 and earlier threw an exception if the style did not exist.
|
|
17906
17907
|
let visualStyleId;
|
|
17907
17908
|
try {
|
|
17908
17909
|
visualStyleId = visViewer.findVisualStyle("OpenCloud");
|
|
17909
17910
|
}
|
|
17910
|
-
catch
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17911
|
+
catch {
|
|
17912
|
+
visualStyleId = undefined;
|
|
17913
|
+
}
|
|
17914
|
+
if (!visualStyleId || visualStyleId.isNull()) {
|
|
17914
17915
|
visualStyleId = visViewer.createVisualStyle("OpenCloud");
|
|
17915
17916
|
const colorDef = new visLib.OdTvColorDef(66, 66, 66);
|
|
17916
17917
|
const shadedVsId = visViewer.findVisualStyle("Realistic");
|
|
17917
17918
|
const visualStylePtr = visualStyleId.openObject();
|
|
17918
17919
|
visualStylePtr.copyFrom(shadedVsId);
|
|
17919
17920
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kFaceModifiers, 0, visLib.VisualStyleOperations.kSet);
|
|
17920
|
-
//visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeModel, 1, visLib.VisualStyleOperations.kSet);
|
|
17921
17921
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeModel, 2, visLib.VisualStyleOperations.kSet);
|
|
17922
17922
|
visualStylePtr.setOptionDouble(visLib.VisualStyleOptions.kEdgeCreaseAngle, 60, visLib.VisualStyleOperations.kSet);
|
|
17923
17923
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeStyles, 0, visLib.VisualStyleOperations.kSet);
|