You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, let me say I love love love this library!
So, perhaps a weird request, but anyone have ideas on how to make the tree display upside down? Basically, I have a script that displays a section of a DAG (directed acyclic graph) using rich trees. What I'm doing now is displaying both parent and child nodes of a given DAG node via a regular tree. In the case of parents, this is suboptimal, because you have to mentally envision the output as upside down. It'd be nice to actually display the tree upside down. As in something very roughly like:
g1
└──p1
└──┐
g2 │
└──p2 │
└──┴─C
Obviously, I can't just call reverse() on the output, since the escape sequences will be in the wrong order. I thought about writing something to actually display a DAG but I think there'd be a fair bit of complexity there. I was just curious if anyone had any ideas or if there was a trivial way of accomplishing this that I was unaware of.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First off, let me say I love love love this library!
So, perhaps a weird request, but anyone have ideas on how to make the tree display upside down? Basically, I have a script that displays a section of a DAG (directed acyclic graph) using rich trees. What I'm doing now is displaying both parent and child nodes of a given DAG node via a regular tree. In the case of parents, this is suboptimal, because you have to mentally envision the output as upside down. It'd be nice to actually display the tree upside down. As in something very roughly like:
Obviously, I can't just call
reverse()
on the output, since the escape sequences will be in the wrong order. I thought about writing something to actually display a DAG but I think there'd be a fair bit of complexity there. I was just curious if anyone had any ideas or if there was a trivial way of accomplishing this that I was unaware of.Beta Was this translation helpful? Give feedback.
All reactions