This interface provides methods for extending the functionality of a GraphPartition.
Remarks
A IGraphPartitionExtension can be used for creating new Obstacles that will be given to the initializer of the IObstaclePartition where they can react to the IObstaclePartition's decomposition events if it implements the IDynamicDecomposition interface.
A IGraphPartitionExtension has to be added to the GraphPartition which will call method preparePartition before the IObstaclePartition is initialized.
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.IGraphPartitionExtension
Methods
Cleans up the extension from the last partitioning with the current configuration and GraphPartition.
Callback after the new given PartitionCell has been created.
Parameters
A map of options to pass to the method.
- createdCell - PartitionCell
- the newly created PartitionCell
Defined in
Callback after the given PartitionCell has been finalized.
Remarks
Parameters
A map of options to pass to the method.
- finalizedCell - PartitionCell
- the cell that has been finalized
Defined in
Callback after the given PartitionCell has been subdivided into several sub-cells.
Remarks
Parameters
A map of options to pass to the method.
- cell - PartitionCell
- the cell that has been subdivided
- subCells - IList<Object>
- the sub-cells resulting from the subdivision of the given PartitionCell
Defined in
Callback after the given PartitionCell has been unlocked.
Remarks
Parameters
A map of options to pass to the method.
- unlockedCell - PartitionCell
- the cell that has been unlocked
Defined in
Adds a IGraphPartitionExtension to the GraphPartition.
Remarks
Parameters
A map of options to pass to the method.
- configuration - PathSearchConfiguration
- the configuration used for the path search
- graphPartition - GraphPartition
- the graph partition that uses this extension