@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.
@@ -16076,9 +16076,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
16076
16076
  }
16077
16077
  return svgString;
16078
16078
  }
16079
- const resolvedPackageVersion = "0.5.157";
16079
+ const resolvedPackageVersion = "0.5.158";
16080
16080
  const PACKAGE_VERSION = resolvedPackageVersion;
16081
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.157";
16081
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.158";
16082
16082
  const roundParityValue = (value) => {
16083
16083
  if (typeof value !== "number") return value;
16084
16084
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -16513,7 +16513,7 @@ class PixldocsRenderer {
16513
16513
  await this.waitForCanvasScene(container, cloned, i);
16514
16514
  }
16515
16515
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
16516
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CTktki-M.cjs"));
16516
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-vZ8VHnu6.cjs"));
16517
16517
  const prepared = preparePagesForExport(
16518
16518
  cloned.pages,
16519
16519
  canvasWidth,
@@ -18615,7 +18615,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
18615
18615
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
18616
18616
  sanitizeSvgTreeForPdf(svgToDraw);
18617
18617
  try {
18618
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CTktki-M.cjs"));
18618
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-vZ8VHnu6.cjs"));
18619
18619
  try {
18620
18620
  await logTextMeasurementDiagnostic(svgToDraw);
18621
18621
  } catch {
@@ -18736,7 +18736,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18736
18736
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
18737
18737
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
18738
18738
  const shouldStripBg = stripPageBackground ?? hasGradient;
18739
- const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "auto");
18739
+ const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
18740
18740
  const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
18741
18741
  const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
18742
18742
  let pageSvg = page.svg;
@@ -18750,7 +18750,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
18750
18750
  }
18751
18751
  if (shouldOutlineText) {
18752
18752
  try {
18753
- const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-7fhL08qs.cjs")).then((n) => n.svgTextToPath);
18753
+ const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-IM1f6F-f.cjs"));
18754
18754
  pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
18755
18755
  try {
18756
18756
  dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
@@ -18962,4 +18962,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
18962
18962
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
18963
18963
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
18964
18964
  exports.warmTemplateFromForm = warmTemplateFromForm;
18965
- //# sourceMappingURL=index-NR05ndTM.cjs.map
18965
+ //# sourceMappingURL=index-B1f4qE6u.cjs.map