Skip to content

Migration guide v2.8.0

Florian Dupuy edited this page Mar 11, 2022 · 3 revisions

Migrate powsybl-core version to v4.7.0

In this release, powsybl-core version has been updated from version 4.6.1 to 4.7.0. No corresponding migration issue should affect you directly on powsybl-line-diagram. Nonetheless, if you are also using powsybl-core directly, please refer to powsybl-core migration guide to fix any issue due to that migration.

Force substation layout

The ForceSubstationLayout class and therefore powsybl-single-line-diagram-force-layout artifact have been removed, as the layout results were not convincing.

Up to N FeederInfos

Since this release, several changes have been done in LayoutParameters to better support the drawing of more than 2 FeederInfo. Indeed, FeederInfo has replaced InitialValue in 2.5.0 release and is now used for other information than the active / reactive powers with arrows. Therefore:

  • LayoutParameters::arrowDistance has been renamed to LayoutParameters::feederInfosOuterMargin, it corresponds to the space used for the margin between the feeder node and the first FeederInfo;
  • LayoutParameters::minSpaceForFeederArrows has been renamed to LayoutParameters::spaceForFeederInfos, it corresponds to the space used for all the FeederInfo, please use a value big enough for the maximum number of FeederInfo you need to display;
  • LayoutParameters::feederArrowSymmetry has been renamed to LayoutParameters::feederInfoSymmetry;
  • LayoutParameters::feederInfosIntraMargin has been introduced to give the space between two consecutive FeederInfo (before this release the space between two FeederInfo corresponded to the height of the arrow component).