@pixldocs/canvas-renderer 0.5.366 → 0.5.367

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.
@@ -12840,6 +12840,7 @@ const PageCanvas = react.forwardRef(
12840
12840
  };
12841
12841
  fabricCanvas.on("selection:created", () => {
12842
12842
  var _a2;
12843
+ if (suppressObjectModifiedDuringInternalReselectRef.current) return;
12843
12844
  syncSelectionToStore();
12844
12845
  const activeObj = fabricCanvas.getActiveObject();
12845
12846
  if (activeObj instanceof fabric__namespace.ActiveSelection) applyWarpAwareSelectionBorders(activeObj);
@@ -12852,6 +12853,7 @@ const PageCanvas = react.forwardRef(
12852
12853
  });
12853
12854
  fabricCanvas.on("selection:updated", () => {
12854
12855
  var _a2;
12856
+ if (suppressObjectModifiedDuringInternalReselectRef.current) return;
12855
12857
  const next = fabricCanvas.getActiveObject();
12856
12858
  const isLogicalGroupSel = next instanceof fabric__namespace.ActiveSelection && (next.__pixldocsGroupSelection || Array.isArray(next.__pixldocsLogicalGroupIds));
12857
12859
  if (!isLogicalGroupSel) restoreSuppressedGroupBorders();
@@ -15575,7 +15577,8 @@ const PageCanvas = react.forwardRef(
15575
15577
  groupSelectionId: wasGroupSel,
15576
15578
  expiresAt: Date.now() + 1200
15577
15579
  };
15578
- recentGroupSelectionRestoreRef.current = resizeRestoreSnapshot;
15580
+ preserveActiveSelectionAfterTransformRef.current = null;
15581
+ recentGroupSelectionRestoreRef.current = null;
15579
15582
  }
15580
15583
  fabricCanvas.requestRenderAll();
15581
15584
  }
@@ -24624,9 +24627,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24624
24627
  }
24625
24628
  return svgString;
24626
24629
  }
24627
- const resolvedPackageVersion = "0.5.366";
24630
+ const resolvedPackageVersion = "0.5.367";
24628
24631
  const PACKAGE_VERSION = resolvedPackageVersion;
24629
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.366";
24632
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.367";
24630
24633
  const roundParityValue = (value) => {
24631
24634
  if (typeof value !== "number") return value;
24632
24635
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25440,7 +25443,7 @@ class PixldocsRenderer {
25440
25443
  await this.waitForCanvasScene(container, cloned, i);
25441
25444
  }
25442
25445
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25443
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CKZP3dKs.cjs"));
25446
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-IZ_tpeyw.cjs"));
25444
25447
  const prepared = preparePagesForExport(
25445
25448
  cloned.pages,
25446
25449
  canvasWidth,
@@ -27760,7 +27763,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27760
27763
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27761
27764
  sanitizeSvgTreeForPdf(svgToDraw);
27762
27765
  try {
27763
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CKZP3dKs.cjs"));
27766
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-IZ_tpeyw.cjs"));
27764
27767
  try {
27765
27768
  await logTextMeasurementDiagnostic(svgToDraw);
27766
27769
  } catch {
@@ -28157,4 +28160,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
28157
28160
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
28158
28161
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
28159
28162
  exports.warmTemplateFromForm = warmTemplateFromForm;
28160
- //# sourceMappingURL=index-HiqL7bUV.cjs.map
28163
+ //# sourceMappingURL=index-CG1dGppw.cjs.map