Open Im-Beast opened 1 year ago
Is this completely dead?
Is this completely dead?
This PR, probably.
Tui in itself? Not really There is just a lot of things I want to do at this moment. I was working on completely rewritten Tui version, but there is a lot of things I want to take in consideration about its design, mostly to completely fix issues I have with current implementation. There is also a lot of unknowns regarding Deno and JSX support on JSR.
Alright, I understand.
I really like the concept of this library and its relative novelty, especially in the Deno space. I haven't seen many good alternatives in the Node ecosystem either. However, I've encountered some bugs with rendering and other areas. These might not warrant issues right now, considering a rewrite is planned.
If you develop a more stable design for the project and have a clear vision for its overall feel, I'd be willing to help with some implementations. While I don't have extensive experience in this terminal rendering aspect, I'd be eager to contribute and learn.
This PR is meant to replace
DrawObject
s withPainter
s.Main changes that are planned include:
Drawable
interface, which hasdraw()
method. This will allow for easier interception and/or manipulation of drawing on canvas.BoxObject
andTextObject
will now useBoxPainter
andTextPainter
names.TextObject
will use normal rectangle, and will allow for multiline text drawing, simplifying component creation that use text by a lot.ShapePainter
class that will allow for drawing on canvas using 2d array, allowing things likeFrame
to use only one component instead of combining multiple – again simplyfying component creationrerender()
gets called