Skip to content
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

Align nodes to the left - UL not working as intended #313

Open
FriesBureau opened this issue Mar 2, 2021 · 1 comment
Open

Align nodes to the left - UL not working as intended #313

FriesBureau opened this issue Mar 2, 2021 · 1 comment

Comments

@FriesBureau
Copy link

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

@knightswatch3
Copy link

knightswatch3 commented Mar 11, 2021

@FriesBureau How did you get those custom nodes ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants