@pixldocs/canvas-renderer 0.5.122 → 0.5.123
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-BIjYOVnw.cjs} +3 -6
- package/dist/{index-BObeaBCm.cjs.map → index-BIjYOVnw.cjs.map} +1 -1
- package/dist/{index-vqyuTJLz.js → index-CL09cdqm.js} +3 -6
- package/dist/{index-vqyuTJLz.js.map → index-CL09cdqm.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-Cn3c_VYZ.js} +4 -4
- package/dist/{vectorPdfExport-CD0Jz7Cc.js.map → vectorPdfExport-Cn3c_VYZ.js.map} +1 -1
- package/dist/{vectorPdfExport-DIYIL06v.cjs → vectorPdfExport-G2Yz66tj.cjs} +4 -4
- package/dist/{vectorPdfExport-DIYIL06v.cjs.map → vectorPdfExport-G2Yz66tj.cjs.map} +1 -1
- package/package.json +1 -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.123";
|
|
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-Cn3c_VYZ.js");
|
|
16068
16065
|
const prepared = preparePagesForExport(
|
|
16069
16066
|
cloned.pages,
|
|
16070
16067
|
canvasWidth,
|
|
@@ -18472,4 +18469,4 @@ export {
|
|
|
18472
18469
|
collectFontsFromConfig as y,
|
|
18473
18470
|
collectImageUrls as z
|
|
18474
18471
|
};
|
|
18475
|
-
//# sourceMappingURL=index-
|
|
18472
|
+
//# sourceMappingURL=index-CL09cdqm.js.map
|