@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.
@@ -3515,7 +3515,7 @@ class OdaWalkDragger extends OdBaseDragger {
3515
3515
  const avp = this.viewer.activeView;
3516
3516
  avp.delete();
3517
3517
  }
3518
- this.subject.update();
3518
+ this.subject.update(true);
3519
3519
  this.subject.options.enableZoomWheel = this.enableZoomWheelPreviousValue;
3520
3520
  }
3521
3521
  keydown(ev) {
@@ -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/master/Visualize.js";
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 (e) {
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");