From dc23265d2d2619ef6cb1c701480fc4ba10fafc77 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 2 Mar 2025 20:54:56 +0100 Subject: Use symbol as command position (#3542) --- lib/elements/fill_stitch.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/elements/fill_stitch.py') diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index 03a8e154..939d42d0 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -7,7 +7,7 @@ import math import re import numpy as np -from inkex import LinearGradient, Transform +from inkex import LinearGradient from shapely import geometry as shgeo from shapely import set_precision from shapely.errors import GEOSException @@ -22,7 +22,7 @@ from ..stitches import (auto_fill, circular_fill, contour_fill, guided_fill, legacy_fill, linear_gradient_fill, meander_fill, tartan_fill) from ..stitches.linear_gradient_fill import gradient_angle -from ..svg import PIXELS_PER_MM, get_node_transform +from ..svg import PIXELS_PER_MM from ..svg.clip import get_clip_path from ..svg.tags import INKSCAPE_LABEL from ..tartan.utils import get_tartan_settings, get_tartan_stripes @@ -1196,10 +1196,7 @@ class FillStitch(EmbroideryElement): # get target position command = self.get_command('target_point') if command: - pos = [float(command.use.get("x", 0)), float(command.use.get("y", 0))] - transform = get_node_transform(command.use) - pos = Transform(transform).apply_to_point(pos) - target = shgeo.Point(*pos) + target = shgeo.Point(*command.target_point) else: target = shape.centroid stitches = circular_fill( -- cgit v1.2.3