@pixldocs/canvas-renderer 0.5.157 → 0.5.158

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.
@@ -16058,9 +16058,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
16058
16058
  }
16059
16059
  return svgString;
16060
16060
  }
16061
- const resolvedPackageVersion = "0.5.157";
16061
+ const resolvedPackageVersion = "0.5.158";
16062
16062
  const PACKAGE_VERSION = resolvedPackageVersion;
16063
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.157";
16063
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.158";
16064
16064
  const roundParityValue = (value) => {
16065
16065
  if (typeof value !== "number") return value;
16066
16066
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -16495,7 +16495,7 @@ class PixldocsRenderer {
16495
16495
  await this.waitForCanvasScene(container, cloned, i);
16496
16496
  }
16497
16497
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
16498
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CZyyQbwm.js");
16498
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DwZylzI2.js");
16499
16499
  const prepared = preparePagesForExport(
16500
16500
  cloned.pages,
16501
16501
  canvasWidth,
@@ -18597,7 +18597,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
18597
18597
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
18598
18598
  sanitizeSvgTreeForPdf(svgToDraw);
18599
18599
  try {
18600
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CZyyQbwm.js");
18600
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DwZylzI2.js");
18601
18601
  try {
18602
18602
  await logTextMeasurementDiagnostic(svgToDraw);
18603
18603
  } catch {
@@ -18718,7 +18718,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18718
18718
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
18719
18719
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
18720
18720
  const shouldStripBg = stripPageBackground ?? hasGradient;
18721
- const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "auto");
18721
+ const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
18722
18722
  const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
18723
18723
  const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
18724
18724
  let pageSvg = page.svg;
@@ -18732,7 +18732,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18732
18732
  }
18733
18733
  if (shouldOutlineText) {
18734
18734
  try {
18735
- const { convertAllTextToPath } = await import("./svgTextToPath-V1vC0SQt.js").then((n) => n.s);
18735
+ const { convertAllTextToPath } = await import("./svgTextToPath-BXAzwaaR.js");
18736
18736
  pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
18737
18737
  try {
18738
18738
  dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
@@ -18947,4 +18947,4 @@ export {
18947
18947
  collectFontDescriptorsFromConfig as y,
18948
18948
  collectFontsFromConfig as z
18949
18949
  };
18950
- //# sourceMappingURL=index-xn-L7QHB.js.map
18950
+ //# sourceMappingURL=index-D0AWrDab.js.map