File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,15 @@ export default class CircularProgress extends React.PureComponent {
45
45
const sizeWithPadding = size / 2 + padding / 2 ;
46
46
const radius = size / 2 - maxWidthCircle / 2 - padding / 2 ;
47
47
48
- const backgroundPath = this . circlePath (
48
+
49
+ const currentFillAngle = ( arcSweepAngle * this . clampFill ( fill ) ) / 100 ;
50
+ const backgroundPath = this . circlePath (
49
51
sizeWithPadding ,
50
52
sizeWithPadding ,
51
53
radius ,
52
- 0 ,
54
+ currentFillAngle ,
53
55
arcSweepAngle
54
56
) ;
55
- const currentFillAngle = ( arcSweepAngle * this . clampFill ( fill ) ) / 100 ;
56
57
const circlePath = this . circlePath (
57
58
sizeWithPadding ,
58
59
sizeWithPadding ,
@@ -114,6 +115,7 @@ export default class CircularProgress extends React.PureComponent {
114
115
stroke = { tintColor }
115
116
strokeWidth = { width }
116
117
strokeLinecap = { lineCap }
118
+ strokeDasharray = { strokeDasharray }
117
119
fill = "transparent"
118
120
/>
119
121
) }
You can’t perform that action at this time.
0 commit comments