• Preparing search index...
  • The search index is not available
@selenite/commons
  • @selenite/commons
  • Utils
  • Layout
  • getAlignBetweenOffsets

Function getAlignBetweenOffsets

  • getAlignBetweenOffsets(rects, options?): Vector2D[]
  • Returns offsets to space elements evenly on the y axis with a minimum gap.

    Parameters

    • rects: LayoutRect[]

      Bounding rectangles of elements to align.

    • options: LayoutBetweenOptions = {}

      Additional options for the layout.

    Returns Vector2D[]

    Array of offsets for each element.

    • Defined in src/lib/utils/layout.ts:195

Settings

Member Visibility
@selenite/commons
  • Loading...

Generated using TypeDoc