react-minimal-pie-chart 8.0.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -22
- package/dist/index.js +20 -21
- package/dist/index.js.map +1 -1
- package/es/index.js +11 -14
- package/es/index.js.map +1 -1
- package/lib/index.js +20 -22
- package/lib/index.js.map +1 -1
- package/package.json +35 -36
- package/types/Chart/Chart.d.ts +2 -3
- package/types/Chart/index.d.ts +1 -1
- package/types/Label.d.ts +2 -5
- package/types/Path.d.ts +2 -5
- package/CHANGELOG.md +0 -244
package/CHANGELOG.md
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
# 8.0.1
|
|
2
|
-
|
|
3
|
-
### Bugfixes
|
|
4
|
-
|
|
5
|
-
- Change `extractPercentage` implementation to address a rounding issue in `stroke-dashoffset` evaluation (#133)
|
|
6
|
-
|
|
7
|
-
# 8.0.0
|
|
8
|
-
|
|
9
|
-
### Breaking Changes
|
|
10
|
-
|
|
11
|
-
- Chart component exposed as named export instead of default.
|
|
12
|
-
- Minimum `react` and `react-dom` peerDependency versions increased to `^16.8.0`
|
|
13
|
-
- `label` prop works as [render prop](https://reactjs.org/docs/render-props.html); drop support for `boolean` and Element values
|
|
14
|
-
- `segmentsShift` prop expressed as absolute `viewBox` units instead of radius' percentage
|
|
15
|
-
- Event handlers signature updated to: `(event, segmentIndex) => void`
|
|
16
|
-
- `rx` and `ry` props replaced by `center` array prop
|
|
17
|
-
- `center` and `radius` props expressed as absolute `viewBox` units instead of percentage of it
|
|
18
|
-
- `prop-types` dependency and static `PropTypes` declarations dropped
|
|
19
|
-
- Dropped support for `data[].style property
|
|
20
|
-
- Replaced extendedData startOffset prop with startAngle
|
|
21
|
-
- `injectSVG` dropped in favour of native children prop
|
|
22
|
-
- requestAnimationFrame existence check removed
|
|
23
|
-
- Removed `Object.assign` polyfill
|
|
24
|
-
|
|
25
|
-
### New Features
|
|
26
|
-
|
|
27
|
-
- Gzipped size reduced from 2.6kb to 1.9 kb (-27%)
|
|
28
|
-
- `segmentsStyle` and `labelStyle` accept both value or function
|
|
29
|
-
|
|
30
|
-
### Bugfixes
|
|
31
|
-
|
|
32
|
-
- Default labels vertically aligned with `dominant-baseline: central` (#149)
|
|
33
|
-
|
|
34
|
-
### How to migrate to version 8.0.0
|
|
35
|
-
|
|
36
|
-
- Update import declaration to: `import {PieChart} from 'react-minimal-pie-chart'`
|
|
37
|
-
- Make sure that installed `react` and `react-dom` version is >= `16.8.0`
|
|
38
|
-
- Migrate `label` prop to provide a render function (see docs about labels)
|
|
39
|
-
- Replace existing `rx` `ry` props with `center`
|
|
40
|
-
- Review existing `center` and `segmentsShift` values (now expressed as `viewBox` values)
|
|
41
|
-
- Update `onBlur`, `onClick`, `onFocus`, `onKeyDown`, `onMouseOut`, `onMouseOver`, `segmentsShift` function props to new signatures
|
|
42
|
-
- Move existing `injectSVG` prop return value to `children` prop
|
|
43
|
-
- Use `segmentsStyle` as function instead of `data[].style` prop
|
|
44
|
-
- Mind that the root element is now the SVG itself
|
|
45
|
-
- Provide an [`Object.assign` polyfill](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill) to support legacy browser (eg. IE)
|
|
46
|
-
|
|
47
|
-
# 7.3.1
|
|
48
|
-
|
|
49
|
-
### Bugfixes
|
|
50
|
-
|
|
51
|
-
- Fix event handler types expecting wrong event as first argument
|
|
52
|
-
- Fix `label` prop type declaration when receiving a function (#154)
|
|
53
|
-
- Fix wrong label position when segmentsShift enabled (#155)
|
|
54
|
-
|
|
55
|
-
# 7.3.0
|
|
56
|
-
|
|
57
|
-
### New Features
|
|
58
|
-
|
|
59
|
-
- Allow `segmentsShift` as function to return `undefined`
|
|
60
|
-
|
|
61
|
-
### Minor Changes
|
|
62
|
-
|
|
63
|
-
- Improve `sumValues` performance
|
|
64
|
-
|
|
65
|
-
# 7.2.0
|
|
66
|
-
|
|
67
|
-
### New Features
|
|
68
|
-
|
|
69
|
-
- Add `segmentsShift` prop to move segments radially and render exploded charts
|
|
70
|
-
|
|
71
|
-
# 7.1.1
|
|
72
|
-
|
|
73
|
-
### Bugfixes
|
|
74
|
-
|
|
75
|
-
- Fix regression introduced in `7.1.0` consisting of `reveal` prop being stuck after initial animation
|
|
76
|
-
|
|
77
|
-
# 7.1.0
|
|
78
|
-
|
|
79
|
-
### New Features
|
|
80
|
-
|
|
81
|
-
- Add `onBlur`, `onFocus`, `onKeyDown` callbacks
|
|
82
|
-
- Add `segmentsTabIndex` to append a `tabindex` prop to segment paths
|
|
83
|
-
|
|
84
|
-
### Bugfixes
|
|
85
|
-
|
|
86
|
-
- Fix regression bug consisting of `stroke-dasharray` and `stroke-dashoffset` attributes being evaluated and appended even when there is no animation
|
|
87
|
-
|
|
88
|
-
# 7.0.0
|
|
89
|
-
|
|
90
|
-
### Warning
|
|
91
|
-
|
|
92
|
-
This release introduced a regression bug. Please upgrade to `V7.1.0`
|
|
93
|
-
|
|
94
|
-
### Breaking Changes
|
|
95
|
-
|
|
96
|
-
- Remove `src` from distribution
|
|
97
|
-
- `EventHandler` expects `void` as return type
|
|
98
|
-
|
|
99
|
-
### Minor Changes
|
|
100
|
-
|
|
101
|
-
- Introduce Typescript natively
|
|
102
|
-
- Remove `prop-types` from private components
|
|
103
|
-
|
|
104
|
-
# 6.0.1
|
|
105
|
-
|
|
106
|
-
### Bugfixes
|
|
107
|
-
|
|
108
|
-
- Fix chart `cy` being evaluated from `viewBoxSize` width instead of height
|
|
109
|
-
|
|
110
|
-
# 6.0.0
|
|
111
|
-
|
|
112
|
-
### Breaking Changes
|
|
113
|
-
|
|
114
|
-
- `ratio` property removed in favour of `viewBoxSize`
|
|
115
|
-
|
|
116
|
-
# 5.0.2
|
|
117
|
-
|
|
118
|
-
### Bugfixes
|
|
119
|
-
|
|
120
|
-
- fix `NaN` being rendered as SVG path attribute when `data.value` sum equals 0 and `totalValue` is undefined
|
|
121
|
-
|
|
122
|
-
# 5.0.1
|
|
123
|
-
|
|
124
|
-
### Bugfixes
|
|
125
|
-
|
|
126
|
-
- fix `reveal` direction with negative `lengthAngle`
|
|
127
|
-
|
|
128
|
-
# 5.0.0
|
|
129
|
-
|
|
130
|
-
### Breaking Changes
|
|
131
|
-
|
|
132
|
-
- `reveal` works same direction as `lengthAngle`
|
|
133
|
-
- Labels vertically aligned using `dominant-baseline` instead of `alignment-baseline`
|
|
134
|
-
|
|
135
|
-
# 4.2.0
|
|
136
|
-
|
|
137
|
-
### New Features
|
|
138
|
-
|
|
139
|
-
- Add `background` prop to draw segment's background
|
|
140
|
-
|
|
141
|
-
### Bugfixes
|
|
142
|
-
|
|
143
|
-
- Fix `props.data` types
|
|
144
|
-
|
|
145
|
-
# 4.1.1
|
|
146
|
-
|
|
147
|
-
### Bugfixes
|
|
148
|
-
|
|
149
|
-
- Transpile bundled `svg-partial-circle`
|
|
150
|
-
|
|
151
|
-
# 4.1.0
|
|
152
|
-
|
|
153
|
-
### New Features
|
|
154
|
-
|
|
155
|
-
- Provide custom segment style via `props.data[i].style`
|
|
156
|
-
|
|
157
|
-
# 4.0.0
|
|
158
|
-
|
|
159
|
-
### Breaking Changes
|
|
160
|
-
|
|
161
|
-
- `ReactMinimalPieChart` extends `React.Component` instead of `React.PureComponent`
|
|
162
|
-
- Improve `paddingAngle` implementation to respect the proportions between rendered slices
|
|
163
|
-
- Add TypeScript types
|
|
164
|
-
|
|
165
|
-
### Minor Changes
|
|
166
|
-
|
|
167
|
-
- Compile with Babel v7
|
|
168
|
-
- Update Storybook demo to v5
|
|
169
|
-
- Add `sideEffect` flag
|
|
170
|
-
|
|
171
|
-
### Bugfixes
|
|
172
|
-
|
|
173
|
-
- Replace `export { default } from` syntax not supported by TS
|
|
174
|
-
|
|
175
|
-
# 3.5.0
|
|
176
|
-
|
|
177
|
-
- Add support for labels with props: `label`, `labelPosition` and `labelStyle`
|
|
178
|
-
- Minor internal refactoring
|
|
179
|
-
|
|
180
|
-
# 3.4.1
|
|
181
|
-
|
|
182
|
-
- Fix chart to render `data.title` value as `<title>` inside `<path>` element
|
|
183
|
-
|
|
184
|
-
# 3.4.0
|
|
185
|
-
|
|
186
|
-
- Support `injectSvg` function property to inject any element into rendered `<svg>` element
|
|
187
|
-
|
|
188
|
-
# 3.3.0
|
|
189
|
-
|
|
190
|
-
- Support `data.title` property to render `<title>` inside `<path>` element
|
|
191
|
-
|
|
192
|
-
# 3.2.0
|
|
193
|
-
|
|
194
|
-
- Add UMD export
|
|
195
|
-
|
|
196
|
-
# 3.1.0
|
|
197
|
-
|
|
198
|
-
- Add segments interaction callbacks: `onClick`, `onMouseOver`, `onMouseOut`
|
|
199
|
-
- Add `segmentsStyle` prop
|
|
200
|
-
- Setup up Prettier
|
|
201
|
-
|
|
202
|
-
# 3.0.2
|
|
203
|
-
|
|
204
|
-
- Prevent initial animation when component is unmounted
|
|
205
|
-
|
|
206
|
-
# 3.0.1
|
|
207
|
-
|
|
208
|
-
- Update `react`/`react-dom` peer dependency version to accept versions `15` and `16`
|
|
209
|
-
|
|
210
|
-
# 3.0.0
|
|
211
|
-
|
|
212
|
-
- Make SVG element `display: block` to remove undesired spacing
|
|
213
|
-
|
|
214
|
-
# 2.0.0
|
|
215
|
-
|
|
216
|
-
- Compile with Rollup.js to bundle with a transpiled version of `svg-partial-circle v0.2.0`
|
|
217
|
-
|
|
218
|
-
# 1.1.0
|
|
219
|
-
|
|
220
|
-
- Migrate React's prop types to external `prop-types` package
|
|
221
|
-
- Swap `react-addons-test-utils` with `react-test-renderer` as `enzyme` required dependencies
|
|
222
|
-
|
|
223
|
-
# 1.0.0
|
|
224
|
-
|
|
225
|
-
- Enable negative `lengthAngle` to configure clockwise and counterclockwise charts
|
|
226
|
-
- Add `rx` and `ry` props to set custom chart center coordinates
|
|
227
|
-
- Add `ratio` prop
|
|
228
|
-
- Add `radius` prop
|
|
229
|
-
- Re-evaluate segments size when `paddingAngle` is > 0
|
|
230
|
-
- Make counterclockwise charts by default
|
|
231
|
-
- Make <ReactMinimalPieChart> a pure component
|
|
232
|
-
- Add eslint parsing
|
|
233
|
-
|
|
234
|
-
# 0.0.2
|
|
235
|
-
|
|
236
|
-
- Incorporate `svg-partial-circle` lib
|
|
237
|
-
|
|
238
|
-
# 0.0.1
|
|
239
|
-
|
|
240
|
-
- Fix bad imports
|
|
241
|
-
|
|
242
|
-
# 0.0.0
|
|
243
|
-
|
|
244
|
-
- Initial release
|