@pixldocs/canvas-renderer 0.5.263 → 0.5.265

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.
@@ -13803,6 +13803,19 @@ const PageCanvas = react.forwardRef(
13803
13803
  prepareGroupSelectionTransformStart(e.target);
13804
13804
  markTransforming(e.target);
13805
13805
  didTransformRef.current = true;
13806
+ const activeDuringMove = fabricCanvas.getActiveObject();
13807
+ const movingLogicalGroupId = activeDuringMove instanceof fabric__namespace.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
13808
+ const pendingMoveDrill = pendingGroupDrillInRef.current;
13809
+ if (movingLogicalGroupId || pendingMoveDrill) {
13810
+ const groupIdToKeep = movingLogicalGroupId ?? (pendingMoveDrill == null ? void 0 : pendingMoveDrill.groupId);
13811
+ pendingGroupDrillInRef.current = null;
13812
+ fabricCanvas.__activeEditingGroupId = null;
13813
+ setDrilledGroupBounds(null);
13814
+ drilledGroupIdRef.current = null;
13815
+ if (activeDuringMove instanceof fabric__namespace.ActiveSelection && groupIdToKeep) {
13816
+ restoreGroupSelectionVisualState(activeDuringMove, groupIdToKeep);
13817
+ }
13818
+ }
13806
13819
  if (e.target) e.target.__pixldocsDragMoved = true;
13807
13820
  const moveTargetId = e.target ? getObjectId(e.target) : null;
13808
13821
  if (moveTargetId && moveTargetId !== "__background__") {
@@ -14260,12 +14273,18 @@ const PageCanvas = react.forwardRef(
14260
14273
  const newTop = (groupToMove.top ?? 0) + deltaY;
14261
14274
  updateNodeStore(groupToMove.id, { left: newLeft, top: newTop }, { recordHistory: false, skipLayoutRecalc: true });
14262
14275
  commitHistoryStore();
14276
+ pendingGroupDrillInRef.current = null;
14277
+ fabricCanvas.__activeEditingGroupId = null;
14278
+ setDrilledGroupBounds(null);
14279
+ drilledGroupIdRef.current = null;
14263
14280
  const groupSelectionId = (isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
14264
14281
  const targetObjects = isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.getObjects() : activeObjects;
14265
14282
  if (groupSelectionId && activeObj instanceof fabric__namespace.ActiveSelection) {
14266
14283
  restoreGroupSelectionVisualState(activeObj, groupSelectionId);
14284
+ fabricCanvas.setActiveObject(activeObj);
14267
14285
  activeObj.setCoords();
14268
14286
  }
14287
+ selectElements([groupSelectionId], false, false);
14269
14288
  fabricCanvas.requestRenderAll();
14270
14289
  elementsRef.current = getCurrentElements();
14271
14290
  for (const obj of targetObjects) {
@@ -23604,9 +23623,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
23604
23623
  }
23605
23624
  return svgString;
23606
23625
  }
23607
- const resolvedPackageVersion = "0.5.263";
23626
+ const resolvedPackageVersion = "0.5.265";
23608
23627
  const PACKAGE_VERSION = resolvedPackageVersion;
23609
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.263";
23628
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.265";
23610
23629
  const roundParityValue = (value) => {
23611
23630
  if (typeof value !== "number") return value;
23612
23631
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -24420,7 +24439,7 @@ class PixldocsRenderer {
24420
24439
  await this.waitForCanvasScene(container, cloned, i);
24421
24440
  }
24422
24441
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
24423
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CQaTnVce.cjs"));
24442
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-C_SPH6M3.cjs"));
24424
24443
  const prepared = preparePagesForExport(
24425
24444
  cloned.pages,
24426
24445
  canvasWidth,
@@ -26740,7 +26759,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
26740
26759
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
26741
26760
  sanitizeSvgTreeForPdf(svgToDraw);
26742
26761
  try {
26743
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CQaTnVce.cjs"));
26762
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-C_SPH6M3.cjs"));
26744
26763
  try {
26745
26764
  await logTextMeasurementDiagnostic(svgToDraw);
26746
26765
  } catch {
@@ -27137,4 +27156,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
27137
27156
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
27138
27157
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
27139
27158
  exports.warmTemplateFromForm = warmTemplateFromForm;
27140
- //# sourceMappingURL=index-Do_N0g_B.cjs.map
27159
+ //# sourceMappingURL=index-8qmW0_0N.cjs.map