@pixldocs/canvas-renderer 0.5.479 → 0.5.480
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-Dqwkt9nO.js → index-Bdt_4Ak_.js} +15 -8
- package/dist/index-Bdt_4Ak_.js.map +1 -0
- package/dist/{index-HdyrEZYv.cjs → index-BvNexoyT.cjs} +15 -8
- package/dist/index-BvNexoyT.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DtQDA2s0.cjs → vectorPdfExport-8y-rUG9Q.cjs} +4 -4
- package/dist/{vectorPdfExport-DtQDA2s0.cjs.map → vectorPdfExport-8y-rUG9Q.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DRfak0Ck.js → vectorPdfExport-CwvZ-BD6.js} +4 -4
- package/dist/{vectorPdfExport-DRfak0Ck.js.map → vectorPdfExport-CwvZ-BD6.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-Dqwkt9nO.js.map +0 -1
- package/dist/index-HdyrEZYv.cjs.map +0 -1
|
@@ -877,7 +877,11 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
877
877
|
const crossPadEnd = isVertical ? padRight : padBottom;
|
|
878
878
|
crossContainer = maxCross + crossPad0 + crossPadEnd;
|
|
879
879
|
}
|
|
880
|
-
|
|
880
|
+
const anyChildOverride = kids.some((c) => {
|
|
881
|
+
const v = c.alignSelf;
|
|
882
|
+
return typeof v === "string" && v !== "auto";
|
|
883
|
+
});
|
|
884
|
+
if ((align !== "start" || anyChildOverride) && crossContainer != null && kids.length > 0) {
|
|
881
885
|
const crossPad0 = isVertical ? padLeft : padTop;
|
|
882
886
|
const crossPadEnd = isVertical ? padRight : padBottom;
|
|
883
887
|
const innerCross = Math.max(0, crossContainer - crossPad0 - crossPadEnd);
|
|
@@ -886,10 +890,13 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
886
890
|
if (!pos) continue;
|
|
887
891
|
const sz = sizes.get(child.id);
|
|
888
892
|
const childCross = isVertical ? sz.width : sz.height;
|
|
893
|
+
const selfRaw = child.alignSelf;
|
|
894
|
+
const effective = selfRaw && selfRaw !== "auto" ? selfRaw : align;
|
|
895
|
+
if (effective === "start") continue;
|
|
889
896
|
let crossPos;
|
|
890
|
-
if (
|
|
897
|
+
if (effective === "stretch") {
|
|
891
898
|
crossPos = crossPad0;
|
|
892
|
-
} else if (
|
|
899
|
+
} else if (effective === "center") {
|
|
893
900
|
crossPos = crossPad0 + (innerCross - childCross) / 2;
|
|
894
901
|
} else {
|
|
895
902
|
crossPos = crossPad0 + (innerCross - childCross);
|
|
@@ -26359,9 +26366,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26359
26366
|
}
|
|
26360
26367
|
return svgString;
|
|
26361
26368
|
}
|
|
26362
|
-
const resolvedPackageVersion = "0.5.
|
|
26369
|
+
const resolvedPackageVersion = "0.5.480";
|
|
26363
26370
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26364
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26371
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.480";
|
|
26365
26372
|
const roundParityValue = (value) => {
|
|
26366
26373
|
if (typeof value !== "number") return value;
|
|
26367
26374
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27175,7 +27182,7 @@ class PixldocsRenderer {
|
|
|
27175
27182
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27176
27183
|
}
|
|
27177
27184
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27178
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27185
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CwvZ-BD6.js");
|
|
27179
27186
|
const prepared = preparePagesForExport(
|
|
27180
27187
|
cloned.pages,
|
|
27181
27188
|
canvasWidth,
|
|
@@ -29495,7 +29502,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29495
29502
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29496
29503
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29497
29504
|
try {
|
|
29498
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29505
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CwvZ-BD6.js");
|
|
29499
29506
|
try {
|
|
29500
29507
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29501
29508
|
} catch {
|
|
@@ -29812,4 +29819,4 @@ export {
|
|
|
29812
29819
|
buildTeaserBlurFlatKeys as y,
|
|
29813
29820
|
collectFontDescriptorsFromConfig as z
|
|
29814
29821
|
};
|
|
29815
|
-
//# sourceMappingURL=index-
|
|
29822
|
+
//# sourceMappingURL=index-Bdt_4Ak_.js.map
|