@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.
- package/dist/{index-BIjYOVnw.cjs → index-DpsVjlDU.cjs} +5 -5
- package/dist/{index-BIjYOVnw.cjs.map → index-DpsVjlDU.cjs.map} +1 -1
- package/dist/{index-CL09cdqm.js → index-HIMi3Y6V.js} +5 -5
- package/dist/{index-CL09cdqm.js.map → index-HIMi3Y6V.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Cn3c_VYZ.js → vectorPdfExport-CWJRsyl0.js} +6 -6
- package/dist/vectorPdfExport-CWJRsyl0.js.map +1 -0
- package/dist/{vectorPdfExport-G2Yz66tj.cjs → vectorPdfExport-DzfRoSxz.cjs} +6 -6
- package/dist/vectorPdfExport-DzfRoSxz.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/vectorPdfExport-Cn3c_VYZ.js.map +0 -1
- package/dist/vectorPdfExport-G2Yz66tj.cjs.map +0 -1
|
@@ -15660,7 +15660,7 @@ function PixldocsPreview(props) {
|
|
|
15660
15660
|
!canvasSettled && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
|
|
15661
15661
|
] });
|
|
15662
15662
|
}
|
|
15663
|
-
const PACKAGE_VERSION = "0.5.
|
|
15663
|
+
const PACKAGE_VERSION = "0.5.124";
|
|
15664
15664
|
const roundParityValue = (value) => {
|
|
15665
15665
|
if (typeof value !== "number") return value;
|
|
15666
15666
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16079,7 +16079,7 @@ class PixldocsRenderer {
|
|
|
16079
16079
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16080
16080
|
}
|
|
16081
16081
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16082
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
16082
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DzfRoSxz.cjs"));
|
|
16083
16083
|
const prepared = preparePagesForExport(
|
|
16084
16084
|
cloned.pages,
|
|
16085
16085
|
canvasWidth,
|
|
@@ -17334,10 +17334,10 @@ function bakeGroupOpacityIntoChildren(svg) {
|
|
|
17334
17334
|
walkAndBake(svg, 1);
|
|
17335
17335
|
}
|
|
17336
17336
|
function hasInvalidSvgNumericToken(value) {
|
|
17337
|
-
return typeof value === "string" && /\b(?:NaN|-?Infinity)\b/.test(value);
|
|
17337
|
+
return typeof value === "string" && /\b(?:NaN|-?Infinity|undefined|null)\b/.test(value);
|
|
17338
17338
|
}
|
|
17339
17339
|
function sanitizeSvgNumericTokens(value) {
|
|
17340
|
-
return value.replace(/\bNaN\b/g, "0").replace(/\b-?Infinity\b/g, "0");
|
|
17340
|
+
return value.replace(/\bNaN\b/g, "0").replace(/\b-?Infinity\b/g, "0").replace(/\bundefined\b/g, "0").replace(/\bnull\b/g, "0");
|
|
17341
17341
|
}
|
|
17342
17342
|
function sanitizeSvgTreeForPdf(svg) {
|
|
17343
17343
|
const attrsToSanitize = [
|
|
@@ -18484,4 +18484,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
18484
18484
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
18485
18485
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
18486
18486
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
18487
|
-
//# sourceMappingURL=index-
|
|
18487
|
+
//# sourceMappingURL=index-DpsVjlDU.cjs.map
|