Refactor drawing process.

This commit is contained in:
Sergey Vartanov 2022-05-16 03:13:21 +03:00
parent 82859b4ea0
commit 1ea38aab97
4 changed files with 30 additions and 6 deletions

View file

@ -311,6 +311,7 @@ def draw_text(
stroke: Optional[Color] = None,
opacity: float = 1.0,
):
"""Add text element to the canvas."""
text_element = svg.text(
text,
point,