Function distribute_horizontal_and_align

  • Distribute diagrams horizontally and align

    Parameters

    • diagrams: Diagram[]

      diagrams to be distributed

    • horizontal_space: number = 0

      space between the diagrams (default = 0)

    • alignment: VerticalAlignment = 'center'

      vertical alignment of the diagrams alignment can be 'top', 'center', or 'bottom'

    Returns Diagram

    array of distributed and aligned diagrams