@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.cjs CHANGED
@@ -17672,7 +17672,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
17672
17672
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
17673
17673
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
17674
17674
  const shouldStripBg = stripPageBackground ?? hasGradient;
17675
- const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "selectable");
17675
+ const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "pixel-perfect");
17676
17676
  const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
17677
17677
  const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
17678
17678
  let pageSvg = page.svg;
@@ -17686,7 +17686,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
17686
17686
  }
17687
17687
  if (shouldOutlineText) {
17688
17688
  try {
17689
- const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-DTKsddnS.cjs"));
17689
+ const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-CeL46_ks.cjs"));
17690
17690
  pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
17691
17691
  try {
17692
17692
  dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");