@mlightcad/mtext-renderer 0.8.1 → 0.8.2

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/index.js CHANGED
@@ -22107,7 +22107,8 @@ class un extends Ia {
22107
22107
  * @param shape - The shape data for this character
22108
22108
  */
22109
22109
  constructor(e, r, n, a) {
22110
- super(), this.fontSize = r, this.shape = n, this.font = a, this.code = e, this.width = this.calcWidth();
22110
+ var i;
22111
+ super(), this.fontSize = r, this.shape = n, this.font = a, this.code = e, a.data.header.fontType === fe.BIGFONT ? this.width = this.calcWidth() : this.width = ((i = n.lastPoint) == null ? void 0 : i.x) ?? this.calcWidth();
22111
22112
  }
22112
22113
  calcWidth() {
22113
22114
  const e = this.shape.bbox;