Polygon

Polygon tag
Polygon is used to add polygons to an image

Parameters

Param Type Default Description
name string name of tag
toname string name of image to label
[opacity] number 0.6 opacity of polygon
[fillColor] string rectangle fill color, default is transparent
[strokeColor] string stroke color
[strokeWidth] number 1 width of stroke
[pointSize] small | medium | large medium size of polygon handle points
[pointStyle] rectangle | circle circle style of points

Example

<View>
  <Polygon name="rect-1" toName="img-1" />
  <Image name="img-1" value="$img" />
</View>