evCreate API 5.7 Help

EvPolygonAttributes Interface

The EvPolygonAttributes TS interface defines a blueprint of a JS object that defines the shape of a polygon item.

Properties

An EvPolygonAttributes object has the following properties:

isSmooth: boolean;

A Boolean, a flag that indicates the shape smoothness of the given polygon item:

  • false: sharp corners and straight edges.

  • true: rounded corners and curved edges.

The isSmooth controls whether a given polygon item object is drawn as a smooth curve (true) or with corners (false)
points: EvCoord2D[];

An array of EvCoord2D arrays, an array of 2D coordinates of points that define the vertices of the given polygon item.

For a closed polygon, the coordinates of the starting and ending points must be the same.

Points that define a closed polygon

Examples

{ isSmooth: true, points: [ [152.8057553956834, 786.3021582733812], [199.60439227565317, 551.7246743146025], [402.3276031806134, 521.4995139023916], [443.3956834532375, 727.2517985611512], [752.6330935251799, 705.496402877698], [724.6618705035971, 876.1236632315769], [552.1726618705037, 968.1151079136692], [301.9856115107914, 927.7122302158274], [152.8057553956834, 786.3021582733812] ] }
01 May 2025