jspdf-utils 0.1.23 → 0.1.24

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.
@@ -554,7 +554,7 @@ async function z(t, e) {
554
554
  };
555
555
  }
556
556
  async function st(t, e = {}) {
557
- const { imageFormat: a = "JPEG", imageQuality: n = 0.7, scale: o = 2 } = e, i = x(e), { clone: r, cleanup: h } = await z(t, i);
557
+ const { imageFormat: a = "JPEG", imageQuality: n = 0.7, scale: o = 3 } = e, i = x(e), { clone: r, cleanup: h } = await z(t, i);
558
558
  try {
559
559
  const s = await S(r, {
560
560
  scale: o,
@@ -565,7 +565,11 @@ async function st(t, e = {}) {
565
565
  format: [i.pageWidth, i.pageHeight]
566
566
  });
567
567
  for (let f = 0; f < d; f++) {
568
- const { canvas: m, ctx: p } = $(s, f, c), y = m.toDataURL(
568
+ const { canvas: m, ctx: p } = $(
569
+ s,
570
+ f,
571
+ c
572
+ ), y = m.toDataURL(
569
573
  `image/${a.toLowerCase()}`,
570
574
  n
571
575
  );
@@ -593,7 +597,11 @@ async function at(t, e = {}) {
593
597
  backgroundColor: "#ffffff"
594
598
  }), l = q(s, i), c = Math.ceil(s.height / l.contentHeightPx), d = [], { marginContent: g } = e, u = g ? await G(g, i, o) : {};
595
599
  for (let f = 0; f < c; f++) {
596
- const { canvas: m, ctx: p } = $(s, f, l);
600
+ const { canvas: m, ctx: p } = $(
601
+ s,
602
+ f,
603
+ l
604
+ );
597
605
  g && await ot(
598
606
  p,
599
607
  g,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jspdf-utils",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "Utility helpers for jsPDF's doc.html() renderer with automatic page breaking, table splitting, and RTL support",
5
5
  "type": "module",
6
6
  "main": "dist/html-to-pdf.js",