-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tala improvement suggestion: grow containers #26
Comments
i've long thought about how to dynamically change sizes for better layouts and haven't found a good solution. i think this is a special case where in a hierarchy of multiple levels within containers AND all the nodes in a level are in that container, you can expand the containers. which... hm, maybe we should just have all container widths match in such an instance. @ejulio-ts any thoughts? |
Thanks at @alixander |
I see that, by doing so, you remove some clutter from the diagram as the container boundaries are well arranged and there's no space between them. If I understood it, if there were another container on the same as |
re. visual clutter & routing: agreed re. settlement and container on the same level. Yes exactly, here's an example with two containers on the same level after post-processing to grow the containers: re. multiple levels. No, it works for deeply nested containers. Here's the same example, but this time I'm creating new containers 'Random 1' and 'Random 2' inside the pre-existing 'Reporting' container to hold the nodes there: I've stopped the containers growing all the way to the edge by a couple of pixels to make the nesting easier to see. In the above example, the tree that describes the containers is: The 'container grow' algorithm works down from 'Current State' the root, at each level growing the child containers as much as possible, and then moving down to each of their children and repeating. |
Was thinking. I think have this feature/ sub-algorithm within Tala is quite dependent on controlling the amount of empty space in the diagram to reasonable levels (the other Tala issue I previously raised). If there's too much space, growing the containers could result in largely empty containers and that would look weird. |
Hi,
I previously worked on a pet project similar to d2 - but not nearly as good! :) - based on graphviz, for producing technology architecture pictures. I found that a lot of diagrams would look much closer to one that a person would draw by introducing a 'grow-clusters?' parameter.
It would take a picture from this:
to this:
Graphviz doesn't have that setting and didn't have the man-power to introduce it so I had to hack the svg and run an optimisation over it. It was ugly!
Can work wonders though for some diagrams. Any thoughts for tala?
This setting might not work as tala; In graphviz (dot) you can force clusters into a row/ rank in the dot algorithm for introducing a bunch of between cluster invisible edges and from my experiments with tala, it works quite differently to dot.
The text was updated successfully, but these errors were encountered: