@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
|
@@ -878,8 +878,9 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
|
|
|
878
878
|
prevRight = effectiveLeft + w + (child.marginRight ?? 0);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
const
|
|
882
|
-
const
|
|
881
|
+
const usesExplicitContainer = !group.hugContent;
|
|
882
|
+
const containerW = usesExplicitContainer && typeof group.width === "number" ? group.width : void 0;
|
|
883
|
+
const containerH = usesExplicitContainer && typeof group.height === "number" ? group.height : void 0;
|
|
883
884
|
const mainContainer = isVertical ? containerH : containerW;
|
|
884
885
|
let crossContainer = isVertical ? containerW : containerH;
|
|
885
886
|
if (crossContainer == null && kids.length > 0) {
|
|
@@ -1010,10 +1011,14 @@ function groupBoundsFromChildren(group, pageChildren, options) {
|
|
|
1010
1011
|
if (isStack) {
|
|
1011
1012
|
const padRight = group.paddingRight ?? 0;
|
|
1012
1013
|
const padBottom = group.paddingBottom ?? 0;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1014
|
+
const contentW = Math.max(1, maxX + padRight);
|
|
1015
|
+
const contentH = Math.max(1, maxY + padBottom);
|
|
1016
|
+
if (group.hugContent === false) {
|
|
1017
|
+
const storedW = typeof group.width === "number" && group.width > 0 ? group.width : contentW;
|
|
1018
|
+
const storedH = typeof group.height === "number" && group.height > 0 ? group.height : contentH;
|
|
1019
|
+
return { width: Math.max(1, storedW), height: Math.max(1, storedH) };
|
|
1020
|
+
}
|
|
1021
|
+
return { width: contentW, height: contentH };
|
|
1017
1022
|
}
|
|
1018
1023
|
return {
|
|
1019
1024
|
width: Math.max(1, maxX - minX),
|
|
@@ -26372,9 +26377,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26372
26377
|
}
|
|
26373
26378
|
return svgString;
|
|
26374
26379
|
}
|
|
26375
|
-
const resolvedPackageVersion = "0.5.
|
|
26380
|
+
const resolvedPackageVersion = "0.5.479";
|
|
26376
26381
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26377
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26382
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.479";
|
|
26378
26383
|
const roundParityValue = (value) => {
|
|
26379
26384
|
if (typeof value !== "number") return value;
|
|
26380
26385
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27188,7 +27193,7 @@ class PixldocsRenderer {
|
|
|
27188
27193
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27189
27194
|
}
|
|
27190
27195
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27191
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27196
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DtQDA2s0.cjs"));
|
|
27192
27197
|
const prepared = preparePagesForExport(
|
|
27193
27198
|
cloned.pages,
|
|
27194
27199
|
canvasWidth,
|
|
@@ -29508,7 +29513,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29508
29513
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29509
29514
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29510
29515
|
try {
|
|
29511
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
29516
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DtQDA2s0.cjs"));
|
|
29512
29517
|
try {
|
|
29513
29518
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29514
29519
|
} catch {
|
|
@@ -29822,4 +29827,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29822
29827
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29823
29828
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29824
29829
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29825
|
-
//# sourceMappingURL=index-
|
|
29830
|
+
//# sourceMappingURL=index-HdyrEZYv.cjs.map
|