@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.
@@ -1360,10 +1360,9 @@ class KonvaImage {
1360
1360
  var _a, _b;
1361
1361
  this._ratio = 1;
1362
1362
  if (ref) {
1363
- if (ref.height() === 0 || ref.width() === 0) return;
1364
1363
  this._ref = ref;
1365
1364
  this._canvasImage = ref.image();
1366
- this._ratio = this._ref.height() / this._ref.width();
1365
+ this._ratio = this._ref.height() === 0 || this._ref.width() === 0 ? 1 : this._ref.height() / this._ref.width();
1367
1366
  return;
1368
1367
  }
1369
1368
  if (!params || !params.position || !params.src) return;