• Returns offsets to align the centers of elements to the center of a reference element.

    Parameters

    • rects: LayoutRect[]

      Bounding rectangles of elements to align.

    • Optionaloptions: LayoutOptions

      Additional options for the layout.

    Returns Vector2D[]

    Array of offsets for each element.