I had that thought as well. We’re open to a change, but, as you know, we’re big fans of incremental changes. We’ll see.
- Get a list of all selected groups. If an element is not in a group, it’s considered a group of one.
- We sort them along the horizontal/vertical axis to get them into the initial order
- We find the minimum/maximum group to set the bounds and the gap between each center point.
- Then we adjust the position of each group, based on it’s order in the list.