Patent attributes
The present disclosure involves intelligent alignment of graphical elements for display within a graphical user interface. For instance, a graphics editing tool identifies position coordinates for a set of graphical elements and groups the position coordinates into one or more clusters. In some embodiments, the graphics editing tool selects the number of clusters for the clustering algorithm based on validity scores. For a given cluster, the graphics editing tool selects a centroid value of the cluster as an updated position value. The graphics editing tool aligns a subset of the graphical elements associated with the cluster by moving each graphical element to the updated position value. For instance, the graphic editing tool can change a horizontal coordinate value or a vertical component value for each graphical element to the centroid value. The graphics editing tool causes a display device to display the aligned graphical elements.