@pixldocs/canvas-renderer 0.5.328 → 0.5.329

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.
@@ -13787,73 +13787,17 @@ const PageCanvas = forwardRef(
13787
13787
  const childCounterScale = hasRotatedChild ? 1 : 1 / sAxis;
13788
13788
  for (const child of obj.getObjects()) {
13789
13789
  if (child instanceof fabric.Group && (child.__cropGroup || ((_d = child._ct) == null ? void 0 : _d.isCropGroup))) {
13790
- const ct = child.__cropData;
13791
- if (!ct) continue;
13792
- if (isXSide) {
13793
- if (child.__asLiveOrigW == null) {
13794
- const baseW = child.width ?? ct.frameW ?? 0;
13795
- child.__asLiveOrigW = baseW * (child.scaleX ?? 1);
13796
- }
13797
- const origW = child.__asLiveOrigW;
13798
- const newW = Math.max(20, origW * sAxis);
13799
- if (Math.abs((child.width ?? 0) - newW) > 0.5) {
13800
- ct.frameW = newW;
13801
- child._set("width", newW);
13802
- child._set("scaleX", childCounterScale);
13803
- try {
13804
- updateCoverLayout(child);
13805
- } catch {
13806
- }
13807
- child.setCoords();
13808
- child.dirty = true;
13809
- }
13810
- } else {
13811
- if (child.__asLiveOrigH == null) {
13812
- const baseH = child.height ?? ct.frameH ?? 0;
13813
- child.__asLiveOrigH = baseH * (child.scaleY ?? 1);
13814
- }
13815
- const origH = child.__asLiveOrigH;
13816
- const newH = Math.max(20, origH * sAxis);
13817
- if (Math.abs((child.height ?? 0) - newH) > 0.5) {
13818
- ct.frameH = newH;
13819
- child._set("height", newH);
13820
- child._set("scaleY", childCounterScale);
13821
- try {
13822
- updateCoverLayout(child);
13823
- } catch {
13824
- }
13825
- child.setCoords();
13826
- child.dirty = true;
13827
- }
13828
- }
13790
+ if (isXSide) child._set("scaleX", childCounterScale);
13791
+ else child._set("scaleY", childCounterScale);
13792
+ child.setCoords();
13793
+ child.dirty = true;
13829
13794
  continue;
13830
13795
  }
13831
13796
  if (child instanceof fabric.FabricImage && !child.__cropGroup && !child.smartElementType) {
13832
- if (isXSide) {
13833
- if (child.__asLiveOrigW == null) {
13834
- child.__asLiveOrigW = (child.width ?? 0) * (child.scaleX ?? 1);
13835
- }
13836
- const origW = child.__asLiveOrigW;
13837
- const newW = Math.max(1, origW * sAxis);
13838
- if (Math.abs((child.width ?? 0) - newW) > 0.5) {
13839
- child._set("width", newW);
13840
- child._set("scaleX", childCounterScale);
13841
- child.setCoords();
13842
- child.dirty = true;
13843
- }
13844
- } else {
13845
- if (child.__asLiveOrigH == null) {
13846
- child.__asLiveOrigH = (child.height ?? 0) * (child.scaleY ?? 1);
13847
- }
13848
- const origH = child.__asLiveOrigH;
13849
- const newH = Math.max(1, origH * sAxis);
13850
- if (Math.abs((child.height ?? 0) - newH) > 0.5) {
13851
- child._set("height", newH);
13852
- child._set("scaleY", childCounterScale);
13853
- child.setCoords();
13854
- child.dirty = true;
13855
- }
13856
- }
13797
+ if (isXSide) child._set("scaleX", childCounterScale);
13798
+ else child._set("scaleY", childCounterScale);
13799
+ child.setCoords();
13800
+ child.dirty = true;
13857
13801
  continue;
13858
13802
  }
13859
13803
  if (!(child instanceof fabric.Textbox)) continue;
@@ -24268,9 +24212,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24268
24212
  }
24269
24213
  return svgString;
24270
24214
  }
24271
- const resolvedPackageVersion = "0.5.328";
24215
+ const resolvedPackageVersion = "0.5.329";
24272
24216
  const PACKAGE_VERSION = resolvedPackageVersion;
24273
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.328";
24217
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.329";
24274
24218
  const roundParityValue = (value) => {
24275
24219
  if (typeof value !== "number") return value;
24276
24220
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25084,7 +25028,7 @@ class PixldocsRenderer {
25084
25028
  await this.waitForCanvasScene(container, cloned, i);
25085
25029
  }
25086
25030
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25087
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CKg43wpe.js");
25031
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BhmhaCT1.js");
25088
25032
  const prepared = preparePagesForExport(
25089
25033
  cloned.pages,
25090
25034
  canvasWidth,
@@ -27404,7 +27348,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27404
27348
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27405
27349
  sanitizeSvgTreeForPdf(svgToDraw);
27406
27350
  try {
27407
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CKg43wpe.js");
27351
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BhmhaCT1.js");
27408
27352
  try {
27409
27353
  await logTextMeasurementDiagnostic(svgToDraw);
27410
27354
  } catch {
@@ -27804,4 +27748,4 @@ export {
27804
27748
  buildTeaserBlurFlatKeys as y,
27805
27749
  collectFontDescriptorsFromConfig as z
27806
27750
  };
27807
- //# sourceMappingURL=index-36ORX_k2.js.map
27751
+ //# sourceMappingURL=index-K53gPk1O.js.map