From b0105196889a463579aab21cd29bbf1abb96dab1 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 7 Dec 2024 15:20:11 +0100 Subject: Enable start end commands for satins (#3315) Updates commands fill_start (_end) => starting_point (_end) stain_start (_end) and run_start (_end) => autoroute_start ripple_target => target_point Sets inkstitch svg version to 3 --- lib/tartan/svg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tartan/svg.py') diff --git a/lib/tartan/svg.py b/lib/tartan/svg.py index 0fd8b579..15646629 100644 --- a/lib/tartan/svg.py +++ b/lib/tartan/svg.py @@ -166,11 +166,11 @@ class TartanSvgGroup: end = element.get('inkstitch:end') if start: start = start[1:-1].split(',') - add_commands(fill, ['fill_start'], self._get_command_position(fill, (float(start[0]), float(start[1])))) + add_commands(fill, ['starting_point'], self._get_command_position(fill, (float(start[0]), float(start[1])))) element.pop('inkstitch:start') if end: end = end[1:-1].split(',') - add_commands(fill, ['fill_end'], self._get_command_position(fill, (float(end[0]), float(end[1])))) + add_commands(fill, ['ending_point'], self._get_command_position(fill, (float(end[0]), float(end[1])))) element.pop('inkstitch:end') def _route_shapes(self, routing_lines: defaultdict, outline_shape: MultiPolygon, shapes: defaultdict, weft: bool = False) -> defaultdict: -- cgit v1.2.3