CircularLayout class

This layout positions nodes in a circular arrangement. There are several samples that use CircularLayout. The layout cannot guarantee that it provides optimal positioning of nodes when trying to minimize link crossings.

If you want to experiment interactively with most of the properties, try the Circular Layout sample. See samples that make use of CircularLayout in the samples index.

This layout makes use of a LayoutNetwork of CircularVertexes and CircularEdges that normally correspond to the Nodes and Links of the Diagram.

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CircularLayout([dynamic init])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

ascending EnumValue
Nodes are sorted using the #comparer, in ascending order; This value is used for CircularLayout#sorting.
getter/setter pair
bidirectionalLeft EnumValue
The ring is filled by alternating sides; the second node is counterclockwise from the first node; This value is used for CircularLayout#direction.
getter/setter pair
bidirectionalRight EnumValue
The ring is filled by alternating sides; the second node is clockwise from the first node; This value is used for CircularLayout#direction.
getter/setter pair
circular EnumValue
The effective diameter is either the width or height of the node, whichever is larger; This will cause circular nodes to touch when CircularLayout#spacing is 0; This is ideal when the nodes are circular. This value is used for CircularLayout#nodeDiameterFormula.
getter/setter pair
clockwise EnumValue
Rings are filled clockwise; This value is used for CircularLayout#direction.
getter/setter pair
constantAngle EnumValue
The angular distance between the nodes is constant; This value is used for CircularLayout#arrangement.
getter/setter pair
constantDistance EnumValue
The distance between the centers of the nodes is constant; This value is used for CircularLayout#arrangement.
getter/setter pair
constantSpacing EnumValue
The spacing between the idealized boundaries of the nodes is constant; This value is used for CircularLayout#arrangement.
getter/setter pair
counterclockwise EnumValue
Rings are filled counterclockwise; This value is used for CircularLayout#direction.
getter/setter pair
descending EnumValue
Nodes are sorted using the #comparer, in reverse ascending (descending) order; This value is used for CircularLayout#sorting.
getter/setter pair
forwards EnumValue
Nodes are arranged in the order given; This value is used for CircularLayout#sorting.
getter/setter pair
optimized EnumValue
Nodes are ordered to reduce link crossings; This value is used for CircularLayout#sorting.
getter/setter pair
packed EnumValue
The vertices are arranged as close together as possible considering the CircularLayout#spacing, assuming the nodes are rectangular; This value is used for CircularLayout#arrangement.
getter/setter pair
pythagorean EnumValue
The effective diameter is sqrt(width^2+height^2); The corners of square nodes will touch at 45 degrees when CircularLayout#spacing is 0; This value is used for CircularLayout#nodeDiameterFormula.
getter/setter pair
reverse EnumValue
Nodes are arranged in the reverse of the order given; This value is used for CircularLayout#sorting.
getter/setter pair