diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-01-28 08:48:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 08:48:44 +0100 |
| commit | 92ac7986937c14b224a24aa483d668557ee8ba53 (patch) | |
| tree | 00b306678e1523021f037e09dc4e1798f09e3d03 /lib/elements/fill_stitch.py | |
| parent | 33b0cdab9e6b7f94e42bd4c2ee13ef8dc5a9f549 (diff) | |
add zigzag option to meander (#2699)
Diffstat (limited to 'lib/elements/fill_stitch.py')
| -rw-r--r-- | lib/elements/fill_stitch.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index 593791e5..267dbbd5 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -423,6 +423,32 @@ class FillStitch(EmbroideryElement): return self.get_multiple_int_param("bean_stitch_repeats", "0") @property + @param('zigzag_spacing_mm', + _('Zig-zag spacing (peak-to-peak)'), + tooltip=_('Length of stitches in zig-zag mode.'), + unit='mm', + type='float', + select_items=[('fill_method', 'meander_fill')], + default=0, + sort_index=35) + @cache + def zigzag_spacing(self): + return self.get_float_param("zigzag_spacing_mm", 0) + + @property + @param('zigzag_width_mm', + _('Zigzag width'), + tooltip=_('Width of the zigzag line.'), + unit='mm', + type='float', + select_items=[('fill_method', 'meander_fill')], + default=3, + sort_index=36) + @cache + def zigzag_width(self): + return self.get_float_param("zigzag_width_mm", 0) + + @property def color(self): # SVG spec says the default fill is black return self.get_style("fill", "#000000") |
