feat: add markpoint rotate support

closes #12787
This commit is contained in:
Matthias
2026-02-05 07:09:07 +01:00
parent 6c2a5b460e
commit 2c0a029187
2 changed files with 2 additions and 0 deletions

View File

@@ -1304,6 +1304,7 @@ Currently two types of annotations are supported, `area` and `line`.
"label": "some label",
"size": 2, // Optional, line width in pixels. Defaults to 10
"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
}
```

View File

@@ -34,6 +34,7 @@ class PointAnnotationType(_BaseAnnotationType, total=False):
y: float
size: int
shape: Literal["circle", "rect", "roundRect", "triangle", "pin", "arrow", "none"]
rotate: int
AnnotationType = AreaAnnotationType | LineAnnotationType | PointAnnotationType