Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created line masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
The created segment if isPromiseMode is false or promise that will be resolved when the line is displayed
Adds the segment of extremities a et b syntaxes
addSegment(a, b),addSegment(a, b, color),addSegment(a, b, color, lineStyle)andaddSegment(a, b, color, lineStyle, thickness)are allowed too