@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.
@@ -18968,7 +18968,8 @@ const PageCanvas = forwardRef(
18968
18968
  const splitByGrapheme = overflowPolicy === "auto-shrink" ? false : element.splitByGrapheme ?? element.wordWrap === "break-word";
18969
18969
  if (overflowPolicy === "auto-shrink") {
18970
18970
  const minBoxHForShrink = Math.max(0, Number(element.minBoxHeight) || 0);
18971
- const heightBound = Math.max(rH || 0, minBoxHForShrink);
18971
+ const elementHeight = typeof element.height === "number" ? element.height : 0;
18972
+ const heightBound = Math.max(elementHeight, minBoxHForShrink);
18972
18973
  while (fontSize > 1) {
18973
18974
  const testTextbox = new fabric.Textbox(text, {
18974
18975
  width: fixedWidth,
@@ -26422,9 +26423,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
26422
26423
  }
26423
26424
  return svgString;
26424
26425
  }
26425
- const resolvedPackageVersion = "0.5.487";
26426
+ const resolvedPackageVersion = "0.5.488";
26426
26427
  const PACKAGE_VERSION = resolvedPackageVersion;
26427
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.487";
26428
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.488";
26428
26429
  const roundParityValue = (value) => {
26429
26430
  if (typeof value !== "number") return value;
26430
26431
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -27238,7 +27239,7 @@ class PixldocsRenderer {
27238
27239
  await this.waitForCanvasScene(container, cloned, i);
27239
27240
  }
27240
27241
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
27241
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CjRFYSDp.js");
27242
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-jRSKADbv.js");
27242
27243
  const prepared = preparePagesForExport(
27243
27244
  cloned.pages,
27244
27245
  canvasWidth,
@@ -29558,7 +29559,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
29558
29559
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
29559
29560
  sanitizeSvgTreeForPdf(svgToDraw);
29560
29561
  try {
29561
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CjRFYSDp.js");
29562
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-jRSKADbv.js");
29562
29563
  try {
29563
29564
  await logTextMeasurementDiagnostic(svgToDraw);
29564
29565
  } catch {
@@ -29875,4 +29876,4 @@ export {
29875
29876
  buildTeaserBlurFlatKeys as y,
29876
29877
  collectFontDescriptorsFromConfig as z
29877
29878
  };
29878
- //# sourceMappingURL=index-CqRau2aM.js.map
29879
+ //# sourceMappingURL=index-D0tFaSTn.js.map