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
See Also
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: OrderingConstraintTypeconversion
- The type of the placement constraint.
- minimumDistance: number
- The minimum distance when type OrderingConstraintType.BEFORE is used.
- weight: number
- The weight of the constraint. This influences the cost when a relative constraint will be elongated when OrderingConstraintType.BEFORE is specified.
- priority: number
- The priority of the constraint. If multiple constraints conflict, the ones with lower priority will be discarded.
Properties
Gets the minimum distance of the ordering constraint, which is considered only if the type is OrderingConstraintType.BEFORE.
Gets the minimum distance of the ordering constraint, which is considered only if the type is OrderingConstraintType.BEFORE.
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 OrderingConstraintType.BEFORE is specified.
readonlyfinal