@mui/x-charts-premium 9.2.0 → 9.4.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 +65 -35
- package/BarChartPremium/BarChartPremium.mjs +65 -35
- 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 +39 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +39 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +169 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +163 -0
- package/CHANGELOG.md +314 -0
- package/CandlestickChart/CandlestickChart.js +36 -27
- package/CandlestickChart/CandlestickChart.mjs +36 -27
- 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 +52 -22
- package/HeatmapPremium/HeatmapPremium.mjs +52 -22
- 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.js +10 -10
- package/RadialBarChart/RadialBarChart.mjs +10 -10
- package/RadialBarChart/seriesConfig/getColor.js +7 -51
- package/RadialBarChart/seriesConfig/getColor.mjs +8 -52
- package/RadialBarChart/seriesConfig/tooltip.js +3 -26
- package/RadialBarChart/seriesConfig/tooltip.mjs +4 -27
- package/RadialLineChart/RadialArea.d.mts +2 -11
- package/RadialLineChart/RadialArea.d.ts +2 -11
- package/RadialLineChart/RadialArea.js +4 -3
- package/RadialLineChart/RadialArea.mjs +4 -3
- package/RadialLineChart/RadialAreaPlot.js +3 -1
- package/RadialLineChart/RadialAreaPlot.mjs +3 -1
- package/RadialLineChart/RadialLine.d.mts +4 -3
- package/RadialLineChart/RadialLine.d.ts +4 -3
- package/RadialLineChart/RadialLine.js +4 -3
- package/RadialLineChart/RadialLine.mjs +4 -3
- package/RadialLineChart/RadialLineChart.d.mts +7 -5
- package/RadialLineChart/RadialLineChart.d.ts +7 -5
- package/RadialLineChart/RadialLineChart.js +11 -11
- package/RadialLineChart/RadialLineChart.mjs +11 -11
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -2
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -2
- package/RadialLineChart/RadialLinePlot.js +3 -1
- package/RadialLineChart/RadialLinePlot.mjs +3 -1
- package/RadialLineChart/seriesConfig/getColor.js +6 -53
- package/RadialLineChart/seriesConfig/getColor.mjs +7 -54
- package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +2 -2
- package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +2 -2
- package/RadialLineChart/seriesConfig/seriesProcessor.js +1 -138
- package/RadialLineChart/seriesConfig/seriesProcessor.mjs +2 -138
- package/RadialLineChart/seriesConfig/tooltip.js +3 -24
- package/RadialLineChart/seriesConfig/tooltip.mjs +4 -25
- package/RadialLineChart/useRadialLinePlotData.d.mts +1 -0
- package/RadialLineChart/useRadialLinePlotData.d.ts +1 -0
- package/RadialLineChart/useRadialLinePlotData.js +3 -1
- package/RadialLineChart/useRadialLinePlotData.mjs +3 -1
- package/ScatterChartPremium/ScatterChartPremium.d.mts +2 -1
- package/ScatterChartPremium/ScatterChartPremium.d.ts +2 -1
- package/ScatterChartPremium/ScatterChartPremium.js +62 -32
- package/ScatterChartPremium/ScatterChartPremium.mjs +62 -32
- 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 +2 -0
- package/index.d.ts +2 -0
- package/index.js +25 -1
- package/index.mjs +3 -1
- 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/radialBar.d.mts +1 -1
- package/models/seriesType/radialBar.d.ts +1 -1
- package/models/seriesType/radialLine.d.mts +4 -0
- package/models/seriesType/radialLine.d.ts +4 -0
- 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,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useStore } from '@mui/x-charts/internals';
|
|
4
|
+
import { selectorChartGeoFeatureIndexesByName } from "../internals/plugins/useGeoProjection/index.mjs";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get a map from `feature.properties.name` to the indices of that feature in `geoData.features`.
|
|
8
|
+
*
|
|
9
|
+
* Used to join `mapShape` series data rows to geographic features by name.
|
|
10
|
+
* Returns an empty map when no `geoData` is registered.
|
|
11
|
+
*/
|
|
12
|
+
export function useGeoFeatureIndexesByName() {
|
|
13
|
+
const store = useStore();
|
|
14
|
+
return store.use(selectorChartGeoFeatureIndexesByName);
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useGeoPath = useGeoPath;
|
|
8
|
+
var _internals = require("@mui/x-charts/internals");
|
|
9
|
+
var _useGeoProjection = require("../internals/plugins/useGeoProjection");
|
|
10
|
+
/**
|
|
11
|
+
* Get the geo path registered with the geo chart, resolved against d3-geo and
|
|
12
|
+
* fitted to the chart's drawing area.
|
|
13
|
+
*/
|
|
14
|
+
function useGeoPath() {
|
|
15
|
+
const store = (0, _internals.useStore)();
|
|
16
|
+
return store.use(_useGeoProjection.selectorChartGeoPath);
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useStore } from '@mui/x-charts/internals';
|
|
4
|
+
import { selectorChartGeoPath } from "../internals/plugins/useGeoProjection/index.mjs";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get the geo path registered with the geo chart, resolved against d3-geo and
|
|
8
|
+
* fitted to the chart's drawing area.
|
|
9
|
+
*/
|
|
10
|
+
export function useGeoPath() {
|
|
11
|
+
const store = useStore();
|
|
12
|
+
return store.use(selectorChartGeoPath);
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ChartSeriesDefaultized, type ProcessedSeries } from '@mui/x-charts/internals';
|
|
2
|
+
import { type SeriesId } from '@mui/x-charts/models';
|
|
3
|
+
export type UseMapShapeSeriesReturnValue = ChartSeriesDefaultized<'mapShape'>;
|
|
4
|
+
export type UseMapShapeSeriesContextReturnValue = ProcessedSeries['mapShape'];
|
|
5
|
+
/**
|
|
6
|
+
* Get access to the internal state of range bar series.
|
|
7
|
+
*
|
|
8
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
9
|
+
* @returns {UseMapShapeSeriesReturnValue} the range bar series
|
|
10
|
+
*/
|
|
11
|
+
export declare function useMapShapeSeries(seriesId: SeriesId): UseMapShapeSeriesReturnValue | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Get access to the internal state of map shape series.
|
|
14
|
+
*
|
|
15
|
+
* When called without arguments, it returns all map shape series.
|
|
16
|
+
*
|
|
17
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
18
|
+
*/
|
|
19
|
+
export declare function useMapShapeSeries(): UseMapShapeSeriesReturnValue[];
|
|
20
|
+
/**
|
|
21
|
+
* Get access to the internal state of map shape series.
|
|
22
|
+
*
|
|
23
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
24
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
25
|
+
*/
|
|
26
|
+
export declare function useMapShapeSeries(seriesIds: SeriesId[]): UseMapShapeSeriesReturnValue[];
|
|
27
|
+
/**
|
|
28
|
+
* Get access to the internal state of map shape series.
|
|
29
|
+
* The returned object contains:
|
|
30
|
+
* - series: a mapping from ids to series attributes.
|
|
31
|
+
* - seriesOrder: the array of series ids.
|
|
32
|
+
* @returns the map shape series
|
|
33
|
+
*/
|
|
34
|
+
export declare function useMapShapeSeriesContext(): UseMapShapeSeriesContextReturnValue;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ChartSeriesDefaultized, type ProcessedSeries } from '@mui/x-charts/internals';
|
|
2
|
+
import { type SeriesId } from '@mui/x-charts/models';
|
|
3
|
+
export type UseMapShapeSeriesReturnValue = ChartSeriesDefaultized<'mapShape'>;
|
|
4
|
+
export type UseMapShapeSeriesContextReturnValue = ProcessedSeries['mapShape'];
|
|
5
|
+
/**
|
|
6
|
+
* Get access to the internal state of range bar series.
|
|
7
|
+
*
|
|
8
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
9
|
+
* @returns {UseMapShapeSeriesReturnValue} the range bar series
|
|
10
|
+
*/
|
|
11
|
+
export declare function useMapShapeSeries(seriesId: SeriesId): UseMapShapeSeriesReturnValue | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Get access to the internal state of map shape series.
|
|
14
|
+
*
|
|
15
|
+
* When called without arguments, it returns all map shape series.
|
|
16
|
+
*
|
|
17
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
18
|
+
*/
|
|
19
|
+
export declare function useMapShapeSeries(): UseMapShapeSeriesReturnValue[];
|
|
20
|
+
/**
|
|
21
|
+
* Get access to the internal state of map shape series.
|
|
22
|
+
*
|
|
23
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
24
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
25
|
+
*/
|
|
26
|
+
export declare function useMapShapeSeries(seriesIds: SeriesId[]): UseMapShapeSeriesReturnValue[];
|
|
27
|
+
/**
|
|
28
|
+
* Get access to the internal state of map shape series.
|
|
29
|
+
* The returned object contains:
|
|
30
|
+
* - series: a mapping from ids to series attributes.
|
|
31
|
+
* - seriesOrder: the array of series ids.
|
|
32
|
+
* @returns the map shape series
|
|
33
|
+
*/
|
|
34
|
+
export declare function useMapShapeSeriesContext(): UseMapShapeSeriesContextReturnValue;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useMapShapeSeries = useMapShapeSeries;
|
|
8
|
+
exports.useMapShapeSeriesContext = useMapShapeSeriesContext;
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
/**
|
|
11
|
+
* Get access to the internal state of range bar series.
|
|
12
|
+
*
|
|
13
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
14
|
+
* @returns {UseMapShapeSeriesReturnValue} the range bar series
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get access to the internal state of map shape series.
|
|
19
|
+
*
|
|
20
|
+
* When called without arguments, it returns all map shape series.
|
|
21
|
+
*
|
|
22
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get access to the internal state of map shape series.
|
|
27
|
+
*
|
|
28
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
29
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
function useMapShapeSeries(seriesIds) {
|
|
33
|
+
return (0, _internals.useSeriesOfType)('mapShape', seriesIds);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get access to the internal state of map shape series.
|
|
38
|
+
* The returned object contains:
|
|
39
|
+
* - series: a mapping from ids to series attributes.
|
|
40
|
+
* - seriesOrder: the array of series ids.
|
|
41
|
+
* @returns the map shape series
|
|
42
|
+
*/
|
|
43
|
+
function useMapShapeSeriesContext() {
|
|
44
|
+
return (0, _internals.useAllSeriesOfType)('mapShape');
|
|
45
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useAllSeriesOfType, useSeriesOfType } from '@mui/x-charts/internals';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get access to the internal state of range bar series.
|
|
7
|
+
*
|
|
8
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
9
|
+
* @returns {UseMapShapeSeriesReturnValue} the range bar series
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Get access to the internal state of map shape series.
|
|
14
|
+
*
|
|
15
|
+
* When called without arguments, it returns all map shape series.
|
|
16
|
+
*
|
|
17
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get access to the internal state of map shape series.
|
|
22
|
+
*
|
|
23
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
24
|
+
* @returns {UseMapShapeSeriesReturnValue[]} the map shape series
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
export function useMapShapeSeries(seriesIds) {
|
|
28
|
+
return useSeriesOfType('mapShape', seriesIds);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get access to the internal state of map shape series.
|
|
33
|
+
* The returned object contains:
|
|
34
|
+
* - series: a mapping from ids to series attributes.
|
|
35
|
+
* - seriesOrder: the array of series ids.
|
|
36
|
+
* @returns the map shape series
|
|
37
|
+
*/
|
|
38
|
+
export function useMapShapeSeriesContext() {
|
|
39
|
+
return useAllSeriesOfType('mapShape');
|
|
40
|
+
}
|
package/index.d.mts
CHANGED
|
@@ -47,6 +47,8 @@ export * from "./plugins/index.mjs";
|
|
|
47
47
|
export * from "./ChartsRenderer/index.mjs";
|
|
48
48
|
export * from "./ChartsDataProviderPremium/index.mjs";
|
|
49
49
|
export * from "./ChartsRadialDataProviderPremium/index.mjs";
|
|
50
|
+
export * from "./ChartsGeoDataProviderPremium/index.mjs";
|
|
51
|
+
export * from "./Map/index.mjs";
|
|
50
52
|
export * from "./ChartsContainerPremium/index.mjs";
|
|
51
53
|
export * from "./BarChartPremium/index.mjs";
|
|
52
54
|
export * from "./HeatmapPremium/index.mjs";
|
package/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from "./plugins/index.js";
|
|
|
47
47
|
export * from "./ChartsRenderer/index.js";
|
|
48
48
|
export * from "./ChartsDataProviderPremium/index.js";
|
|
49
49
|
export * from "./ChartsRadialDataProviderPremium/index.js";
|
|
50
|
+
export * from "./ChartsGeoDataProviderPremium/index.js";
|
|
51
|
+
export * from "./Map/index.js";
|
|
50
52
|
export * from "./ChartsContainerPremium/index.js";
|
|
51
53
|
export * from "./BarChartPremium/index.js";
|
|
52
54
|
export * from "./HeatmapPremium/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-premium v9.
|
|
2
|
+
* @mui/x-charts-premium v9.4.0
|
|
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
|
|
@@ -558,6 +558,30 @@ Object.keys(_ChartsRadialDataProviderPremium).forEach(function (key) {
|
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
});
|
|
561
|
+
var _ChartsGeoDataProviderPremium = require("./ChartsGeoDataProviderPremium");
|
|
562
|
+
Object.keys(_ChartsGeoDataProviderPremium).forEach(function (key) {
|
|
563
|
+
if (key === "default" || key === "__esModule") return;
|
|
564
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
565
|
+
if (key in exports && exports[key] === _ChartsGeoDataProviderPremium[key]) return;
|
|
566
|
+
Object.defineProperty(exports, key, {
|
|
567
|
+
enumerable: true,
|
|
568
|
+
get: function () {
|
|
569
|
+
return _ChartsGeoDataProviderPremium[key];
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
var _Map = require("./Map");
|
|
574
|
+
Object.keys(_Map).forEach(function (key) {
|
|
575
|
+
if (key === "default" || key === "__esModule") return;
|
|
576
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
577
|
+
if (key in exports && exports[key] === _Map[key]) return;
|
|
578
|
+
Object.defineProperty(exports, key, {
|
|
579
|
+
enumerable: true,
|
|
580
|
+
get: function () {
|
|
581
|
+
return _Map[key];
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
});
|
|
561
585
|
var _ChartsContainerPremium = require("./ChartsContainerPremium");
|
|
562
586
|
Object.keys(_ChartsContainerPremium).forEach(function (key) {
|
|
563
587
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-premium v9.
|
|
2
|
+
* @mui/x-charts-premium v9.4.0
|
|
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
|
|
@@ -63,6 +63,8 @@ export * from "./plugins/index.mjs";
|
|
|
63
63
|
export * from "./ChartsRenderer/index.mjs";
|
|
64
64
|
export * from "./ChartsDataProviderPremium/index.mjs";
|
|
65
65
|
export * from "./ChartsRadialDataProviderPremium/index.mjs";
|
|
66
|
+
export * from "./ChartsGeoDataProviderPremium/index.mjs";
|
|
67
|
+
export * from "./Map/index.mjs";
|
|
66
68
|
export * from "./ChartsContainerPremium/index.mjs";
|
|
67
69
|
export * from "./BarChartPremium/index.mjs";
|
|
68
70
|
export * from "./HeatmapPremium/index.mjs";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _useGeoProjection = require("./useGeoProjection");
|
|
7
|
+
Object.keys(_useGeoProjection).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _useGeoProjection[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _useGeoProjection[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _useGeoProjection2 = require("./useGeoProjection.types");
|
|
18
|
+
Object.keys(_useGeoProjection2).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _useGeoProjection2[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _useGeoProjection2[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _useGeoProjection3 = require("./useGeoProjection.selectors");
|
|
29
|
+
Object.keys(_useGeoProjection3).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _useGeoProjection3[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _useGeoProjection3[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.useGeoProjection = void 0;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
const useGeoProjection = ({
|
|
13
|
+
params,
|
|
14
|
+
store
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
geoData,
|
|
18
|
+
projection,
|
|
19
|
+
translate,
|
|
20
|
+
rotate,
|
|
21
|
+
scale
|
|
22
|
+
} = params;
|
|
23
|
+
const isFirstRender = React.useRef(true);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
if (isFirstRender.current) {
|
|
26
|
+
isFirstRender.current = false;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
store.set('geoProjection', {
|
|
30
|
+
geoData: geoData ?? null,
|
|
31
|
+
projection: projection ?? null,
|
|
32
|
+
translate: translate ?? null,
|
|
33
|
+
rotate: rotate ?? null,
|
|
34
|
+
scale: scale ?? null
|
|
35
|
+
});
|
|
36
|
+
}, [geoData, projection, translate, rotate, scale, store]);
|
|
37
|
+
return {};
|
|
38
|
+
};
|
|
39
|
+
exports.useGeoProjection = useGeoProjection;
|
|
40
|
+
useGeoProjection.params = {
|
|
41
|
+
geoData: true,
|
|
42
|
+
projection: true,
|
|
43
|
+
translate: true,
|
|
44
|
+
rotate: true,
|
|
45
|
+
scale: true
|
|
46
|
+
};
|
|
47
|
+
useGeoProjection.getDefaultizedParams = ({
|
|
48
|
+
params
|
|
49
|
+
}) => (0, _extends2.default)({}, params);
|
|
50
|
+
useGeoProjection.getInitialState = params => ({
|
|
51
|
+
geoProjection: {
|
|
52
|
+
geoData: params.geoData ?? null,
|
|
53
|
+
projection: params.projection ?? null,
|
|
54
|
+
translate: params.translate ?? null,
|
|
55
|
+
rotate: params.rotate ?? null,
|
|
56
|
+
scale: params.scale ?? null
|
|
57
|
+
}
|
|
58
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export const useGeoProjection = ({
|
|
6
|
+
params,
|
|
7
|
+
store
|
|
8
|
+
}) => {
|
|
9
|
+
const {
|
|
10
|
+
geoData,
|
|
11
|
+
projection,
|
|
12
|
+
translate,
|
|
13
|
+
rotate,
|
|
14
|
+
scale
|
|
15
|
+
} = params;
|
|
16
|
+
const isFirstRender = React.useRef(true);
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
if (isFirstRender.current) {
|
|
19
|
+
isFirstRender.current = false;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
store.set('geoProjection', {
|
|
23
|
+
geoData: geoData ?? null,
|
|
24
|
+
projection: projection ?? null,
|
|
25
|
+
translate: translate ?? null,
|
|
26
|
+
rotate: rotate ?? null,
|
|
27
|
+
scale: scale ?? null
|
|
28
|
+
});
|
|
29
|
+
}, [geoData, projection, translate, rotate, scale, store]);
|
|
30
|
+
return {};
|
|
31
|
+
};
|
|
32
|
+
useGeoProjection.params = {
|
|
33
|
+
geoData: true,
|
|
34
|
+
projection: true,
|
|
35
|
+
translate: true,
|
|
36
|
+
rotate: true,
|
|
37
|
+
scale: true
|
|
38
|
+
};
|
|
39
|
+
useGeoProjection.getDefaultizedParams = ({
|
|
40
|
+
params
|
|
41
|
+
}) => _extends({}, params);
|
|
42
|
+
useGeoProjection.getInitialState = params => ({
|
|
43
|
+
geoProjection: {
|
|
44
|
+
geoData: params.geoData ?? null,
|
|
45
|
+
projection: params.projection ?? null,
|
|
46
|
+
translate: params.translate ?? null,
|
|
47
|
+
rotate: params.rotate ?? null,
|
|
48
|
+
scale: params.scale ?? null
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ChartState } from '@mui/x-charts/internals';
|
|
2
|
+
import { type ExtendedFeatureCollection, type GeoProjection, type GeoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
3
|
+
import type { GeoProjectionInput, UseGeoProjectionSignature, UseGeoProjectionState } from "./useGeoProjection.types.mjs";
|
|
4
|
+
export declare const selectorChartGeoProjectionState: (state: ChartState<[], [UseGeoProjectionSignature]>) => UseGeoProjectionState["geoProjection"] | undefined;
|
|
5
|
+
export declare const selectorChartRawGeoData: (state: ChartState<[], [UseGeoProjectionSignature]>) => ExtendedFeatureCollection | null;
|
|
6
|
+
export declare const selectorChartRawProjection: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
7
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
8
|
+
}) => GeoProjectionInput | null;
|
|
9
|
+
export declare const selectorChartRawScale: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
10
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
11
|
+
}) => number | null;
|
|
12
|
+
/**
|
|
13
|
+
* Map a feature's `properties.name` to its index in `geoData.features`,
|
|
14
|
+
* for fast lookup by name when joining series rows to features.
|
|
15
|
+
*
|
|
16
|
+
* Features without a string `properties.name` are skipped; on duplicates,
|
|
17
|
+
* the first occurrence wins.
|
|
18
|
+
*/
|
|
19
|
+
export declare const selectorChartGeoFeatureIndexesByName: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
20
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
21
|
+
}) => ReadonlyMap<string, number[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the raw `projection` input into a ready-to-use `GeoProjection` instance
|
|
24
|
+
* fitted to the chart's drawing area.
|
|
25
|
+
*
|
|
26
|
+
* - String inputs (e.g. `'mercator'`) are mapped to the matching d3-geo factory.
|
|
27
|
+
* - `GeoProjection` instances are used as-is, then fitted.
|
|
28
|
+
* - Returns `null` when no projection is registered or the name is unknown.
|
|
29
|
+
*/
|
|
30
|
+
export declare const selectorChartProjection: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
31
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
32
|
+
}) => GeoProjection | null;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves the raw `projection` input into a ready-to-use `GeoPath` instance
|
|
35
|
+
* fitted to the chart's drawing area.
|
|
36
|
+
*/
|
|
37
|
+
export declare const selectorChartGeoPath: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
38
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
39
|
+
}) => GeoPath<any, import("@mui/x-charts-vendor/d3-geo").GeoPermissibleObjects> | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ChartState } from '@mui/x-charts/internals';
|
|
2
|
+
import { type ExtendedFeatureCollection, type GeoProjection, type GeoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
3
|
+
import type { GeoProjectionInput, UseGeoProjectionSignature, UseGeoProjectionState } from "./useGeoProjection.types.js";
|
|
4
|
+
export declare const selectorChartGeoProjectionState: (state: ChartState<[], [UseGeoProjectionSignature]>) => UseGeoProjectionState["geoProjection"] | undefined;
|
|
5
|
+
export declare const selectorChartRawGeoData: (state: ChartState<[], [UseGeoProjectionSignature]>) => ExtendedFeatureCollection | null;
|
|
6
|
+
export declare const selectorChartRawProjection: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
7
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
8
|
+
}) => GeoProjectionInput | null;
|
|
9
|
+
export declare const selectorChartRawScale: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
10
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
11
|
+
}) => number | null;
|
|
12
|
+
/**
|
|
13
|
+
* Map a feature's `properties.name` to its index in `geoData.features`,
|
|
14
|
+
* for fast lookup by name when joining series rows to features.
|
|
15
|
+
*
|
|
16
|
+
* Features without a string `properties.name` are skipped; on duplicates,
|
|
17
|
+
* the first occurrence wins.
|
|
18
|
+
*/
|
|
19
|
+
export declare const selectorChartGeoFeatureIndexesByName: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
20
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
21
|
+
}) => ReadonlyMap<string, number[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the raw `projection` input into a ready-to-use `GeoProjection` instance
|
|
24
|
+
* fitted to the chart's drawing area.
|
|
25
|
+
*
|
|
26
|
+
* - String inputs (e.g. `'mercator'`) are mapped to the matching d3-geo factory.
|
|
27
|
+
* - `GeoProjection` instances are used as-is, then fitted.
|
|
28
|
+
* - Returns `null` when no projection is registered or the name is unknown.
|
|
29
|
+
*/
|
|
30
|
+
export declare const selectorChartProjection: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
31
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
32
|
+
}) => GeoProjection | null;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves the raw `projection` input into a ready-to-use `GeoPath` instance
|
|
35
|
+
* fitted to the chart's drawing area.
|
|
36
|
+
*/
|
|
37
|
+
export declare const selectorChartGeoPath: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
38
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
39
|
+
}) => GeoPath<any, import("@mui/x-charts-vendor/d3-geo").GeoPermissibleObjects> | null;
|