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

Add flag for enabling node moving in network area diagram viewer #80

Merged
merged 1 commit into from
Jul 19, 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 the network area diagram viewer the functionality for moving the nodes is always enabled

What is the new behavior (if this is a feature change)?
A flag allows, when instantiating the viewer, to enable or disable the functionality for moving the nodes

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 boolean flag parameter.
Examples are provided in the demo/src/diagram-viewers/add-diagrams.js file

Base automatically changed from nad_read_metadata_svgparameters to integration/nad_interactive July 19, 2024 15:39
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
@flo-dup flo-dup merged commit e12a730 into integration/nad_interactive Jul 19, 2024
4 checks passed
@flo-dup flo-dup deleted the nad_add_moving_flag branch July 19, 2024 15:43
flo-dup pushed a commit that referenced this pull request Jul 22, 2024
* Make single-bus voltage level nodes movable in network area diagram (#59)
* Move voltage level nodes with multiple buses in network area diagram (#65)
* Fix node moving when zooming out after node selection in network area diagram (#71)
* Move 3wt, dangling lines and voltage levels with unknown buses in nad viewer (#66)
* Move nodes of uncomplete networks in network area diagram SVG (#68)
* Update metadata and add callback for node moving in network area diagram (#73)
* Move edge names when moving edges in network area diagram (#77)
* Read SVG parameters from metadata in network area diagram (#79)
* Add flag for enabling node moving (#80)
* Add a transparent fill to unknown buses and three windings transformers in network area diagram (#81)

Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
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.

None yet

2 participants