@triosyi wrote:
Hello.
When using LayeredDigraphLayout, I want to know how to configure the alignment of nodes having no links.
I set the layout option like below.var diagram = $goJs(go.Diagram, diagramDivId, { contentAlignment: go.Spot.Center, initialContentAlignment: go.Spot.Center, allowLink: true, allowMove: true, layout: $goJs(go.LayeredDigraphLayout, { direction : 90 } ) } );
When I added some nodes on diagram, the nodes are lined up horizontally.
When I drag a line from node to node, the nodes having link are lined up vertically.If I want to change the direction of node having no links, how can I do this?
Can you advice for me?
The nodes having no links are displayed like this.
The nodes having links are displayed like this.
Thanks.
Posts: 3
Participants: 2