@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
|
@@ -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.123";
|
|
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-G2Yz66tj.cjs"));
|
|
16086
16083
|
const prepared = preparePagesForExport(
|
|
16087
16084
|
cloned.pages,
|
|
16088
16085
|
canvasWidth,
|
|
@@ -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-BIjYOVnw.cjs.map
|