@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.
@@ -14643,47 +14643,6 @@ const PageCanvas = react.forwardRef(
14643
14643
  unlockEditsSoon();
14644
14644
  return;
14645
14645
  }
14646
- if (hadRotation && !hadScale && isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection && !isStackLayoutMode(groupToMove.layoutMode)) {
14647
- const groupSelectionId = activeObj.__pixldocsGroupSelection ?? groupToMove.id;
14648
- const newAngle = ((activeObj.angle ?? 0) % 360 + 360) % 360;
14649
- const { updateNode: updateNodeStore, commitHistory: commitHistoryStore, getCurrentElements } = useEditorStore.getState();
14650
- const rotPatch = { angle: newAngle === 0 ? void 0 : newAngle };
14651
- if (Math.abs(deltaX) > 0.1) rotPatch.left = (groupToMove.left ?? 0) + deltaX;
14652
- if (Math.abs(deltaY) > 0.1) rotPatch.top = (groupToMove.top ?? 0) + deltaY;
14653
- updateNodeStore(groupToMove.id, rotPatch, { recordHistory: false, skipLayoutRecalc: true });
14654
- commitHistoryStore();
14655
- pendingGroupDrillInRef.current = null;
14656
- fabricCanvas.__activeEditingGroupId = null;
14657
- setDrilledGroupBounds(null);
14658
- drilledGroupIdRef.current = null;
14659
- if (groupSelectionId) {
14660
- restoreGroupSelectionVisualState(activeObj, groupSelectionId);
14661
- fabricCanvas.setActiveObject(activeObj);
14662
- activeObj.setCoords();
14663
- }
14664
- selectElements([groupSelectionId], false, false);
14665
- fabricCanvas.requestRenderAll();
14666
- elementsRef.current = getCurrentElements();
14667
- const rotTargets = activeObj.getObjects();
14668
- for (const o of rotTargets) {
14669
- const oid = getObjectId(o);
14670
- if (oid && oid !== "__background__") {
14671
- justModifiedIdsRef.current.add(oid);
14672
- modifiedIdsThisRound.add(oid);
14673
- }
14674
- }
14675
- setTimeout(() => modifiedIdsThisRound.forEach((id) => justModifiedIdsRef.current.delete(id)), 150);
14676
- groupSelectionTransformStartRef.current = null;
14677
- const rotSnapshot = {
14678
- memberIds: rotTargets.map((o) => getObjectId(o)).filter((id) => !!id && id !== "__background__"),
14679
- groupSelectionId,
14680
- expiresAt: Date.now() + 1200
14681
- };
14682
- recentGroupSelectionRestoreRef.current = rotSnapshot;
14683
- restorePreservedGroupSelectionSoon(rotSnapshot);
14684
- unlockEditsSoon();
14685
- return;
14686
- }
14687
14646
  }
14688
14647
  }
14689
14648
  const pendingCropGroupFrameBakes = [];
@@ -24269,9 +24228,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24269
24228
  }
24270
24229
  return svgString;
24271
24230
  }
24272
- const resolvedPackageVersion = "0.5.309";
24231
+ const resolvedPackageVersion = "0.5.310";
24273
24232
  const PACKAGE_VERSION = resolvedPackageVersion;
24274
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.309";
24233
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.310";
24275
24234
  const roundParityValue = (value) => {
24276
24235
  if (typeof value !== "number") return value;
24277
24236
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25085,7 +25044,7 @@ class PixldocsRenderer {
25085
25044
  await this.waitForCanvasScene(container, cloned, i);
25086
25045
  }
25087
25046
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25088
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-D4oH9a3h.cjs"));
25047
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BszCIDi_.cjs"));
25089
25048
  const prepared = preparePagesForExport(
25090
25049
  cloned.pages,
25091
25050
  canvasWidth,
@@ -27405,7 +27364,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27405
27364
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27406
27365
  sanitizeSvgTreeForPdf(svgToDraw);
27407
27366
  try {
27408
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-D4oH9a3h.cjs"));
27367
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BszCIDi_.cjs"));
27409
27368
  try {
27410
27369
  await logTextMeasurementDiagnostic(svgToDraw);
27411
27370
  } catch {
@@ -27802,4 +27761,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
27802
27761
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
27803
27762
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
27804
27763
  exports.warmTemplateFromForm = warmTemplateFromForm;
27805
- //# sourceMappingURL=index-B5XKQ7rz.cjs.map
27764
+ //# sourceMappingURL=index-1lUaEm6d.cjs.map