Skip to content

Commit 4991279

Browse files
committed
fix: extend strokeLinecap to support butt
1 parent d3ff788 commit 4991279

File tree

8 files changed

+13
-7
lines changed

8 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.0.7](2022-01-29)
7+
8+
### Fix
9+
10+
- Extend strokeLinecap to support "butt" option
11+
612
## [3.0.6](2022-01-13)
713

814
### Fix

packages/mobile/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const {
7878
| size | number | 180 | Width and height of the SVG element |
7979
| strokeWidth | number | 12 | Path stroke width |
8080
| trailStrokeWidth | number | strokeWidth | Trail stroke width |
81-
| strokeLinecap | round \| square | round | Path stroke line cap |
81+
| strokeLinecap | round \| square \| butt | round | Path stroke line cap |
8282
| rotation | clockwise \| counterclockwise | clockwise | Progress path rotation direction |
8383
| trailColor | string | #d9d9d9 | Circle trail color - takes any valid color format |
8484
| isSmoothColorTransition | boolean | true | Indicates if the colors should smoothly transition to the next color |

packages/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-countdown-circle-timer",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"description": "Lightweight React Native countdown timer component with color and progress animation based on SVG",
55
"main": "./lib/index.js",
66
"source": "./src/index.ts",

packages/mobile/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type Props = {
4646
/** Trail stroke width */
4747
trailStrokeWidth?: number
4848
/** Path stroke line cap. Default: "round" */
49-
strokeLinecap?: 'round' | 'square'
49+
strokeLinecap?: 'round' | 'square' | 'butt'
5050
/** Progress path rotation direction. Default: "clockwise" */
5151
rotation?: 'clockwise' | 'counterclockwise'
5252
/** Circle trail color - takes any valid color format (HEX, rgb, rgba, etc.). Default: #d9d9d9 */

packages/shared/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type Props = {
4646
/** Trail stroke width */
4747
trailStrokeWidth?: number
4848
/** Path stroke line cap. Default: "round" */
49-
strokeLinecap?: 'round' | 'square'
49+
strokeLinecap?: 'round' | 'square' | 'butt'
5050
/** Progress path rotation direction. Default: "clockwise" */
5151
rotation?: 'clockwise' | 'counterclockwise'
5252
/** Circle trail color - takes any valid color format (HEX, rgb, rgba, etc.). Default: #d9d9d9 */

packages/web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const {
7474
| size | number | 180 | Width and height of the SVG element |
7575
| strokeWidth | number | 12 | Path stroke width |
7676
| trailStrokeWidth | number | strokeWidth | Trail stroke width |
77-
| strokeLinecap | round \| square | round | Path stroke line cap |
77+
| strokeLinecap | round \| square \| butt | round | Path stroke line cap |
7878
| rotation | clockwise \| counterclockwise | clockwise | Progress path rotation direction |
7979
| trailColor | string | #d9d9d9 | Circle trail color - takes any valid color format |
8080
| isSmoothColorTransition | boolean | true | Indicates if the colors should smoothly transition to the next color |

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-countdown-circle-timer",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"description": "Lightweight React countdown timer component with color and progress animation based on SVG",
55
"main": "./lib/index.js",
66
"module": "./lib/index.module.js",

packages/web/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type Props = {
4646
/** Trail stroke width */
4747
trailStrokeWidth?: number
4848
/** Path stroke line cap. Default: "round" */
49-
strokeLinecap?: 'round' | 'square'
49+
strokeLinecap?: 'round' | 'square' | 'butt'
5050
/** Progress path rotation direction. Default: "clockwise" */
5151
rotation?: 'clockwise' | 'counterclockwise'
5252
/** Circle trail color - takes any valid color format (HEX, rgb, rgba, etc.). Default: #d9d9d9 */

0 commit comments

Comments
 (0)