@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.
@@ -12822,6 +12822,7 @@ const PageCanvas = forwardRef(
12822
12822
  };
12823
12823
  fabricCanvas.on("selection:created", () => {
12824
12824
  var _a2;
12825
+ if (suppressObjectModifiedDuringInternalReselectRef.current) return;
12825
12826
  syncSelectionToStore();
12826
12827
  const activeObj = fabricCanvas.getActiveObject();
12827
12828
  if (activeObj instanceof fabric.ActiveSelection) applyWarpAwareSelectionBorders(activeObj);
@@ -12834,6 +12835,7 @@ const PageCanvas = forwardRef(
12834
12835
  });
12835
12836
  fabricCanvas.on("selection:updated", () => {
12836
12837
  var _a2;
12838
+ if (suppressObjectModifiedDuringInternalReselectRef.current) return;
12837
12839
  const next = fabricCanvas.getActiveObject();
12838
12840
  const isLogicalGroupSel = next instanceof fabric.ActiveSelection && (next.__pixldocsGroupSelection || Array.isArray(next.__pixldocsLogicalGroupIds));
12839
12841
  if (!isLogicalGroupSel) restoreSuppressedGroupBorders();
@@ -15557,7 +15559,8 @@ const PageCanvas = forwardRef(
15557
15559
  groupSelectionId: wasGroupSel,
15558
15560
  expiresAt: Date.now() + 1200
15559
15561
  };
15560
- recentGroupSelectionRestoreRef.current = resizeRestoreSnapshot;
15562
+ preserveActiveSelectionAfterTransformRef.current = null;
15563
+ recentGroupSelectionRestoreRef.current = null;
15561
15564
  }
15562
15565
  fabricCanvas.requestRenderAll();
15563
15566
  }
@@ -24606,9 +24609,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24606
24609
  }
24607
24610
  return svgString;
24608
24611
  }
24609
- const resolvedPackageVersion = "0.5.366";
24612
+ const resolvedPackageVersion = "0.5.367";
24610
24613
  const PACKAGE_VERSION = resolvedPackageVersion;
24611
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.366";
24614
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.367";
24612
24615
  const roundParityValue = (value) => {
24613
24616
  if (typeof value !== "number") return value;
24614
24617
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25422,7 +25425,7 @@ class PixldocsRenderer {
25422
25425
  await this.waitForCanvasScene(container, cloned, i);
25423
25426
  }
25424
25427
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25425
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CDFFtLFe.js");
25428
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DvcAOjPg.js");
25426
25429
  const prepared = preparePagesForExport(
25427
25430
  cloned.pages,
25428
25431
  canvasWidth,
@@ -27742,7 +27745,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27742
27745
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27743
27746
  sanitizeSvgTreeForPdf(svgToDraw);
27744
27747
  try {
27745
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CDFFtLFe.js");
27748
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DvcAOjPg.js");
27746
27749
  try {
27747
27750
  await logTextMeasurementDiagnostic(svgToDraw);
27748
27751
  } catch {
@@ -28142,4 +28145,4 @@ export {
28142
28145
  buildTeaserBlurFlatKeys as y,
28143
28146
  collectFontDescriptorsFromConfig as z
28144
28147
  };
28145
- //# sourceMappingURL=index-B-g_kXIT.js.map
28148
+ //# sourceMappingURL=index-BeQl1M5I.js.map