@pixldocs/canvas-renderer 0.5.273 → 0.5.274

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.
@@ -15025,7 +15025,9 @@ const PageCanvas = forwardRef(
15025
15025
  applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
15026
15026
  }
15027
15027
  fc.setActiveObject(newSel);
15028
- newSel.setCoords();
15028
+ if (!(activeSelectionSnapshot.groupSelectionId && newSel.getObjects().every((obj) => !(obj instanceof fabric.Group)))) {
15029
+ newSel.setCoords();
15030
+ }
15029
15031
  fc.requestRenderAll();
15030
15032
  } finally {
15031
15033
  isSyncingSelectionToFabricRef.current = false;
@@ -15806,7 +15808,9 @@ const PageCanvas = forwardRef(
15806
15808
  applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
15807
15809
  }
15808
15810
  fc.setActiveObject(newSel);
15809
- newSel.setCoords();
15811
+ if (!(activeSelectionSnapshot.groupSelectionId && newSel.getObjects().every((obj) => !(obj instanceof fabric.Group)))) {
15812
+ newSel.setCoords();
15813
+ }
15810
15814
  fc.requestRenderAll();
15811
15815
  } finally {
15812
15816
  isSyncingSelectionToFabricRef.current = false;
@@ -23757,9 +23761,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23757
23761
  }
23758
23762
  return svgString;
23759
23763
  }
23760
- const resolvedPackageVersion = "0.5.273";
23764
+ const resolvedPackageVersion = "0.5.274";
23761
23765
  const PACKAGE_VERSION = resolvedPackageVersion;
23762
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.273";
23766
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.274";
23763
23767
  const roundParityValue = (value) => {
23764
23768
  if (typeof value !== "number") return value;
23765
23769
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24573,7 +24577,7 @@ class PixldocsRenderer {
24573
24577
  await this.waitForCanvasScene(container, cloned, i);
24574
24578
  }
24575
24579
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24576
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-D4O4QFHJ.js");
24580
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-oOUmmqgb.js");
24577
24581
  const prepared = preparePagesForExport(
24578
24582
  cloned.pages,
24579
24583
  canvasWidth,
@@ -26893,7 +26897,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
26893
26897
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
26894
26898
  sanitizeSvgTreeForPdf(svgToDraw);
26895
26899
  try {
26896
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-D4O4QFHJ.js");
26900
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-oOUmmqgb.js");
26897
26901
  try {
26898
26902
  await logTextMeasurementDiagnostic(svgToDraw);
26899
26903
  } catch {
@@ -27293,4 +27297,4 @@ export {
27293
27297
  buildTeaserBlurFlatKeys as y,
27294
27298
  collectFontDescriptorsFromConfig as z
27295
27299
  };
27296
- //# sourceMappingURL=index-DCqQEnix.js.map
27300
+ //# sourceMappingURL=index-C3onaRVR.js.map