C

OrderingConstraint

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.

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

Gets the minimum distance of the ordering constraint, which is considered only if the type is BEFORE.
readonlyfinal
Gets the priority of a constraint.

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.
readonlyfinal
Gets the weight to apply by relative constraints when constraints span multiple layers.
The weight of the constraint. This influences the cost when a relative constraint will be elongated when BEFORE is specified.
readonlyfinal