Commit Graph

9 Commits

Author SHA1 Message Date
20650f1e7e Change IAnsiConsole to render IRenderable
This makes it possible for encoders to output better representation
of the actual objects instead of working with chopped up segments.

* IAnsiConsole.Write now takes an IRenderable instead of segments
* Calculating cell width does no longer require a render context
* Removed RenderContext.LegacyConsole
* Removed RenderContext.Encoding
* Added Capabilities.Unicode
2021-03-28 09:06:06 -04:00
a23bec4082 Add profile support
Closes #231
2021-01-19 17:53:03 +01:00
994540d97f Add cycle detection to tree rendering 2021-01-14 18:37:22 +01:00
a977fdadff Fix tree node collection type 2021-01-10 16:59:40 +01:00
8261b25e5c Fix tree rendering
Fixes some tree rendering problems where lines were not properly drawn
at some levels during some circumstances.

* Change the API back to only allow one root.
* Now uses a stack based approach to rendering instead of recursion.
* Removes the need for measuring the whole tree in advance.
  Leave this up to each child to render.
2021-01-10 15:55:11 +01:00
87e6b42409 Add tree example 2021-01-03 23:28:55 +01:00
1aa958ced3 Add support for multiple tree roots 2021-01-03 23:28:55 +01:00
4bfb24bfcb Streamline tree API a bit 2021-01-03 23:28:55 +01:00
b136d0299b Add tree widget 2021-01-02 10:01:16 +01:00