Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HierarchicalLayoutConfig

Index

Properties

distanceDeclineRate?: number

Number from 0.0 to 1.0 representing how fast the distance between two nodes declines with each layer.

0.0 means it will always remain distanceMax

1.0 means it will jump and stay at distanceMin starting from the second layer.

Defaults to 0.3.

distanceMax?: number

Maximal distance between two nodes. Defaults to 3 * distanceMin.

distanceMin: number

Minimal distance between two nodes.

fixedNodeIds: string[]

List of nodes that must remain their positions. All other nodes are arranged around these fixed nodes.

gravityAngle?: number

Angle of gravity in radians.

0.0 is rightward direction.

Math.PI * 0.5 is upward direction.

Defaults to Math.PI * 1.5 (downward).

gravityStrength?: number

Strength of gravity.

0.0 disables the gravity.

1.0 means that nodes push each other away with the equal force as gravity pulls them towards gravityAngle.

2.0 means that gravity is twice as strong as nodes repulsion.

Defaults to 0.0.

layoutType: HIERARCHICAL

Generated using TypeDoc