dagrejs/dagre

Align nodes to the left - UL not working as intended

FriesBureau opened this issue · 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 How did you get those custom nodes ?