Migrating to 2.6 from 2.5
API Changes
-
Removed class inheritance. Type checks and type guards must now refer to the exact type.
-
The
HoveredItemEventArgsclass is now an independent class and no longer a subclass of the unrelatedItemEventArgsclass. -
The
TreeNodeSourceandAdjacencyNodesSourceclasses no longer inherit fromNodeSource.
-
-
Renamed types and members. Please use the new names:
-
The
defaultNodeComparatorproperty ofCactusGroupLayouthas been renamed todefaultNodeComparer. -
The
StarSubstructureStyleenum has been renamed toOrganicLayoutStarSubstructureStyle.
-
Changes of Default Behavior
-
IEnumerable.orderByandIEnumerable.orderByDescendingnow sort numbers based on their numerical value when called without a comparison function. To restore the previous behavior, a comparison function should be passed that performs string comparison on numbers. -
The
ItemDroppedInputMode.DragDroppedevent is now raised after the drop gesture has been completed, in line with how similar events are raised in other parts of the code. -
The
moveInputMode,moveLabelInputMode, andhandleInputModesub-modes ofGraphEditorInputModeno longer have a pre-setsnapContext. Instead, they now take theSnapContextinstance from the input mode context. As a result, changing theGraphEditorInputMode.snapContextproperty will also affect these sub-modes. If this is not desired, theGraphEditorInputMode.snapContextproperty should be explicitly set to the sub-mode’ssnapContextproperties during initialization. -
EdgePathLabelModelandEdgeSegmentLabelModelnow provide increased visual stability when there is not enough space on the edge path to avoid label overlap with nodes. This may result in slightly different label positions in such cases. -
In
GroupNodeStyleandWebGL2GroupNodeStyle, the corner radius of the style’s outline and content area is now different from the previous behavior if the tab width is set to 0. -
The
TextRenderSupport.addTextmethod now consistently returns a string that includes line breaks for wrapped texts. -
By default, the
EdgeRouterclass now ignores inner node labels. To revert to the old behavior, set theignoreInnerNodeLabelsproperty tofalse. -
The
layout-radialmodule now has a dependency on thelayout-treemodule.
Removed unused methods and properties
-
YObject.referenceEqualshas been removed because it can simply be replaced with the===operator.
Deprecations
-
The
GraphModelManager.labelLayerPolicyproperty has been marked as deprecated and will be removed in a future release. Instead, use the more specific propertiesnodeLabelLayerPolicy,edgeLabelLayerPolicy, andportLabelLayerPolicy.