An interface used by implementations that provide various size constraints for INodes.
Inheritance Hierarchy
INodeSizeConstraintProvider
Related Programming Samples
- Size Constraint Provider
- Shows how resizing of nodes can be restricted.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.INodeSizeConstraintProvider
See Also
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
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
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.
Returns
See Also
Static Methods
Creates an implementation of the interface INodeSizeConstraintProvider from the given definition.
Remarks
The given object must contain exactly the abstract members of the INodeSizeConstraintProvider interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getMinimumSize - function(INode):Size
Returns the minimum size allowed for the given
node
.This property holds the implementation for getMinimumSize.
- getMaximumSize - function(INode):Size
Returns the maximum size allowed for the given
node
.This property holds the implementation for getMaximumSize.
- getMinimumEnclosedArea - function(INode):Rect
Returns the minimum area that needs to be enclosed by the given
node
.This property holds the implementation for getMinimumEnclosedArea.
Returns
- ↪INodeSizeConstraintProvider
- An instance of the INodeSizeConstraintProvider interface based on the given definition.