mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-31 07:09:52 +02:00
Refactor drawing process.
This commit is contained in:
parent
82859b4ea0
commit
1ea38aab97
4 changed files with 30 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue