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/extensions/gradient_blocks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/extensions/gradient_blocks.py') diff --git a/lib/extensions/gradient_blocks.py b/lib/extensions/gradient_blocks.py index 68e1e8e9..b87e5f9e 100644 --- a/lib/extensions/gradient_blocks.py +++ b/lib/extensions/gradient_blocks.py @@ -26,7 +26,7 @@ class GradientBlocks(CommandsExtension): This will break apart fill objects with a gradient fill into solid color blocks with end_row_spacing. ''' - COMMANDS = ['fill_start', 'fill_end'] + COMMANDS = ['starting_point', 'ending_point'] def __init__(self, *args, **kwargs): CommandsExtension.__init__(self, *args, **kwargs) @@ -112,8 +112,8 @@ class GradientBlocks(CommandsExtension): nearest = nearest_points(current.shape, previous.shape) pos_current = self._get_command_postion(current, nearest[0]) pos_previous = self._get_command_postion(previous, nearest[1]) - add_commands(current, ['fill_end'], pos_current) - add_commands(previous, ['fill_start'], pos_previous) + add_commands(current, ['ending_point'], pos_current) + add_commands(previous, ['starting_point'], pos_previous) def _get_command_postion(self, fill, point): center = fill.shape.centroid -- cgit v1.2.3