Rectangle is used to add rectangle (Bounding Box) to an image


Param Type Default Description
name string name of the element
toName string name of the image to label
[opacity] float 0.6 opacity of rectangle
[fillColor] string rectangle fill color, default is transparent
[strokeColor] string "#f48a42" stroke color
[strokeWidth] number 1 width of the stroke
[canRotate] boolean true show or hide rotation handle


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