documentationfor yFiles for HTML 2.6

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
VisualCachingPolicySTRONG WEAKALWAYS ALWAYS
NodeStyleDecorationInstaller LabelStyleDecorationInstaller SvgExportmarginmargins
IconLabelStyleRenderergetInnerStyleInsetsgetWrappedStyleInsets

Removed API Members

CanvasComponent.autoMouseWheelZoom property
Had no effect.
CanvasComponent.editable property
Had no effect. The preferred way to disable editing is using GraphViewerInputMode or GraphEditorInputMode with suitable settings.
CanvasComponent.enabled property
Had the same effect as autoDrag.
InteractiveOrganicLayout.automaticStructureUpdate property
Couldn’t be used with neither LayoutExecutor nor LayoutGraphAdapter.
ChannelOrientation enum
Had no usages.

Other API Changes

  • Removed optional constructor initialization parameters of type Object. Affected are the tag / styleTag constructor parameters of DefaultGraph and the template 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 specify null to return to the default sequencer. In previous versions, specifying null led to an error.
  • HierarchicLayout: Geometry information registered with data providers with keys HierarchicLayout.ALTERNATIVE_GROUP_BOUNDS_DP_KEY and HierarchicLayout.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.