diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-22 18:05:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 18:05:09 +0200 |
| commit | b6681c2c4994e0c3a28af898af366767a6c71473 (patch) | |
| tree | 63f557d1000afd3204546ce29bc7b23eec4e1a6f | |
| parent | f5a7a2b6358aa767ae65578ff622c9856d78589f (diff) | |
jump to stroke: add path label (#4011)
| -rw-r--r-- | lib/extensions/jump_to_stroke.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/extensions/jump_to_stroke.py b/lib/extensions/jump_to_stroke.py index 7470faeb..2177c56e 100644 --- a/lib/extensions/jump_to_stroke.py +++ b/lib/extensions/jump_to_stroke.py @@ -6,6 +6,7 @@ from inkex import Boolean, DirectedLineSegment, Path, PathElement, Transform from ..elements import Stroke +from ..i18n import _ from ..svg import PIXELS_PER_MM, generate_unique_id, get_correction_transform from ..svg.tags import INKSTITCH_ATTRIBS, SVG_GROUP_TAG from .base import InkstitchExtension @@ -187,6 +188,7 @@ class JumpToStroke(InkstitchExtension): style = f'stroke:{color};stroke-width:{self.svg.viewport_to_unit("1px")};stroke-dasharray:3, 1;fill:none;' line = PathElement(d=str(path), style=style) + line.label = _('Running Stitch') line.set(INKSTITCH_ATTRIBS['running_stitch_length_mm'], self.options.running_stitch_length_mm) line.set(INKSTITCH_ATTRIBS['running_stitch_tolerance_mm'], self.options.running_stitch_tolerance_mm) parent.insert(index, line) |
