dagre icon indicating copy to clipboard operation
dagre copied to clipboard

Align nodes to the left - UL not working as intended

Open FriesBureau opened this issue 3 years ago • 1 comments

Hi

I can't get the nodes to align to the left, only for the first node.

billede

Here are my settings: align: 'UL', acyclicer: 'greedy', nodesep: 50, ranksep: 50, edgesep: 50, marginx: 50, marginy: 50

I checked the code node_modules/dagre/lib/position/bk.js, but I fail to see how it is possible to align all nodes to the left.

If I disable alignment then the last node will align to the left, but the first node keeps some distance to the left.

billede

FriesBureau avatar Mar 02 '21 11:03 FriesBureau

@FriesBureau How did you get those custom nodes ?

knightswatch3 avatar Mar 11 '21 06:03 knightswatch3