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 |
---|---|---|
Removed API Members
CanvasComponent.autoMouseWheelZoom
property- Had no effect.
CanvasComponent.editable
property- Had no effect. The preferred way to disable editing is using
GraphViewerInputMode
orGraphEditorInputMode
with suitable settings. CanvasComponent.enabled
property- Had the same effect as
autoDrag
. InteractiveOrganicLayout.automaticStructureUpdate
property- Couldn’t be used with neither
LayoutExecutor
norLayoutGraphAdapter
. ChannelOrientation
enum- Had no usages.
Other API Changes
- Removed optional constructor initialization parameters of type
Object
. Affected are thetag
/styleTag
constructor parameters ofDefaultGraph
and thetemplate styles
. - Changed some API members of the
yfiles.graphml.Property
type which is very rarely used in customer code.
Behavior Changes
IGraph
and its implementations now always throw an ArgumentError for operations on elements which are not in the graph (was: ArgumentError, ArgumentOutOfRangeError, IllegalOperationError).IGraph
and its implementations now always throw an IllegalOperationError for operations which are not allowed (was: ArgumentError).- GraphML parsing: For properties which are renamed using the
GraphMLAttribute
only the explicitly set name is accepted. The property’s actual name is no longer accepted as fallback. HierarchicLayout
may 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.nodeSequencer
now allows to specifynull
to return to the default sequencer. In previous versions, specifyingnull
led to an error.HierarchicLayout
: Geometry information registered with data providers with keysHierarchicLayout.ALTERNATIVE_GROUP_BOUNDS_DP_KEY
andHierarchicLayout.ALTERNATIVE_EDGE_PATH_DP_KEY
is 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.