An implementation of INodeSizeConstraintProvider which provides constant sizes.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.NodeSizeConstraintProvider
See Also
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 given node
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- node - INode
- The node to return the maximum size for.
Returns
See Also
Implements
Returns the minimum area that needs to be enclosed by the given node
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- node - INode
- The node to return the area for.
Returns
See Also
Implements
Returns the minimum size allowed for the given node
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- node - INode
- The node to return the minimum size for.