Arrows
You can draw arrows in the same way you draw lines or curves, except that you must provide some arrow-specific properties.
Basic Usage
There are four basic properties which you can use to add an arrow to an existing path:
startArrow
: A boolean indicating if an arrow is drawn at the start point of the pathendArrow
: A boolean indicating if an arrow is drawn at the end point of the patharrowAngle
: The angle between the two tips of the angle (optional; defaults to90
)arrowRadius
: A number indicating the length of each tip of the arrow (required)
Note that you are not required to specify both the startArrow
and endArrow
properties. However, you must specify one or the other, and you may specify both.