danylokhodus commited on
Commit
3105a78
·
1 Parent(s): 8cdcc3a

Layout: Swap axes to flow top-to-bottom for sequential and horizontal for sub-blocks

Browse files
FlowAPI.Application/Services/AutoLayoutEngine.cs CHANGED
@@ -89,9 +89,9 @@ namespace FlowAPI.Application.Services
89
  var node = layerNodes[i];
90
  var nodeGuid = idMap[node.Id];
91
 
92
- // Symmetric distribution vertically around Y = 0
93
- double posX = layer * StepX;
94
- double posY = (i - (count - 1) / 2.0) * StepY;
95
 
96
  // Determine visual properties
97
  string? nodeColor = null;
 
89
  var node = layerNodes[i];
90
  var nodeGuid = idMap[node.Id];
91
 
92
+ // Symmetric distribution horizontally around X = 0, and sequential progression top-to-bottom
93
+ double posX = (i - (count - 1) / 2.0) * StepX;
94
+ double posY = layer * StepY;
95
 
96
  // Determine visual properties
97
  string? nodeColor = null;