kopia lustrzana https://github.com/inkstitch/inkstitch
fix code formatting
rodzic
e1d9677ea0
commit
9237d19f0c
|
@ -143,6 +143,7 @@ class SatinColumn(EmbroideryElement):
|
|||
def pull_compensation_percent(self):
|
||||
# pull compensation as a percentage of the width
|
||||
return self.get_float_param("pull_compensation_percent", 0)
|
||||
|
||||
@property
|
||||
@param(
|
||||
'pull_compensation_mm',
|
||||
|
@ -195,7 +196,8 @@ class SatinColumn(EmbroideryElement):
|
|||
@property
|
||||
@param('contour_underlay_inset_percent',
|
||||
_('Inset distance (proportional)'),
|
||||
tooltip=_('Shrink the outline by a proportion of the column width, to prevent the underlay from showing around the outside of the satin column.'),
|
||||
tooltip=_('Shrink the outline by a proportion of the column width, '
|
||||
'to prevent the underlay from showing around the outside of the satin column.'),
|
||||
group=_('Contour Underlay'),
|
||||
unit='%', type='float', default=0,
|
||||
sort_index=3)
|
||||
|
@ -229,7 +231,8 @@ class SatinColumn(EmbroideryElement):
|
|||
@property
|
||||
@param('center_walk_underlay_repeats',
|
||||
_('Repeats'),
|
||||
tooltip=_('For an odd number of repeats, this will reverse the direction the satin column is stitched, causing stitching to both begin and end at the start point.'),
|
||||
tooltip=_('For an odd number of repeats, this will reverse the direction the satin column is stitched, '
|
||||
'causing stitching to both begin and end at the start point.'),
|
||||
group=_('Center-Walk Underlay'),
|
||||
type='int', default=2,
|
||||
sort_index=2)
|
||||
|
@ -909,8 +912,12 @@ class SatinColumn(EmbroideryElement):
|
|||
patch = StitchGroup(color=self.color)
|
||||
|
||||
# pull compensation is automatically converted from mm to pixels by get_float_param
|
||||
sides = self.plot_points_on_rails(self.zigzag_spacing, self.pull_compensation, self.pull_compensation_percent/100,
|
||||
self.pull_compensation_balance/100)
|
||||
sides = self.plot_points_on_rails(
|
||||
self.zigzag_spacing,
|
||||
self.pull_compensation,
|
||||
self.pull_compensation_percent/100,
|
||||
self.pull_compensation_balance/100
|
||||
)
|
||||
|
||||
if self.max_stitch_length:
|
||||
return self.do_split_stitch(patch, sides)
|
||||
|
@ -940,7 +947,12 @@ class SatinColumn(EmbroideryElement):
|
|||
|
||||
patch = StitchGroup(color=self.color)
|
||||
|
||||
sides = self.plot_points_on_rails(self.zigzag_spacing, self.pull_compensation, self.pull_compensation_percent/100, self.pull_compensation_balance/100)
|
||||
sides = self.plot_points_on_rails(
|
||||
self.zigzag_spacing,
|
||||
self.pull_compensation,
|
||||
self.pull_compensation_percent/100,
|
||||
self.pull_compensation_balance/100
|
||||
)
|
||||
|
||||
# "left" and "right" here are kind of arbitrary designations meaning
|
||||
# a point from the first and second rail respectively
|
||||
|
|
Ładowanie…
Reference in New Issue