Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoxFactory

A Factory used to construct the BoxLayout for *Loxes

Hierarchy

  • BoxFactory

Methods

Methods

Static getBoxString

  • getBoxString(box: Box, colored: undefined | boolean): string
  • Creates a string version of the given *Lox box.

    Single Usage

    const lox: OutputLox = ... // the lox in an output callback (also `ErrorLox`)
    const box = BoxFactory.getBoxString(lox.box, !this._colorsDisabled);
    

    Parameters

    • box: Box

      the Box of an OutputLox or ErrorLox

    • colored: undefined | boolean

      should the symbols be wrapped in ANSI colors

    Returns string

    a stringified version of the given box

Generated using TypeDoc