fix angle

This commit is contained in:
Julian Kingman 2018-06-19 12:33:44 -04:00
parent 1beee68608
commit a602fe601c

View File

@ -21,7 +21,7 @@ export default class CircularProgress extends React.Component {
}
circlePath(x, y, radius, startAngle, endAngle){
var start = this.polarToCartesian(x, y, radius, endAngle);
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
var end = this.polarToCartesian(x, y, radius, startAngle);
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
var d = [