@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
|
@@ -895,7 +895,11 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
895
895
|
const crossPadEnd = isVertical ? padRight : padBottom;
|
|
896
896
|
crossContainer = maxCross + crossPad0 + crossPadEnd;
|
|
897
897
|
}
|
|
898
|
-
|
|
898
|
+
const anyChildOverride = kids.some((c) => {
|
|
899
|
+
const v = c.alignSelf;
|
|
900
|
+
return typeof v === "string" && v !== "auto";
|
|
901
|
+
});
|
|
902
|
+
if ((align !== "start" || anyChildOverride) && crossContainer != null && kids.length > 0) {
|
|
899
903
|
const crossPad0 = isVertical ? padLeft : padTop;
|
|
900
904
|
const crossPadEnd = isVertical ? padRight : padBottom;
|
|
901
905
|
const innerCross = Math.max(0, crossContainer - crossPad0 - crossPadEnd);
|
|
@@ -904,10 +908,13 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
904
908
|
if (!pos) continue;
|
|
905
909
|
const sz = sizes.get(child.id);
|
|
906
910
|
const childCross = isVertical ? sz.width : sz.height;
|
|
911
|
+
const selfRaw = child.alignSelf;
|
|
912
|
+
const effective = selfRaw && selfRaw !== "auto" ? selfRaw : align;
|
|
913
|
+
if (effective === "start") continue;
|
|
907
914
|
let crossPos;
|
|
908
|
-
if (
|
|
915
|
+
if (effective === "stretch") {
|
|
909
916
|
crossPos = crossPad0;
|
|
910
|
-
} else if (
|
|
917
|
+
} else if (effective === "center") {
|
|
911
918
|
crossPos = crossPad0 + (innerCross - childCross) / 2;
|
|
912
919
|
} else {
|
|
913
920
|
crossPos = crossPad0 + (innerCross - childCross);
|
|
@@ -26377,9 +26384,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26377
26384
|
}
|
|
26378
26385
|
return svgString;
|
|
26379
26386
|
}
|
|
26380
|
-
const resolvedPackageVersion = "0.5.
|
|
26387
|
+
const resolvedPackageVersion = "0.5.480";
|
|
26381
26388
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26382
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26389
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.480";
|
|
26383
26390
|
const roundParityValue = (value) => {
|
|
26384
26391
|
if (typeof value !== "number") return value;
|
|
26385
26392
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27193,7 +27200,7 @@ class PixldocsRenderer {
|
|
|
27193
27200
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27194
27201
|
}
|
|
27195
27202
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27196
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27203
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-8y-rUG9Q.cjs"));
|
|
27197
27204
|
const prepared = preparePagesForExport(
|
|
27198
27205
|
cloned.pages,
|
|
27199
27206
|
canvasWidth,
|
|
@@ -29513,7 +29520,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29513
29520
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29514
29521
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29515
29522
|
try {
|
|
29516
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
29523
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-8y-rUG9Q.cjs"));
|
|
29517
29524
|
try {
|
|
29518
29525
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29519
29526
|
} catch {
|
|
@@ -29827,4 +29834,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29827
29834
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29828
29835
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29829
29836
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29830
|
-
//# sourceMappingURL=index-
|
|
29837
|
+
//# sourceMappingURL=index-BvNexoyT.cjs.map
|