ztechno_core 0.0.113 → 0.0.114

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.
@@ -715,8 +715,10 @@ class InvoiceService {
715
715
  return this;
716
716
  },
717
717
  text(text, x, opts, gap = 12) {
718
- doc.text(text, x, this.y, opts ?? {});
719
- this.y += gap;
718
+ const o = opts ?? {};
719
+ const h = doc.heightOfString(text, o);
720
+ doc.text(text, x, this.y, o);
721
+ this.y += Math.max(h, gap);
720
722
  return this;
721
723
  },
722
724
  row(label, labelX, value, valueX, gap = 14) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.113",
3
+ "version": "0.0.114",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",