summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-10-15 16:41:06 +0200
committerGitHub <noreply@github.com>2022-10-15 16:41:06 +0200
commita059cda563920786e6aef9cd89da6cc9ba05f1bd (patch)
tree9edc9785ef9e69cfd5ec9081699b04fbd77365ab /lib
parent19f973a44ab04fbef4295a12f4fde71ac4bd39fd (diff)
scale markers as well (#1839)
Diffstat (limited to 'lib')
-rw-r--r--lib/extensions/commands_scale_symbols.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/extensions/commands_scale_symbols.py b/lib/extensions/commands_scale_symbols.py
index 2e025000..4fa272e3 100644
--- a/lib/extensions/commands_scale_symbols.py
+++ b/lib/extensions/commands_scale_symbols.py
@@ -21,3 +21,8 @@ class CommandsScaleSymbols(InkstitchExtension):
for symbol in command_symbols:
transform = Transform(symbol.get('transform')).add_scale(size)
symbol.set('transform', str(transform))
+
+ markers = svg.xpath(".//svg:marker[starts-with(@id, 'inkstitch')]", namespaces=NSS)
+ for marker in markers:
+ marker_size = float(marker.get('markerWidth', 0.5)) * size
+ marker.set('markerWidth', marker_size)