@pixldocs/canvas-renderer 0.5.298 → 0.5.299

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.
@@ -13600,6 +13600,34 @@ const PageCanvas = forwardRef(
13600
13600
  const asRect0 = obj.getBoundingRect();
13601
13601
  let didReflowTextChild = false;
13602
13602
  for (const child of obj.getObjects()) {
13603
+ if (child instanceof fabric.FabricImage && !child.__cropGroup && !child.smartElementType) {
13604
+ if (isXSide) {
13605
+ if (child.__asLiveOrigW == null) {
13606
+ child.__asLiveOrigW = (child.width ?? 0) * (child.scaleX ?? 1);
13607
+ }
13608
+ const origW = child.__asLiveOrigW;
13609
+ const newW = Math.max(1, origW * sAxis);
13610
+ if (Math.abs((child.width ?? 0) - newW) > 0.5) {
13611
+ child._set("width", newW);
13612
+ child._set("scaleX", 1 / sAxis);
13613
+ child.setCoords();
13614
+ child.dirty = true;
13615
+ }
13616
+ } else {
13617
+ if (child.__asLiveOrigH == null) {
13618
+ child.__asLiveOrigH = (child.height ?? 0) * (child.scaleY ?? 1);
13619
+ }
13620
+ const origH = child.__asLiveOrigH;
13621
+ const newH = Math.max(1, origH * sAxis);
13622
+ if (Math.abs((child.height ?? 0) - newH) > 0.5) {
13623
+ child._set("height", newH);
13624
+ child._set("scaleY", 1 / sAxis);
13625
+ child.setCoords();
13626
+ child.dirty = true;
13627
+ }
13628
+ }
13629
+ continue;
13630
+ }
13603
13631
  if (!(child instanceof fabric.Textbox)) continue;
13604
13632
  if (isXSide) {
13605
13633
  if (child.__asLiveOrigW == null) {
@@ -23927,9 +23955,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23927
23955
  }
23928
23956
  return svgString;
23929
23957
  }
23930
- const resolvedPackageVersion = "0.5.298";
23958
+ const resolvedPackageVersion = "0.5.299";
23931
23959
  const PACKAGE_VERSION = resolvedPackageVersion;
23932
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.298";
23960
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.299";
23933
23961
  const roundParityValue = (value) => {
23934
23962
  if (typeof value !== "number") return value;
23935
23963
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24743,7 +24771,7 @@ class PixldocsRenderer {
24743
24771
  await this.waitForCanvasScene(container, cloned, i);
24744
24772
  }
24745
24773
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24746
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CL-maCe-.js");
24774
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-C1obEkji.js");
24747
24775
  const prepared = preparePagesForExport(
24748
24776
  cloned.pages,
24749
24777
  canvasWidth,
@@ -27063,7 +27091,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27063
27091
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27064
27092
  sanitizeSvgTreeForPdf(svgToDraw);
27065
27093
  try {
27066
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CL-maCe-.js");
27094
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-C1obEkji.js");
27067
27095
  try {
27068
27096
  await logTextMeasurementDiagnostic(svgToDraw);
27069
27097
  } catch {
@@ -27463,4 +27491,4 @@ export {
27463
27491
  buildTeaserBlurFlatKeys as y,
27464
27492
  collectFontDescriptorsFromConfig as z
27465
27493
  };
27466
- //# sourceMappingURL=index-72P860wB.js.map
27494
+ //# sourceMappingURL=index-Ddn4TvlA.js.map