This class divides a rectangular area into one or more PartitionCells.
Inheritance Hierarchy
Remarks
PartitionCells have to be disjoint. The union of all PartitionCells covers the original area.
Type Details
- yfiles module
- router-polyline
- yfiles-umd modules
- layout-area, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-polyline
- Legacy UMD name
- yfiles.router.IPartition
Properties
Gets the bounds of the original rectangular area that is partitioned.
Methods
Returns a list of all PartitionCells that intersect or cover the given rectangle.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- rect - YRectangle
- the rectangular area whose (partially) covered cells will be returned
Returns
- ↪IList<any>
- a list of PartitionCells that (partially) cover the given rectangular area
Returns a list of all PartitionCells that are neighbors of the given cell, i.e., those cells that have a common border segment with the given cell.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- cell - PartitionCell
- the cell whose neighbors will be returned
Returns
- ↪IList<any>
- a list of PartitionCells that are neighbors of the given cell