github ArthurSonzogni/FTXUI v2.0.0

latest releases: v5.0.0, v4.1.1, v4.1.0...
2 years ago

Features:

Screen

  • Add the automerge to the Pixel bit field. This now controls which pixels are
    automatically merged.

DOM:

  • Add the Canvas class and ElementFrom('canvas') function. Together users of
    the library can draw using braille and block characters.
  • Support flexbox dom elements. This is build symmetrically to the HTML one.
    All the following attributes are supported: direction, wrap, justify-content,
    align-items, align-content, gap
  • Add the dom elements helper based on flexbox:
    • paragraph
    • paragraphAlignLeft
    • paragraphAlignCenter
    • paragraphAlignRight
    • paragraphAlignJustify
  • Add the helper elements based on flexbox: hflow(), vflow().
  • Add: focusPositionRelative and focusPosition
  • Add Table constructor from 2D vector of Element, instead of string.

Component

  • Add the collapsible component.
  • Add the ScreenInteractive::WithRestoredIO. This decorates a callback. This
    runs it with the terminal hooks temporarilly uninstalled. This is useful if
    you want to execute command using directly stdin/stdout/sterr.

Bug

Table

  • The table horizontal and vertical separator are now correctly expanded.

Component

  • Input shouldn't take focus when hovered by the mouse.
  • Modifying Input's during on_enter/on_change event is now working correctly.

Breaking changes:

  • The behavior of paragraph has been modified. It now returns en Element,
    instead of a list of elements.

Don't miss a new FTXUI release

NewReleases is sending notifications on new releases.