@pixldocs/canvas-renderer 0.5.108 → 0.5.109

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
@@ -17653,7 +17653,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
17653
17653
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
17654
17654
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
17655
17655
  const shouldStripBg = stripPageBackground ?? hasGradient;
17656
- const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "selectable");
17656
+ const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "pixel-perfect");
17657
17657
  const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
17658
17658
  const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
17659
17659
  let pageSvg = page.svg;
@@ -17667,7 +17667,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
17667
17667
  }
17668
17668
  if (shouldOutlineText) {
17669
17669
  try {
17670
- const { convertAllTextToPath } = await import("./svgTextToPath-C20Obtt2.js");
17670
+ const { convertAllTextToPath } = await import("./svgTextToPath-B2UVS22F.js");
17671
17671
  pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
17672
17672
  try {
17673
17673
  dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");