-
Notifications
You must be signed in to change notification settings - Fork 21
Migration guide v5.2.0
Starting from this release, users manipulating the network-area diagram metadata needs to take into account
- the "invisible" field for node metadata
- the "invisible1" and "invisible2" fields for edge metadata
Starting from this release, information can be displayed on the middle of the edge in the same way as on each end, that is, not only a label, but an arrow with information on both sides of the arrow, possibly of different type. To this end,
- EdgeInfo now takes two
infoType:infoTypeAandinfoTypeB, corresponding to the type of each label, which have been renamed frominternalLabel(resp.externalLabel) tolabelA(resp.labelB), - the method
List<String> getEdgeInfoStyleClasses(EdgeInfo info)of theStyleProviderAPI has been replaced byList<String> getEdgeInfoStyleClasses(String infoType), as the type (and therefore styling) might be different for each side of the arrow, - the arrow takes the style of side B (from
infoTypeB) if non-null, of side A (frominfoTypeA) otherwise, - the method
String getBranchLabel(String branchId)of theLabelProviderAPI has been replaced byOptional<EdgeInfo> getBranchEdgeInfo(String branchId, String branchType). If you were returning a label in yourLabelProviderimplementation, replace it with anEdgeInfowith a null direction, and only one of the two labels non-null (labelA or labelB), - the
SvgParametersfieldsedgeNameDisplayed,idDisplayed,substationDescriptionDisplayed,busLegend,voltageLevelDetails,edgeInfoDisplayedhave been removed and replaced by parameters for theDefaultLabelProvideronly:-
edgeNameDisplayedandedgeInfoDisplayedhave been replaced byDefaultLabelProvider.EdgeInfoEnumenums in aDefaultLabelProvider.EdgeInfoParametersrecord:infoSideInternal/infoSideExternalfor the type of information to display on each end of the edges,infoMiddleSide1/infoMiddleSide2for the type of information do display on each side of the middle arrow, -
idDisplayed,substationDescriptionDisplayed,busLegend,voltageLevelDetailshave been moved into aLabelProviderParametersclass, which may be given toDefaultLabelProviderconstructor.
-
I you were manipulating the SVG itself, you now need to take into account the fact that the middle edge information (which may correspond to the previous edge label if any) is drawn with the other EdgeInfo.
Starting from this release, the users manipulating the network-area diagram metadata should expect to receive the type "ThreeWtPstEdge" for edges, while "PstEdge" is only for phase-shift (two-winding) transformers.
Starting from this release, the middle edge of a group of parallel edges contains 3 points like other parallel edges, instead of 2 points previously. Therefore, there should be no specific code for that edge if manipulating its content in the network-area diagram SVG.