-
Guide
Tags
API
What's new
tags
- Introduction
Objects
- Audio
- AudioPlus
- HyperText
- Image
- Paragraphs
- Text
- TimeSeries
Controls
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- TextArea
- Taxonomy
- TimeSeriesLabels
- Filter
Visual
- Header
- Style
- Table
- View
PolygonLabels
PolygonLabels tag, create labeled polygons
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 |
rectangle |
style of points |
Example
<View>
<Image name="image" value="$image" />
<PolygonLabels name="lables" toName="image">
<Label value="Car" />
<Label value="Sign" />
</PolygonLabels>
</View>