Im-Beast / deno_tui

🦕 Deno module for creating Terminal User Interfaces
https://deno.land/x/tui
MIT License
266 stars 18 forks source link

feat req: normalize `rectangle` type between components #28

Open Im-Beast opened 1 year ago

Im-Beast commented 1 year ago

What this feature is meaning to achieve Some components use their own Rectangle implementations, e.g. InputRectangle and TextRectangle. This creates issues with layouts and some other things.

Solution Rectangle's should be normalized so that every component uses normal Rectangle. This would mean that some components behaviour should be adjusted to make use of properties it didn't use (e.g. height in Input)

Im-Beast commented 1 year ago

I'll want to do this right after #29 or even in it.