effect-tree - v1.0.36
    Preparing search index...

    Function alignHorizontally

    • Align an array of single line strings according to the given alignment. All strings in the returned array will be as wide as the widest among them.

      The given horizontal struts will be used to fill the available space created by aligning the given parts.

      Parameters

      • hStruts: Draw.HStruts

        Left and right horizontal struts will be used to fill available space.

      • hAlign: "left" | "right" | "center"

        A horizontal alignment will be used when not all shapes are of the same width.

      • useLeftRound: boolean = false

        Optional flag determining if remainder is added to the left or to the right the shape. By default it is false and the remainder is added to the right of the shape.

      Returns EndoOf<string[]>