编辑 | blame | 历史 | 原始文档

Parameters

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 in hexadecimal
[strokeColor] string "#f48a42" Stroke color in hexadecimal
[strokeWidth] number 1 Width of the stroke
[canRotate] boolean true Whether to show or hide rotation control. Note that the anchor point in the results is different than the anchor point used when rotating with the rotation tool. For more information, see Rotation.
[smart] boolean Show smart tool for interactive pre-annotations
[smartOnly] boolean Only show smart tool for interactive pre-annotations
[snap] pixel | none none Snap rectangle to image pixels