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
HoveredItemEventArgs
class is now an independent class and no longer a subclass of the unrelatedItemEventArgs
class. -
The
TreeNodeSource
andAdjacencyNodesSource
classes no longer inherit fromNodeSource
.
-
-
Renamed types and members. Please use the new names:
-
The
defaultNodeComparator
property ofCactusGroupLayout
has been renamed todefaultNodeComparer
. -
The
StarSubstructureStyle
enum has been renamed toOrganicLayoutStarSubstructureStyle
.
-
Changes of Default Behavior
-
IEnumerable.orderBy
andIEnumerable.orderByDescending
now 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.DragDropped
event 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
, andhandleInputMode
sub-modes ofGraphEditorInputMode
no longer have a pre-setsnapContext
. Instead, they now take theSnapContext
instance from the input mode context. As a result, changing theGraphEditorInputMode.snapContext
property will also affect these sub-modes. If this is not desired, theGraphEditorInputMode.snapContext
property should be explicitly set to the sub-mode’ssnapContext
properties during initialization. -
EdgePathLabelModel
andEdgeSegmentLabelModel
now 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
GroupNodeStyle
andWebGL2GroupNodeStyle
, 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.addText
method now consistently returns a string that includes line breaks for wrapped texts. -
By default, the
EdgeRouter
class now ignores inner node labels. To revert to the old behavior, set theignoreInnerNodeLabels
property tofalse
. -
The
layout-radial
module now has a dependency on thelayout-tree
module.
Removed unused methods and properties
-
YObject.referenceEquals
has been removed because it can simply be replaced with the===
operator.
Deprecations
-
The
GraphModelManager.labelLayerPolicy
property has been marked as deprecated and will be removed in a future release. Instead, use the more specific propertiesnodeLabelLayerPolicy
,edgeLabelLayerPolicy
, andportLabelLayerPolicy
.