@pixldocs/canvas-renderer 0.5.131 → 0.5.132

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.
@@ -16185,7 +16185,7 @@ class PixldocsRenderer {
16185
16185
  await this.waitForCanvasScene(container, cloned, i);
16186
16186
  }
16187
16187
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
16188
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-C96oIwLP.js");
16188
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-3QFNDStb.js");
16189
16189
  const prepared = preparePagesForExport(
16190
16190
  cloned.pages,
16191
16191
  canvasWidth,
@@ -18178,7 +18178,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
18178
18178
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
18179
18179
  sanitizeSvgTreeForPdf(svgToDraw);
18180
18180
  try {
18181
- const { bakeTextAnchorPositionsFromLiveSvg } = await import("./vectorPdfExport-C96oIwLP.js");
18181
+ const { bakeTextAnchorPositionsFromLiveSvg } = await import("./vectorPdfExport-3QFNDStb.js");
18182
18182
  await bakeTextAnchorPositionsFromLiveSvg(svgToDraw);
18183
18183
  } catch (e) {
18184
18184
  console.warn("[canvas-renderer][pdf-export] anchor-bake pass failed (continuing):", e);
@@ -18295,7 +18295,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18295
18295
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
18296
18296
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
18297
18297
  const shouldStripBg = stripPageBackground ?? hasGradient;
18298
- const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
18298
+ const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "auto");
18299
18299
  const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
18300
18300
  const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
18301
18301
  let pageSvg = page.svg;
@@ -18309,7 +18309,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18309
18309
  }
18310
18310
  if (shouldOutlineText) {
18311
18311
  try {
18312
- const { convertAllTextToPath } = await import("./svgTextToPath-DMx9Buca.js");
18312
+ const { convertAllTextToPath } = await import("./svgTextToPath-Bne0QyE7.js");
18313
18313
  pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
18314
18314
  try {
18315
18315
  dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
@@ -18523,4 +18523,4 @@ export {
18523
18523
  collectFontDescriptorsFromConfig as y,
18524
18524
  collectFontsFromConfig as z
18525
18525
  };
18526
- //# sourceMappingURL=index-ft7TuZPu.js.map
18526
+ //# sourceMappingURL=index-TWLUgM18.js.map