Merge pull request #1376 from inkstitch/lexelby/convert-to-satin-join

fix default line join type
pull/1466/head
Lex Neva 2021-11-22 21:01:30 -05:00 zatwierdzone przez GitHub
commit 49b6af011a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -102,7 +102,8 @@ class ConvertToSatin(InkstitchExtension):
"""Convert svg line join style to shapely parallel offset arguments."""
args = {
'join_style': shgeo.JOIN_STYLE.round
# mitre is the default per SVG spec
'join_style': shgeo.JOIN_STYLE.mitre
}
element_join_style = element.get_style('stroke-linejoin')
@ -116,6 +117,8 @@ class ConvertToSatin(InkstitchExtension):
args['mitre_limit'] = miter_limit
elif element_join_style == "bevel":
args['join_style'] = shgeo.JOIN_STYLE.bevel
elif element_join_style == "round":
args['join_style'] = shgeo.JOIN_STYLE.round
return args