-
Notifications
You must be signed in to change notification settings - Fork 98
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
In a hierarchical layout, how to constrain dimensions? #292
Comments
Hi, this is not directly possible because, we layout (most times) bottom up, meaning that the inner content is layouted first such that the bends are produced at the innermost node. I suggest using explicit ports and not using Configuring the layout to layout top-down instead of bottom up might also work. Maybe @Eddykasp can make a minimal example for this and explain how to apply the scaling values for this. |
Maybe this also a better example that additionally sets spacing and padding. |
I have another model here that uses a few different configurations that might be interesting to try out. |
Or do you want something like this? |
Thank you @soerendomroes - I'm sorry it took me so long to see your responses. I'll try these out, they look promising. |
TLDR; for the lower two screenshots, how can I constrain the width of the parent node so that it doesn't stretch wider when the edges are pathed?
I'm trying to build a hierarchical layered model. For those interested, it portrays database schema information as it is replicated. As such, it has database tables and contain database columns. I want to show a database table and columns like this:
Customer is the table, the others are columns inside of the table. For display, the table node is the hierarchical container for the columns, and they are the same width.
For some complex layouts, the edge bend points for the columns will go inside of the table node, thereby making the table wider than the columns and breaking the layout.
Or as seen in the Elk tool:
Elk Layout (sorry, you'll have to copy this into the tool as the link would not work): layout.json
ELK Version
Tested using 0.9.2 and 0.9.3
Things I have tried
I've tried various settings, but I've been unable to get the bend points to happen outside of the node. I've been unable to limit the width of the graph. I've also tried using ports and merging lines, but then I feel like I lose helpful information on the graph.
The text was updated successfully, but these errors were encountered: