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
|
-
|
|
719
|
-
|
|
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) {
|