mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2025-12-08 21:25:50 +00:00
Merge pull request #322 from dhruvpvx/bug/android-rounded-issue
fix linecap is not rounded when fill is 25 or 50
This commit is contained in:
commit
8ec7f76dc8
@ -13,7 +13,7 @@ export default class CircularProgress extends React.PureComponent {
|
||||
}
|
||||
|
||||
circlePath(x, y, radius, startAngle, endAngle) {
|
||||
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
||||
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999999);
|
||||
var end = this.polarToCartesian(x, y, radius, startAngle);
|
||||
var largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
|
||||
var d = ['M', start.x, start.y, 'A', radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user