summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-04-18 07:39:15 +0200
committerGitHub <noreply@github.com>2025-04-18 07:39:15 +0200
commit8137481953398b22f6eb9c2f7497102f82ccee0b (patch)
tree48beb04fc73921f69d3f71cdaa16acc98e998fbc /lib/elements/stroke.py
parent37f3c57b9522f779a36e9e9a8d1f93db8f43e6fd (diff)
Disconnect stroke and fill pull compensation param (#3670)
* make stroke pull compensation a sided property
Diffstat (limited to 'lib/elements/stroke.py')
-rw-r--r--lib/elements/stroke.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 96a9307f..5143c020 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -195,18 +195,18 @@ class Stroke(EmbroideryElement):
return max(self.get_float_param("zigzag_spacing_mm", 0.4), 0.01)
@property
- @param('pull_compensation_mm',
+ @param('stroke_pull_compensation_mm',
_('Pull compensation'),
tooltip=_('Zigzag stitches pull the fabric together, resulting in a column narrower than you draw in Inkscape. '
'This widens the zigzag line width.'),
- unit='mm',
+ unit=_('mm (each side)'),
type='float',
default=0,
select_items=[('stroke_method', 'zigzag_stitch')],
sort_index=6)
@cache
def pull_compensation(self):
- return self.get_float_param("pull_compensation_mm", 0)
+ return self.get_split_mm_param_as_px("stroke_pull_compensation_mm", (0, 0))
@property
@param('line_count',