Skip to content

Function: createArrow() ​

ts
function createArrow(
   x0, 
   y0, 
   x1, 
   y1, 
   styles): Arrow;

Parameters ​

x0 ​

number = 0

y0 ​

number = 0

x1 ​

number = 0

y1 ​

number = 0

styles ​

Extremity

Head extremity style

strokeColor? ​

string

Stroke color: #f00, yellow...

strokeType? ​

StrokeType

Type of stroke: plain, dashed, or none

strokeWidth? ​

number

Stroke width

tail? ​

Extremity

Tail extremity style

Returns ​

Arrow