mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Simplify addCap() function.
This commit is contained in:
parent
eb1f62b908
commit
f166b08257
1 changed files with 2 additions and 6 deletions
|
@ -2609,14 +2609,10 @@ statics: {
|
|||
}
|
||||
|
||||
function addCap(segment, cap) {
|
||||
switch (cap) {
|
||||
case 'round':
|
||||
if (cap === 'round') {
|
||||
addJoin(segment, cap);
|
||||
break;
|
||||
case 'butt':
|
||||
case 'square':
|
||||
} else {
|
||||
Path._addSquareCap(segment, cap, radius, add);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue