Class. Jumping Polyline Edge View
protected
skipOffsetAfter:number
=2
Defined in: packages/sprotty/src/graph/views.tsx:142
protected
skipOffsetBefore:number
=3
Defined in: packages/sprotty/src/graph/views.tsx:141
protected
createGapPath(intersectionPoint
,lineSegment
):string
Defined in: packages/sprotty/src/graph/views.tsx:258
Point
string
protected
createJumpPath(intersectionPoint
,lineSegment
):string
Defined in: packages/sprotty/src/graph/views.tsx:251
Point
string
protected
getIntersectionsSortedBySegmentDirection(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.
protected
getLineSegment(edge
,intersection
,args?
,segments?
):PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:236
Point
[]
protected
getOtherLineSegment(currentEdge
,intersection
,args?
):undefined
|PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:242
undefined
| PointToPointLine
protected
intersectionPath(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
protected
renderAdditionals(edge
,segments
,context
):VNode
[]
Defined in: packages/sprotty/src/graph/views.tsx:114
Point
[]
VNode
[]
PolylineEdgeView
.renderAdditionals
protected
renderDanglingEdge(message
,edge
,context
):VNode
Defined in: packages/sprotty/src/graph/views.tsx:119
string
VNode
PolylineEdgeView
.renderDanglingEdge
protected
renderJunctionPoints(edge
,route
,context
,args
):any
Defined in: packages/sprotty/src/graph/views.tsx:89
Readonly
<SEdgeImpl
>
undefined
| IViewArgs
any
PolylineEdgeView
.renderJunctionPoints
protected
renderLine(edge
,segments
,context
,args?
):VNode
Defined in: packages/sprotty/src/graph/views.tsx:144
Point
[]
VNode
protected
shouldDrawLineGapOnIntersection(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
protected
shouldDrawLineJumpOnIntersection(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