@inweb/viewer-visualize 25.11.2 → 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.
|
@@ -5398,7 +5398,7 @@ class Viewer extends EventEmitter2 {
|
|
|
5398
5398
|
return this._markup;
|
|
5399
5399
|
}
|
|
5400
5400
|
configure(params) {
|
|
5401
|
-
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/
|
|
5401
|
+
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/25.11/Visualize.js";
|
|
5402
5402
|
return this;
|
|
5403
5403
|
}
|
|
5404
5404
|
async initialize(canvas, onProgress) {
|
|
@@ -5587,7 +5587,10 @@ class Viewer extends EventEmitter2 {
|
|
|
5587
5587
|
let visualStyleId;
|
|
5588
5588
|
try {
|
|
5589
5589
|
visualStyleId = visViewer.findVisualStyle("OpenCloud");
|
|
5590
|
-
} catch
|
|
5590
|
+
} catch {
|
|
5591
|
+
visualStyleId = undefined;
|
|
5592
|
+
}
|
|
5593
|
+
if (!visualStyleId || visualStyleId.isNull()) {
|
|
5591
5594
|
visualStyleId = visViewer.createVisualStyle("OpenCloud");
|
|
5592
5595
|
const colorDef = new visLib.OdTvColorDef(66, 66, 66);
|
|
5593
5596
|
const shadedVsId = visViewer.findVisualStyle("Realistic");
|