First point or point name (or tag if name is empty) the line is going through
Second poinnt or point name (or tag if name is empty) the line is going through
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
The created line if isPromiseMode is false or promise that will be resolved when the line is displayed
Adds the line going through points a and b syntaxes
addLineAB(a, b),addLineAB(a, b, name),addLineAB(a, b, name, color),addLineAB(a, b, name, color, lineStyle)andaddLineAB(a, b, name, color, lineStyle, thickness)are allowed too