Polygons
The Polygons subsection of the Object section of the evCreate API includes an interface and functions to create and update polygon items.
polygon namespace
The Polygons subsection of the Object evCreate API section is accessed with the polygon namespace inside the object namespace:
evCreate.object.polygon.Function()
Interfaces
EvPolygonAttributesAn interface that defines the shape of a polygon item.
Functions
Create(points: EvCoord2D[], smooth: boolean, zOrder?: EvObjectZOrder): Promise<EvItem>A function to create a new polygon item.
SetPoints(obj: EvItem, points: EvCoord2D[]): Promise<void>A function to replace all the vertices of a given polygon item.
SetSmooth(obj: EvItem, smooth: boolean): Promise<void>A function to toggle the shape smoothness of a given polygon item.
10 April 2025