@mui/x-charts-premium 9.0.2 → 9.0.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.md +136 -0
- package/CandlestickChart/CandlestickPlot.js +27 -31
- package/CandlestickChart/CandlestickPlot.mjs +27 -31
- package/CandlestickChart/CandlestickWebGLProgram.js +0 -3
- package/CandlestickChart/CandlestickWebGLProgram.mjs +0 -3
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +35 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +35 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +126 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +120 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.mts +5 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.ts +5 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.js +9 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.mjs +3 -0
- package/ChartsRadialDataProviderPremium/index.d.mts +3 -0
- package/ChartsRadialDataProviderPremium/index.d.ts +3 -0
- package/ChartsRadialDataProviderPremium/index.js +20 -0
- package/ChartsRadialDataProviderPremium/index.mjs +3 -0
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.mts +10 -0
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.ts +10 -0
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.js +25 -0
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.mjs +19 -0
- package/ChartsRadiusAxis/index.d.mts +1 -0
- package/ChartsRadiusAxis/index.d.ts +1 -0
- package/ChartsRadiusAxis/index.js +16 -0
- package/ChartsRadiusAxis/index.mjs +2 -0
- package/ChartsRotationAxis/index.d.mts +1 -0
- package/ChartsRotationAxis/index.d.ts +1 -0
- package/ChartsRotationAxis/index.js +16 -0
- package/ChartsRotationAxis/index.mjs +2 -0
- package/ChartsWebGLLayer/ChartsWebGLContext.d.mts +5 -0
- package/ChartsWebGLLayer/ChartsWebGLContext.d.ts +5 -0
- package/ChartsWebGLLayer/ChartsWebGLContext.js +31 -0
- package/ChartsWebGLLayer/ChartsWebGLContext.mjs +23 -0
- package/ChartsWebGLLayer/ChartsWebGLLayer.d.mts +0 -1
- package/ChartsWebGLLayer/ChartsWebGLLayer.d.ts +0 -1
- package/ChartsWebGLLayer/ChartsWebGLLayer.js +63 -12
- package/ChartsWebGLLayer/ChartsWebGLLayer.mjs +62 -10
- package/ChartsWebGLLayer/ChartsWebGLLayer.types.d.mts +26 -0
- package/ChartsWebGLLayer/ChartsWebGLLayer.types.d.ts +26 -0
- package/ChartsWebGLLayer/ChartsWebGLLayer.types.js +5 -0
- package/ChartsWebGLLayer/ChartsWebGLLayer.types.mjs +1 -0
- package/ChartsWebGLLayer/ChartsWebGLOrderContext.d.mts +6 -0
- package/ChartsWebGLLayer/ChartsWebGLOrderContext.d.ts +6 -0
- package/ChartsWebGLLayer/ChartsWebGLOrderContext.js +15 -0
- package/ChartsWebGLLayer/ChartsWebGLOrderContext.mjs +10 -0
- package/HeatmapPremium/HeatmapPlotPremium.js +2 -2
- package/HeatmapPremium/HeatmapPlotPremium.mjs +2 -2
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.js +26 -33
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.mjs +26 -33
- package/RadialBarChart/seriesConfig/axisTooltipGetter.d.mts +2 -0
- package/RadialBarChart/seriesConfig/axisTooltipGetter.d.ts +2 -0
- package/RadialBarChart/seriesConfig/axisTooltipGetter.js +13 -0
- package/RadialBarChart/seriesConfig/axisTooltipGetter.mjs +6 -0
- package/RadialBarChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/RadialBarChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/RadialBarChart/seriesConfig/descriptionGetter.js +34 -0
- package/RadialBarChart/seriesConfig/descriptionGetter.mjs +28 -0
- package/RadialBarChart/seriesConfig/extremums.d.mts +3 -0
- package/RadialBarChart/seriesConfig/extremums.d.ts +3 -0
- package/RadialBarChart/seriesConfig/extremums.js +44 -0
- package/RadialBarChart/seriesConfig/extremums.mjs +36 -0
- package/RadialBarChart/seriesConfig/getColor.d.mts +3 -0
- package/RadialBarChart/seriesConfig/getColor.d.ts +3 -0
- package/RadialBarChart/seriesConfig/getColor.js +61 -0
- package/RadialBarChart/seriesConfig/getColor.mjs +55 -0
- package/RadialBarChart/seriesConfig/getSeriesWithDefaultValues.d.mts +3 -0
- package/RadialBarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/RadialBarChart/seriesConfig/getSeriesWithDefaultValues.js +16 -0
- package/RadialBarChart/seriesConfig/getSeriesWithDefaultValues.mjs +9 -0
- package/RadialBarChart/seriesConfig/index.d.mts +2 -0
- package/RadialBarChart/seriesConfig/index.d.ts +2 -0
- package/RadialBarChart/seriesConfig/index.js +37 -0
- package/RadialBarChart/seriesConfig/index.mjs +30 -0
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.mts +3 -0
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.js +9 -0
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.mjs +3 -0
- package/RadialBarChart/seriesConfig/legend.d.mts +3 -0
- package/RadialBarChart/seriesConfig/legend.d.ts +3 -0
- package/RadialBarChart/seriesConfig/legend.js +9 -0
- package/RadialBarChart/seriesConfig/legend.mjs +3 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.d.mts +3 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.js +137 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.mjs +130 -0
- package/RadialBarChart/seriesConfig/tooltip.d.mts +3 -0
- package/RadialBarChart/seriesConfig/tooltip.d.ts +3 -0
- package/RadialBarChart/seriesConfig/tooltip.js +34 -0
- package/RadialBarChart/seriesConfig/tooltip.mjs +28 -0
- package/RadialBarChart/seriesConfig/tooltipPosition.d.mts +3 -0
- package/RadialBarChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/RadialBarChart/seriesConfig/tooltipPosition.js +11 -0
- package/RadialBarChart/seriesConfig/tooltipPosition.mjs +5 -0
- package/RadialLineChart/RadialArea.d.mts +12 -0
- package/RadialLineChart/RadialArea.d.ts +12 -0
- package/RadialLineChart/RadialArea.js +33 -0
- package/RadialLineChart/RadialArea.mjs +26 -0
- package/RadialLineChart/RadialAreaPlot.d.mts +5 -0
- package/RadialLineChart/RadialAreaPlot.d.ts +5 -0
- package/RadialLineChart/RadialAreaPlot.js +51 -0
- package/RadialLineChart/RadialAreaPlot.mjs +45 -0
- package/RadialLineChart/RadialLine.d.mts +12 -0
- package/RadialLineChart/RadialLine.d.ts +12 -0
- package/RadialLineChart/RadialLine.js +33 -0
- package/RadialLineChart/RadialLine.mjs +26 -0
- package/RadialLineChart/RadialLineChart.d.mts +62 -0
- package/RadialLineChart/RadialLineChart.d.ts +62 -0
- package/RadialLineChart/RadialLineChart.js +967 -0
- package/RadialLineChart/RadialLineChart.mjs +960 -0
- package/RadialLineChart/RadialLineChart.plugins.d.mts +4 -0
- package/RadialLineChart/RadialLineChart.plugins.d.ts +4 -0
- package/RadialLineChart/RadialLineChart.plugins.js +9 -0
- package/RadialLineChart/RadialLineChart.plugins.mjs +3 -0
- package/RadialLineChart/RadialLinePlot.d.mts +5 -0
- package/RadialLineChart/RadialLinePlot.d.ts +5 -0
- package/RadialLineChart/RadialLinePlot.js +50 -0
- package/RadialLineChart/RadialLinePlot.mjs +44 -0
- package/RadialLineChart/RadialMarkPlot.d.mts +5 -0
- package/RadialLineChart/RadialMarkPlot.d.ts +5 -0
- package/RadialLineChart/RadialMarkPlot.js +48 -0
- package/RadialLineChart/RadialMarkPlot.mjs +42 -0
- package/RadialLineChart/index.d.mts +4 -0
- package/RadialLineChart/index.d.ts +4 -0
- package/RadialLineChart/index.js +49 -0
- package/RadialLineChart/index.mjs +4 -0
- package/RadialLineChart/radialLineClasses.d.mts +25 -0
- package/RadialLineChart/radialLineClasses.d.ts +25 -0
- package/RadialLineChart/radialLineClasses.js +30 -0
- package/RadialLineChart/radialLineClasses.mjs +21 -0
- package/RadialLineChart/seriesConfig/axisTooltipGetter.d.mts +2 -0
- package/RadialLineChart/seriesConfig/axisTooltipGetter.d.ts +2 -0
- package/RadialLineChart/seriesConfig/axisTooltipGetter.js +13 -0
- package/RadialLineChart/seriesConfig/axisTooltipGetter.mjs +6 -0
- package/RadialLineChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/RadialLineChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/RadialLineChart/seriesConfig/descriptionGetter.js +39 -0
- package/RadialLineChart/seriesConfig/descriptionGetter.mjs +33 -0
- package/RadialLineChart/seriesConfig/extremums.d.mts +3 -0
- package/RadialLineChart/seriesConfig/extremums.d.ts +3 -0
- package/RadialLineChart/seriesConfig/extremums.js +48 -0
- package/RadialLineChart/seriesConfig/extremums.mjs +40 -0
- package/RadialLineChart/seriesConfig/getColor.d.mts +3 -0
- package/RadialLineChart/seriesConfig/getColor.d.ts +3 -0
- package/RadialLineChart/seriesConfig/getColor.js +61 -0
- package/RadialLineChart/seriesConfig/getColor.mjs +55 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.d.mts +3 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.js +13 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.mjs +6 -0
- package/RadialLineChart/seriesConfig/index.d.mts +2 -0
- package/RadialLineChart/seriesConfig/index.d.ts +2 -0
- package/RadialLineChart/seriesConfig/index.js +37 -0
- package/RadialLineChart/seriesConfig/index.mjs +30 -0
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.mts +3 -0
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.js +9 -0
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.mjs +3 -0
- package/RadialLineChart/seriesConfig/legend.d.mts +3 -0
- package/RadialLineChart/seriesConfig/legend.d.ts +3 -0
- package/RadialLineChart/seriesConfig/legend.js +29 -0
- package/RadialLineChart/seriesConfig/legend.mjs +23 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +3 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.js +142 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.mjs +135 -0
- package/RadialLineChart/seriesConfig/tooltip.d.mts +3 -0
- package/RadialLineChart/seriesConfig/tooltip.d.ts +3 -0
- package/RadialLineChart/seriesConfig/tooltip.js +32 -0
- package/RadialLineChart/seriesConfig/tooltip.mjs +26 -0
- package/RadialLineChart/seriesConfig/tooltipPosition.d.mts +3 -0
- package/RadialLineChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/RadialLineChart/seriesConfig/tooltipPosition.js +11 -0
- package/RadialLineChart/seriesConfig/tooltipPosition.mjs +5 -0
- package/RadialLineChart/useRadialLineChartProps.d.mts +28 -0
- package/RadialLineChart/useRadialLineChartProps.d.ts +28 -0
- package/RadialLineChart/useRadialLineChartProps.js +99 -0
- package/RadialLineChart/useRadialLineChartProps.mjs +92 -0
- package/RadialLineChart/useRadialLinePlotData.d.mts +19 -0
- package/RadialLineChart/useRadialLinePlotData.d.ts +19 -0
- package/RadialLineChart/useRadialLinePlotData.js +79 -0
- package/RadialLineChart/useRadialLinePlotData.mjs +72 -0
- package/hooks/useRadialLineSeries.d.mts +34 -0
- package/hooks/useRadialLineSeries.d.ts +34 -0
- package/hooks/useRadialLineSeries.js +45 -0
- package/hooks/useRadialLineSeries.mjs +40 -0
- package/index.d.mts +7 -1
- package/index.d.ts +7 -1
- package/index.js +69 -1
- package/index.mjs +8 -2
- package/models/seriesType/index.d.mts +3 -1
- package/models/seriesType/index.d.ts +3 -1
- package/models/seriesType/index.js +22 -0
- package/models/seriesType/index.mjs +3 -1
- package/models/seriesType/radialBar.d.mts +23 -0
- package/models/seriesType/radialBar.d.ts +23 -0
- package/models/seriesType/radialBar.js +5 -0
- package/models/seriesType/radialBar.mjs +1 -0
- package/models/seriesType/radialLine.d.mts +26 -0
- package/models/seriesType/radialLine.d.ts +26 -0
- package/models/seriesType/radialLine.js +5 -0
- package/models/seriesType/radialLine.mjs +1 -0
- package/package.json +62 -6
- package/typeOverloads/modules.d.mts +48 -2
- package/typeOverloads/modules.d.ts +48 -2
- package/utils/webgl/useWebGLResizeObserver.d.mts +3 -2
- package/utils/webgl/useWebGLResizeObserver.d.ts +3 -2
- package/utils/webgl/useWebGLResizeObserver.js +3 -4
- package/utils/webgl/useWebGLResizeObserver.mjs +3 -4
- package/HeatmapPremium/webgl/HeatmapWebGLRenderer.d.mts +0 -4
- package/HeatmapPremium/webgl/HeatmapWebGLRenderer.d.ts +0 -4
- package/HeatmapPremium/webgl/HeatmapWebGLRenderer.js +0 -21
- package/HeatmapPremium/webgl/HeatmapWebGLRenderer.mjs +0 -15
package/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export * from '@mui/x-charts/RadarChart';
|
|
|
21
21
|
export * from '@mui/x-charts/ChartsSurface';
|
|
22
22
|
export * from '@mui/x-charts/ChartsDataProvider';
|
|
23
23
|
export * from '@mui/x-charts/ChartsLabel';
|
|
24
|
+
export * from '@mui/x-charts/ChartsRadialDataProvider';
|
|
25
|
+
export * from '@mui/x-charts/ChartsRadialGrid';
|
|
26
|
+
export * from '@mui/x-charts/ChartsRadiusAxis';
|
|
27
|
+
export { type ChartsRotationAxisProps, Unstable_ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
24
28
|
export * from '@mui/x-charts-pro/Heatmap';
|
|
25
29
|
export { ChartsContainerPro } from '@mui/x-charts-pro/ChartsContainerPro';
|
|
26
30
|
export type { ChartsContainerProProps } from '@mui/x-charts-pro/ChartsContainerPro';
|
|
@@ -42,8 +46,10 @@ export * from "./models/index.js";
|
|
|
42
46
|
export * from "./plugins/index.js";
|
|
43
47
|
export * from "./ChartsRenderer/index.js";
|
|
44
48
|
export * from "./ChartsDataProviderPremium/index.js";
|
|
49
|
+
export * from "./ChartsRadialDataProviderPremium/index.js";
|
|
45
50
|
export * from "./ChartsContainerPremium/index.js";
|
|
46
51
|
export * from "./BarChartPremium/index.js";
|
|
47
52
|
export * from "./HeatmapPremium/index.js";
|
|
48
53
|
export * from "./ChartsWebGLLayer/index.js";
|
|
49
|
-
export * from "./CandlestickChart/index.js";
|
|
54
|
+
export * from "./CandlestickChart/index.js";
|
|
55
|
+
export * from "./RadialLineChart/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-premium v9.0.
|
|
2
|
+
* @mui/x-charts-premium v9.0.3
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
13
|
var _exportNames = {
|
|
14
|
+
Unstable_ChartsRotationAxis: true,
|
|
14
15
|
ChartsContainerPro: true
|
|
15
16
|
};
|
|
16
17
|
Object.defineProperty(exports, "ChartsContainerPro", {
|
|
@@ -19,6 +20,12 @@ Object.defineProperty(exports, "ChartsContainerPro", {
|
|
|
19
20
|
return _ChartsContainerPro.ChartsContainerPro;
|
|
20
21
|
}
|
|
21
22
|
});
|
|
23
|
+
Object.defineProperty(exports, "Unstable_ChartsRotationAxis", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return _ChartsRotationAxis.Unstable_ChartsRotationAxis;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
22
29
|
require("@mui/x-charts-pro/typeOverloads");
|
|
23
30
|
require("./typeOverloads/modules");
|
|
24
31
|
var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
|
|
@@ -273,6 +280,43 @@ Object.keys(_ChartsLabel).forEach(function (key) {
|
|
|
273
280
|
}
|
|
274
281
|
});
|
|
275
282
|
});
|
|
283
|
+
var _ChartsRadialDataProvider = require("@mui/x-charts/ChartsRadialDataProvider");
|
|
284
|
+
Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
285
|
+
if (key === "default" || key === "__esModule") return;
|
|
286
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
287
|
+
if (key in exports && exports[key] === _ChartsRadialDataProvider[key]) return;
|
|
288
|
+
Object.defineProperty(exports, key, {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return _ChartsRadialDataProvider[key];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
var _ChartsRadialGrid = require("@mui/x-charts/ChartsRadialGrid");
|
|
296
|
+
Object.keys(_ChartsRadialGrid).forEach(function (key) {
|
|
297
|
+
if (key === "default" || key === "__esModule") return;
|
|
298
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
299
|
+
if (key in exports && exports[key] === _ChartsRadialGrid[key]) return;
|
|
300
|
+
Object.defineProperty(exports, key, {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _ChartsRadialGrid[key];
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
var _ChartsRadiusAxis = require("@mui/x-charts/ChartsRadiusAxis");
|
|
308
|
+
Object.keys(_ChartsRadiusAxis).forEach(function (key) {
|
|
309
|
+
if (key === "default" || key === "__esModule") return;
|
|
310
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
311
|
+
if (key in exports && exports[key] === _ChartsRadiusAxis[key]) return;
|
|
312
|
+
Object.defineProperty(exports, key, {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () {
|
|
315
|
+
return _ChartsRadiusAxis[key];
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
var _ChartsRotationAxis = require("@mui/x-charts/ChartsRotationAxis");
|
|
276
320
|
var _Heatmap = require("@mui/x-charts-pro/Heatmap");
|
|
277
321
|
Object.keys(_Heatmap).forEach(function (key) {
|
|
278
322
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -502,6 +546,18 @@ Object.keys(_ChartsDataProviderPremium).forEach(function (key) {
|
|
|
502
546
|
}
|
|
503
547
|
});
|
|
504
548
|
});
|
|
549
|
+
var _ChartsRadialDataProviderPremium = require("./ChartsRadialDataProviderPremium");
|
|
550
|
+
Object.keys(_ChartsRadialDataProviderPremium).forEach(function (key) {
|
|
551
|
+
if (key === "default" || key === "__esModule") return;
|
|
552
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
553
|
+
if (key in exports && exports[key] === _ChartsRadialDataProviderPremium[key]) return;
|
|
554
|
+
Object.defineProperty(exports, key, {
|
|
555
|
+
enumerable: true,
|
|
556
|
+
get: function () {
|
|
557
|
+
return _ChartsRadialDataProviderPremium[key];
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
});
|
|
505
561
|
var _ChartsContainerPremium = require("./ChartsContainerPremium");
|
|
506
562
|
Object.keys(_ChartsContainerPremium).forEach(function (key) {
|
|
507
563
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -561,4 +617,16 @@ Object.keys(_CandlestickChart).forEach(function (key) {
|
|
|
561
617
|
return _CandlestickChart[key];
|
|
562
618
|
}
|
|
563
619
|
});
|
|
620
|
+
});
|
|
621
|
+
var _RadialLineChart = require("./RadialLineChart");
|
|
622
|
+
Object.keys(_RadialLineChart).forEach(function (key) {
|
|
623
|
+
if (key === "default" || key === "__esModule") return;
|
|
624
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
625
|
+
if (key in exports && exports[key] === _RadialLineChart[key]) return;
|
|
626
|
+
Object.defineProperty(exports, key, {
|
|
627
|
+
enumerable: true,
|
|
628
|
+
get: function () {
|
|
629
|
+
return _RadialLineChart[key];
|
|
630
|
+
}
|
|
631
|
+
});
|
|
564
632
|
});
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-premium v9.0.
|
|
2
|
+
* @mui/x-charts-premium v9.0.3
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -30,6 +30,10 @@ export * from '@mui/x-charts/RadarChart';
|
|
|
30
30
|
export * from '@mui/x-charts/ChartsSurface';
|
|
31
31
|
export * from '@mui/x-charts/ChartsDataProvider';
|
|
32
32
|
export * from '@mui/x-charts/ChartsLabel';
|
|
33
|
+
export * from '@mui/x-charts/ChartsRadialDataProvider';
|
|
34
|
+
export * from '@mui/x-charts/ChartsRadialGrid';
|
|
35
|
+
export * from '@mui/x-charts/ChartsRadiusAxis';
|
|
36
|
+
export { Unstable_ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
33
37
|
|
|
34
38
|
// Pro components
|
|
35
39
|
export * from '@mui/x-charts-pro/Heatmap';
|
|
@@ -58,8 +62,10 @@ export * from "./plugins/index.mjs";
|
|
|
58
62
|
// Premium components
|
|
59
63
|
export * from "./ChartsRenderer/index.mjs";
|
|
60
64
|
export * from "./ChartsDataProviderPremium/index.mjs";
|
|
65
|
+
export * from "./ChartsRadialDataProviderPremium/index.mjs";
|
|
61
66
|
export * from "./ChartsContainerPremium/index.mjs";
|
|
62
67
|
export * from "./BarChartPremium/index.mjs";
|
|
63
68
|
export * from "./HeatmapPremium/index.mjs";
|
|
64
69
|
export * from "./ChartsWebGLLayer/index.mjs";
|
|
65
|
-
export * from "./CandlestickChart/index.mjs";
|
|
70
|
+
export * from "./CandlestickChart/index.mjs";
|
|
71
|
+
export * from "./RadialLineChart/index.mjs";
|
|
@@ -24,4 +24,26 @@ Object.keys(_ohlc).forEach(function (key) {
|
|
|
24
24
|
return _ohlc[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
+
});
|
|
28
|
+
var _radialLine = require("./radialLine");
|
|
29
|
+
Object.keys(_radialLine).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _radialLine[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _radialLine[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _radialBar = require("./radialBar");
|
|
40
|
+
Object.keys(_radialBar).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _radialBar[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _radialBar[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
27
49
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CommonSeriesType, CommonBarSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
|
|
2
|
+
import type { StackOffsetType } from '@mui/x-charts/models';
|
|
3
|
+
import type { DefaultizedProps } from '@mui/x-internals/types';
|
|
4
|
+
export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'bar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
|
|
5
|
+
type: 'radialBar';
|
|
6
|
+
/**
|
|
7
|
+
* Defines how stacked series handle negative values.
|
|
8
|
+
* @default 'diverging'
|
|
9
|
+
*/
|
|
10
|
+
stackOffset?: StackOffsetType;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An object that allows to identify a single bar.
|
|
14
|
+
* Used for item interaction
|
|
15
|
+
*/
|
|
16
|
+
export type RadialBarItemIdentifier = {
|
|
17
|
+
type: 'radialBar';
|
|
18
|
+
seriesId: SeriesId;
|
|
19
|
+
dataIndex: number;
|
|
20
|
+
};
|
|
21
|
+
export interface DefaultizedRadialBarSeriesType extends DefaultizedProps<RadialBarSeriesType, CommonDefaultizedProps | 'color' | 'layout' | 'minBarSize'> {
|
|
22
|
+
hidden: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CommonSeriesType, CommonBarSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
|
|
2
|
+
import type { StackOffsetType } from '@mui/x-charts/models';
|
|
3
|
+
import type { DefaultizedProps } from '@mui/x-internals/types';
|
|
4
|
+
export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'bar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
|
|
5
|
+
type: 'radialBar';
|
|
6
|
+
/**
|
|
7
|
+
* Defines how stacked series handle negative values.
|
|
8
|
+
* @default 'diverging'
|
|
9
|
+
*/
|
|
10
|
+
stackOffset?: StackOffsetType;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An object that allows to identify a single bar.
|
|
14
|
+
* Used for item interaction
|
|
15
|
+
*/
|
|
16
|
+
export type RadialBarItemIdentifier = {
|
|
17
|
+
type: 'radialBar';
|
|
18
|
+
seriesId: SeriesId;
|
|
19
|
+
dataIndex: number;
|
|
20
|
+
};
|
|
21
|
+
export interface DefaultizedRadialBarSeriesType extends DefaultizedProps<RadialBarSeriesType, CommonDefaultizedProps | 'color' | 'layout' | 'minBarSize'> {
|
|
22
|
+
hidden: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CommonSeriesType, CommonLineSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
|
|
2
|
+
import type { StackOffsetType } from '@mui/x-charts/models';
|
|
3
|
+
import type { DefaultizedProps } from '@mui/x-internals/types';
|
|
4
|
+
export interface RadialLineSeriesType extends CommonSeriesType<number | null, 'line'>, RadialSeriesType, StackableSeriesType, CommonLineSeriesType {
|
|
5
|
+
type: 'radialLine';
|
|
6
|
+
/**
|
|
7
|
+
* Defines how stacked series handle negative values.
|
|
8
|
+
* @default 'none'
|
|
9
|
+
*/
|
|
10
|
+
stackOffset?: StackOffsetType;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An object that allows to identify a single line.
|
|
14
|
+
* Used for item interaction
|
|
15
|
+
*/
|
|
16
|
+
export type RadialLineItemIdentifier = {
|
|
17
|
+
type: 'radialLine';
|
|
18
|
+
seriesId: SeriesId;
|
|
19
|
+
/**
|
|
20
|
+
* `dataIndex` can be `undefined` if the mouse is over the area and not a specific item.
|
|
21
|
+
*/
|
|
22
|
+
dataIndex?: number;
|
|
23
|
+
};
|
|
24
|
+
export interface DefaultizedRadialLineSeriesType extends DefaultizedProps<RadialLineSeriesType, CommonDefaultizedProps | 'color'> {
|
|
25
|
+
hidden: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CommonSeriesType, CommonLineSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
|
|
2
|
+
import type { StackOffsetType } from '@mui/x-charts/models';
|
|
3
|
+
import type { DefaultizedProps } from '@mui/x-internals/types';
|
|
4
|
+
export interface RadialLineSeriesType extends CommonSeriesType<number | null, 'line'>, RadialSeriesType, StackableSeriesType, CommonLineSeriesType {
|
|
5
|
+
type: 'radialLine';
|
|
6
|
+
/**
|
|
7
|
+
* Defines how stacked series handle negative values.
|
|
8
|
+
* @default 'none'
|
|
9
|
+
*/
|
|
10
|
+
stackOffset?: StackOffsetType;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An object that allows to identify a single line.
|
|
14
|
+
* Used for item interaction
|
|
15
|
+
*/
|
|
16
|
+
export type RadialLineItemIdentifier = {
|
|
17
|
+
type: 'radialLine';
|
|
18
|
+
seriesId: SeriesId;
|
|
19
|
+
/**
|
|
20
|
+
* `dataIndex` can be `undefined` if the mouse is over the area and not a specific item.
|
|
21
|
+
*/
|
|
22
|
+
dataIndex?: number;
|
|
23
|
+
};
|
|
24
|
+
export interface DefaultizedRadialLineSeriesType extends DefaultizedProps<RadialLineSeriesType, CommonDefaultizedProps | 'color'> {
|
|
25
|
+
hidden: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-premium",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Charts components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"directory": "packages/x-charts-premium"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.
|
|
30
|
+
"@babel/runtime": "^7.29.2",
|
|
31
31
|
"@mui/utils": "9.0.0",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"prop-types": "^15.8.1",
|
|
34
|
-
"@mui/x-charts": "^9.0.
|
|
35
|
-
"@mui/x-charts-pro": "^9.0.2",
|
|
36
|
-
"@mui/x-charts-vendor": "^9.0.0",
|
|
34
|
+
"@mui/x-charts-pro": "^9.0.3",
|
|
37
35
|
"@mui/x-internals": "^9.0.0",
|
|
38
|
-
"@mui/x-
|
|
36
|
+
"@mui/x-charts": "^9.0.3",
|
|
37
|
+
"@mui/x-license": "^9.0.2",
|
|
38
|
+
"@mui/x-charts-vendor": "^9.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@emotion/react": "^11.9.0",
|
|
@@ -384,6 +384,20 @@
|
|
|
384
384
|
"default": "./ChartsRadialDataProvider/index.mjs"
|
|
385
385
|
}
|
|
386
386
|
},
|
|
387
|
+
"./ChartsRadialDataProviderPremium": {
|
|
388
|
+
"import": {
|
|
389
|
+
"types": "./ChartsRadialDataProviderPremium/index.d.mts",
|
|
390
|
+
"default": "./ChartsRadialDataProviderPremium/index.mjs"
|
|
391
|
+
},
|
|
392
|
+
"require": {
|
|
393
|
+
"types": "./ChartsRadialDataProviderPremium/index.d.ts",
|
|
394
|
+
"default": "./ChartsRadialDataProviderPremium/index.js"
|
|
395
|
+
},
|
|
396
|
+
"default": {
|
|
397
|
+
"types": "./ChartsRadialDataProviderPremium/index.d.mts",
|
|
398
|
+
"default": "./ChartsRadialDataProviderPremium/index.mjs"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
387
401
|
"./ChartsRadialGrid": {
|
|
388
402
|
"import": {
|
|
389
403
|
"types": "./ChartsRadialGrid/index.d.mts",
|
|
@@ -398,6 +412,20 @@
|
|
|
398
412
|
"default": "./ChartsRadialGrid/index.mjs"
|
|
399
413
|
}
|
|
400
414
|
},
|
|
415
|
+
"./ChartsRadiusAxis": {
|
|
416
|
+
"import": {
|
|
417
|
+
"types": "./ChartsRadiusAxis/index.d.mts",
|
|
418
|
+
"default": "./ChartsRadiusAxis/index.mjs"
|
|
419
|
+
},
|
|
420
|
+
"require": {
|
|
421
|
+
"types": "./ChartsRadiusAxis/index.d.ts",
|
|
422
|
+
"default": "./ChartsRadiusAxis/index.js"
|
|
423
|
+
},
|
|
424
|
+
"default": {
|
|
425
|
+
"types": "./ChartsRadiusAxis/index.d.mts",
|
|
426
|
+
"default": "./ChartsRadiusAxis/index.mjs"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
401
429
|
"./ChartsReferenceLine": {
|
|
402
430
|
"import": {
|
|
403
431
|
"types": "./ChartsReferenceLine/index.d.mts",
|
|
@@ -426,6 +454,20 @@
|
|
|
426
454
|
"default": "./ChartsRenderer/index.mjs"
|
|
427
455
|
}
|
|
428
456
|
},
|
|
457
|
+
"./ChartsRotationAxis": {
|
|
458
|
+
"import": {
|
|
459
|
+
"types": "./ChartsRotationAxis/index.d.mts",
|
|
460
|
+
"default": "./ChartsRotationAxis/index.mjs"
|
|
461
|
+
},
|
|
462
|
+
"require": {
|
|
463
|
+
"types": "./ChartsRotationAxis/index.d.ts",
|
|
464
|
+
"default": "./ChartsRotationAxis/index.js"
|
|
465
|
+
},
|
|
466
|
+
"default": {
|
|
467
|
+
"types": "./ChartsRotationAxis/index.d.mts",
|
|
468
|
+
"default": "./ChartsRotationAxis/index.mjs"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
429
471
|
"./ChartsSurface": {
|
|
430
472
|
"import": {
|
|
431
473
|
"types": "./ChartsSurface/index.d.mts",
|
|
@@ -706,6 +748,20 @@
|
|
|
706
748
|
"default": "./RadarChartPro/index.mjs"
|
|
707
749
|
}
|
|
708
750
|
},
|
|
751
|
+
"./RadialLineChart": {
|
|
752
|
+
"import": {
|
|
753
|
+
"types": "./RadialLineChart/index.d.mts",
|
|
754
|
+
"default": "./RadialLineChart/index.mjs"
|
|
755
|
+
},
|
|
756
|
+
"require": {
|
|
757
|
+
"types": "./RadialLineChart/index.d.ts",
|
|
758
|
+
"default": "./RadialLineChart/index.js"
|
|
759
|
+
},
|
|
760
|
+
"default": {
|
|
761
|
+
"types": "./RadialLineChart/index.d.mts",
|
|
762
|
+
"default": "./RadialLineChart/index.mjs"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
709
765
|
"./SankeyChart": {
|
|
710
766
|
"import": {
|
|
711
767
|
"types": "./SankeyChart/index.d.mts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
-
import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis } from '@mui/x-charts/internals';
|
|
3
|
-
import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType } from "../models/index.mjs";
|
|
2
|
+
import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized, ChartsRadiusAxisProps, ChartsRotationAxisProps } from '@mui/x-charts/internals';
|
|
3
|
+
import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier } from "../models/index.mjs";
|
|
4
4
|
import type { DefaultizedRangeBarSeriesType, RangeBarItemIdentifier } from "../models/seriesType/rangeBar.mjs";
|
|
5
5
|
import type { BarSeries } from "../BarChart/index.mjs";
|
|
6
6
|
declare module '@mui/x-charts/internals' {
|
|
@@ -52,5 +52,51 @@ declare module '@mui/x-charts/internals' {
|
|
|
52
52
|
dataIndex?: number;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
radialLine: {
|
|
56
|
+
seriesInput: DefaultizedProps<RadialLineSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
57
|
+
series: DefaultizedRadialLineSeriesType;
|
|
58
|
+
seriesLayout: {};
|
|
59
|
+
seriesProp: RadialLineSeriesType;
|
|
60
|
+
itemIdentifier: RadialLineItemIdentifier;
|
|
61
|
+
itemIdentifierWithData: RadialLineItemIdentifier;
|
|
62
|
+
valueType: number | null;
|
|
63
|
+
canBeStacked: true;
|
|
64
|
+
axisType: 'polar';
|
|
65
|
+
highlightScope: CommonHighlightScope;
|
|
66
|
+
descriptionGetterParams: {
|
|
67
|
+
identifier: RadialLineItemIdentifier;
|
|
68
|
+
rotationAxis: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
69
|
+
radiusAxis: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
70
|
+
series: DefaultizedRadialLineSeriesType;
|
|
71
|
+
};
|
|
72
|
+
highlightIdentifier: {
|
|
73
|
+
type: 'radialLine';
|
|
74
|
+
seriesId: SeriesId;
|
|
75
|
+
dataIndex?: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
radialBar: {
|
|
79
|
+
seriesInput: DefaultizedProps<RadialBarSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
80
|
+
series: DefaultizedRadialBarSeriesType;
|
|
81
|
+
seriesLayout: {};
|
|
82
|
+
seriesProp: RadialBarSeriesType;
|
|
83
|
+
itemIdentifier: RadialBarItemIdentifier;
|
|
84
|
+
itemIdentifierWithData: RadialBarItemIdentifier;
|
|
85
|
+
valueType: number | null;
|
|
86
|
+
canBeStacked: true;
|
|
87
|
+
axisType: 'polar';
|
|
88
|
+
highlightScope: CommonHighlightScope;
|
|
89
|
+
descriptionGetterParams: {
|
|
90
|
+
identifier: RadialBarItemIdentifier;
|
|
91
|
+
rotationAxis: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
92
|
+
radiusAxis: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
93
|
+
series: DefaultizedRadialBarSeriesType;
|
|
94
|
+
};
|
|
95
|
+
highlightIdentifier: {
|
|
96
|
+
type: 'radialBar';
|
|
97
|
+
seriesId: SeriesId;
|
|
98
|
+
dataIndex: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
55
101
|
}
|
|
56
102
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
-
import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis } from '@mui/x-charts/internals';
|
|
3
|
-
import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType } from "../models/index.js";
|
|
2
|
+
import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized, ChartsRadiusAxisProps, ChartsRotationAxisProps } from '@mui/x-charts/internals';
|
|
3
|
+
import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier } from "../models/index.js";
|
|
4
4
|
import type { DefaultizedRangeBarSeriesType, RangeBarItemIdentifier } from "../models/seriesType/rangeBar.js";
|
|
5
5
|
import type { BarSeries } from "../BarChart/index.js";
|
|
6
6
|
declare module '@mui/x-charts/internals' {
|
|
@@ -52,5 +52,51 @@ declare module '@mui/x-charts/internals' {
|
|
|
52
52
|
dataIndex?: number;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
radialLine: {
|
|
56
|
+
seriesInput: DefaultizedProps<RadialLineSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
57
|
+
series: DefaultizedRadialLineSeriesType;
|
|
58
|
+
seriesLayout: {};
|
|
59
|
+
seriesProp: RadialLineSeriesType;
|
|
60
|
+
itemIdentifier: RadialLineItemIdentifier;
|
|
61
|
+
itemIdentifierWithData: RadialLineItemIdentifier;
|
|
62
|
+
valueType: number | null;
|
|
63
|
+
canBeStacked: true;
|
|
64
|
+
axisType: 'polar';
|
|
65
|
+
highlightScope: CommonHighlightScope;
|
|
66
|
+
descriptionGetterParams: {
|
|
67
|
+
identifier: RadialLineItemIdentifier;
|
|
68
|
+
rotationAxis: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
69
|
+
radiusAxis: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
70
|
+
series: DefaultizedRadialLineSeriesType;
|
|
71
|
+
};
|
|
72
|
+
highlightIdentifier: {
|
|
73
|
+
type: 'radialLine';
|
|
74
|
+
seriesId: SeriesId;
|
|
75
|
+
dataIndex?: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
radialBar: {
|
|
79
|
+
seriesInput: DefaultizedProps<RadialBarSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
80
|
+
series: DefaultizedRadialBarSeriesType;
|
|
81
|
+
seriesLayout: {};
|
|
82
|
+
seriesProp: RadialBarSeriesType;
|
|
83
|
+
itemIdentifier: RadialBarItemIdentifier;
|
|
84
|
+
itemIdentifierWithData: RadialBarItemIdentifier;
|
|
85
|
+
valueType: number | null;
|
|
86
|
+
canBeStacked: true;
|
|
87
|
+
axisType: 'polar';
|
|
88
|
+
highlightScope: CommonHighlightScope;
|
|
89
|
+
descriptionGetterParams: {
|
|
90
|
+
identifier: RadialBarItemIdentifier;
|
|
91
|
+
rotationAxis: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
92
|
+
radiusAxis: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
93
|
+
series: DefaultizedRadialBarSeriesType;
|
|
94
|
+
};
|
|
95
|
+
highlightIdentifier: {
|
|
96
|
+
type: 'radialBar';
|
|
97
|
+
seriesId: SeriesId;
|
|
98
|
+
dataIndex: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
55
101
|
}
|
|
56
102
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This hook calls the provided `onResize` callback whenever the WebGL canvas is resized.
|
|
3
3
|
* It detects size changes when the element is resized, the browser zoom updates or the device pixel ratio changes.
|
|
4
4
|
* These last two conditions aren't supported by Safari, so `onResize` won't be called in these cases on Safari.
|
|
5
|
-
* @param
|
|
5
|
+
* @param gl The WebGL2 rendering context whose canvas to observe.
|
|
6
|
+
* @param onResize Callback invoked after the canvas and viewport are updated.
|
|
6
7
|
*/
|
|
7
|
-
export declare function useWebGLResizeObserver(onResize: () => void): void;
|
|
8
|
+
export declare function useWebGLResizeObserver(gl: WebGL2RenderingContext | null, onResize: () => void): void;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This hook calls the provided `onResize` callback whenever the WebGL canvas is resized.
|
|
3
3
|
* It detects size changes when the element is resized, the browser zoom updates or the device pixel ratio changes.
|
|
4
4
|
* These last two conditions aren't supported by Safari, so `onResize` won't be called in these cases on Safari.
|
|
5
|
-
* @param
|
|
5
|
+
* @param gl The WebGL2 rendering context whose canvas to observe.
|
|
6
|
+
* @param onResize Callback invoked after the canvas and viewport are updated.
|
|
6
7
|
*/
|
|
7
|
-
export declare function useWebGLResizeObserver(onResize: () => void): void;
|
|
8
|
+
export declare function useWebGLResizeObserver(gl: WebGL2RenderingContext | null, onResize: () => void): void;
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.useWebGLResizeObserver = useWebGLResizeObserver;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _ChartsWebGLLayer = require("../../ChartsWebGLLayer/ChartsWebGLLayer");
|
|
11
10
|
function getDevicePixelContentBoxSize(entry) {
|
|
12
11
|
// Safari does not support devicePixelContentBoxSize
|
|
13
12
|
if (entry.devicePixelContentBoxSize) {
|
|
@@ -27,10 +26,10 @@ function getDevicePixelContentBoxSize(entry) {
|
|
|
27
26
|
* This hook calls the provided `onResize` callback whenever the WebGL canvas is resized.
|
|
28
27
|
* It detects size changes when the element is resized, the browser zoom updates or the device pixel ratio changes.
|
|
29
28
|
* These last two conditions aren't supported by Safari, so `onResize` won't be called in these cases on Safari.
|
|
30
|
-
* @param
|
|
29
|
+
* @param gl The WebGL2 rendering context whose canvas to observe.
|
|
30
|
+
* @param onResize Callback invoked after the canvas and viewport are updated.
|
|
31
31
|
*/
|
|
32
|
-
function useWebGLResizeObserver(onResize) {
|
|
33
|
-
const gl = (0, _ChartsWebGLLayer.useWebGLContext)();
|
|
32
|
+
function useWebGLResizeObserver(gl, onResize) {
|
|
34
33
|
React.useEffect(() => {
|
|
35
34
|
const canvas = gl?.canvas;
|
|
36
35
|
if (!(canvas instanceof HTMLCanvasElement)) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useWebGLContext } from "../../ChartsWebGLLayer/ChartsWebGLLayer.mjs";
|
|
5
4
|
function getDevicePixelContentBoxSize(entry) {
|
|
6
5
|
// Safari does not support devicePixelContentBoxSize
|
|
7
6
|
if (entry.devicePixelContentBoxSize) {
|
|
@@ -21,10 +20,10 @@ function getDevicePixelContentBoxSize(entry) {
|
|
|
21
20
|
* This hook calls the provided `onResize` callback whenever the WebGL canvas is resized.
|
|
22
21
|
* It detects size changes when the element is resized, the browser zoom updates or the device pixel ratio changes.
|
|
23
22
|
* These last two conditions aren't supported by Safari, so `onResize` won't be called in these cases on Safari.
|
|
24
|
-
* @param
|
|
23
|
+
* @param gl The WebGL2 rendering context whose canvas to observe.
|
|
24
|
+
* @param onResize Callback invoked after the canvas and viewport are updated.
|
|
25
25
|
*/
|
|
26
|
-
export function useWebGLResizeObserver(onResize) {
|
|
27
|
-
const gl = useWebGLContext();
|
|
26
|
+
export function useWebGLResizeObserver(gl, onResize) {
|
|
28
27
|
React.useEffect(() => {
|
|
29
28
|
const canvas = gl?.canvas;
|
|
30
29
|
if (!(canvas instanceof HTMLCanvasElement)) {
|