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

    Function padPart

    Pad a part with spaces in all directions.

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

    const part = text('foo')

    const padded = padPart(
    part,
    {top: 1, right: 1, bottom: 1, left: 1},
    )

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