A ILayoutGroupBoundsCalculator is responsible for calculating the bounds of a group node during a layout process.
Inheritance Hierarchy
ILayoutGroupBoundsCalculator
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.IGroupBoundsCalculator
See Also
Methods
Calculates the bounds of the given group node that contains the given list of child nodes.
Remarks
This method is called during the layout process.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- groupNode - YNode
- the group node whose bounds will be calculated
- children - YNodeList
- a YNodeList containing the nodes that reside inside the group node
Returns
- ↪Rectangle2D
- a Rectangle2D instance that describes the bounds of the group node
Static Methods
create
(calculateBounds: function(LayoutGraph, YNode, YNodeList):Rectangle2D) : ILayoutGroupBoundsCalculatorCreates an implementation of the interface ILayoutGroupBoundsCalculator by using the given function as implementation for its calculateBounds method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- calculateBounds - function(LayoutGraph, YNode, YNodeList):Rectangle2D
- A function for ILayoutGroupBoundsCalculator's single abstract method calculateBounds.
Returns
- ↪ILayoutGroupBoundsCalculator
- An instance of the ILayoutGroupBoundsCalculator interface based on the given function.