@pixldocs/canvas-renderer 0.5.487 → 0.5.488

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.
@@ -18986,7 +18986,8 @@ const PageCanvas = react.forwardRef(
18986
18986
  const splitByGrapheme = overflowPolicy === "auto-shrink" ? false : element.splitByGrapheme ?? element.wordWrap === "break-word";
18987
18987
  if (overflowPolicy === "auto-shrink") {
18988
18988
  const minBoxHForShrink = Math.max(0, Number(element.minBoxHeight) || 0);
18989
- const heightBound = Math.max(rH || 0, minBoxHForShrink);
18989
+ const elementHeight = typeof element.height === "number" ? element.height : 0;
18990
+ const heightBound = Math.max(elementHeight, minBoxHForShrink);
18990
18991
  while (fontSize > 1) {
18991
18992
  const testTextbox = new fabric__namespace.Textbox(text, {
18992
18993
  width: fixedWidth,
@@ -26440,9 +26441,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26440
26441
  }
26441
26442
  return svgString;
26442
26443
  }
26443
- const resolvedPackageVersion = "0.5.487";
26444
+ const resolvedPackageVersion = "0.5.488";
26444
26445
  const PACKAGE_VERSION = resolvedPackageVersion;
26445
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.487";
26446
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.488";
26446
26447
  const roundParityValue = (value) => {
26447
26448
  if (typeof value !== "number") return value;
26448
26449
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27256,7 +27257,7 @@ class PixldocsRenderer {
27256
27257
  await this.waitForCanvasScene(container, cloned, i);
27257
27258
  }
27258
27259
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27259
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-SQN2BQR0.cjs"));
27260
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CoHsXSrT.cjs"));
27260
27261
  const prepared = preparePagesForExport(
27261
27262
  cloned.pages,
27262
27263
  canvasWidth,
@@ -29576,7 +29577,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29576
29577
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29577
29578
  sanitizeSvgTreeForPdf(svgToDraw);
29578
29579
  try {
29579
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-SQN2BQR0.cjs"));
29580
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CoHsXSrT.cjs"));
29580
29581
  try {
29581
29582
  await logTextMeasurementDiagnostic(svgToDraw);
29582
29583
  } catch {
@@ -29890,4 +29891,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29890
29891
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29891
29892
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29892
29893
  exports.warmTemplateFromForm = warmTemplateFromForm;
29893
- //# sourceMappingURL=index-eyHORcg9.cjs.map
29894
+ //# sourceMappingURL=index-0K5eJY1O.cjs.map