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

    Function vPadPart

    • Pad a part with top and bottom padding filled with spaces.

      At the keys top and bottom you will find versions that pad only a single side of the given part.

      See hPadPart for the horizontal version.

      Parameters

      • padTop: number = 1
      • padBottom: number = padTop

      Returns EndoOf<Draw.Part>

      import {Draw} from 'effect-tree'
      const {drawPart, vPadPart, text} = Draw

      const part = text('foo')

      const padded = vPadPart(1)(part)

      expect(drawPart(padded)).toEqual([
      ' ',
      'foo',
      ' ',
      ])
    Index

    Properties

    Properties

    bottom: (self: Draw.Part, pad?: number) => Draw.Part = ...
    top: (self: Draw.Part, pad?: number) => Draw.Part = ...