ElbowArrowRoute
See source codeTable of contents
A route for an elbow arrow.
interface ElbowArrowRoute {}
Properties
distance
The total distance of the route, in arrow-space pixels.
distance: number
midpointHandle
The midpoint handle of the route, if any.
midpointHandle: ElbowArrowMidpointHandle | null
points
The vertices of the route. Draw a line through them to see the route.
points: Vec[]
skipPointsWhenDrawing
Some points on the line are there for more informative than display reasons - e.g. where the midpoint handle is. If we draw these in our "draw" style, the line will look weird. We still need them for some of the calculations we do, but we want to skip them specifically when rendering the arrow.
skipPointsWhenDrawing: Set<Vec>
Prev
ElbowArrowRangeNext
ElbowArrowTargetBox