@@ -1304,6 +1304,7 @@ Currently two types of annotations are supported, `area` and `line`.
|
|||||||
"label": "some label",
|
"label": "some label",
|
||||||
"size": 2, // Optional, line width in pixels. Defaults to 10
|
"size": 2, // Optional, line width in pixels. Defaults to 10
|
||||||
"shape": "circle", // Optional, can be "circle", "rect", "roundRect", "triangle", "pin", "arrow", "none".
|
"shape": "circle", // Optional, can be "circle", "rect", "roundRect", "triangle", "pin", "arrow", "none".
|
||||||
|
"rotate": 0, // Optional, rotation of the shape/symbol in degrees. Defaults to 0
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class PointAnnotationType(_BaseAnnotationType, total=False):
|
|||||||
y: float
|
y: float
|
||||||
size: int
|
size: int
|
||||||
shape: Literal["circle", "rect", "roundRect", "triangle", "pin", "arrow", "none"]
|
shape: Literal["circle", "rect", "roundRect", "triangle", "pin", "arrow", "none"]
|
||||||
|
rotate: int
|
||||||
|
|
||||||
|
|
||||||
AnnotationType = AreaAnnotationType | LineAnnotationType | PointAnnotationType
|
AnnotationType = AreaAnnotationType | LineAnnotationType | PointAnnotationType
|
||||||
|
|||||||
Reference in New Issue
Block a user