Migrating to 2.0.1 from 2.0
See the change log for a list of all incompatible changes.
Renamed API Members
| Type | Member name in 2.0 | Member name in 2.0.1 |
|---|---|---|
VisualCachingPolicy |
STRONG |
ALWAYS |
NodeStyleDecorationInstaller |
margin |
margins |
IconLabelStyleRenderer |
getInnerStyleInsets |
getWrappedStyleInsets |
Removed API Members
CanvasComponent.autoMouseWheelZoomproperty-
Had no effect.
CanvasComponent.editableproperty-
Had no effect. The preferred way to disable editing is using
GraphViewerInputModeorGraphEditorInputModewith suitable settings. CanvasComponent.enabledproperty-
Had the same effect as
autoDrag. InteractiveOrganicLayout.automaticStructureUpdateproperty-
Couldn’t be used with neither
LayoutExecutornorLayoutGraphAdapter. ChannelOrientationenum-
Had no usages.
Other API Changes
-
Removed optional constructor initialization parameters of type
Object. Affected are thetag/styleTagconstructor parameters ofDefaultGraphand thetemplate styles. -
Changed some API members of the
yfiles.graphml.Propertytype which is very rarely used in customer code.
Behavior Changes
-
IGraphand its implementations now always throw an ArgumentError for operations on elements which are not in the graph (was: ArgumentError, ArgumentOutOfRangeError, IllegalOperationError). -
IGraphand its implementations now always throw an IllegalOperationError for operations which are not allowed (was: ArgumentError). -
GraphML parsing: For properties which are renamed using the
GraphMLAttributeonly the explicitly set name is accepted. The property’s actual name is no longer accepted as fallback. -
HierarchicLayoutmay now place source/target labels in layers that contain common nodes. In previous versions, such labels were always placed in separate layers which often led to less compact drawings with superfluous bends. -
SingleCycleLayout.nodeSequencernow allows to specifynullto return to the default sequencer. In previous versions, specifyingnullled to an error. -
HierarchicLayout: Geometry information registered with data providers with keysHierarchicLayout.ALTERNATIVE_GROUP_BOUNDS_DP_KEYandHierarchicLayout.ALTERNATIVE_EDGE_PATH_DP_KEYis now automatically rotated according to the specified layout orientation. This corrects unstable from-sketch behavior in incremental layout mode when using an orientation other than top-to-bottom.