powsybl / powsybl-dev-tools

2 stars 1 forks source link

[nad-viewer] Replace element center calculation with getting translation #72

Closed flo-dup closed 1 year ago

flo-dup commented 1 year ago

Please check if the PR fulfills these requirements

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

What kind of change does this PR introduce? Bug fix

What is the current behavior? The position of an element is guessed by calculating its bounding box center, which is quite risky

What is the new behavior (if this is a feature change)? The position of an element is read in the element translation

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

Other information: 3wt nodes should be translated and not with cx/cy in the circles containing the translation

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information