-
Notifications
You must be signed in to change notification settings - Fork 177
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
Support for bi-directional mindmaps #3
Comments
Exactly. Those two are useful heuristics, but perhaps we could relax them, and work towards nodes on left and right of root. Where in the code are these two heuristics? It might help in the conversation. |
I think the bi-directional display is not only limited to your case but can be used generally even for proper trees. Therefore it is the matter of the rendering and not parsing. This d3 example can be used as a start, the changes are needed in view.mindmap.js. I think the trickiest part is to come up with good heuristics how to divide nodes between two sides, so that it is reasonably balanced. As for the two heuristics, they are located in transform.headings.js. |
Do you think it's reasonable to divide the nodes between the two sides NOT using a heuristic but instead using the order in the file? If an h2 comes before an h1, the node of the h2 goes left of the h1, otherwise it goes right. |
I just woke up.... so this might make no sense.. but if "to the left" directives are implemented, it might be nice to also add implicit rules to force "to the top", and "to the bottom", too.. no? |
Hi, is there any updates? Thanks |
Does the parser assume that there's exactly one root node? It'd be nice if it would allow for a mindmap that has a root node at the center, and child nodes both left and right of the root. Here's a simple test case:
The text was updated successfully, but these errors were encountered: