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

Improve force layout with fixed positions #628

Closed flo-dup closed 2 months ago

flo-dup commented 2 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 only a few positions are not fixed, force layout is

What is the new behavior (if this is a feature change)? Force layout is now fast when only a few positions are not fixed, and the non-fixed nodes are better placed.

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

Other information: the non-fixed position suffered

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud