Browse Source

don't rename shape.to_polygons() args

builder
Jan Petykiewicz 3 years ago
parent
commit
2259e7987b
  1. 4
      masque/shapes/polygon.py
  2. 4
      masque/shapes/text.py

4
masque/shapes/polygon.py

@ -222,8 +222,8 @@ class Polygon(Shape):
def to_polygons(self,
_poly_num_points: int = None,
_poly_max_arclen: float = None,
poly_num_points: int = None, # unused
poly_max_arclen: float = None, # unused
) -> List['Polygon']:
return [copy.deepcopy(self)]

4
masque/shapes/text.py

@ -96,8 +96,8 @@ class Text(Shape):
return new
def to_polygons(self,
_poly_num_points: int = None,
_poly_max_arclen: float = None,
poly_num_points: int = None, # unused
poly_max_arclen: float = None, # unused
) -> List[Polygon]:
all_polygons = []
total_advance = 0

Loading…
Cancel
Save