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

Prevent edges from relocating Nodes? #749

Closed
MaxEngelstaedter opened this issue Mar 3, 2021 · 3 comments
Closed

Prevent edges from relocating Nodes? #749

MaxEngelstaedter opened this issue Mar 3, 2021 · 3 comments
Labels
question Request for support in using ELK.

Comments

@MaxEngelstaedter
Copy link

MaxEngelstaedter commented Mar 3, 2021

Hi guys,

I'm new to this whole ELK layouting topic, so I've got a quite simple question. How can I prevent the algorithm from relocating my nodes. See ELK Demo

I want the Entities to be vertically aligned inside my Bucket. The Buckets themselves should be horizontally aligned.
How can I achieve this? I used elk.direction: DOWN inside the Buckets but this does not lead to the expected result.

Thanks for your help :)

@le-cds le-cds added the question Request for support in using ELK. label Mar 3, 2021
@le-cds
Copy link
Contributor

le-cds commented Mar 3, 2021

Placing them vertically would mean placing them in the same layer, as we call it. However, nodes in the same layer cannot be connected by an edge. Thus, what you would like to achieve is not easily possible.

If we had an algorithm that only routed edges through a diagram and left the nodes alone, you could place the nodes to your liking (which, as you describe it, seems straightforward) and have ELK concentrate only on the edges. However, that's not something we support yet, sorry. See #315.

@MaxEngelstaedter
Copy link
Author

MaxEngelstaedter commented Mar 4, 2021

Hi le-cds,

thanks for your quick reply. Is there at least a way of maintaining the vertical alignment of the Entities in the Bucket, e.g. with some extra Ports/Nodes/Edges which I might hide afterwards, even if it's not straight forward? Its not fatal if the horizontal alignment of the Entities changes a bit.

Regards

Dignitas

@soerendomroes
Copy link
Contributor

I am unsure what exact layout you are desiring. You can always exclude so called in-layer edges from the layout if that is what you need. Then you could route the edge yourself.

Screenshot from 2022-04-05 09-05-53

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

No branches or pull requests

3 participants