documentationfor yFiles for HTML 3.0.0.3

RadialLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel>

Specifies custom data for the RadialLayout.

Inheritance Hierarchy

Examples

The following example shows how to create a new instance of RadialLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel> 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.nodes
graph.applyLayout(new RadialLayout(), layoutData)

In many cases the complete initialization of RadialLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel> 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.nodes,
})
graph.applyLayout(new RadialLayout(), layoutData)

Type Parameters

TNode
TEdge
TNodeLabel
TEdgeLabel

Type Details

yFiles module
algorithms

Constructors

Properties

Methods