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

Move text nodes in network area diagram #82

Merged
merged 4 commits into from
Aug 7, 2024
Merged

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 the network diagram viewer text nodes cannot be moved by themselves, they just move when moving the corresponding voltage level nodes

What is the new behavior (if this is a feature change)?
Text nodes can also be moved by themselves. A callback has been added for having information about the text nodes moved

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)
The constructor of the NetworkAreaDiagramViewer has a new additional parameter: the callback.
An example of callback is provided in the demo/src/diagram-viewers/add-diagrams.js file

Base automatically changed from nad_add_fill to integration/nad_interactive July 19, 2024 15:47
@flo-dup flo-dup force-pushed the nad_move_textnodes branch from 1b32162 to c763bde Compare July 19, 2024 15:47
Base automatically changed from integration/nad_interactive to main July 22, 2024 14:51
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
@flo-dup flo-dup force-pushed the nad_move_textnodes branch from c763bde to 930cf0f Compare August 2, 2024 13:05
massimo-ferraro and others added 2 commits August 5, 2024 17:21
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup merged commit 3346428 into main Aug 7, 2024
4 checks passed
@flo-dup flo-dup deleted the nad_move_textnodes branch August 7, 2024 14:18
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.

2 participants