-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] make nodes collapsable #6
base: main
Are you sure you want to change the base?
Conversation
Using this Feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
We have the tree in the state and derive the layout from it.
When collapsing a node, it would be nice to redistribute the nodes accordingly.
So let's hoist the collapsed
state from being local here to bring global, and treat a collapsed node just like a leaf. The current transform helpers may need some splitting in order to accomodatr for that. WDYT?
So, I thought about the whole case and my next steps would be:
What do you think about hiding the nodes starting on the 3rd level by default? |
Idea:
A node has a link or button to hide child nodes. The button changes from "[-]" to "[+]" to inform the user