@pixldocs/canvas-renderer 0.5.477 → 0.5.479
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-Dai-wVF0.js → index-Dqwkt9nO.js} +16 -11
- package/dist/index-Dqwkt9nO.js.map +1 -0
- package/dist/{index-CgUTQx0-.cjs → index-HdyrEZYv.cjs} +16 -11
- package/dist/index-HdyrEZYv.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-RNk382Wq.js → vectorPdfExport-DRfak0Ck.js} +4 -4
- package/dist/{vectorPdfExport-RNk382Wq.js.map → vectorPdfExport-DRfak0Ck.js.map} +1 -1
- package/dist/{vectorPdfExport-CNpb3Wvc.cjs → vectorPdfExport-DtQDA2s0.cjs} +4 -4
- package/dist/{vectorPdfExport-CNpb3Wvc.cjs.map → vectorPdfExport-DtQDA2s0.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CgUTQx0-.cjs.map +0 -1
- package/dist/index-Dai-wVF0.js.map +0 -1
|
@@ -860,8 +860,9 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
860
860
|
prevRight = effectiveLeft + w + (child.marginRight ?? 0);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
const
|
|
864
|
-
const
|
|
863
|
+
const usesExplicitContainer = !group.hugContent;
|
|
864
|
+
const containerW = usesExplicitContainer && typeof group.width === "number" ? group.width : void 0;
|
|
865
|
+
const containerH = usesExplicitContainer && typeof group.height === "number" ? group.height : void 0;
|
|
865
866
|
const mainContainer = isVertical ? containerH : containerW;
|
|
866
867
|
let crossContainer = isVertical ? containerW : containerH;
|
|
867
868
|
if (crossContainer == null && kids.length > 0) {
|
|
@@ -992,10 +993,14 @@ function groupBoundsFromChildren(group, pageChildren, options) {
|
|
|
992
993
|
if (isStack) {
|
|
993
994
|
const padRight = group.paddingRight ?? 0;
|
|
994
995
|
const padBottom = group.paddingBottom ?? 0;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
996
|
+
const contentW = Math.max(1, maxX + padRight);
|
|
997
|
+
const contentH = Math.max(1, maxY + padBottom);
|
|
998
|
+
if (group.hugContent === false) {
|
|
999
|
+
const storedW = typeof group.width === "number" && group.width > 0 ? group.width : contentW;
|
|
1000
|
+
const storedH = typeof group.height === "number" && group.height > 0 ? group.height : contentH;
|
|
1001
|
+
return { width: Math.max(1, storedW), height: Math.max(1, storedH) };
|
|
1002
|
+
}
|
|
1003
|
+
return { width: contentW, height: contentH };
|
|
999
1004
|
}
|
|
1000
1005
|
return {
|
|
1001
1006
|
width: Math.max(1, maxX - minX),
|
|
@@ -26354,9 +26359,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26354
26359
|
}
|
|
26355
26360
|
return svgString;
|
|
26356
26361
|
}
|
|
26357
|
-
const resolvedPackageVersion = "0.5.
|
|
26362
|
+
const resolvedPackageVersion = "0.5.479";
|
|
26358
26363
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26359
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26364
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.479";
|
|
26360
26365
|
const roundParityValue = (value) => {
|
|
26361
26366
|
if (typeof value !== "number") return value;
|
|
26362
26367
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27170,7 +27175,7 @@ class PixldocsRenderer {
|
|
|
27170
27175
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27171
27176
|
}
|
|
27172
27177
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27173
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27178
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DRfak0Ck.js");
|
|
27174
27179
|
const prepared = preparePagesForExport(
|
|
27175
27180
|
cloned.pages,
|
|
27176
27181
|
canvasWidth,
|
|
@@ -29490,7 +29495,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29490
29495
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29491
29496
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29492
29497
|
try {
|
|
29493
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29498
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DRfak0Ck.js");
|
|
29494
29499
|
try {
|
|
29495
29500
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29496
29501
|
} catch {
|
|
@@ -29807,4 +29812,4 @@ export {
|
|
|
29807
29812
|
buildTeaserBlurFlatKeys as y,
|
|
29808
29813
|
collectFontDescriptorsFromConfig as z
|
|
29809
29814
|
};
|
|
29810
|
-
//# sourceMappingURL=index-
|
|
29815
|
+
//# sourceMappingURL=index-Dqwkt9nO.js.map
|