Skip to content

Commit

Permalink
fix(svg): Raise NotImplementedError when angle not -90
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Jan 8, 2024
1 parent 21fc8f3 commit 95384ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions capellambse/svg/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ def _draw_label(self, builder: LabelBuilder) -> None:

if transform := getattr(builder.labelstyle, "transform", None):
if match := re.search(RE_ROTATION, transform):
if match.group("angle") != "-90":
raise NotImplementedError(
"Angles other than -90 are not supported"
)

x = float(match.group("x"))
y = float(match.group("y"))
if new_y := match.group("tspan_y"):
Expand Down

0 comments on commit 95384ff

Please sign in to comment.