@pixldocs/canvas-renderer 0.5.123 → 0.5.124

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.
@@ -15642,7 +15642,7 @@ function PixldocsPreview(props) {
15642
15642
  !canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
15643
15643
  ] });
15644
15644
  }
15645
- const PACKAGE_VERSION = "0.5.123";
15645
+ const PACKAGE_VERSION = "0.5.124";
15646
15646
  const roundParityValue = (value) => {
15647
15647
  if (typeof value !== "number") return value;
15648
15648
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -16061,7 +16061,7 @@ class PixldocsRenderer {
16061
16061
  await this.waitForCanvasScene(container, cloned, i);
16062
16062
  }
16063
16063
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
16064
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Cn3c_VYZ.js");
16064
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CWJRsyl0.js");
16065
16065
  const prepared = preparePagesForExport(
16066
16066
  cloned.pages,
16067
16067
  canvasWidth,
@@ -17316,10 +17316,10 @@ function bakeGroupOpacityIntoChildren(svg) {
17316
17316
  walkAndBake(svg, 1);
17317
17317
  }
17318
17318
  function hasInvalidSvgNumericToken(value) {
17319
- return typeof value === "string" && /\b(?:NaN|-?Infinity)\b/.test(value);
17319
+ return typeof value === "string" && /\b(?:NaN|-?Infinity|undefined|null)\b/.test(value);
17320
17320
  }
17321
17321
  function sanitizeSvgNumericTokens(value) {
17322
- return value.replace(/\bNaN\b/g, "0").replace(/\b-?Infinity\b/g, "0");
17322
+ return value.replace(/\bNaN\b/g, "0").replace(/\b-?Infinity\b/g, "0").replace(/\bundefined\b/g, "0").replace(/\bnull\b/g, "0");
17323
17323
  }
17324
17324
  function sanitizeSvgTreeForPdf(svg) {
17325
17325
  const attrsToSanitize = [
@@ -18469,4 +18469,4 @@ export {
18469
18469
  collectFontsFromConfig as y,
18470
18470
  collectImageUrls as z
18471
18471
  };
18472
- //# sourceMappingURL=index-CL09cdqm.js.map
18472
+ //# sourceMappingURL=index-HIMi3Y6V.js.map