Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Class. Edge Router Registry

get()

get(kind): IEdgeRouter

Defined in: packages/sprotty/src/features/routing/routing.ts:169

Parameters

kind

undefined | string

Returns

IEdgeRouter

Overrides

InstanceRegistry.get


hasKey()

hasKey(key): boolean

Defined in: packages/sprotty/src/utils/registry.ts:132

Parameters

key

string

Returns

boolean

Inherited from

InstanceRegistry.hasKey


missing()

protected missing(key): IEdgeRouter

Defined in: packages/sprotty/src/utils/registry.ts:145

Parameters

key

string

Returns

IEdgeRouter

Inherited from

InstanceRegistry.missing


override()

override(key, instance): void

Defined in: packages/sprotty/src/utils/registry.ts:116

Parameters

key

string

instance

IEdgeRouter

Returns

void

Inherited from

InstanceRegistry.override


register()

register(key, instance): void

Defined in: packages/sprotty/src/utils/registry.ts:106

Parameters

key

string

instance

IEdgeRouter

Returns

void

Inherited from

InstanceRegistry.register


route()

route(edge, args?): RoutedPoint[]

Defined in: packages/sprotty/src/features/routing/routing.ts:235

Computes or obtains the route of a single edge.

Parameters

edge

Readonly<SRoutableElementImpl>

the edge to be routed

args?

IViewArgs

arguments that may contain an EdgeRouting already

Returns

RoutedPoint[]

the route of the specified edge


routeAllChildren()

routeAllChildren(parent): EdgeRouting

Defined in: packages/sprotty/src/features/routing/routing.ts:179

Computes the routes of all edges contained by the specified parent. After all routes are available, it’ll apply the registered EdgeRoutePostProcessors.

Parameters

parent

Readonly<SParentElementImpl>

the parent to traverse for edges

Returns

EdgeRouting

the routes of all edges that are children of parent