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
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:
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 hierarchyHandling: INCLUDE_CHILDREN as shown here. Additionally, you might want to set all spacings correct and maybe set portConstraints: FIXED_POS and set the desired positions of ports.
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.
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: