mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-25 16:25:58 +00:00
adding dashes to fill as well
dashes will now work for fill.
This commit is contained in:
parent
1242f68823
commit
ff1b84cec8
@ -45,14 +45,15 @@ export default class CircularProgress extends React.PureComponent {
|
||||
const sizeWithPadding = size / 2 + padding / 2;
|
||||
const radius = size / 2 - maxWidthCircle / 2 - padding / 2;
|
||||
|
||||
const backgroundPath = this.circlePath(
|
||||
|
||||
const currentFillAngle = (arcSweepAngle * this.clampFill(fill)) / 100;
|
||||
const backgroundPath = this.circlePath(
|
||||
sizeWithPadding,
|
||||
sizeWithPadding,
|
||||
radius,
|
||||
0,
|
||||
currentFillAngle,
|
||||
arcSweepAngle
|
||||
);
|
||||
const currentFillAngle = (arcSweepAngle * this.clampFill(fill)) / 100;
|
||||
const circlePath = this.circlePath(
|
||||
sizeWithPadding,
|
||||
sizeWithPadding,
|
||||
@ -114,6 +115,7 @@ export default class CircularProgress extends React.PureComponent {
|
||||
stroke={tintColor}
|
||||
strokeWidth={width}
|
||||
strokeLinecap={lineCap}
|
||||
strokeDasharray={strokeDasharray}
|
||||
fill="transparent"
|
||||
/>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user