sesaparcours
    Preparing search index...
    • Adds a polygon vertexes of which are given in the array points (array of the vertexes points names) syntaxes addPolygon(points), addPolygon(points, color), addPolygon(points, color, lineStyle) and addPolygon(points, color, lineStyle, thickness) are allowed too, where points is an array of points or name of points

      Parameters

      • options: { color?: string; lineStyle?: string; points: string[]; thickness?: number }
        • Optionalcolor?: string

          Color, black by default

        • OptionallineStyle?: string

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

        • points: string[]

          array of the vertexes points names of the polygon

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CPolygone

      the created polygon if isPromiseMode is false else promise that will be resolved when the object is displayed