documentationfor yFiles for HTML 3.0.0.3

CompactDiskLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel>

Specifies custom data for the CompactDiskLayout.

Inheritance Hierarchy

Examples

The following example shows how to create a new instance of CompactDiskLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel> by using a single object initializer and use it with a CompactDiskLayout:
Creating an instance of CompactDiskLayoutData
const layoutData = new CompactDiskLayoutData({
  //define a halo for a specific known node, other nodes get no halo
  nodeMargins: (node) =>
    node == nodeWithHalo ? new Insets(20, 10, 20, 10) : null,
})
graphComponent.graph.applyLayout(new CompactDiskLayout(), layoutData)

Type Parameters

TNode
TEdge
TNodeLabel
TEdgeLabel

Type Details

yFiles module
algorithms

Constructors

Properties

Methods