@fluentui/react-charting 5.22.1 → 5.22.3
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/CHANGELOG.json +43 -1
- package/CHANGELOG.md +22 -2
- package/dist/react-charting.d.ts +16 -0
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +4 -0
- package/lib/components/DonutChart/Arc/Arc.js +9 -15
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
- package/lib/components/DonutChart/Arc/Arc.styles.js +9 -2
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.d.ts +26 -0
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.js +9 -9
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js +9 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.d.ts +16 -0
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/utilities/gradients.js +2 -2
- package/lib/utilities/gradients.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.js +9 -15
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js +9 -2
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +26 -0
- package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +9 -9
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js +9 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +16 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/utilities/gradients.js +2 -2
- package/lib-amd/utilities/gradients.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +9 -15
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +9 -2
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +26 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +9 -9
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +9 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +16 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/utilities/gradients.js +2 -2
- package/lib-commonjs/utilities/gradients.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +3 -3
- package/src/components/DonutChart/Arc/Arc.types.ts +32 -0
- package/src/components/GaugeChart/GaugeChart.types.ts +20 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
|
-
"version": "5.22.
|
|
3
|
+
"version": "5.22.3",
|
|
4
4
|
"description": "React web charting controls for Microsoft fluentui system.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@fluentui/react-focus": "^8.9.13",
|
|
43
|
-
"@fluentui/theme-samples": "^8.7.
|
|
43
|
+
"@fluentui/theme-samples": "^8.7.171",
|
|
44
44
|
"@microsoft/load-themed-styles": "^1.10.26",
|
|
45
45
|
"@types/d3-array": "^2.0.0",
|
|
46
46
|
"@types/d3-axis": "^2.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"tslib": "^2.1.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@fluentui/react": "^8.120.
|
|
69
|
+
"@fluentui/react": "^8.120.7",
|
|
70
70
|
"@types/react": ">=16.8.0 <19.0.0",
|
|
71
71
|
"@types/react-dom": ">=16.8.0 <19.0.0",
|
|
72
72
|
"react": ">=16.8.0 <19.0.0",
|
|
@@ -146,12 +146,44 @@ export interface IArcData {
|
|
|
146
146
|
value: number;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
export interface IArcStyleProps {
|
|
150
|
+
/**
|
|
151
|
+
* Theme
|
|
152
|
+
*/
|
|
153
|
+
theme: ITheme;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* internal prop for href
|
|
157
|
+
*/
|
|
158
|
+
href: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* solid color for the arc (when enableGradient is false)
|
|
162
|
+
*/
|
|
163
|
+
solidFill: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* gradient for the arc (when enableGradient is true)
|
|
167
|
+
*/
|
|
168
|
+
gradientFill: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* wether gradients are enabled for the arc
|
|
172
|
+
*/
|
|
173
|
+
opacity: number;
|
|
174
|
+
}
|
|
175
|
+
|
|
149
176
|
export interface IArcStyles {
|
|
150
177
|
/**
|
|
151
178
|
* Style set for the card header component root
|
|
152
179
|
*/
|
|
153
180
|
root: IStyle;
|
|
154
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Style set for the gradient arc
|
|
184
|
+
*/
|
|
185
|
+
gradientArc: IStyle;
|
|
186
|
+
|
|
155
187
|
/**
|
|
156
188
|
* styles for the focus
|
|
157
189
|
*/
|
|
@@ -209,6 +209,21 @@ export interface IGaugeChartStyleProps {
|
|
|
209
209
|
* Boolean flag which determines if shape is drawn in callout
|
|
210
210
|
*/
|
|
211
211
|
toDrawShape?: boolean;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* solid color for the arc (when enableGradient is false)
|
|
215
|
+
*/
|
|
216
|
+
solidFill?: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* gradient for the arc (when enableGradient is true)
|
|
220
|
+
*/
|
|
221
|
+
gradientFill?: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* opacity of the arc
|
|
225
|
+
*/
|
|
226
|
+
opacity?: number;
|
|
212
227
|
}
|
|
213
228
|
|
|
214
229
|
/**
|
|
@@ -256,6 +271,11 @@ export interface IGaugeChartStyles {
|
|
|
256
271
|
*/
|
|
257
272
|
segment?: IStyle;
|
|
258
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Styles for gradient segments
|
|
276
|
+
*/
|
|
277
|
+
gradientSegment?: IStyle;
|
|
278
|
+
|
|
259
279
|
/**
|
|
260
280
|
* Styles for the legends container
|
|
261
281
|
*/
|