bubbleboxer ๐ŸฅŠ - compose bubbles into boxes ๐Ÿ“ฆ

December 17, 2022 ยท View on GitHub

A way to compose multiple bubbles into one layout.

To layout the bubbles with bubbleboxer, one would construct a layout-tree ๐ŸŒฒ. Each node holds a arbitrary amount of children as well as the orientation (horizontal/vertical) and the spacing of them. Each leaf is linked (via an address) to one Model which satisfies the bubbletea Model-interface. With this address one can access this Models and change them independently from the layout-tree.

 1โ•ญ>list of something โ”‚ some    0 โ”‚ a                       V
  โ”‚ ----------------- โ”‚ status  1 โ”‚  text                  / \
 2โ”œ which you may     โ”‚ infor-  2 โ”‚   logo                /   \
  โ”‚ edit as you wish  โ”‚ mation  4 โ”‚    even!             H    l5
 3โ”œ or just use it    โ”‚           โ”‚                     / \
 4โ”œ to display        โ”‚ l2        โ”‚ l3                 /   \
 5โ”œ and scroll        โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€         l1    V
                      โ”‚ Maybe here is a                    / \
                      โ”‚ note written to each              /   \
                      โ”‚ list entry, in a                 H    l4
                      โ”‚ bubbles viewport.               / \
                      โ”‚                                /   \
 l1                   โ”‚ l4                            l2   l3
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 maybe a progressbar or a command input? 100% 

 l5

// TODO write about the need for embedding boxer into a other model and about nobordernodes beeing non recursive

LICENSE

MIT