EdgePathGeneratorRegistry

class EdgePathGeneratorRegistry()

Registry for edge path generators.

The current instance can be retrieved from the GraphEditor object.

Returns:

EdgePathGeneratorRegistry

EdgePathGeneratorRegistry.addEdgePathGenerator(pathGeneratorId, pathGenerator)

Add a new path generator to the registry.

Arguments:
EdgePathGeneratorRegistry.clearAllPathGenerators()

Clears all path generators (including the default path generator).

EdgePathGeneratorRegistry.getEdgePathGenerator(pathGeneratorId)

Get the edge path generator.

If the id was not found the id ‘default’ will be used instead.

Arguments:
  • pathGeneratorId (string) –

Returns:

EdgePathGenerator

EdgePathGeneratorRegistry.removePathGenerator(pathGeneratorId)

Remove a registered path generator.

Arguments:
  • pathGeneratorId (string) –