diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-07-07 23:19:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-07 23:19:32 +0200 |
| commit | f5939d6341f68d5fa94e1f78e02cf4fb1fad0de2 (patch) | |
| tree | 8e963b6d315a3ebbbe825261968f6f5df46b513d /lib/stitches/auto_run.py | |
| parent | f8ecf8eaf99f2ced17a206ad0a2175d31faf9771 (diff) | |
Set redwork underpath style to dashed (#3053)
* set redwork underpath style to dashed
* unset dashes for top stitching paths
* update select elements template
Diffstat (limited to 'lib/stitches/auto_run.py')
| -rw-r--r-- | lib/stitches/auto_run.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stitches/auto_run.py b/lib/stitches/auto_run.py index b8ab84c7..38e05305 100644 --- a/lib/stitches/auto_run.py +++ b/lib/stitches/auto_run.py @@ -271,14 +271,18 @@ def create_element(path, position, direction, element): index = position + 1 if direction == "autorun": label = _("AutoRun %d") % index + dasharray = 'none' else: label = _("AutoRun Underpath %d") % index + dasharray = '2 1.1' node = inkex.PathElement() node.set("id", generate_unique_id(element.node, el_id)) node.set(INKSCAPE_LABEL, label) node.set("d", path) node.set("style", element.node.style) + node.style["fill"] = 'none' + node.style["stroke-dasharray"] = dasharray # Set Ink/Stitch attributes stitch_length = element.node.get(INKSTITCH_ATTRIBS['running_stitch_length_mm'], '') @@ -299,7 +303,6 @@ def create_element(path, position, direction, element): node.set(INKSTITCH_ATTRIBS['running_stitch_length_mm'], stitch_length) if tolerance: node.set(INKSTITCH_ATTRIBS['running_stitch_tolerance_mm'], tolerance) - node.set("style", element.node.style + inkex.Style("stroke-dasharray:0.5,0.5;fill:none;")) return Stroke(node) |
