@pixldocs/canvas-renderer 0.5.476 → 0.5.478
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-NvHV65YD.cjs → index-DfgZSWwY.cjs} +8 -7
- package/dist/index-DfgZSWwY.cjs.map +1 -0
- package/dist/{index-DdWNxAHH.js → index-dIB1dZvd.js} +8 -7
- package/dist/index-dIB1dZvd.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-z8aNYx-V.cjs → vectorPdfExport-B19SgYHz.cjs} +4 -4
- package/dist/{vectorPdfExport-z8aNYx-V.cjs.map → vectorPdfExport-B19SgYHz.cjs.map} +1 -1
- package/dist/{vectorPdfExport-hxP9CjSA.js → vectorPdfExport-BWLQD50V.js} +4 -4
- package/dist/{vectorPdfExport-hxP9CjSA.js.map → vectorPdfExport-BWLQD50V.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DdWNxAHH.js.map +0 -1
- package/dist/index-NvHV65YD.cjs.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) {
|
|
@@ -26354,9 +26355,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26354
26355
|
}
|
|
26355
26356
|
return svgString;
|
|
26356
26357
|
}
|
|
26357
|
-
const resolvedPackageVersion = "0.5.
|
|
26358
|
+
const resolvedPackageVersion = "0.5.478";
|
|
26358
26359
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26359
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26360
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.478";
|
|
26360
26361
|
const roundParityValue = (value) => {
|
|
26361
26362
|
if (typeof value !== "number") return value;
|
|
26362
26363
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27170,7 +27171,7 @@ class PixldocsRenderer {
|
|
|
27170
27171
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27171
27172
|
}
|
|
27172
27173
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27173
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27174
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BWLQD50V.js");
|
|
27174
27175
|
const prepared = preparePagesForExport(
|
|
27175
27176
|
cloned.pages,
|
|
27176
27177
|
canvasWidth,
|
|
@@ -29490,7 +29491,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29490
29491
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29491
29492
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29492
29493
|
try {
|
|
29493
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29494
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BWLQD50V.js");
|
|
29494
29495
|
try {
|
|
29495
29496
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29496
29497
|
} catch {
|
|
@@ -29807,4 +29808,4 @@ export {
|
|
|
29807
29808
|
buildTeaserBlurFlatKeys as y,
|
|
29808
29809
|
collectFontDescriptorsFromConfig as z
|
|
29809
29810
|
};
|
|
29810
|
-
//# sourceMappingURL=index-
|
|
29811
|
+
//# sourceMappingURL=index-dIB1dZvd.js.map
|