Example
Parameters
| Name | Type | Description |
|---|---|---|
| width | int | Display width in pixels. Use -1 for automatic sizing. Default: -1. |
| height | int | Display height in pixels. Use -1 for automatic sizing. Default: -1. |
| polygons | list | Initial polygon data. Each polygon is an object with polygons (list of {x, y} points in normalized 0-1 coordinates) and labels (list of strings). |
| url | string | URL of the image to annotate. |
| style | string | JSON string defining annotation colors: point_color, line_color, and surface_color. |