diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-05-18 16:02:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-18 16:02:07 +0200 |
| commit | bc4f3b4699555f48c571be9a22a6768635c38cd0 (patch) | |
| tree | 6a0bcd47bd19742857d0a7ed6bc034b22a4621a6 /lib/elements/marker.py | |
| parent | bb0f3b8168ea2c889935b96b532188b79d7f952e (diff) | |
Auto route for running stitch (#1638)
* add auto route for running stitch
* introduce free motion commands
Co-authored-by: Lex Neva <github.com@lexneva.name>
Diffstat (limited to 'lib/elements/marker.py')
| -rw-r--r-- | lib/elements/marker.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/elements/marker.py b/lib/elements/marker.py new file mode 100644 index 00000000..574ce91e --- /dev/null +++ b/lib/elements/marker.py @@ -0,0 +1,32 @@ +# Authors: see git history +# +# Copyright (c) 2010 Authors +# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. + +import inkex + +from ..i18n import _ +from .element import EmbroideryElement +from .validation import ObjectTypeWarning + + +class MarkerWarning(ObjectTypeWarning): + name = _("Marker Element") + description = _("This element will not be embroidered. " + "It will be applied to objects in the same group. Objects in sub-groups will be ignored.") + steps_to_solve = [ + _("Turn back to normal embroidery element mode, remove the marker:"), + _('* Open the Fill and Stroke panel (Objects > Fill and Stroke)'), + _('* Go to the Stroke style tab'), + _('* Under "Markers" choose the first (empty) option in the first dropdown list.') + ] + + +class MarkerObject(EmbroideryElement): + + def validation_warnings(self): + repr_point = next(inkex.Path(self.parse_path()).end_points) + yield MarkerWarning(repr_point) + + def to_stitch_groups(self, last_patch): + return [] |
