diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-12-07 15:20:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 15:20:11 +0100 |
| commit | b0105196889a463579aab21cd29bbf1abb96dab1 (patch) | |
| tree | ee99321edd4fd1590430d3003e40468c6289dc7e /lib/tartan | |
| parent | 154309906f34bc3213eb4775dbebc58a1ec7f779 (diff) | |
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
Diffstat (limited to 'lib/tartan')
| -rw-r--r-- | lib/tartan/svg.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |
