Class. Jumping Polyline Edge View
protectedskipOffsetAfter:number=2
Defined in: packages/sprotty/src/graph/views.tsx:142
protectedskipOffsetBefore:number=3
Defined in: packages/sprotty/src/graph/views.tsx:141
protectedcreateGapPath(intersectionPoint,lineSegment):string
Defined in: packages/sprotty/src/graph/views.tsx:258
Point
string
protectedcreateJumpPath(intersectionPoint,lineSegment):string
Defined in: packages/sprotty/src/graph/views.tsx:251
Point
string
protectedgetIntersectionsSortedBySegmentDirection(lineSegment,intersectingPoint):Intersection[]
Defined in: packages/sprotty/src/graph/views.tsx:200
Returns the intersections sorted by the direction of the lineSegment.
The coordinate system goes from left to right and top to bottom. Thus, x increases to the right and y increases downwards.
We need to draw the intersections in the order of the direction of the line segment. To draw a line pointing north, we need to order intersections by Y in a descending order. To draw a line pointing south, we need to order intersections by Y in an ascending order.
protectedgetLineSegment(edge,intersection,args?,segments?):PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:236
Point[]
protectedgetOtherLineSegment(currentEdge,intersection,args?):undefined|PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:242
undefined | PointToPointLine
protectedintersectionPath(edge,segments,intersectingPoint,args?):string
Defined in: packages/sprotty/src/graph/views.tsx:164
Returns a path that takes the intersections into account by drawing a line jump or a gap for intersections on that path.
Point[]
string
isVisible(
model,route,context):boolean
Defined in: packages/sprotty/src/features/routing/views.ts:30
Check whether the given model element is in the current viewport. Use this method
in your render implementation to skip rendering in case the element is not visible.
This can greatly enhance performance for large models.
Readonly<SRoutableElementImpl>
Point[]
boolean
render(
edge,context,args?):undefined|VNode
Defined in: packages/sprotty/src/graph/views.tsx:67
Readonly<SEdgeImpl>
undefined | VNode
protectedrenderAdditionals(edge,segments,context):VNode[]
Defined in: packages/sprotty/src/graph/views.tsx:114
Point[]
VNode[]
PolylineEdgeView.renderAdditionals
protectedrenderDanglingEdge(message,edge,context):VNode
Defined in: packages/sprotty/src/graph/views.tsx:119
string
VNode
PolylineEdgeView.renderDanglingEdge
protectedrenderJunctionPoints(edge,route,context,args):any
Defined in: packages/sprotty/src/graph/views.tsx:89
Readonly<SEdgeImpl>
undefined | IViewArgs
any
PolylineEdgeView.renderJunctionPoints
protectedrenderLine(edge,segments,context,args?):VNode
Defined in: packages/sprotty/src/graph/views.tsx:144
Point[]
VNode
protectedshouldDrawLineGapOnIntersection(currentLineSegment,otherLineSegment):boolean
Defined in: packages/sprotty/src/graph/views.tsx:232
Whether or not to draw a line gap on an intersection for the currentLineSegment.
This should usually be inverse of shouldDrawLineJumpOnIntersection().
boolean
protectedshouldDrawLineJumpOnIntersection(currentLineSegment,otherLineSegment):boolean
Defined in: packages/sprotty/src/graph/views.tsx:224
Whether or not to draw a line jump on an intersection for the currentLineSegment.
This should usually be inverse of shouldDrawLineGapOnIntersection().
boolean