@inweb/viewer-visualize 25.6.4 → 25.6.6

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.
@@ -641,6 +641,7 @@
641
641
  visViewer.zoomExtents(force);
642
642
  visViewer.update();
643
643
  visViewer.setEnableAnimation(saveEnableAmination);
644
+ viewer.deviceAutoRegeneration();
644
645
  viewer.update();
645
646
  viewer.emitEvent({ type: "zoom" });
646
647
  }
@@ -661,6 +662,7 @@
661
662
  selectionSet.appendEntity(entityId);
662
663
  });
663
664
  (_a = visViewer.zoomToObjects) === null || _a === void 0 ? void 0 : _a.call(visViewer, selectionSet);
665
+ viewer.deviceAutoRegeneration();
664
666
  viewer.update();
665
667
  viewer.emitEvent({ type: "zoom" });
666
668
  selectionSet.delete();
@@ -675,6 +677,7 @@
675
677
  const visViewer = viewer.visViewer();
676
678
  const selectionSet = visViewer.getSelected();
677
679
  (_a = visViewer.zoomToObjects) === null || _a === void 0 ? void 0 : _a.call(visViewer, selectionSet);
680
+ viewer.deviceAutoRegeneration();
678
681
  viewer.update();
679
682
  viewer.emitEvent({ type: "zoom" });
680
683
  }
@@ -2100,6 +2103,7 @@
2100
2103
  var _a;
2101
2104
  const viewer = this._m_module.getViewer();
2102
2105
  viewer.zoomAt(zoomFactor, x, y);
2106
+ this._subject.deviceAutoRegeneration();
2103
2107
  (_a = this._subject.activeDragger()) === null || _a === void 0 ? void 0 : _a.updatePreview();
2104
2108
  this._subject.emitEvent({
2105
2109
  type: "zoomat",
@@ -17668,6 +17672,15 @@
17668
17672
  executeCommand(id, ...args) {
17669
17673
  return commands("VisualizeJS").executeCommand(id, this, ...args);
17670
17674
  }
17675
+ deviceAutoRegeneration() {
17676
+ const visViewer = this.visViewer();
17677
+ const device = visViewer.getActiveDevice();
17678
+ const coef = device.getOptionDouble(this.visLib().DeviceOptions.kRegenCoef);
17679
+ if (coef > 1.0) {
17680
+ visViewer.regenAll();
17681
+ this.update();
17682
+ }
17683
+ }
17671
17684
  }
17672
17685
 
17673
17686
  exports.CANVAS_EVENTS = CANVAS_EVENTS;