• Returns offsets to align the tops of elements to the top 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.