documentationfor yFiles for HTML 2.6

RadialLayoutData

Specifies custom data for the RadialLayout.

Inheritance Hierarchy
LayoutData
RadialLayoutData

Examples

The following example shows how to create a new instance of RadialLayoutData and use it with an RadialLayout:

Creating an instance of RadialLayoutData
const layoutData = new RadialLayoutData()
// use the current selection as center nodes
layoutData.centerNodes = graphComponent.selection.selectedNodes
graph.applyLayout(new RadialLayout(), layoutData)

In many cases the complete initialization of RadialLayoutData can also be done in a single object initializer:

Using an object initializer for easy creation of RadialLayoutData
const layoutData = new RadialLayoutData({
  // use the current selection as center nodes
  centerNodes: graphComponent.selection.selectedNodes
})

graph.applyLayout(new RadialLayout(), layoutData)

Type Details

yfiles module
view-layout-bridge
yfiles-umd modules
view-layout-bridge
Legacy UMD name
yfiles.radial.RadialLayoutData

See Also

Constructors

Properties

Methods