@inweb/markup 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.
package/dist/markup.js CHANGED
@@ -12092,11 +12092,10 @@
12092
12092
  var _a, _b;
12093
12093
  this._ratio = 1;
12094
12094
  if (ref) {
12095
- if (ref.height() === 0 || ref.width() === 0)
12096
- return;
12095
+ // if (ref.height() === 0 || ref.width() === 0) return;
12097
12096
  this._ref = ref;
12098
12097
  this._canvasImage = ref.image();
12099
- this._ratio = this._ref.height() / this._ref.width();
12098
+ this._ratio = this._ref.height() === 0 || this._ref.width() === 0 ? 1 : this._ref.height() / this._ref.width();
12100
12099
  return;
12101
12100
  }
12102
12101
  if (!params || !params.position || !params.src)