Class. Polyline Edge View With Gaps on Intersections
protectedskipOffsetAfter:number=3
Defined in: packages/sprotty/src/graph/views.tsx:291
JumpingPolylineEdgeView.skipOffsetAfter
protectedskipOffsetBefore:number=3
Defined in: packages/sprotty/src/graph/views.tsx:290
JumpingPolylineEdgeView.skipOffsetBefore
protectedcreateGapPath(intersectionPoint,lineSegment):string
Defined in: packages/sprotty/src/graph/views.tsx:301
Point
string
JumpingPolylineEdgeView.createGapPath
protectedcreateJumpPath(intersectionPoint,lineSegment):string
Defined in: packages/sprotty/src/graph/views.tsx:251
Point
string
JumpingPolylineEdgeView.createJumpPath
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.
JumpingPolylineEdgeView.getIntersectionsSortedBySegmentDirection
protectedgetLineSegment(edge,intersection,args?,segments?):PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:236
Point[]
JumpingPolylineEdgeView.getLineSegment
protectedgetOtherLineSegment(currentEdge,intersection,args?):undefined|PointToPointLine
Defined in: packages/sprotty/src/graph/views.tsx:242
undefined | PointToPointLine
JumpingPolylineEdgeView.getOtherLineSegment
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
JumpingPolylineEdgeView.intersectionPath
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
JumpingPolylineEdgeView.isVisible
render(
edge,context,args?):undefined|VNode
Defined in: packages/sprotty/src/graph/views.tsx:67
Readonly<SEdgeImpl>
undefined | VNode
JumpingPolylineEdgeView.render
protectedrenderAdditionals(edge,segments,context):VNode[]
Defined in: packages/sprotty/src/graph/views.tsx:114
Point[]
VNode[]
JumpingPolylineEdgeView.renderAdditionals
protectedrenderDanglingEdge(message,edge,context):VNode
Defined in: packages/sprotty/src/graph/views.tsx:119
string
VNode
JumpingPolylineEdgeView.renderDanglingEdge
protectedrenderJunctionPoints(edge,route,context,args):any
Defined in: packages/sprotty/src/graph/views.tsx:89
Readonly<SEdgeImpl>
undefined | IViewArgs
any
JumpingPolylineEdgeView.renderJunctionPoints
protectedrenderLine(edge,segments,context,args?):VNode
Defined in: packages/sprotty/src/graph/views.tsx:144
Point[]
VNode
JumpingPolylineEdgeView.renderLine
protectedshouldDrawLineGapOnIntersection(currentLineSegment,otherLineSegment):boolean
Defined in: packages/sprotty/src/graph/views.tsx:297
Whether or not to draw a line gap on an intersection for the currentLineSegment.
This should usually be inverse of shouldDrawLineJumpOnIntersection().
boolean
JumpingPolylineEdgeView.shouldDrawLineGapOnIntersection
protectedshouldDrawLineJumpOnIntersection(currentLineSegment,otherLineSegment):boolean
Defined in: packages/sprotty/src/graph/views.tsx:293
Whether or not to draw a line jump on an intersection for the currentLineSegment.
This should usually be inverse of shouldDrawLineGapOnIntersection().
boolean