summaryrefslogtreecommitdiff
path: root/lib/elements/fill_stitch.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2022-05-02 23:48:46 -0400
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commit68ee0eea8733d613543a28627bd21a4481da8b46 (patch)
tree14fe4f30b08c2c4a1df61d646313e58988a09610 /lib/elements/fill_stitch.py
parent056a1cc45d3744c44314572e710fcc60b548fd23 (diff)
add clockwise option
Diffstat (limited to 'lib/elements/fill_stitch.py')
-rw-r--r--lib/elements/fill_stitch.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index bc022ab3..2f8687a1 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -124,6 +124,11 @@ class FillStitch(EmbroideryElement):
return self.get_boolean_param('avoid_self_crossing', False)
@property
+ @param('clockwise', _('Clockwise'), type='boolean', default=True, select_items=[('fill_method', 1), ('fill_method', 2)], sort_index=2)
+ def clockwise(self):
+ return self.get_boolean_param('clockwise', True)
+
+ @property
@param('angle',
_('Angle of lines of stitches'),
tooltip=_('The angle increases in a counter-clockwise direction. 0 is horizontal. Negative angles are allowed.'),
@@ -580,7 +585,8 @@ class FillStitch(EmbroideryElement):
self.interlaced,
self.tangential_strategy,
shgeo.Point(starting_point),
- self.avoid_self_crossing
+ self.avoid_self_crossing,
+ self.clockwise
)
path = [InkstitchPoint(*p) for p in connectedLine]
stitch_group = StitchGroup(