Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the 'miter' joint style behaviour a bit by placing a hard limi…
…t on how extruded the joint can become. This will stop cases where a stroke with sharp angles produce very long corners - ideally this would be resolved by supportting the 'bevel' joint style, but there are no plans for this, so this hybrid behaviour seems more appropriate for the time being.
- Loading branch information
14d8149
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this fixes the issue with "long corners", it amplified the issue that sometimes line sections are not being drawn when they are either very close to each other or have very steep angles.
The attached images show the difference between a stroke before and after this commit.
![line_before](https://camo.githubusercontent.com/7138c45358c72f44de67225e2cb3c2d0c396dc5f3e8239bbd72febd0295f1bce/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333034313135332f3830343337352f30633138363566362d656530632d313165322d386364392d6361613066663465636632652e706e67)
![line_after](https://camo.githubusercontent.com/c881310fd121a0d000c7cef86645d123af710f1bab8710d49f24df496f7c97f6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333034313135332f3830343337362f30633164656332652d656530632d313165322d383931652d3139663337323066336532322e706e67)
Note that this is on a non-retina iPad, so the lines are quite aliased.