sesaparcours
    Preparing search index...
    • Adds the segment of extremities a et b syntaxes addSegment(a, b), addSegment(a, b, color), addSegment(a, b, color, lineStyle) and addSegment(a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CSegment

      The created segment if isPromiseMode is false or promise that will be resolved when the line is displayed