powsybl / powsybl-diagram

SVG diagrams generation: single-line substation diagrams and network graph diagrams
Mozilla Public License 2.0
72 stars 13 forks source link

Spread voltageLevels with missing position information #593

Closed So-Fras closed 5 months ago

So-Fras commented 6 months 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? Feature

What is the current behavior? When a voltageLevel has no fixed position (the position information may be missing), it is displayed in (0, 0) when using the BasicFixedLayoutFactory.

What is the new behavior (if this is a feature change)? It is possible to pass a LayoutFactory (for example a BasicForceLayoutFactory) as an argument to the BasicFixedLayoutFactory create(...) fucntion to spread voltageLevels that have missing position information.

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

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud