mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-25 16:25:58 +00:00
feat(linecap): add control fill line cap separately from arc line cap
This commit is contained in:
parent
7c55e7ee0f
commit
3358d3dda3
8
index.d.ts
vendored
8
index.d.ts
vendored
@ -87,6 +87,14 @@ declare module 'react-native-circular-progress' {
|
||||
*/
|
||||
lineCap?: 'butt' | 'round' | 'square';
|
||||
|
||||
/**
|
||||
* Shape used at ends of progress line.
|
||||
*
|
||||
* @type {('butt' | 'round' | 'square')}
|
||||
* @default lineCap - which is 'butt'
|
||||
*/
|
||||
fillLineCap?: 'butt' | 'round' | 'square';
|
||||
|
||||
/**
|
||||
* If you don't want a full circle, specify the arc angle
|
||||
*
|
||||
|
||||
@ -33,6 +33,7 @@ export default class CircularProgress extends React.PureComponent {
|
||||
style,
|
||||
rotation,
|
||||
lineCap,
|
||||
fillLineCap = lineCap,
|
||||
arcSweepAngle,
|
||||
fill,
|
||||
children,
|
||||
@ -116,7 +117,7 @@ export default class CircularProgress extends React.PureComponent {
|
||||
d={circlePath}
|
||||
stroke={tintColor}
|
||||
strokeWidth={width}
|
||||
strokeLinecap={lineCap}
|
||||
strokeLinecap={fillLineCap}
|
||||
strokeDasharray={strokeDasharrayTint}
|
||||
fill="transparent"
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user