@mui/x-charts-premium 9.3.0 → 9.5.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/BarChartPremium/BarChartPremium.js +35 -5
- package/BarChartPremium/BarChartPremium.mjs +35 -5
- package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +10 -0
- package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +10 -0
- package/BarChartPremium/RangeBar/RangeBarPlot.js +59 -2
- package/BarChartPremium/RangeBar/RangeBarPlot.mjs +59 -2
- package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.mts +10 -0
- package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.ts +10 -0
- package/BarChartPremium/RangeBar/RangeBarWebGLPlot.js +82 -0
- package/BarChartPremium/RangeBar/RangeBarWebGLPlot.mjs +76 -0
- package/BarChartPremium/RangeBar/seriesConfig/extrema.js +3 -0
- package/BarChartPremium/RangeBar/seriesConfig/extrema.mjs +3 -0
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs +2 -2
- package/BarChartPremium/useBarChartPremiumProps.js +2 -1
- package/BarChartPremium/useBarChartPremiumProps.mjs +2 -1
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +2 -7
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +2 -7
- package/BarChartPremium/webgl/useBarWebGLPlotData.js +4 -151
- package/BarChartPremium/webgl/useBarWebGLPlotData.mjs +4 -150
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +40 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +40 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +228 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +222 -0
- package/CHANGELOG.md +296 -0
- package/CandlestickChart/CandlestickChart.js +11 -2
- package/CandlestickChart/CandlestickChart.mjs +11 -2
- package/CandlestickChart/index.d.mts +11 -2
- package/CandlestickChart/index.d.ts +11 -2
- package/CandlestickChart/index.js +15 -3
- package/CandlestickChart/index.mjs +16 -2
- package/CandlestickChart/seriesConfig/extrema.js +3 -0
- package/CandlestickChart/seriesConfig/extrema.mjs +3 -0
- package/CandlestickChart/seriesConfig/seriesProcessor.js +2 -2
- package/CandlestickChart/seriesConfig/seriesProcessor.mjs +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +35 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +35 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +125 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +119 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +5 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +5 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +10 -0
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +4 -0
- package/ChartsGeoDataProviderPremium/index.d.mts +3 -0
- package/ChartsGeoDataProviderPremium/index.d.ts +3 -0
- package/ChartsGeoDataProviderPremium/index.js +20 -0
- package/ChartsGeoDataProviderPremium/index.mjs +3 -0
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +10 -0
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +10 -0
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.js +49 -0
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.mjs +42 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- package/HeatmapPremium/HeatmapPremium.js +32 -2
- package/HeatmapPremium/HeatmapPremium.mjs +32 -2
- package/Map/FocusedMapShape.d.mts +4 -0
- package/Map/FocusedMapShape.d.ts +4 -0
- package/Map/FocusedMapShape.js +66 -0
- package/Map/FocusedMapShape.mjs +60 -0
- package/Map/GeoDataPlot.d.mts +26 -0
- package/Map/GeoDataPlot.d.ts +26 -0
- package/Map/GeoDataPlot.js +65 -0
- package/Map/GeoDataPlot.mjs +60 -0
- package/Map/Graticule.d.mts +1 -0
- package/Map/Graticule.d.ts +1 -0
- package/Map/Graticule.js +30 -0
- package/Map/Graticule.mjs +24 -0
- package/Map/MapShape.d.mts +10 -0
- package/Map/MapShape.d.ts +10 -0
- package/Map/MapShape.js +55 -0
- package/Map/MapShape.mjs +49 -0
- package/Map/MapShapePlot.d.mts +21 -0
- package/Map/MapShapePlot.d.ts +21 -0
- package/Map/MapShapePlot.js +86 -0
- package/Map/MapShapePlot.mjs +80 -0
- package/Map/index.d.mts +7 -0
- package/Map/index.d.ts +7 -0
- package/Map/index.js +60 -0
- package/Map/index.mjs +8 -0
- package/Map/seriesConfig/descriptionGetter.d.mts +3 -0
- package/Map/seriesConfig/descriptionGetter.d.ts +3 -0
- package/Map/seriesConfig/descriptionGetter.js +19 -0
- package/Map/seriesConfig/descriptionGetter.mjs +13 -0
- package/Map/seriesConfig/getColor.d.mts +3 -0
- package/Map/seriesConfig/getColor.d.ts +3 -0
- package/Map/seriesConfig/getColor.js +35 -0
- package/Map/seriesConfig/getColor.mjs +29 -0
- package/Map/seriesConfig/getSeriesWithDefaultValues.d.mts +3 -0
- package/Map/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/Map/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/Map/seriesConfig/getSeriesWithDefaultValues.mjs +8 -0
- package/Map/seriesConfig/index.d.mts +2 -0
- package/Map/seriesConfig/index.d.ts +2 -0
- package/Map/seriesConfig/index.js +28 -0
- package/Map/seriesConfig/index.mjs +21 -0
- package/Map/seriesConfig/keyboardFocusHandler.d.mts +9 -0
- package/Map/seriesConfig/keyboardFocusHandler.d.ts +9 -0
- package/Map/seriesConfig/keyboardFocusHandler.js +19 -0
- package/Map/seriesConfig/keyboardFocusHandler.mjs +13 -0
- package/Map/seriesConfig/legend.d.mts +3 -0
- package/Map/seriesConfig/legend.d.ts +3 -0
- package/Map/seriesConfig/legend.js +28 -0
- package/Map/seriesConfig/legend.mjs +22 -0
- package/Map/seriesConfig/seriesProcessor.d.mts +3 -0
- package/Map/seriesConfig/seriesProcessor.d.ts +3 -0
- package/Map/seriesConfig/seriesProcessor.js +66 -0
- package/Map/seriesConfig/seriesProcessor.mjs +59 -0
- package/Map/seriesConfig/tooltip.d.mts +3 -0
- package/Map/seriesConfig/tooltip.d.ts +3 -0
- package/Map/seriesConfig/tooltip.js +33 -0
- package/Map/seriesConfig/tooltip.mjs +27 -0
- package/RadialBarChart/RadialBarChart.d.mts +1 -1
- package/RadialBarChart/RadialBarChart.d.ts +1 -1
- package/RadialBarChart/RadialBarChart.js +2 -2
- package/RadialBarChart/RadialBarChart.mjs +1 -1
- package/RadialBarChart/index.d.mts +4 -0
- package/RadialBarChart/index.d.ts +4 -0
- package/RadialBarChart/index.js +8 -1
- package/RadialBarChart/index.mjs +6 -0
- package/RadialLineChart/RadialLineChart.d.mts +1 -1
- package/RadialLineChart/RadialLineChart.d.ts +1 -1
- package/RadialLineChart/RadialLineChart.js +4 -4
- package/RadialLineChart/RadialLineChart.mjs +5 -5
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -2
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -2
- package/RadialLineChart/index.d.mts +4 -0
- package/RadialLineChart/index.d.ts +4 -0
- package/RadialLineChart/index.js +16 -1
- package/RadialLineChart/index.mjs +6 -0
- package/ScatterChartPremium/ScatterChartPremium.d.mts +2 -1
- package/ScatterChartPremium/ScatterChartPremium.d.ts +2 -1
- package/ScatterChartPremium/ScatterChartPremium.js +36 -4
- package/ScatterChartPremium/ScatterChartPremium.mjs +37 -5
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +2 -2
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +2 -2
- package/hooks/index.d.mts +4 -1
- package/hooks/index.d.ts +4 -1
- package/hooks/index.js +33 -0
- package/hooks/index.mjs +4 -1
- package/hooks/useGeoData.d.mts +6 -0
- package/hooks/useGeoData.d.ts +6 -0
- package/hooks/useGeoData.js +17 -0
- package/hooks/useGeoData.mjs +13 -0
- package/hooks/useGeoFeatureIndexesByName.d.mts +7 -0
- package/hooks/useGeoFeatureIndexesByName.d.ts +7 -0
- package/hooks/useGeoFeatureIndexesByName.js +19 -0
- package/hooks/useGeoFeatureIndexesByName.mjs +15 -0
- package/hooks/useGeoPath.d.mts +6 -0
- package/hooks/useGeoPath.d.ts +6 -0
- package/hooks/useGeoPath.js +17 -0
- package/hooks/useGeoPath.mjs +13 -0
- package/hooks/useMapShapeSeries.d.mts +34 -0
- package/hooks/useMapShapeSeries.d.ts +34 -0
- package/hooks/useMapShapeSeries.js +45 -0
- package/hooks/useMapShapeSeries.mjs +40 -0
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.js +32 -1
- package/index.mjs +4 -2
- package/internals/plugins/allPlugins.d.mts +5 -5
- package/internals/plugins/allPlugins.d.ts +5 -5
- package/internals/plugins/allPlugins.js +2 -2
- package/internals/plugins/allPlugins.mjs +3 -3
- package/internals/plugins/useGeoProjection/index.d.mts +3 -0
- package/internals/plugins/useGeoProjection/index.d.ts +3 -0
- package/internals/plugins/useGeoProjection/index.js +38 -0
- package/internals/plugins/useGeoProjection/index.mjs +3 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +3 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +3 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.js +58 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.mjs +50 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +39 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +39 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +135 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +128 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +55 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +55 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.types.js +5 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
- package/models/chartsSlotsComponentsPropsPremium.d.mts +1 -0
- package/models/chartsSlotsComponentsPropsPremium.d.ts +1 -0
- package/models/chartsSlotsComponentsPropsPremium.js +5 -0
- package/models/chartsSlotsComponentsPropsPremium.mjs +1 -0
- package/models/index.d.mts +2 -1
- package/models/index.d.ts +2 -1
- package/models/index.js +11 -0
- package/models/index.mjs +2 -1
- package/models/seriesType/index.d.mts +2 -1
- package/models/seriesType/index.d.ts +2 -1
- package/models/seriesType/index.js +11 -0
- package/models/seriesType/index.mjs +2 -1
- package/models/seriesType/mapShape.d.mts +105 -0
- package/models/seriesType/mapShape.d.ts +105 -0
- package/models/seriesType/mapShape.js +5 -0
- package/models/seriesType/mapShape.mjs +1 -0
- package/models/seriesType/ohlc.d.mts +1 -1
- package/models/seriesType/ohlc.d.ts +1 -1
- package/models/seriesType/radialBar.d.mts +1 -1
- package/models/seriesType/radialBar.d.ts +1 -1
- package/models/seriesType/radialLine.d.mts +1 -1
- package/models/seriesType/radialLine.d.ts +1 -1
- package/models/seriesType/rangeBar.d.mts +1 -1
- package/models/seriesType/rangeBar.d.ts +1 -1
- package/package.json +34 -6
- package/typeOverloads/modules.d.mts +16 -1
- package/typeOverloads/modules.d.ts +16 -1
- package/utils/webgl/useWebGLResizeObserver.js +3 -3
- package/utils/webgl/useWebGLResizeObserver.mjs +2 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
11
|
+
const seriesProcessor = ({
|
|
12
|
+
series,
|
|
13
|
+
seriesOrder
|
|
14
|
+
}, dataset, isItemVisible) => {
|
|
15
|
+
const defaultizedSeries = {};
|
|
16
|
+
seriesOrder.forEach(seriesId => {
|
|
17
|
+
const input = series[seriesId];
|
|
18
|
+
const datasetKeys = input.datasetKeys;
|
|
19
|
+
if (datasetKeys && typeof datasetKeys.name !== 'string') {
|
|
20
|
+
(0, _internals.incompleteDatasetKeysError)('MapShape', seriesId, ['name']);
|
|
21
|
+
}
|
|
22
|
+
let data;
|
|
23
|
+
if (input.valueGetter) {
|
|
24
|
+
data = dataset?.map(input.valueGetter) ?? [];
|
|
25
|
+
} else if (datasetKeys) {
|
|
26
|
+
data = dataset?.map(d => {
|
|
27
|
+
const rep = {
|
|
28
|
+
name: d[datasetKeys.name]
|
|
29
|
+
};
|
|
30
|
+
if (datasetKeys.label !== undefined) {
|
|
31
|
+
rep.label = d[datasetKeys.label];
|
|
32
|
+
}
|
|
33
|
+
if (datasetKeys.value !== undefined) {
|
|
34
|
+
rep.value = d[datasetKeys.value];
|
|
35
|
+
}
|
|
36
|
+
if (datasetKeys.colorValue !== undefined) {
|
|
37
|
+
rep.colorValue = d[datasetKeys.colorValue];
|
|
38
|
+
}
|
|
39
|
+
return rep;
|
|
40
|
+
}) ?? [];
|
|
41
|
+
} else {
|
|
42
|
+
data = input.data ?? [];
|
|
43
|
+
}
|
|
44
|
+
defaultizedSeries[seriesId] = (0, _extends2.default)({
|
|
45
|
+
labelMarkType: 'square'
|
|
46
|
+
}, input, {
|
|
47
|
+
data: data.map((item, dataIndex) => (0, _extends2.default)({}, item, {
|
|
48
|
+
hidden: !isItemVisible?.({
|
|
49
|
+
type: 'mapShape',
|
|
50
|
+
seriesId,
|
|
51
|
+
dataIndex
|
|
52
|
+
})
|
|
53
|
+
})),
|
|
54
|
+
hidden: !isItemVisible?.({
|
|
55
|
+
type: 'mapShape',
|
|
56
|
+
seriesId
|
|
57
|
+
}),
|
|
58
|
+
valueFormatter: input.valueFormatter ?? defaultValueFormatter
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
return {
|
|
62
|
+
series: defaultizedSeries,
|
|
63
|
+
seriesOrder
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
var _default = exports.default = seriesProcessor;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import { incompleteDatasetKeysError } from '@mui/x-charts/internals';
|
|
3
|
+
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
4
|
+
const seriesProcessor = ({
|
|
5
|
+
series,
|
|
6
|
+
seriesOrder
|
|
7
|
+
}, dataset, isItemVisible) => {
|
|
8
|
+
const defaultizedSeries = {};
|
|
9
|
+
seriesOrder.forEach(seriesId => {
|
|
10
|
+
const input = series[seriesId];
|
|
11
|
+
const datasetKeys = input.datasetKeys;
|
|
12
|
+
if (datasetKeys && typeof datasetKeys.name !== 'string') {
|
|
13
|
+
incompleteDatasetKeysError('MapShape', seriesId, ['name']);
|
|
14
|
+
}
|
|
15
|
+
let data;
|
|
16
|
+
if (input.valueGetter) {
|
|
17
|
+
data = dataset?.map(input.valueGetter) ?? [];
|
|
18
|
+
} else if (datasetKeys) {
|
|
19
|
+
data = dataset?.map(d => {
|
|
20
|
+
const rep = {
|
|
21
|
+
name: d[datasetKeys.name]
|
|
22
|
+
};
|
|
23
|
+
if (datasetKeys.label !== undefined) {
|
|
24
|
+
rep.label = d[datasetKeys.label];
|
|
25
|
+
}
|
|
26
|
+
if (datasetKeys.value !== undefined) {
|
|
27
|
+
rep.value = d[datasetKeys.value];
|
|
28
|
+
}
|
|
29
|
+
if (datasetKeys.colorValue !== undefined) {
|
|
30
|
+
rep.colorValue = d[datasetKeys.colorValue];
|
|
31
|
+
}
|
|
32
|
+
return rep;
|
|
33
|
+
}) ?? [];
|
|
34
|
+
} else {
|
|
35
|
+
data = input.data ?? [];
|
|
36
|
+
}
|
|
37
|
+
defaultizedSeries[seriesId] = _extends({
|
|
38
|
+
labelMarkType: 'square'
|
|
39
|
+
}, input, {
|
|
40
|
+
data: data.map((item, dataIndex) => _extends({}, item, {
|
|
41
|
+
hidden: !isItemVisible?.({
|
|
42
|
+
type: 'mapShape',
|
|
43
|
+
seriesId,
|
|
44
|
+
dataIndex
|
|
45
|
+
})
|
|
46
|
+
})),
|
|
47
|
+
hidden: !isItemVisible?.({
|
|
48
|
+
type: 'mapShape',
|
|
49
|
+
seriesId
|
|
50
|
+
}),
|
|
51
|
+
valueFormatter: input.valueFormatter ?? defaultValueFormatter
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
return {
|
|
55
|
+
series: defaultizedSeries,
|
|
56
|
+
seriesOrder
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default seriesProcessor;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
const tooltipGetter = ({
|
|
9
|
+
series,
|
|
10
|
+
getColor,
|
|
11
|
+
identifier
|
|
12
|
+
}) => {
|
|
13
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const point = series.data[identifier.dataIndex];
|
|
17
|
+
if (point == null) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
|
|
21
|
+
const formattedValue = series.valueFormatter(point, {
|
|
22
|
+
dataIndex: identifier.dataIndex
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
identifier,
|
|
26
|
+
color: getColor(identifier.dataIndex),
|
|
27
|
+
label,
|
|
28
|
+
value: point,
|
|
29
|
+
formattedValue,
|
|
30
|
+
markType: series.labelMarkType
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
var _default = exports.default = tooltipGetter;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getLabel } from '@mui/x-charts/internals';
|
|
2
|
+
const tooltipGetter = ({
|
|
3
|
+
series,
|
|
4
|
+
getColor,
|
|
5
|
+
identifier
|
|
6
|
+
}) => {
|
|
7
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const point = series.data[identifier.dataIndex];
|
|
11
|
+
if (point == null) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
const label = getLabel(point.label ?? point.name, 'tooltip');
|
|
15
|
+
const formattedValue = series.valueFormatter(point, {
|
|
16
|
+
dataIndex: identifier.dataIndex
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
identifier,
|
|
20
|
+
color: getColor(identifier.dataIndex),
|
|
21
|
+
label,
|
|
22
|
+
value: point,
|
|
23
|
+
formattedValue,
|
|
24
|
+
markType: series.labelMarkType
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default tooltipGetter;
|
|
@@ -64,4 +64,4 @@ export interface RadialBarChartProps extends Omit<ChartsRadialDataProviderPremiu
|
|
|
64
64
|
* - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
|
|
65
65
|
*/
|
|
66
66
|
declare const RadialBarChart: React.ForwardRefExoticComponent<RadialBarChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
-
export { RadialBarChart
|
|
67
|
+
export { RadialBarChart };
|
|
@@ -64,4 +64,4 @@ export interface RadialBarChartProps extends Omit<ChartsRadialDataProviderPremiu
|
|
|
64
64
|
* - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
|
|
65
65
|
*/
|
|
66
66
|
declare const RadialBarChart: React.ForwardRefExoticComponent<RadialBarChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
-
export { RadialBarChart
|
|
67
|
+
export { RadialBarChart };
|
|
@@ -6,7 +6,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.RadialBarChart = void 0;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -40,7 +40,7 @@ const seriesConfig = {
|
|
|
40
40
|
*
|
|
41
41
|
* - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
|
|
42
42
|
*/
|
|
43
|
-
const RadialBarChart = exports.
|
|
43
|
+
const RadialBarChart = exports.RadialBarChart = /*#__PURE__*/React.forwardRef(function RadialBarChart(inProps, ref) {
|
|
44
44
|
const props = (0, _styles.useThemeProps)({
|
|
45
45
|
props: inProps,
|
|
46
46
|
name: 'MuiRadialBarChart'
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export * from "./RadialBarChart.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated radial bar chart is now stable, import `RadialBarChart` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_RadialBarChart: import("react").ForwardRefExoticComponent<import("./RadialBarChart.mjs").RadialBarChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
6
|
export * from "./RadialBarPlot.mjs";
|
|
3
7
|
export { type RadialBarClasses, type RadialBarClassKey, radialBarClasses } from "./radialBarClasses.mjs";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export * from "./RadialBarChart.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated radial bar chart is now stable, import `RadialBarChart` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_RadialBarChart: import("react").ForwardRefExoticComponent<import("./RadialBarChart.js").RadialBarChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
6
|
export * from "./RadialBarPlot.js";
|
|
3
7
|
export { type RadialBarClasses, type RadialBarClassKey, radialBarClasses } from "./radialBarClasses.js";
|
package/RadialBarChart/index.js
CHANGED
|
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
+
Unstable_RadialBarChart: true,
|
|
7
8
|
radialBarClasses: true
|
|
8
9
|
};
|
|
10
|
+
exports.Unstable_RadialBarChart = void 0;
|
|
9
11
|
Object.defineProperty(exports, "radialBarClasses", {
|
|
10
12
|
enumerable: true,
|
|
11
13
|
get: function () {
|
|
@@ -36,4 +38,9 @@ Object.keys(_RadialBarPlot).forEach(function (key) {
|
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
40
|
});
|
|
39
|
-
var _radialBarClasses = require("./radialBarClasses");
|
|
41
|
+
var _radialBarClasses = require("./radialBarClasses");
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated radial bar chart is now stable, import `RadialBarChart` instead
|
|
44
|
+
*/
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
46
|
+
const Unstable_RadialBarChart = exports.Unstable_RadialBarChart = _RadialBarChart.RadialBarChart;
|
package/RadialBarChart/index.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { RadialBarChart } from "./RadialBarChart.mjs";
|
|
1
2
|
export * from "./RadialBarChart.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial bar chart is now stable, import `RadialBarChart` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_RadialBarChart = RadialBarChart;
|
|
2
8
|
export * from "./RadialBarPlot.mjs";
|
|
3
9
|
export { radialBarClasses } from "./radialBarClasses.mjs";
|
|
@@ -69,4 +69,4 @@ export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremi
|
|
|
69
69
|
* - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
|
|
70
70
|
*/
|
|
71
71
|
declare const RadialLineChart: React.ForwardRefExoticComponent<RadialLineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
-
export { RadialLineChart
|
|
72
|
+
export { RadialLineChart };
|
|
@@ -69,4 +69,4 @@ export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremi
|
|
|
69
69
|
* - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
|
|
70
70
|
*/
|
|
71
71
|
declare const RadialLineChart: React.ForwardRefExoticComponent<RadialLineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
-
export { RadialLineChart
|
|
72
|
+
export { RadialLineChart };
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.RadialLineChart = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -42,7 +42,7 @@ const seriesConfig = {
|
|
|
42
42
|
*
|
|
43
43
|
* - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
|
|
44
44
|
*/
|
|
45
|
-
const RadialLineChart = exports.
|
|
45
|
+
const RadialLineChart = exports.RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(inProps, ref) {
|
|
46
46
|
const props = (0, _styles.useThemeProps)({
|
|
47
47
|
props: inProps,
|
|
48
48
|
name: 'MuiRadialLineChart'
|
|
@@ -69,9 +69,9 @@ const RadialLineChart = exports.Unstable_RadialLineChart = /*#__PURE__*/React.fo
|
|
|
69
69
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
70
70
|
ref: ref,
|
|
71
71
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
72
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialGrid.
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialGrid.ChartsRadialGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
73
73
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialAreaPlot.RadialAreaPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLinePlot.RadialLinePlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps))]
|
|
74
|
-
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.
|
|
74
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.ChartsRadialAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRotationAxis.ChartsRotationAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadiusAxis.ChartsRadiusAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialMarkPlot.RadialMarkPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLineHighlightPlot.RadialLineHighlightPlot, {
|
|
75
75
|
slots: props.slots,
|
|
76
76
|
slotProps: props.slotProps
|
|
77
77
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
|
|
@@ -3,10 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useThemeProps } from '@mui/material/styles';
|
|
5
5
|
import { useChartsContainerProps } from '@mui/x-charts/internals';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { ChartsRadialGrid } from '@mui/x-charts/ChartsRadialGrid';
|
|
7
|
+
import { ChartsRadialAxisHighlight } from '@mui/x-charts/ChartsRadialAxisHighlight';
|
|
8
|
+
import { ChartsRadiusAxis } from '@mui/x-charts/ChartsRadiusAxis';
|
|
9
|
+
import { ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
10
10
|
import { ChartsLegend } from "../ChartsLegend/index.mjs";
|
|
11
11
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
12
12
|
import { ChartsTooltip } from "../ChartsTooltip/index.mjs";
|
|
@@ -310,4 +310,4 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
310
310
|
*/
|
|
311
311
|
width: PropTypes.number
|
|
312
312
|
} : void 0;
|
|
313
|
-
export { RadialLineChart
|
|
313
|
+
export { RadialLineChart };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type RadialLineHighlightElementProps } from "./RadialLineHighlightElement.mjs";
|
|
4
|
+
import type { RadialLineHighlightPropsOverrides } from "../models/chartsSlotsComponentsPropsPremium.mjs";
|
|
4
5
|
export interface RadialLineHighlightPlotSlots {
|
|
5
|
-
radialLineHighlight?: React.JSXElementConstructor<RadialLineHighlightElementProps>;
|
|
6
|
+
radialLineHighlight?: React.JSXElementConstructor<RadialLineHighlightElementProps & RadialLineHighlightPropsOverrides>;
|
|
6
7
|
}
|
|
7
8
|
export interface RadialLineHighlightPlotSlotProps {
|
|
8
|
-
radialLineHighlight?: SlotComponentPropsFromProps<RadialLineHighlightElementProps,
|
|
9
|
+
radialLineHighlight?: SlotComponentPropsFromProps<RadialLineHighlightElementProps, RadialLineHighlightPropsOverrides, {}>;
|
|
9
10
|
}
|
|
10
11
|
export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGElement> {
|
|
11
12
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type RadialLineHighlightElementProps } from "./RadialLineHighlightElement.js";
|
|
4
|
+
import type { RadialLineHighlightPropsOverrides } from "../models/chartsSlotsComponentsPropsPremium.js";
|
|
4
5
|
export interface RadialLineHighlightPlotSlots {
|
|
5
|
-
radialLineHighlight?: React.JSXElementConstructor<RadialLineHighlightElementProps>;
|
|
6
|
+
radialLineHighlight?: React.JSXElementConstructor<RadialLineHighlightElementProps & RadialLineHighlightPropsOverrides>;
|
|
6
7
|
}
|
|
7
8
|
export interface RadialLineHighlightPlotSlotProps {
|
|
8
|
-
radialLineHighlight?: SlotComponentPropsFromProps<RadialLineHighlightElementProps,
|
|
9
|
+
radialLineHighlight?: SlotComponentPropsFromProps<RadialLineHighlightElementProps, RadialLineHighlightPropsOverrides, {}>;
|
|
9
10
|
}
|
|
10
11
|
export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGElement> {
|
|
11
12
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from "./RadialLineChart.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated radial line chart is now stable, import `RadialLineChart` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_RadialLineChart: import("react").ForwardRefExoticComponent<import("./RadialLineChart.mjs").RadialLineChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
6
|
export * from "./RadialAreaPlot.mjs";
|
|
3
7
|
export * from "./RadialLinePlot.mjs";
|
|
4
8
|
export * from "./RadialMarkPlot.mjs";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from "./RadialLineChart.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated radial line chart is now stable, import `RadialLineChart` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_RadialLineChart: import("react").ForwardRefExoticComponent<import("./RadialLineChart.js").RadialLineChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
6
|
export * from "./RadialAreaPlot.js";
|
|
3
7
|
export * from "./RadialLinePlot.js";
|
|
4
8
|
export * from "./RadialMarkPlot.js";
|
package/RadialLineChart/index.js
CHANGED
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Unstable_RadialLineChart: true
|
|
8
|
+
};
|
|
9
|
+
exports.Unstable_RadialLineChart = void 0;
|
|
6
10
|
var _RadialLineChart = require("./RadialLineChart");
|
|
7
11
|
Object.keys(_RadialLineChart).forEach(function (key) {
|
|
8
12
|
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
9
14
|
if (key in exports && exports[key] === _RadialLineChart[key]) return;
|
|
10
15
|
Object.defineProperty(exports, key, {
|
|
11
16
|
enumerable: true,
|
|
@@ -17,6 +22,7 @@ Object.keys(_RadialLineChart).forEach(function (key) {
|
|
|
17
22
|
var _RadialAreaPlot = require("./RadialAreaPlot");
|
|
18
23
|
Object.keys(_RadialAreaPlot).forEach(function (key) {
|
|
19
24
|
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
26
|
if (key in exports && exports[key] === _RadialAreaPlot[key]) return;
|
|
21
27
|
Object.defineProperty(exports, key, {
|
|
22
28
|
enumerable: true,
|
|
@@ -28,6 +34,7 @@ Object.keys(_RadialAreaPlot).forEach(function (key) {
|
|
|
28
34
|
var _RadialLinePlot = require("./RadialLinePlot");
|
|
29
35
|
Object.keys(_RadialLinePlot).forEach(function (key) {
|
|
30
36
|
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
38
|
if (key in exports && exports[key] === _RadialLinePlot[key]) return;
|
|
32
39
|
Object.defineProperty(exports, key, {
|
|
33
40
|
enumerable: true,
|
|
@@ -39,6 +46,7 @@ Object.keys(_RadialLinePlot).forEach(function (key) {
|
|
|
39
46
|
var _RadialMarkPlot = require("./RadialMarkPlot");
|
|
40
47
|
Object.keys(_RadialMarkPlot).forEach(function (key) {
|
|
41
48
|
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
42
50
|
if (key in exports && exports[key] === _RadialMarkPlot[key]) return;
|
|
43
51
|
Object.defineProperty(exports, key, {
|
|
44
52
|
enumerable: true,
|
|
@@ -50,6 +58,7 @@ Object.keys(_RadialMarkPlot).forEach(function (key) {
|
|
|
50
58
|
var _RadialLineHighlightElement = require("./RadialLineHighlightElement");
|
|
51
59
|
Object.keys(_RadialLineHighlightElement).forEach(function (key) {
|
|
52
60
|
if (key === "default" || key === "__esModule") return;
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
53
62
|
if (key in exports && exports[key] === _RadialLineHighlightElement[key]) return;
|
|
54
63
|
Object.defineProperty(exports, key, {
|
|
55
64
|
enumerable: true,
|
|
@@ -61,6 +70,7 @@ Object.keys(_RadialLineHighlightElement).forEach(function (key) {
|
|
|
61
70
|
var _RadialLineHighlightPlot = require("./RadialLineHighlightPlot");
|
|
62
71
|
Object.keys(_RadialLineHighlightPlot).forEach(function (key) {
|
|
63
72
|
if (key === "default" || key === "__esModule") return;
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
64
74
|
if (key in exports && exports[key] === _RadialLineHighlightPlot[key]) return;
|
|
65
75
|
Object.defineProperty(exports, key, {
|
|
66
76
|
enumerable: true,
|
|
@@ -68,4 +78,9 @@ Object.keys(_RadialLineHighlightPlot).forEach(function (key) {
|
|
|
68
78
|
return _RadialLineHighlightPlot[key];
|
|
69
79
|
}
|
|
70
80
|
});
|
|
71
|
-
});
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated radial line chart is now stable, import `RadialLineChart` instead
|
|
84
|
+
*/
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
86
|
+
const Unstable_RadialLineChart = exports.Unstable_RadialLineChart = _RadialLineChart.RadialLineChart;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { RadialLineChart } from "./RadialLineChart.mjs";
|
|
1
2
|
export * from "./RadialLineChart.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial line chart is now stable, import `RadialLineChart` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_RadialLineChart = RadialLineChart;
|
|
2
8
|
export * from "./RadialAreaPlot.mjs";
|
|
3
9
|
export * from "./RadialLinePlot.mjs";
|
|
4
10
|
export * from "./RadialMarkPlot.mjs";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type ScatterChartProps, type ScatterChartSlots, type ScatterChartSlotProps } from '@mui/x-charts/ScatterChart';
|
|
3
3
|
import { type ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
|
|
4
|
+
import type { TooltipPropsOverrides } from '@mui/x-charts/models';
|
|
4
5
|
import { type ChartsToolbarProSlotProps, type ChartsToolbarProSlots } from '@mui/x-charts-pro/ChartsToolbarPro';
|
|
5
6
|
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
|
|
6
7
|
import { type ChartsContainerPremiumProps } from "../ChartsContainerPremium/index.mjs";
|
|
7
8
|
import { type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.mjs";
|
|
8
9
|
export interface ScatterChartPremiumSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
|
|
9
10
|
export interface ScatterChartPremiumSlotProps extends Omit<ScatterChartSlotProps, 'toolbar' | 'tooltip'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
|
|
10
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'
|
|
11
|
+
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides;
|
|
11
12
|
}
|
|
12
13
|
export interface ScatterChartPremiumProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig' | 'renderer'>, Omit<ChartsContainerPremiumProps<'scatter', ScatterChartPremiumPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
|
|
13
14
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type ScatterChartProps, type ScatterChartSlots, type ScatterChartSlotProps } from '@mui/x-charts/ScatterChart';
|
|
3
3
|
import { type ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
|
|
4
|
+
import type { TooltipPropsOverrides } from '@mui/x-charts/models';
|
|
4
5
|
import { type ChartsToolbarProSlotProps, type ChartsToolbarProSlots } from '@mui/x-charts-pro/ChartsToolbarPro';
|
|
5
6
|
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
|
|
6
7
|
import { type ChartsContainerPremiumProps } from "../ChartsContainerPremium/index.js";
|
|
7
8
|
import { type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.js";
|
|
8
9
|
export interface ScatterChartPremiumSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
|
|
9
10
|
export interface ScatterChartPremiumSlotProps extends Omit<ScatterChartSlotProps, 'toolbar' | 'tooltip'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
|
|
10
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'
|
|
11
|
+
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides;
|
|
11
12
|
}
|
|
12
13
|
export interface ScatterChartPremiumProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig' | 'renderer'>, Omit<ChartsContainerPremiumProps<'scatter', ScatterChartPremiumPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
|
|
13
14
|
/**
|
|
@@ -100,7 +100,7 @@ const ScatterChartPremium = exports.ScatterChartPremium = /*#__PURE__*/React.for
|
|
|
100
100
|
}), renderer === 'webgl' && /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
101
101
|
"data-drawing-container": true,
|
|
102
102
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.HighlightedScatterMark, {})
|
|
103
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), children]
|
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.FocusedScatterMark, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), children]
|
|
104
104
|
}))]
|
|
105
105
|
}), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({
|
|
106
106
|
trigger: "item"
|
|
@@ -190,7 +190,9 @@ process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
|
190
190
|
/**
|
|
191
191
|
* Options to enable features planned for the next major.
|
|
192
192
|
*/
|
|
193
|
-
experimentalFeatures: _propTypes.default.
|
|
193
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
194
|
+
progressiveRendering: _propTypes.default.bool
|
|
195
|
+
}),
|
|
194
196
|
/**
|
|
195
197
|
* Option to display a cartesian grid in the background.
|
|
196
198
|
*/
|
|
@@ -291,12 +293,21 @@ process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
|
291
293
|
/**
|
|
292
294
|
* The list of zoom data related to each axis.
|
|
293
295
|
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
296
|
+
*
|
|
297
|
+
* Each entry is either explicit zoom percentages (`{ axisId, start, end }`) or a
|
|
298
|
+
* range value (`{ axisId, value }`) resolved against the axis domain.
|
|
294
299
|
*/
|
|
295
|
-
initialZoom: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
300
|
+
initialZoom: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
296
301
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
297
302
|
end: _propTypes.default.number.isRequired,
|
|
298
303
|
start: _propTypes.default.number.isRequired
|
|
299
|
-
})
|
|
304
|
+
}), _propTypes.default.shape({
|
|
305
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
306
|
+
value: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.instanceOf(Date).isRequired), _propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func, _propTypes.default.shape({
|
|
307
|
+
step: _propTypes.default.number,
|
|
308
|
+
unit: _propTypes.default.oneOf(['day', 'hour', 'microsecond', 'millisecond', 'minute', 'month', 'second', 'week', 'year']).isRequired
|
|
309
|
+
})])
|
|
310
|
+
})]).isRequired),
|
|
300
311
|
/**
|
|
301
312
|
* If `true`, a loading overlay is displayed.
|
|
302
313
|
* @default false
|
|
@@ -454,6 +465,27 @@ process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
|
454
465
|
id: _propTypes.default.string,
|
|
455
466
|
max: _propTypes.default.number,
|
|
456
467
|
min: _propTypes.default.number,
|
|
468
|
+
sizeMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
469
|
+
interpolator: _propTypes.default.oneOf(['linear', 'log', 'sqrt']),
|
|
470
|
+
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
471
|
+
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
472
|
+
size: _propTypes.default.arrayOf(_propTypes.default.number.isRequired).isRequired,
|
|
473
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
474
|
+
}), _propTypes.default.shape({
|
|
475
|
+
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
476
|
+
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
477
|
+
size: _propTypes.default.func.isRequired,
|
|
478
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
479
|
+
}), _propTypes.default.shape({
|
|
480
|
+
sizes: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
481
|
+
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
482
|
+
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
483
|
+
}), _propTypes.default.shape({
|
|
484
|
+
sizes: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
485
|
+
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
486
|
+
unknownSize: _propTypes.default.number,
|
|
487
|
+
values: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number, _propTypes.default.string]).isRequired)
|
|
488
|
+
})]),
|
|
457
489
|
valueGetter: _propTypes.default.func
|
|
458
490
|
})),
|
|
459
491
|
/**
|