Merge pull request #9 from jdmunro/rendering-fix

Fixed rendering bug
This commit is contained in:
Bart Gryszko 2016-01-07 17:08:45 +01:00
commit 5e029e1022

View File

@ -39,13 +39,11 @@ export default class CircularProgress extends React.Component {
<Group rotation={rotation - 90} originX={size/2} originY={size/2}>
<Shape d={circlePath}
stroke={backgroundColor}
strokeCap="butt"
strokeDash={[(size - width) * Math.PI, 700]}
strokeWidth={width} />
<Shape d={circlePath}
stroke={tintColor}
strokeCap="butt"
strokeDash={[(size - width) * Math.PI * fill / 100, 700]}
strokeDash={[(size - width) * Math.PI * fill / 100, 9999]}
strokeWidth={width} />
</Group>
</Surface>