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

How do I automatically position the joints in a connection? #47

Closed
midrare opened this issue Oct 15, 2020 · 3 comments
Closed

How do I automatically position the joints in a connection? #47

midrare opened this issue Oct 15, 2020 · 3 comments
Labels

Comments

@midrare
Copy link

midrare commented Oct 15, 2020

My graph is a left-to-right flowchart style digraph, and I am trying to get my joints to automatically lay themselves out whenever the nodes are moved. What is the recommended approach?


Overriding GNodeSkin::layoutConnectors() seems like the way to go, but I've had trouble getting it to work; there seems to be no way to derive the position of a connector relative to the entire graph from either a GConnection object or a GJoint object. What am I doing wrong?

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@midrare midrare changed the title Is there a way to automatically position the joints in a connection? How do I automatically position the joints in a connection? Oct 15, 2020
@eckig
Copy link
Owner

eckig commented Oct 15, 2020

This sounds more like some sort of automatic layout (with collision detection)?

Somewhere I have a prototype of doing just this with the help of the eclipse layout kernel (https://github.com/eclipse/elk).. but it is not ready for prime time.

@midrare
Copy link
Author

midrare commented Oct 18, 2020

I've played around with elk for a while and it seems perfect for my needs. Thanks for the recommendation.

@midrare midrare closed this as completed Oct 18, 2020
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