(val)
| 76 | // This causes the outer borders to lose their radius entirely, which is rather unexpected. To solve that, if borderRadius > outerRadius |
| 77 | // we know that the thickness term will dominate and compute the limits at that point |
| 78 | const computeOuterLimit = (val) => { |
| 79 | const outerArcLimit = (outerRadius - Math.min(halfThickness, val)) * angleDelta / 2; |
| 80 | return _limitValue(val, 0, Math.min(halfThickness, outerArcLimit)); |
| 81 | }; |
| 82 | |
| 83 | return { |
| 84 | outerStart: computeOuterLimit(o.outerStart), |
no test coverage detected