@pixldocs/canvas-renderer 0.5.475 → 0.5.477
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-CkJuu8qW.cjs → index-CgUTQx0-.cjs} +14 -13
- package/dist/index-CgUTQx0-.cjs.map +1 -0
- package/dist/{index-xlEraJ8g.js → index-Dai-wVF0.js} +14 -13
- package/dist/index-Dai-wVF0.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-omFy2Jbf.cjs → vectorPdfExport-CNpb3Wvc.cjs} +4 -4
- package/dist/{vectorPdfExport-omFy2Jbf.cjs.map → vectorPdfExport-CNpb3Wvc.cjs.map} +1 -1
- package/dist/{vectorPdfExport-D-qCq8K7.js → vectorPdfExport-RNk382Wq.js} +4 -4
- package/dist/{vectorPdfExport-D-qCq8K7.js.map → vectorPdfExport-RNk382Wq.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CkJuu8qW.cjs.map +0 -1
- package/dist/index-xlEraJ8g.js.map +0 -1
|
@@ -864,7 +864,7 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
864
864
|
const containerH = typeof group.height === "number" ? group.height : void 0;
|
|
865
865
|
const mainContainer = isVertical ? containerH : containerW;
|
|
866
866
|
let crossContainer = isVertical ? containerW : containerH;
|
|
867
|
-
if (kids.length > 0) {
|
|
867
|
+
if (crossContainer == null && kids.length > 0) {
|
|
868
868
|
let maxCross = 0;
|
|
869
869
|
for (const c of kids) {
|
|
870
870
|
const sz = sizes.get(c.id);
|
|
@@ -874,8 +874,7 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
874
874
|
}
|
|
875
875
|
const crossPad0 = isVertical ? padLeft : padTop;
|
|
876
876
|
const crossPadEnd = isVertical ? padRight : padBottom;
|
|
877
|
-
|
|
878
|
-
crossContainer = crossContainer != null ? Math.max(crossContainer, computed) : computed;
|
|
877
|
+
crossContainer = maxCross + crossPad0 + crossPadEnd;
|
|
879
878
|
}
|
|
880
879
|
if (align !== "start" && crossContainer != null && kids.length > 0) {
|
|
881
880
|
const crossPad0 = isVertical ? padLeft : padTop;
|
|
@@ -918,7 +917,7 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
918
917
|
const free = innerMain - totalMain - baseGapTotal;
|
|
919
918
|
let offset = 0;
|
|
920
919
|
let extraGap = 0;
|
|
921
|
-
if (free
|
|
920
|
+
if (free !== 0) {
|
|
922
921
|
switch (justify) {
|
|
923
922
|
case "center":
|
|
924
923
|
offset = free / 2;
|
|
@@ -927,18 +926,20 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
927
926
|
offset = free;
|
|
928
927
|
break;
|
|
929
928
|
case "space-between":
|
|
930
|
-
if (kids.length > 1) extraGap = free / (kids.length - 1);
|
|
929
|
+
if (kids.length > 1 && free > 0) extraGap = free / (kids.length - 1);
|
|
931
930
|
else offset = free / 2;
|
|
932
931
|
break;
|
|
933
932
|
case "space-around":
|
|
934
|
-
if (kids.length > 0) {
|
|
933
|
+
if (kids.length > 0 && free > 0) {
|
|
935
934
|
extraGap = free / kids.length;
|
|
936
935
|
offset = extraGap / 2;
|
|
937
936
|
}
|
|
938
937
|
break;
|
|
939
938
|
case "space-evenly":
|
|
940
|
-
|
|
941
|
-
|
|
939
|
+
if (free > 0) {
|
|
940
|
+
extraGap = free / (kids.length + 1);
|
|
941
|
+
offset = extraGap;
|
|
942
|
+
}
|
|
942
943
|
break;
|
|
943
944
|
}
|
|
944
945
|
}
|
|
@@ -26353,9 +26354,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26353
26354
|
}
|
|
26354
26355
|
return svgString;
|
|
26355
26356
|
}
|
|
26356
|
-
const resolvedPackageVersion = "0.5.
|
|
26357
|
+
const resolvedPackageVersion = "0.5.477";
|
|
26357
26358
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26358
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26359
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.477";
|
|
26359
26360
|
const roundParityValue = (value) => {
|
|
26360
26361
|
if (typeof value !== "number") return value;
|
|
26361
26362
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27169,7 +27170,7 @@ class PixldocsRenderer {
|
|
|
27169
27170
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27170
27171
|
}
|
|
27171
27172
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27172
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27173
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-RNk382Wq.js");
|
|
27173
27174
|
const prepared = preparePagesForExport(
|
|
27174
27175
|
cloned.pages,
|
|
27175
27176
|
canvasWidth,
|
|
@@ -29489,7 +29490,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29489
29490
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29490
29491
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29491
29492
|
try {
|
|
29492
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29493
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-RNk382Wq.js");
|
|
29493
29494
|
try {
|
|
29494
29495
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29495
29496
|
} catch {
|
|
@@ -29806,4 +29807,4 @@ export {
|
|
|
29806
29807
|
buildTeaserBlurFlatKeys as y,
|
|
29807
29808
|
collectFontDescriptorsFromConfig as z
|
|
29808
29809
|
};
|
|
29809
|
-
//# sourceMappingURL=index-
|
|
29810
|
+
//# sourceMappingURL=index-Dai-wVF0.js.map
|