powsybl-diagram icon indicating copy to clipboard operation
powsybl-diagram copied to clipboard

Align feeder components

Open flo-dup opened this issue 3 years ago • 0 comments

  • Do you want to request a feature or report a bug? Feature

  • What is the current behavior? Feeders component have their center aligned, and therefore:

    • the arrows (or whatever is the corresponding FeederInfo) displayed below are not aligned
    • the feeder names displayed above are not aligned
  • What is the expected behavior?

    • Feeders component have their top aligned, therefore the feeder names above are aligned
    • The first feederInfo is displayed at a distance of layoutParameters.getMaxComponentHeight() + layoutParameters.getSpaceBetweenFeederInfos() from the top, so that the feederInfos are aligned
  • What is the motivation / use case for changing the behavior? Ease of reading and nice looking diagram

flo-dup avatar Jan 18 '22 11:01 flo-dup