arrow

fun arrow(angle: Number? = null, length: Number? = null, ends: String? = null, type: String? = null): Map<String, Any>

Describes arrows to add to a line.

Parameters

angle

The angle of the arrow head in degrees (smaller numbers produce narrower, pointer arrows). Essentially describes the width of the arrow head.

length

The length of the arrow head (px).

ends

Indicating which ends of the line to draw arrow heads: ("last", "first", "both").

type

Indicating whether the arrow head should be a closed triangle: ("open", "closed").