An implementation of INodeSizeConstraintProvider which provides constant sizes.
Type Details
- yFiles module
- view
Constructors
NodeSizeConstraintProvider
(minimumSize: ISize, maximumSize: ISize, minimumEnclosedArea?: IRectangle)Creates a new instance using the provided size instances as the initial values.
Remarks
Not specifying the
minimumEnclosedArea
will set it to EMPTY.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- minimumSize - ISize
- The minimumSize.
- maximumSize - ISize
- The maximumSize.
- minimumEnclosedArea - IRectangle
- The minimumEnclosedArea.
Properties
Gets or sets the instance to return by getMaximumSize.
Gets or sets the instance to return by getMinimumEnclosedArea.
Gets or sets the instance to return by getMinimumSize.
Methods
Returns the maximum size allowed for the node whose lookup returned this provider.
Returns
Implements
Returns the minimum area that needs to be enclosed by the node whose lookup returned this provider.
Returns
Implements
Returns the minimum size allowed for the node whose lookup returned this provider.