@inweb/viewer-visualize 25.9.7 → 25.10.0

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.
@@ -5289,7 +5289,7 @@ class Viewer extends EventEmitter2 {
5289
5289
  return this._markup;
5290
5290
  }
5291
5291
  configure(params) {
5292
- this._visualizeJsUrl = params.visualizeJsUrl || "https://opencloud.azureedge.net/libs/visualizejs/master/Visualize.js";
5292
+ this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/master/Visualize.js";
5293
5293
  return this;
5294
5294
  }
5295
5295
  async initialize(canvas, onProgress) {
@@ -5349,7 +5349,7 @@ class Viewer extends EventEmitter2 {
5349
5349
  });
5350
5350
  if (this.frameId) cancelAnimationFrame(this.frameId);
5351
5351
  this.frameId = 0;
5352
- this.setActiveDragger("");
5352
+ this.setActiveDragger();
5353
5353
  this.removeAllListeners();
5354
5354
  if (this._gestureManager) this._gestureManager.dispose();
5355
5355
  this._gestureManager = undefined;
@@ -5594,7 +5594,7 @@ class Viewer extends EventEmitter2 {
5594
5594
  activeDragger() {
5595
5595
  return this._activeDragger;
5596
5596
  }
5597
- setActiveDragger(name) {
5597
+ setActiveDragger(name = "") {
5598
5598
  var _a;
5599
5599
  if (((_a = this._activeDragger) === null || _a === void 0 ? void 0 : _a.name) !== name) {
5600
5600
  if (this._activeDragger) {
@@ -5623,7 +5623,7 @@ class Viewer extends EventEmitter2 {
5623
5623
  resetActiveDragger() {
5624
5624
  const dragger = this._activeDragger;
5625
5625
  if (dragger) {
5626
- this.setActiveDragger("");
5626
+ this.setActiveDragger();
5627
5627
  this.setActiveDragger(dragger.name);
5628
5628
  }
5629
5629
  }
@@ -5892,6 +5892,7 @@ class Viewer extends EventEmitter2 {
5892
5892
  if (!this.visualizeJs) return this;
5893
5893
  const visLib = this.visLib();
5894
5894
  const visViewer = visLib.getViewer();
5895
+ this.setActiveDragger();
5895
5896
  this.clearOverlay();
5896
5897
  visViewer.clear();
5897
5898
  visViewer.createLocalDatabase();
@@ -5944,10 +5945,10 @@ class Viewer extends EventEmitter2 {
5944
5945
  this._markup.setViewpoint(viewpoint);
5945
5946
  }
5946
5947
  createViewpoint() {
5947
- const vp = this._markup.getViewpoint();
5948
- vp.orthogonal_camera = this.getOrthogonalCameraSettings();
5949
- vp.clipping_planes = this.getClippingPlanes();
5950
- return vp;
5948
+ const viewpoint = this._markup.getViewpoint();
5949
+ viewpoint.orthogonal_camera = this.getOrthogonalCameraSettings();
5950
+ viewpoint.clipping_planes = this.getClippingPlanes();
5951
+ return viewpoint;
5951
5952
  }
5952
5953
  getPoint3dFromArray(array) {
5953
5954
  return {