@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
|
@@ -14123,9 +14123,6 @@ async function embedFontsForConfig(pdf, config, fontBaseUrl) {
|
|
|
14123
14123
|
if (el.fontFamily) {
|
|
14124
14124
|
const w = normalizeWeight(el.fontWeight);
|
|
14125
14125
|
addFontVariant(el.fontFamily, w, /italic|oblique/i.test(String(el.fontStyle ?? "")));
|
|
14126
|
-
addFontVariant(el.fontFamily, 700, false);
|
|
14127
|
-
addFontVariant(el.fontFamily, 400, true);
|
|
14128
|
-
addFontVariant(el.fontFamily, 700, true);
|
|
14129
14126
|
if (el.formattingEnabled === true && typeof el.text === "string") {
|
|
14130
14127
|
try {
|
|
14131
14128
|
const parsed = parseTextMarkdown(el.text);
|
|
@@ -15663,7 +15660,7 @@ function PixldocsPreview(props) {
|
|
|
15663
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..." }) })
|
|
15664
15661
|
] });
|
|
15665
15662
|
}
|
|
15666
|
-
const PACKAGE_VERSION = "0.5.
|
|
15663
|
+
const PACKAGE_VERSION = "0.5.124";
|
|
15667
15664
|
const roundParityValue = (value) => {
|
|
15668
15665
|
if (typeof value !== "number") return value;
|
|
15669
15666
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16082,7 +16079,7 @@ class PixldocsRenderer {
|
|
|
16082
16079
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16083
16080
|
}
|
|
16084
16081
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16085
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
16082
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DzfRoSxz.cjs"));
|
|
16086
16083
|
const prepared = preparePagesForExport(
|
|
16087
16084
|
cloned.pages,
|
|
16088
16085
|
canvasWidth,
|
|
@@ -17337,10 +17334,10 @@ function bakeGroupOpacityIntoChildren(svg) {
|
|
|
17337
17334
|
walkAndBake(svg, 1);
|
|
17338
17335
|
}
|
|
17339
17336
|
function hasInvalidSvgNumericToken(value) {
|
|
17340
|
-
return typeof value === "string" && /\b(?:NaN|-?Infinity)\b/.test(value);
|
|
17337
|
+
return typeof value === "string" && /\b(?:NaN|-?Infinity|undefined|null)\b/.test(value);
|
|
17341
17338
|
}
|
|
17342
17339
|
function sanitizeSvgNumericTokens(value) {
|
|
17343
|
-
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");
|
|
17344
17341
|
}
|
|
17345
17342
|
function sanitizeSvgTreeForPdf(svg) {
|
|
17346
17343
|
const attrsToSanitize = [
|
|
@@ -18487,4 +18484,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
18487
18484
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
18488
18485
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
18489
18486
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
18490
|
-
//# sourceMappingURL=index-
|
|
18487
|
+
//# sourceMappingURL=index-DpsVjlDU.cjs.map
|