sesaparcours
    Preparing search index...
    • Adds the midpoint of [a; b] syntaxes addMidpoint(a, b), addMidpoint(a, b, name), addMidpoint(a, b, name, color) and addMidpoint(a, b, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • a: string | CPt

          First point a or point name (or tag if name is empty) (to create midpoint of [a; b])

        • b: string | CPt

          Second point b or point name (or tag if name is empty) (to create midpoint of [a; b])

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          Name of the midpoint to be created

        • OptionaloffsetX?: number

          x-shift of the point name

        • OptionaloffsetY?: number

          y-shift of the point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionaltag?: string

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

      Returns Promise<undefined> | CMilieu

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