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/extensions/gradient_blocks.py | |
| 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/extensions/gradient_blocks.py')
| -rw-r--r-- | lib/extensions/gradient_blocks.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
