Interface. Iedge Router
cleanupRoutingPoints(
edge
,routingPoints
,updateHandles
,addRoutingPoints
):void
Defined in: packages/sprotty/src/features/routing/routing.ts:123
Remove/add points in order to keep routing constraints consistent, or reset RPs on reconnect.
Point
[]
boolean
boolean
void
createRoutingHandles(
edge
):void
Defined in: packages/sprotty/src/features/routing/routing.ts:108
Creates the routing handles for the given target.
void
derivativeAt(
edge
,t
):undefined
|Point
Defined in: packages/sprotty/src/features/routing/routing.ts:98
Calculates the derivative at a point on the edge.
number
a value between 0 (sourceAnchor) and 1 (targetAnchor)
undefined
| Point
the point or undefined if t is out of bounds or it cannot be computed
findOrthogonalIntersection(
edge
,point
):undefined
| {derivative
:Point
;point
:Point
; }
Defined in: packages/sprotty/src/features/routing/routing.ts:82
Finds the orthogonal intersection point between an edge and a given point in 2D space.
The edge to find the intersection point on.
Point
The point to find the intersection with.
undefined
| { derivative
: Point
; point
: Point
; }
The intersection point and its derivative on the respective edge segment.
getHandlePosition(
edge
,route
,handle
):undefined
|Point
Defined in: packages/sprotty/src/features/routing/routing.ts:103
Retuns the position of the given handle based on the routing points of the edge.
undefined
| Point
pointAt(
edge
,t
):undefined
|Point
Defined in: packages/sprotty/src/features/routing/routing.ts:90
Calculates a point on the edge
number
a value between 0 (sourceAnchor) and 1 (targetAnchor)
undefined
| Point
the point or undefined if t is out of bounds or it cannot be computed
route(
edge
):RoutedPoint
[]
Defined in: packages/sprotty/src/features/routing/routing.ts:73
Calculates the route of the given edge.
takeSnapshot(
edge
):EdgeSnapshot
Defined in: packages/sprotty/src/features/routing/routing.ts:128
Creates a snapshot of the given edge, storing all the data needed to restore it to its current state.