@@ -28,19 +28,19 @@ export default class CircularProgress extends React.PureComponent {
28
28
width,
29
29
backgroundWidth,
30
30
tintColor,
31
+ tintTransparency,
31
32
backgroundColor,
32
33
style,
33
34
rotation,
34
35
lineCap,
35
36
arcSweepAngle,
36
37
fill,
37
- fillTransparency,
38
38
children,
39
39
childrenContainerStyle,
40
40
padding,
41
41
renderCap,
42
42
dashedBackground,
43
- dashedFill
43
+ dashedTint
44
44
} = this . props ;
45
45
46
46
const maxWidthCircle = backgroundWidth ? Math . max ( width , backgroundWidth ) : width ;
@@ -52,7 +52,7 @@ export default class CircularProgress extends React.PureComponent {
52
52
sizeWithPadding ,
53
53
sizeWithPadding ,
54
54
radius ,
55
- fillTransparency ? 0 : currentFillAngle ,
55
+ tintTransparency ? 0 : currentFillAngle ,
56
56
arcSweepAngle
57
57
) ;
58
58
const circlePath = this . circlePath (
@@ -87,8 +87,8 @@ export default class CircularProgress extends React.PureComponent {
87
87
...childrenContainerStyle ,
88
88
}
89
89
90
- const strokeDasharrayFill = dashedFill . gap > 0 ?
91
- Object . values ( dashedFill )
90
+ const strokeDasharrayTint = dashedTint . gap > 0 ?
91
+ Object . values ( dashedTint )
92
92
. map ( value => parseInt ( value ) )
93
93
: null ;
94
94
@@ -117,7 +117,7 @@ export default class CircularProgress extends React.PureComponent {
117
117
stroke = { tintColor }
118
118
strokeWidth = { width }
119
119
strokeLinecap = { lineCap }
120
- strokeDasharray = { strokeDasharrayFill }
120
+ strokeDasharray = { strokeDasharrayTint }
121
121
fill = "transparent"
122
122
/>
123
123
) }
@@ -134,10 +134,10 @@ CircularProgress.propTypes = {
134
134
style : ViewPropTypes . style ,
135
135
size : PropTypes . number . isRequired ,
136
136
fill : PropTypes . number . isRequired ,
137
- fillTransparency : PropTypes . boolean ,
138
137
width : PropTypes . number . isRequired ,
139
138
backgroundWidth : PropTypes . number ,
140
139
tintColor : PropTypes . string ,
140
+ tintTransparency : PropTypes . bool ,
141
141
backgroundColor : PropTypes . string ,
142
142
rotation : PropTypes . number ,
143
143
lineCap : PropTypes . string ,
@@ -147,16 +147,16 @@ CircularProgress.propTypes = {
147
147
padding : PropTypes . number ,
148
148
renderCap : PropTypes . func ,
149
149
dashedBackground : PropTypes . object ,
150
- dashedFill : PropTypes . object
150
+ dashedTint : PropTypes . object
151
151
} ;
152
152
153
153
CircularProgress . defaultProps = {
154
154
tintColor : 'black' ,
155
+ tintTransparency : true ,
155
156
rotation : 90 ,
156
157
lineCap : 'butt' ,
157
158
arcSweepAngle : 360 ,
158
159
padding : 0 ,
159
160
dashedBackground : { width : 0 , gap : 0 } ,
160
- dashedFill : { width : 0 , gap : 0 } ,
161
- fillTransparency : true
161
+ dashedTint : { width : 0 , gap : 0 } ,
162
162
} ;
0 commit comments