sesaparcours
    Preparing search index...
    • Adds a surface delimited by a polygon, a circle or an arc of circle syntaxes addSurface(edge), addSurface(edge, color), addSurface(edge, color, fillStyle) and addSurface(edge, color, fillStyle, opacity) are allowed too

      Parameters

      • options: {
            color?: string;
            edge: string;
            fillStyle?: string;
            hidden?: boolean;
            opacity?: number;
            tag?: string;
        }
        • Optionalcolor?: string

          Color, black by default

        • edge: string

          Tag or object (polygon, circle or circle arc or point locus)

        • OptionalfillStyle?: string

          Filling style (transp|fill|-|vert|hor|/|)

        • Optionalhidden?: boolean

          true to get the created surface masked

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          The tag to be applied on the created surface

      Returns Promise<undefined> | CSurfacePolygone

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