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

Set layout node positions getting them from JSON metadata in network area diagram #656

Merged
merged 8 commits into from
Dec 16, 2024

Conversation

massimo-ferraro
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
no

What kind of change does this PR introduce?
feature

What is the current behavior?
In network area diagram initial positions of nodes and text nodes for a layout can be set providing them in maps

What is the new behavior (if this is a feature change)?
Initial positions of nodes and text nodes for a layout can be set reading them from a JSON diagram metadata file

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Copy link

Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
@flo-dup flo-dup requested a review from So-Fras December 16, 2024 11:18
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some basic refactoring but kept the feature the same.

I changed the name of the Utils class as I'm a bit annoyed by the FixedLayoutFactory. I think this factory should be kept for testings purposes only. When there's a node which doesn't have a fixed position, leaving it in 0,0 is not very interesting for the user. But that's not the topic of this PR. Let's discuss this later.

@So-Fras So-Fras merged commit 613849c into main Dec 16, 2024
8 checks passed
@So-Fras So-Fras deleted the nad_metadata_layout branch December 16, 2024 13:54
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

Successfully merging this pull request may close these issues.

3 participants