An interface used by implementations that provide various size constraints for INodes.
Inheritance Hierarchy
INodeSizeConstraintProvider
Remarks
Implementations of this interface will be queried from an INode's lookup method and should return the size constraints for this node.
Related Programming Samples
- Size Constraint Provider
- Shows how resizing of nodes can be restricted.
Type Details
- yFiles module
- view
See Also
Methods
Static Methods
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getMinimumSize - function():Size
Returns the minimum size allowed for the node whose lookup returned this provider.
This property holds the implementation for getMinimumSize.
- getMaximumSize - function():Size
Returns the maximum size allowed for the node whose lookup returned this provider.
This property holds the implementation for getMaximumSize.
- getMinimumEnclosedArea - function():Rect
Returns the minimum area that needs to be enclosed by the node whose lookup returned this provider.
This property holds the implementation for getMinimumEnclosedArea.