FTXUI v2.0.0 Release Notes
-
๐ Features:
Screen
- โ Add the
automerge
to the Pixel bit field. This now controls which pixels are automatically merged.
DOM:
- โ Add the
Canvas
class andElementFrom('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
andfocusPosition
- โ 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.
- โ Add the