@@ -28,19 +28,19 @@ export default class CircularProgress extends React.PureComponent {
2828 width,
2929 backgroundWidth,
3030 tintColor,
31+ tintTransparency,
3132 backgroundColor,
3233 style,
3334 rotation,
3435 lineCap,
3536 arcSweepAngle,
3637 fill,
37- fillTransparency,
3838 children,
3939 childrenContainerStyle,
4040 padding,
4141 renderCap,
4242 dashedBackground,
43- dashedFill
43+ dashedTint
4444 } = this . props ;
4545
4646 const maxWidthCircle = backgroundWidth ? Math . max ( width , backgroundWidth ) : width ;
@@ -52,7 +52,7 @@ export default class CircularProgress extends React.PureComponent {
5252 sizeWithPadding ,
5353 sizeWithPadding ,
5454 radius ,
55- fillTransparency ? 0 : currentFillAngle ,
55+ tintTransparency ? 0 : currentFillAngle ,
5656 arcSweepAngle
5757 ) ;
5858 const circlePath = this . circlePath (
@@ -87,8 +87,8 @@ export default class CircularProgress extends React.PureComponent {
8787 ...childrenContainerStyle ,
8888 }
8989
90- const strokeDasharrayFill = dashedFill . gap > 0 ?
91- Object . values ( dashedFill )
90+ const strokeDasharrayTint = dashedTint . gap > 0 ?
91+ Object . values ( dashedTint )
9292 . map ( value => parseInt ( value ) )
9393 : null ;
9494
@@ -117,7 +117,7 @@ export default class CircularProgress extends React.PureComponent {
117117 stroke = { tintColor }
118118 strokeWidth = { width }
119119 strokeLinecap = { lineCap }
120- strokeDasharray = { strokeDasharrayFill }
120+ strokeDasharray = { strokeDasharrayTint }
121121 fill = "transparent"
122122 />
123123 ) }
@@ -134,10 +134,10 @@ CircularProgress.propTypes = {
134134 style : ViewPropTypes . style ,
135135 size : PropTypes . number . isRequired ,
136136 fill : PropTypes . number . isRequired ,
137- fillTransparency : PropTypes . boolean ,
138137 width : PropTypes . number . isRequired ,
139138 backgroundWidth : PropTypes . number ,
140139 tintColor : PropTypes . string ,
140+ tintTransparency : PropTypes . bool ,
141141 backgroundColor : PropTypes . string ,
142142 rotation : PropTypes . number ,
143143 lineCap : PropTypes . string ,
@@ -147,16 +147,16 @@ CircularProgress.propTypes = {
147147 padding : PropTypes . number ,
148148 renderCap : PropTypes . func ,
149149 dashedBackground : PropTypes . object ,
150- dashedFill : PropTypes . object
150+ dashedTint : PropTypes . object
151151} ;
152152
153153CircularProgress . defaultProps = {
154154 tintColor : 'black' ,
155+ tintTransparency : true ,
155156 rotation : 90 ,
156157 lineCap : 'butt' ,
157158 arcSweepAngle : 360 ,
158159 padding : 0 ,
159160 dashedBackground : { width : 0 , gap : 0 } ,
160- dashedFill : { width : 0 , gap : 0 } ,
161- fillTransparency : true
161+ dashedTint : { width : 0 , gap : 0 } ,
162162} ;
0 commit comments