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

Aligning nodes with parent node #256

Open
MateusTorquato opened this issue Dec 22, 2023 · 2 comments
Open

Aligning nodes with parent node #256

MateusTorquato opened this issue Dec 22, 2023 · 2 comments
Labels

Comments

@MateusTorquato
Copy link

This is more like a question, not a bug actually, but I couldn't change the label here to something else.

I am working on achieving a node layout similar to what is displayed in the next image:

image

My objective is to align some specific nodes with the parent node. As shown on the image, Start and Node 1 are aligned, instead of balanced like the result I'm getting with this config. Check here the result I'm getting using a few configs and ports

image

I've also set up two examples on elklive editor, where the first one is using ports and is the one I got closer to the result I want to, and the second one which is just using some basic configs, which is balancing the children nodes (and it's not the objective I aim to)

image

Does anyone know how to achieve at least some similar layout to this one? I've been racking my brain for hours and couldn't get anywhere so far

@soerendomroes
Copy link
Member

soerendomroes commented Dec 28, 2023

Well, alignment along the layout direction is usually handled by the node placement step. By I guess no strategy will always align a specific child with the parent. But try playing around will all options in the nodePlacement group. After new year I might be able to eloborate s little on this and might make a small blog post.

@MateusTorquato
Copy link
Author

MateusTorquato commented Jan 1, 2024

Awesome, I'll have a look at this property after the new year, but it's been pretty hard to achieve the desired results here. None of the strategies have worked so far. I've tried different configurations using ports as well, but no luck so far.

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

No branches or pull requests

2 participants