@pixldocs/canvas-renderer 0.5.309 → 0.5.310

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.
@@ -14625,47 +14625,6 @@ const PageCanvas = forwardRef(
14625
14625
  unlockEditsSoon();
14626
14626
  return;
14627
14627
  }
14628
- if (hadRotation && !hadScale && isActiveSelection && activeObj instanceof fabric.ActiveSelection && !isStackLayoutMode(groupToMove.layoutMode)) {
14629
- const groupSelectionId = activeObj.__pixldocsGroupSelection ?? groupToMove.id;
14630
- const newAngle = ((activeObj.angle ?? 0) % 360 + 360) % 360;
14631
- const { updateNode: updateNodeStore, commitHistory: commitHistoryStore, getCurrentElements } = useEditorStore.getState();
14632
- const rotPatch = { angle: newAngle === 0 ? void 0 : newAngle };
14633
- if (Math.abs(deltaX) > 0.1) rotPatch.left = (groupToMove.left ?? 0) + deltaX;
14634
- if (Math.abs(deltaY) > 0.1) rotPatch.top = (groupToMove.top ?? 0) + deltaY;
14635
- updateNodeStore(groupToMove.id, rotPatch, { recordHistory: false, skipLayoutRecalc: true });
14636
- commitHistoryStore();
14637
- pendingGroupDrillInRef.current = null;
14638
- fabricCanvas.__activeEditingGroupId = null;
14639
- setDrilledGroupBounds(null);
14640
- drilledGroupIdRef.current = null;
14641
- if (groupSelectionId) {
14642
- restoreGroupSelectionVisualState(activeObj, groupSelectionId);
14643
- fabricCanvas.setActiveObject(activeObj);
14644
- activeObj.setCoords();
14645
- }
14646
- selectElements([groupSelectionId], false, false);
14647
- fabricCanvas.requestRenderAll();
14648
- elementsRef.current = getCurrentElements();
14649
- const rotTargets = activeObj.getObjects();
14650
- for (const o of rotTargets) {
14651
- const oid = getObjectId(o);
14652
- if (oid && oid !== "__background__") {
14653
- justModifiedIdsRef.current.add(oid);
14654
- modifiedIdsThisRound.add(oid);
14655
- }
14656
- }
14657
- setTimeout(() => modifiedIdsThisRound.forEach((id) => justModifiedIdsRef.current.delete(id)), 150);
14658
- groupSelectionTransformStartRef.current = null;
14659
- const rotSnapshot = {
14660
- memberIds: rotTargets.map((o) => getObjectId(o)).filter((id) => !!id && id !== "__background__"),
14661
- groupSelectionId,
14662
- expiresAt: Date.now() + 1200
14663
- };
14664
- recentGroupSelectionRestoreRef.current = rotSnapshot;
14665
- restorePreservedGroupSelectionSoon(rotSnapshot);
14666
- unlockEditsSoon();
14667
- return;
14668
- }
14669
14628
  }
14670
14629
  }
14671
14630
  const pendingCropGroupFrameBakes = [];
@@ -24251,9 +24210,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24251
24210
  }
24252
24211
  return svgString;
24253
24212
  }
24254
- const resolvedPackageVersion = "0.5.309";
24213
+ const resolvedPackageVersion = "0.5.310";
24255
24214
  const PACKAGE_VERSION = resolvedPackageVersion;
24256
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.309";
24215
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.310";
24257
24216
  const roundParityValue = (value) => {
24258
24217
  if (typeof value !== "number") return value;
24259
24218
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25067,7 +25026,7 @@ class PixldocsRenderer {
25067
25026
  await this.waitForCanvasScene(container, cloned, i);
25068
25027
  }
25069
25028
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25070
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-1wNO6G60.js");
25029
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-iBVh67qr.js");
25071
25030
  const prepared = preparePagesForExport(
25072
25031
  cloned.pages,
25073
25032
  canvasWidth,
@@ -27387,7 +27346,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27387
27346
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27388
27347
  sanitizeSvgTreeForPdf(svgToDraw);
27389
27348
  try {
27390
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-1wNO6G60.js");
27349
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-iBVh67qr.js");
27391
27350
  try {
27392
27351
  await logTextMeasurementDiagnostic(svgToDraw);
27393
27352
  } catch {
@@ -27787,4 +27746,4 @@ export {
27787
27746
  buildTeaserBlurFlatKeys as y,
27788
27747
  collectFontDescriptorsFromConfig as z
27789
27748
  };
27790
- //# sourceMappingURL=index-Dl6fYmUm.js.map
27749
+ //# sourceMappingURL=index-DiALQM5h.js.map