summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2021-11-22 21:01:30 -0500
committerGitHub <noreply@github.com>2021-11-22 21:01:30 -0500
commit49b6af011a3c2d4bfac14ec9e421831a1f1f87e5 (patch)
treecfaf52406146759bad75614c07b3d770ec17d1f5 /lib/extensions
parent07fb3dab4adb7c433a286116276b92cb616d6d86 (diff)
parent0b50c0b26a052ef9e656b817991a9fa550afbb78 (diff)
Merge pull request #1376 from inkstitch/lexelby/convert-to-satin-join
fix default line join type
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/convert_to_satin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/convert_to_satin.py b/lib/extensions/convert_to_satin.py
index f3b43366..577cd7c0 100644
--- a/lib/extensions/convert_to_satin.py
+++ b/lib/extensions/convert_to_satin.py
@@ -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