Optionalcolor?: stringColor, black by default
The tag of the segment the mark will be applied on
Optionalhidden?: booleantrue to get the mark masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalsegmentMarkStyle?: stringAngle mark style (-|--|---|x)
Optionaltag?: stringTag to be applied on the mark (if present)
Optionalthickness?: numberthickness of the stroke
The created point if isPromiseMode is false else promise that will be resolved when the mark is displayed
Add a segment mark syntaxes
addSegmentMark(elt, color),addSegmentMark(elt, color, segmentMarkStyle)andaddSegmentMark(elt, color, segmentMarkStyle, thickness)are allowed too