kopia lustrzana https://github.com/inkstitch/inkstitch
scale markers as well (#1839)
rodzic
19f973a44a
commit
a059cda563
|
@ -21,3 +21,8 @@ class CommandsScaleSymbols(InkstitchExtension):
|
||||||
for symbol in command_symbols:
|
for symbol in command_symbols:
|
||||||
transform = Transform(symbol.get('transform')).add_scale(size)
|
transform = Transform(symbol.get('transform')).add_scale(size)
|
||||||
symbol.set('transform', str(transform))
|
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)
|
||||||
|
|
|
@ -20,7 +20,10 @@
|
||||||
refX="10"
|
refX="10"
|
||||||
refY="5"
|
refY="5"
|
||||||
orient="auto"
|
orient="auto"
|
||||||
id="inkstitch-pattern-marker">
|
id="inkstitch-pattern-marker"
|
||||||
|
markerUnits="userSpaceOnUse"
|
||||||
|
markerWidth="0.5"
|
||||||
|
viewBox="0 0 1 1">
|
||||||
<g
|
<g
|
||||||
id="inkstitch-pattern-group">
|
id="inkstitch-pattern-group">
|
||||||
<path
|
<path
|
||||||
|
@ -37,7 +40,10 @@
|
||||||
refX="10"
|
refX="10"
|
||||||
refY="5"
|
refY="5"
|
||||||
orient="auto"
|
orient="auto"
|
||||||
id="inkstitch-guide-line-marker">
|
id="inkstitch-guide-line-marker"
|
||||||
|
markerUnits="userSpaceOnUse"
|
||||||
|
markerWidth="0.5"
|
||||||
|
viewBox="0 0 1 1">
|
||||||
<g
|
<g
|
||||||
id="inkstitch-guide-line-group">
|
id="inkstitch-guide-line-group">
|
||||||
<path
|
<path
|
||||||
|
|
Przed Szerokość: | Wysokość: | Rozmiar: 3.5 KiB Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB |
Ładowanie…
Reference in New Issue