Describes an ordering constraint that can be given as additional input to the HierarchicalLayout to influence the ordering of items in the layout.
Inheritance Hierarchy
Members
No filters for this type
Constructors
Initializes a new instance of the OrderingConstraint class.
Initializes a new instance of the OrderingConstraint class.
Parameters
- type: OrderingConstraintType
- The type of the placement constraint.
- minimumDistance: number
- The minimum distance when type BEFORE is used.
- weight: number
- The weight of the constraint. This influences the cost when a relative constraint will be elongated when BEFORE is specified.
- priority: number
- The priority of the constraint. If multiple constraints conflict, the ones with lower priority will be discarded.
Properties
readonlyfinal
This value is used for resolving conflicting constraints. A constraint with a higher priority is more likely to be considered.
The priority has to be greater than 0.
readonlyfinal
Property Value
the constraint priority
Default Value
The default value is: 1
Gets the type of this ordering constraint.
Gets the type of this ordering constraint.
readonlyfinal
The weight of the constraint. This influences the cost when a relative constraint will be elongated when BEFORE is specified.
readonlyfinal