@pixldocs/canvas-renderer 0.5.122 → 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-BObeaBCm.cjs → index-DpsVjlDU.cjs} +5 -8
- package/dist/{index-BObeaBCm.cjs.map → index-DpsVjlDU.cjs.map} +1 -1
- package/dist/{index-vqyuTJLz.js → index-HIMi3Y6V.js} +5 -8
- package/dist/{index-vqyuTJLz.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-CD0Jz7Cc.js → vectorPdfExport-CWJRsyl0.js} +6 -6
- package/dist/vectorPdfExport-CWJRsyl0.js.map +1 -0
- package/dist/{vectorPdfExport-DIYIL06v.cjs → vectorPdfExport-DzfRoSxz.cjs} +6 -6
- package/dist/vectorPdfExport-DzfRoSxz.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/vectorPdfExport-CD0Jz7Cc.js.map +0 -1
- package/dist/vectorPdfExport-DIYIL06v.cjs.map +0 -1
|
@@ -14105,9 +14105,6 @@ async function embedFontsForConfig(pdf, config, fontBaseUrl) {
|
|
|
14105
14105
|
if (el.fontFamily) {
|
|
14106
14106
|
const w = normalizeWeight(el.fontWeight);
|
|
14107
14107
|
addFontVariant(el.fontFamily, w, /italic|oblique/i.test(String(el.fontStyle ?? "")));
|
|
14108
|
-
addFontVariant(el.fontFamily, 700, false);
|
|
14109
|
-
addFontVariant(el.fontFamily, 400, true);
|
|
14110
|
-
addFontVariant(el.fontFamily, 700, true);
|
|
14111
14108
|
if (el.formattingEnabled === true && typeof el.text === "string") {
|
|
14112
14109
|
try {
|
|
14113
14110
|
const parsed = parseTextMarkdown(el.text);
|
|
@@ -15645,7 +15642,7 @@ function PixldocsPreview(props) {
|
|
|
15645
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..." }) })
|
|
15646
15643
|
] });
|
|
15647
15644
|
}
|
|
15648
|
-
const PACKAGE_VERSION = "0.5.
|
|
15645
|
+
const PACKAGE_VERSION = "0.5.124";
|
|
15649
15646
|
const roundParityValue = (value) => {
|
|
15650
15647
|
if (typeof value !== "number") return value;
|
|
15651
15648
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16064,7 +16061,7 @@ class PixldocsRenderer {
|
|
|
16064
16061
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16065
16062
|
}
|
|
16066
16063
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16067
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
16064
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CWJRsyl0.js");
|
|
16068
16065
|
const prepared = preparePagesForExport(
|
|
16069
16066
|
cloned.pages,
|
|
16070
16067
|
canvasWidth,
|
|
@@ -17319,10 +17316,10 @@ function bakeGroupOpacityIntoChildren(svg) {
|
|
|
17319
17316
|
walkAndBake(svg, 1);
|
|
17320
17317
|
}
|
|
17321
17318
|
function hasInvalidSvgNumericToken(value) {
|
|
17322
|
-
return typeof value === "string" && /\b(?:NaN|-?Infinity)\b/.test(value);
|
|
17319
|
+
return typeof value === "string" && /\b(?:NaN|-?Infinity|undefined|null)\b/.test(value);
|
|
17323
17320
|
}
|
|
17324
17321
|
function sanitizeSvgNumericTokens(value) {
|
|
17325
|
-
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");
|
|
17326
17323
|
}
|
|
17327
17324
|
function sanitizeSvgTreeForPdf(svg) {
|
|
17328
17325
|
const attrsToSanitize = [
|
|
@@ -18472,4 +18469,4 @@ export {
|
|
|
18472
18469
|
collectFontsFromConfig as y,
|
|
18473
18470
|
collectImageUrls as z
|
|
18474
18471
|
};
|
|
18475
|
-
//# sourceMappingURL=index-
|
|
18472
|
+
//# sourceMappingURL=index-HIMi3Y6V.js.map
|