The polygon element creates a polygon with the points defined as its children. A polygon is always closed. For example, if the polygon consists of three points, it will be a triangle. Two points in a polygon will draw a line.
<polygon id="objectId" [lineStyle="lineStyleId"] [fillStyle="fillStyleId"] [fillTransform="transform"]>
<!-- Defining polygon points -->
...
</polygon>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Object identifier |
no |
- |
|
| lineStyle |
Line style element id (from styles collection) |
yes |
- |
|
| fillStyle |
Fill style element id (from styles collection) |
yes |
- |
|
| closed |
If true polygon is automatically closed |
yes |
true |
|
|
fillTransform |
Transforms shape fill style (rotate, scale, move, skew) using using script-style transformation notation. |
yes |
- |
point element