@pixldocs/canvas-renderer 0.5.477 → 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.
@@ -878,8 +878,9 @@ function resolveStackGroupEffectivePositions(group, pageChildren, options) {
878
878
  prevRight = effectiveLeft + w + (child.marginRight ?? 0);
879
879
  }
880
880
  }
881
- const containerW = typeof group.width === "number" ? group.width : void 0;
882
- const containerH = typeof group.height === "number" ? group.height : void 0;
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) {
@@ -26372,9 +26373,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26372
26373
  }
26373
26374
  return svgString;
26374
26375
  }
26375
- const resolvedPackageVersion = "0.5.477";
26376
+ const resolvedPackageVersion = "0.5.478";
26376
26377
  const PACKAGE_VERSION = resolvedPackageVersion;
26377
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.477";
26378
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.478";
26378
26379
  const roundParityValue = (value) => {
26379
26380
  if (typeof value !== "number") return value;
26380
26381
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27188,7 +27189,7 @@ class PixldocsRenderer {
27188
27189
  await this.waitForCanvasScene(container, cloned, i);
27189
27190
  }
27190
27191
  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-CNpb3Wvc.cjs"));
27192
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-B19SgYHz.cjs"));
27192
27193
  const prepared = preparePagesForExport(
27193
27194
  cloned.pages,
27194
27195
  canvasWidth,
@@ -29508,7 +29509,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29508
29509
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29509
29510
  sanitizeSvgTreeForPdf(svgToDraw);
29510
29511
  try {
29511
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CNpb3Wvc.cjs"));
29512
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-B19SgYHz.cjs"));
29512
29513
  try {
29513
29514
  await logTextMeasurementDiagnostic(svgToDraw);
29514
29515
  } catch {
@@ -29822,4 +29823,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29822
29823
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29823
29824
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29824
29825
  exports.warmTemplateFromForm = warmTemplateFromForm;
29825
- //# sourceMappingURL=index-CgUTQx0-.cjs.map
29826
+ //# sourceMappingURL=index-DfgZSWwY.cjs.map