Deno TUI 0.1.0
Pre-release
Pre-release
Changelog
- Massive rendering overhaul
- New canvas and colors API
- When
smartRender
in canvas is set only changed parts of the screen are redrawn- H u g e performance gain
- Instead of using
crayon.js
TUI uses new colors module which precompiles styles
- When
- Drawing full-width characters is now supported
frame_buffer.ts
module has been removed and replaced fully withcanvas.ts
- New canvas and colors API
- Reactivity improvements
styler
property inTuiInstance
andTuiComponent
's can now be dynamic- Remember to use it only when reference to the object changes
- Fixed broken key reader (missing setRaw line)
- From this point on API changes shouldn't be that radical
Changes needed to make previous code work with this version
- const mainStyler: TuiStyler = {
- foreground: "white",
- ...
- };
- const componentStyler: TuiStyler = {
- ...mainStyler,
- background: "blue",
- };
+ const mainStyler = compileStyler<TuiStyler>({
+ foreground: "white",
+ ...
+ });
# You could potentially use compileStyler here too.
+ const componentStyler: TuiStyler = {
+ ...mainstyler,
+ background: keyword("bgBlue"),
+ });