From 7ecfa7a2e6b2c971f35d8264c35b3efdae212489 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 10 Apr 2022 10:21:59 +0200 Subject: Scale and toggle commands (etc) (#1611) * scale and toggle commands * fix tie in when first stitch is a jump stitch * set tie modus to 3 for cutwork objects * cutwork set stitch length * fix bug in remove embroidery settings --- lib/extensions/cutwork_segmentation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/extensions/cutwork_segmentation.py') diff --git a/lib/extensions/cutwork_segmentation.py b/lib/extensions/cutwork_segmentation.py index d17cfd76..1b0c568e 100644 --- a/lib/extensions/cutwork_segmentation.py +++ b/lib/extensions/cutwork_segmentation.py @@ -5,14 +5,15 @@ from math import atan2, degrees -import inkex from lxml import etree from shapely.geometry import LineString, Point +import inkex + from ..elements import Stroke from ..i18n import _ from ..svg import get_correction_transform -from ..svg.tags import INKSCAPE_LABEL, SVG_PATH_TAG +from ..svg.tags import INKSCAPE_LABEL, INKSTITCH_ATTRIBS, SVG_PATH_TAG from .base import InkstitchExtension @@ -141,6 +142,8 @@ class CutworkSegmentation(InkstitchExtension): { "style": color, "transform": get_correction_transform(element.node), + INKSTITCH_ATTRIBS["ties"]: "3", + INKSTITCH_ATTRIBS["running_stitch_length_mm"]: "1", "d": d }) self.new_elements.append([stroke_element, sector['id']]) -- cgit v1.2.3