Calculates the center point of a given array of shapes. This method computes the geometric center (centroid) of the bounding boxes of the provided shapes.
The array of shapes to calculate the center for.
Returns the center point as an object with x
and y
coordinates, or null if the array is empty.
Utility methods for geometric calculations in Penpot.
Example