@pixldocs/canvas-renderer 0.5.136 → 0.5.137
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-DUHE7WhJ.cjs → index-4hpM5w7h.cjs} +9 -3
- package/dist/{index-DUHE7WhJ.cjs.map → index-4hpM5w7h.cjs.map} +1 -1
- package/dist/{index-BHa3ekoF.js → index-Dr5P178V.js} +9 -3
- package/dist/{index-BHa3ekoF.js.map → index-Dr5P178V.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-D3L64sAJ.js → vectorPdfExport-CP-0GqFj.js} +4 -4
- package/dist/{vectorPdfExport-D3L64sAJ.js.map → vectorPdfExport-CP-0GqFj.js.map} +1 -1
- package/dist/{vectorPdfExport-Bq-_OarH.cjs → vectorPdfExport-Cp712xzF.cjs} +4 -4
- package/dist/{vectorPdfExport-Bq-_OarH.cjs.map → vectorPdfExport-Cp712xzF.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -16376,7 +16376,7 @@ class PixldocsRenderer {
|
|
|
16376
16376
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16377
16377
|
}
|
|
16378
16378
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16379
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
16379
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Cp712xzF.cjs"));
|
|
16380
16380
|
const prepared = preparePagesForExport(
|
|
16381
16381
|
cloned.pages,
|
|
16382
16382
|
canvasWidth,
|
|
@@ -16993,6 +16993,12 @@ class PixldocsRenderer {
|
|
|
16993
16993
|
const waitForPaint = () => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(() => r())));
|
|
16994
16994
|
const primeCharBounds = (obj) => {
|
|
16995
16995
|
if (obj instanceof fabric__namespace.Textbox) {
|
|
16996
|
+
try {
|
|
16997
|
+
obj.__lineWidths = [];
|
|
16998
|
+
obj.__lineHeights = [];
|
|
16999
|
+
obj.__charBounds = [];
|
|
17000
|
+
} catch {
|
|
17001
|
+
}
|
|
16996
17002
|
const lines = obj._textLines;
|
|
16997
17003
|
if (Array.isArray(lines)) {
|
|
16998
17004
|
for (let i = 0; i < lines.length; i++) {
|
|
@@ -18468,7 +18474,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
18468
18474
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
18469
18475
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
18470
18476
|
try {
|
|
18471
|
-
const { bakeTextAnchorPositionsFromLiveSvg } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
18477
|
+
const { bakeTextAnchorPositionsFromLiveSvg } = await Promise.resolve().then(() => require("./vectorPdfExport-Cp712xzF.cjs"));
|
|
18472
18478
|
await bakeTextAnchorPositionsFromLiveSvg(svgToDraw);
|
|
18473
18479
|
} catch (e) {
|
|
18474
18480
|
console.warn("[canvas-renderer][pdf-export] anchor-bake pass failed (continuing):", e);
|
|
@@ -18810,4 +18816,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
18810
18816
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
18811
18817
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
18812
18818
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
18813
|
-
//# sourceMappingURL=index-
|
|
18819
|
+
//# sourceMappingURL=index-4hpM5w7h.cjs.map
|