Skip to content

Commit

Permalink
Fix the names of the join styles.
Browse files Browse the repository at this point in the history
'miter' was spelled incorrectly ('milter'), and it was swapped with 'bevel'.
Join style 0 is 'miter', and join style 2 is 'bevel'.

See, for example,
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/JointStyle.html
or
    http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/cap-join-styles.html
for examples of the 'miter' and 'bevel' join styles.
  • Loading branch information
WarrenWeckesser committed Jun 23, 2013
1 parent 12d6bdf commit 0ff6104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jspdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ PubSub implementation
0: 0,
'butt': 0,
'but': 0,
'bevel': 0,
'miter': 0,
1: 1,
'round': 1,
'rounded': 1,
Expand All @@ -1775,7 +1775,7 @@ PubSub implementation
'projecting': 2,
'project': 2,
'square': 2,
'milter': 2
'bevel': 2
};

/**
Expand Down

0 comments on commit 0ff6104

Please sign in to comment.