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

Refactor the NAD Layout API for nodes with fixed positions. #601

Open
So-Fras opened this issue Apr 3, 2024 · 0 comments
Open

Refactor the NAD Layout API for nodes with fixed positions. #601

So-Fras opened this issue Apr 3, 2024 · 0 comments
Labels

Comments

@So-Fras
Copy link
Member

So-Fras commented Apr 3, 2024

Describe the current behavior

In order to provide fixed Node positions for a layout algorithm, the user must first call Layout > setInitialNodePositions(...) with a map containing Node ids and their respective positions and then fill another set with the Node ids (thanks to the Layout > setNodesWithFixedPosition(...) function) set in order to prevent the algorithm from moving those nodes.

Describe the expected behavior

It would be clearer to have a function Layout > setNodesWithFixedPosition(...) directly taking a Map<String, Point> as an argument.

Describe the motivation

User-friendliness

Extra Information

No response

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

1 participant