@inweb/viewer-visualize 25.8.9 → 25.8.10

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.
@@ -12801,10 +12801,9 @@
12801
12801
  var _a, _b;
12802
12802
  this._ratio = 1;
12803
12803
  if (ref) {
12804
- if (ref.height() === 0 || ref.width() === 0) return;
12805
12804
  this._ref = ref;
12806
12805
  this._canvasImage = ref.image();
12807
- this._ratio = this._ref.height() / this._ref.width();
12806
+ this._ratio = this._ref.height() === 0 || this._ref.width() === 0 ? 1 : this._ref.height() / this._ref.width();
12808
12807
  return;
12809
12808
  }
12810
12809
  if (!params || !params.position || !params.src) return;