@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,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.FocusedMapShape = FocusedMapShape;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _styles = require("@mui/material/styles");
|
|
11
|
+
var _hooks = require("../hooks");
|
|
12
|
+
var _useGeoData = require("../hooks/useGeoData");
|
|
13
|
+
var _useGeoPath = require("../hooks/useGeoPath");
|
|
14
|
+
var _useGeoFeatureIndexesByName = require("../hooks/useGeoFeatureIndexesByName");
|
|
15
|
+
var _useMapShapeSeries = require("../hooks/useMapShapeSeries");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
const FocusedMapShapeRoot = (0, _styles.styled)('path', {
|
|
18
|
+
name: 'MuiMapShape',
|
|
19
|
+
slot: 'Focused'
|
|
20
|
+
})(({
|
|
21
|
+
theme
|
|
22
|
+
}) => ({
|
|
23
|
+
fill: 'none',
|
|
24
|
+
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
25
|
+
strokeWidth: 2,
|
|
26
|
+
pointerEvents: 'none'
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Renders an outline around the map shape currently focused through keyboard navigation.
|
|
31
|
+
*/
|
|
32
|
+
function FocusedMapShape() {
|
|
33
|
+
const focusedItem = (0, _hooks.useFocusedItem)();
|
|
34
|
+
const geoData = (0, _useGeoData.useGeoData)();
|
|
35
|
+
const path = (0, _useGeoPath.useGeoPath)();
|
|
36
|
+
const featureIndexesByName = (0, _useGeoFeatureIndexesByName.useGeoFeatureIndexesByName)();
|
|
37
|
+
const series = (0, _useMapShapeSeries.useMapShapeSeries)();
|
|
38
|
+
if (focusedItem?.type !== 'mapShape' || !geoData || !path) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const seriesItem = series.find(item => item.id === focusedItem.seriesId);
|
|
42
|
+
if (!seriesItem || seriesItem.hidden) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const dataItem = seriesItem.data[focusedItem.dataIndex];
|
|
46
|
+
if (!dataItem || dataItem.hidden) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const featureIndexes = featureIndexesByName.get(dataItem.name);
|
|
50
|
+
if (featureIndexes === undefined || featureIndexes.length === 0) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
54
|
+
"aria-hidden": true,
|
|
55
|
+
children: featureIndexes.map(featureIndex => {
|
|
56
|
+
const feature = geoData.features[featureIndex];
|
|
57
|
+
const d = path(feature);
|
|
58
|
+
if (!d) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FocusedMapShapeRoot, {
|
|
62
|
+
d: d
|
|
63
|
+
}, featureIndex);
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
import { useFocusedItem } from "../hooks/index.mjs";
|
|
6
|
+
import { useGeoData } from "../hooks/useGeoData.mjs";
|
|
7
|
+
import { useGeoPath } from "../hooks/useGeoPath.mjs";
|
|
8
|
+
import { useGeoFeatureIndexesByName } from "../hooks/useGeoFeatureIndexesByName.mjs";
|
|
9
|
+
import { useMapShapeSeries } from "../hooks/useMapShapeSeries.mjs";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const FocusedMapShapeRoot = styled('path', {
|
|
12
|
+
name: 'MuiMapShape',
|
|
13
|
+
slot: 'Focused'
|
|
14
|
+
})(({
|
|
15
|
+
theme
|
|
16
|
+
}) => ({
|
|
17
|
+
fill: 'none',
|
|
18
|
+
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
19
|
+
strokeWidth: 2,
|
|
20
|
+
pointerEvents: 'none'
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Renders an outline around the map shape currently focused through keyboard navigation.
|
|
25
|
+
*/
|
|
26
|
+
export function FocusedMapShape() {
|
|
27
|
+
const focusedItem = useFocusedItem();
|
|
28
|
+
const geoData = useGeoData();
|
|
29
|
+
const path = useGeoPath();
|
|
30
|
+
const featureIndexesByName = useGeoFeatureIndexesByName();
|
|
31
|
+
const series = useMapShapeSeries();
|
|
32
|
+
if (focusedItem?.type !== 'mapShape' || !geoData || !path) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
const seriesItem = series.find(item => item.id === focusedItem.seriesId);
|
|
36
|
+
if (!seriesItem || seriesItem.hidden) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
const dataItem = seriesItem.data[focusedItem.dataIndex];
|
|
40
|
+
if (!dataItem || dataItem.hidden) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const featureIndexes = featureIndexesByName.get(dataItem.name);
|
|
44
|
+
if (featureIndexes === undefined || featureIndexes.length === 0) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/_jsx("g", {
|
|
48
|
+
"aria-hidden": true,
|
|
49
|
+
children: featureIndexes.map(featureIndex => {
|
|
50
|
+
const feature = geoData.features[featureIndex];
|
|
51
|
+
const d = path(feature);
|
|
52
|
+
if (!d) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/_jsx(FocusedMapShapeRoot, {
|
|
56
|
+
d: d
|
|
57
|
+
}, featureIndex);
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GeoDataPlotProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Fill color applied to every feature path.
|
|
5
|
+
* @default 'currentColor'
|
|
6
|
+
*/
|
|
7
|
+
fill?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Stroke color applied to every feature path.
|
|
10
|
+
* @default 'none'
|
|
11
|
+
*/
|
|
12
|
+
stroke?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Stroke width applied to every feature path.
|
|
15
|
+
* @default 1
|
|
16
|
+
*/
|
|
17
|
+
strokeWidth?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Renders the registered `geoData` as SVG paths, using the registered `projection`
|
|
21
|
+
*/
|
|
22
|
+
declare function GeoDataPlot(props: GeoDataPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
declare namespace GeoDataPlot {
|
|
24
|
+
var propTypes: any;
|
|
25
|
+
}
|
|
26
|
+
export { GeoDataPlot };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GeoDataPlotProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Fill color applied to every feature path.
|
|
5
|
+
* @default 'currentColor'
|
|
6
|
+
*/
|
|
7
|
+
fill?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Stroke color applied to every feature path.
|
|
10
|
+
* @default 'none'
|
|
11
|
+
*/
|
|
12
|
+
stroke?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Stroke width applied to every feature path.
|
|
15
|
+
* @default 1
|
|
16
|
+
*/
|
|
17
|
+
strokeWidth?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Renders the registered `geoData` as SVG paths, using the registered `projection`
|
|
21
|
+
*/
|
|
22
|
+
declare function GeoDataPlot(props: GeoDataPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
declare namespace GeoDataPlot {
|
|
24
|
+
var propTypes: any;
|
|
25
|
+
}
|
|
26
|
+
export { GeoDataPlot };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GeoDataPlot = GeoDataPlot;
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _useGeoData = require("../hooks/useGeoData");
|
|
11
|
+
var _useGeoPath = require("../hooks/useGeoPath");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Renders the registered `geoData` as SVG paths, using the registered `projection`
|
|
15
|
+
*/
|
|
16
|
+
function GeoDataPlot(props) {
|
|
17
|
+
const {
|
|
18
|
+
className,
|
|
19
|
+
fill = 'currentColor',
|
|
20
|
+
stroke = 'none',
|
|
21
|
+
strokeWidth = 1
|
|
22
|
+
} = props;
|
|
23
|
+
const geoData = (0, _useGeoData.useGeoData)();
|
|
24
|
+
const path = (0, _useGeoPath.useGeoPath)();
|
|
25
|
+
if (!geoData || !path) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
29
|
+
className: className,
|
|
30
|
+
children: geoData.features.map((feature, index) => {
|
|
31
|
+
const d = path(feature);
|
|
32
|
+
if (!d) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
36
|
+
d: d,
|
|
37
|
+
fill: fill,
|
|
38
|
+
stroke: stroke,
|
|
39
|
+
strokeWidth: strokeWidth
|
|
40
|
+
}, feature.id ?? index);
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
45
|
+
// ----------------------------- Warning --------------------------------
|
|
46
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
48
|
+
// ----------------------------------------------------------------------
|
|
49
|
+
className: _propTypes.default.string,
|
|
50
|
+
/**
|
|
51
|
+
* Fill color applied to every feature path.
|
|
52
|
+
* @default 'currentColor'
|
|
53
|
+
*/
|
|
54
|
+
fill: _propTypes.default.string,
|
|
55
|
+
/**
|
|
56
|
+
* Stroke color applied to every feature path.
|
|
57
|
+
* @default 'none'
|
|
58
|
+
*/
|
|
59
|
+
stroke: _propTypes.default.string,
|
|
60
|
+
/**
|
|
61
|
+
* Stroke width applied to every feature path.
|
|
62
|
+
* @default 1
|
|
63
|
+
*/
|
|
64
|
+
strokeWidth: _propTypes.default.number
|
|
65
|
+
} : void 0;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { useGeoData } from "../hooks/useGeoData.mjs";
|
|
5
|
+
import { useGeoPath } from "../hooks/useGeoPath.mjs";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Renders the registered `geoData` as SVG paths, using the registered `projection`
|
|
9
|
+
*/
|
|
10
|
+
function GeoDataPlot(props) {
|
|
11
|
+
const {
|
|
12
|
+
className,
|
|
13
|
+
fill = 'currentColor',
|
|
14
|
+
stroke = 'none',
|
|
15
|
+
strokeWidth = 1
|
|
16
|
+
} = props;
|
|
17
|
+
const geoData = useGeoData();
|
|
18
|
+
const path = useGeoPath();
|
|
19
|
+
if (!geoData || !path) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/_jsx("g", {
|
|
23
|
+
className: className,
|
|
24
|
+
children: geoData.features.map((feature, index) => {
|
|
25
|
+
const d = path(feature);
|
|
26
|
+
if (!d) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return /*#__PURE__*/_jsx("path", {
|
|
30
|
+
d: d,
|
|
31
|
+
fill: fill,
|
|
32
|
+
stroke: stroke,
|
|
33
|
+
strokeWidth: strokeWidth
|
|
34
|
+
}, feature.id ?? index);
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
39
|
+
// ----------------------------- Warning --------------------------------
|
|
40
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
42
|
+
// ----------------------------------------------------------------------
|
|
43
|
+
className: PropTypes.string,
|
|
44
|
+
/**
|
|
45
|
+
* Fill color applied to every feature path.
|
|
46
|
+
* @default 'currentColor'
|
|
47
|
+
*/
|
|
48
|
+
fill: PropTypes.string,
|
|
49
|
+
/**
|
|
50
|
+
* Stroke color applied to every feature path.
|
|
51
|
+
* @default 'none'
|
|
52
|
+
*/
|
|
53
|
+
stroke: PropTypes.string,
|
|
54
|
+
/**
|
|
55
|
+
* Stroke width applied to every feature path.
|
|
56
|
+
* @default 1
|
|
57
|
+
*/
|
|
58
|
+
strokeWidth: PropTypes.number
|
|
59
|
+
} : void 0;
|
|
60
|
+
export { GeoDataPlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Graticule(props: Omit<React.SVGProps<SVGPathElement>, 'd'>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Graticule(props: Omit<React.SVGProps<SVGPathElement>, 'd'>): import("react/jsx-runtime").JSX.Element | null;
|
package/Map/Graticule.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Graticule = Graticule;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _d3Geo = require("@mui/x-charts-vendor/d3-geo");
|
|
11
|
+
var _useGeoData = require("../hooks/useGeoData");
|
|
12
|
+
var _useGeoPath = require("../hooks/useGeoPath");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function Graticule(props) {
|
|
15
|
+
const geoData = (0, _useGeoData.useGeoData)();
|
|
16
|
+
const path = (0, _useGeoPath.useGeoPath)();
|
|
17
|
+
if (!geoData || !path) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const d = path((0, _d3Geo.geoGraticule10)());
|
|
21
|
+
if (!d) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
|
|
25
|
+
d: d,
|
|
26
|
+
fill: "none",
|
|
27
|
+
stroke: "black",
|
|
28
|
+
strokeWidth: 0.5
|
|
29
|
+
}, props));
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import { geoGraticule10 } from '@mui/x-charts-vendor/d3-geo';
|
|
5
|
+
import { useGeoData } from "../hooks/useGeoData.mjs";
|
|
6
|
+
import { useGeoPath } from "../hooks/useGeoPath.mjs";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export function Graticule(props) {
|
|
9
|
+
const geoData = useGeoData();
|
|
10
|
+
const path = useGeoPath();
|
|
11
|
+
if (!geoData || !path) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
const d = path(geoGraticule10());
|
|
15
|
+
if (!d) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/_jsx("path", _extends({
|
|
19
|
+
d: d,
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "black",
|
|
22
|
+
strokeWidth: 0.5
|
|
23
|
+
}, props));
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type SeriesId } from '@mui/x-charts/internals';
|
|
3
|
+
export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
|
+
seriesId: SeriesId;
|
|
5
|
+
dataIndex: number;
|
|
6
|
+
d: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { MapShape };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type SeriesId } from '@mui/x-charts/internals';
|
|
3
|
+
export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
|
+
seriesId: SeriesId;
|
|
5
|
+
dataIndex: number;
|
|
6
|
+
d: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { MapShape };
|
package/Map/MapShape.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.MapShape = MapShape;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _styles = require("@mui/material/styles");
|
|
14
|
+
var _internals = require("@mui/x-charts/internals");
|
|
15
|
+
var _hooks = require("../hooks");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
const _excluded = ["seriesId", "dataIndex", "d", "color", "onClick"];
|
|
18
|
+
const MapShapeRoot = (0, _styles.styled)('path', {
|
|
19
|
+
name: 'MuiMapShape',
|
|
20
|
+
slot: 'Root'
|
|
21
|
+
})({
|
|
22
|
+
transitionProperty: 'opacity, fill, filter',
|
|
23
|
+
transitionDuration: '50ms',
|
|
24
|
+
transitionTimingFunction: 'ease-in'
|
|
25
|
+
});
|
|
26
|
+
function MapShape(props) {
|
|
27
|
+
const {
|
|
28
|
+
seriesId,
|
|
29
|
+
dataIndex,
|
|
30
|
+
d,
|
|
31
|
+
color,
|
|
32
|
+
onClick
|
|
33
|
+
} = props,
|
|
34
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
35
|
+
const identifier = React.useMemo(() => ({
|
|
36
|
+
type: 'mapShape',
|
|
37
|
+
seriesId,
|
|
38
|
+
dataIndex
|
|
39
|
+
}), [seriesId, dataIndex]);
|
|
40
|
+
const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
|
|
41
|
+
const highlightState = (0, _hooks.useItemHighlightState)(identifier);
|
|
42
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
43
|
+
const isFaded = highlightState === 'faded';
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MapShapeRoot, (0, _extends2.default)({
|
|
45
|
+
d: d,
|
|
46
|
+
fill: color,
|
|
47
|
+
onClick: onClick,
|
|
48
|
+
cursor: onClick ? 'pointer' : 'unset',
|
|
49
|
+
"data-index": dataIndex,
|
|
50
|
+
"data-highlighted": isHighlighted || undefined,
|
|
51
|
+
"data-faded": isFaded || undefined,
|
|
52
|
+
filter: isHighlighted ? 'brightness(120%)' : undefined,
|
|
53
|
+
opacity: isFaded ? 0.3 : 1
|
|
54
|
+
}, other, interactionProps));
|
|
55
|
+
}
|
package/Map/MapShape.mjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["seriesId", "dataIndex", "d", "color", "onClick"];
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { styled } from '@mui/material/styles';
|
|
8
|
+
import { useInteractionItemProps } from '@mui/x-charts/internals';
|
|
9
|
+
import { useItemHighlightState } from "../hooks/index.mjs";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const MapShapeRoot = styled('path', {
|
|
12
|
+
name: 'MuiMapShape',
|
|
13
|
+
slot: 'Root'
|
|
14
|
+
})({
|
|
15
|
+
transitionProperty: 'opacity, fill, filter',
|
|
16
|
+
transitionDuration: '50ms',
|
|
17
|
+
transitionTimingFunction: 'ease-in'
|
|
18
|
+
});
|
|
19
|
+
function MapShape(props) {
|
|
20
|
+
const {
|
|
21
|
+
seriesId,
|
|
22
|
+
dataIndex,
|
|
23
|
+
d,
|
|
24
|
+
color,
|
|
25
|
+
onClick
|
|
26
|
+
} = props,
|
|
27
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
28
|
+
const identifier = React.useMemo(() => ({
|
|
29
|
+
type: 'mapShape',
|
|
30
|
+
seriesId,
|
|
31
|
+
dataIndex
|
|
32
|
+
}), [seriesId, dataIndex]);
|
|
33
|
+
const interactionProps = useInteractionItemProps(identifier);
|
|
34
|
+
const highlightState = useItemHighlightState(identifier);
|
|
35
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
36
|
+
const isFaded = highlightState === 'faded';
|
|
37
|
+
return /*#__PURE__*/_jsx(MapShapeRoot, _extends({
|
|
38
|
+
d: d,
|
|
39
|
+
fill: color,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
cursor: onClick ? 'pointer' : 'unset',
|
|
42
|
+
"data-index": dataIndex,
|
|
43
|
+
"data-highlighted": isHighlighted || undefined,
|
|
44
|
+
"data-faded": isFaded || undefined,
|
|
45
|
+
filter: isHighlighted ? 'brightness(120%)' : undefined,
|
|
46
|
+
opacity: isFaded ? 0.3 : 1
|
|
47
|
+
}, other, interactionProps));
|
|
48
|
+
}
|
|
49
|
+
export { MapShape };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface MapShapePlotProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
5
|
+
*/
|
|
6
|
+
fill?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Stroke color applied to every feature path.
|
|
9
|
+
* @default 'none'
|
|
10
|
+
*/
|
|
11
|
+
stroke?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Stroke width applied to every feature path.
|
|
14
|
+
* @default 1
|
|
15
|
+
*/
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders series mapShape items.
|
|
20
|
+
*/
|
|
21
|
+
export declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface MapShapePlotProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
5
|
+
*/
|
|
6
|
+
fill?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Stroke color applied to every feature path.
|
|
9
|
+
* @default 'none'
|
|
10
|
+
*/
|
|
11
|
+
stroke?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Stroke width applied to every feature path.
|
|
14
|
+
* @default 1
|
|
15
|
+
*/
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders series mapShape items.
|
|
20
|
+
*/
|
|
21
|
+
export declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.MapShapePlot = MapShapePlot;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _hooks = require("@mui/x-charts/hooks");
|
|
11
|
+
var _useGeoData = require("../hooks/useGeoData");
|
|
12
|
+
var _useGeoPath = require("../hooks/useGeoPath");
|
|
13
|
+
var _useMapShapeSeries = require("../hooks/useMapShapeSeries");
|
|
14
|
+
var _useGeoFeatureIndexesByName = require("../hooks/useGeoFeatureIndexesByName");
|
|
15
|
+
var _MapShape = require("./MapShape");
|
|
16
|
+
var _FocusedMapShape = require("./FocusedMapShape");
|
|
17
|
+
var _seriesConfig = require("./seriesConfig");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
/**
|
|
20
|
+
* Renders series mapShape items.
|
|
21
|
+
*/
|
|
22
|
+
function MapShapePlot(props) {
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
fill,
|
|
26
|
+
stroke = 'none',
|
|
27
|
+
strokeWidth = 1
|
|
28
|
+
} = props;
|
|
29
|
+
const geoData = (0, _useGeoData.useGeoData)();
|
|
30
|
+
const path = (0, _useGeoPath.useGeoPath)();
|
|
31
|
+
const series = (0, _useMapShapeSeries.useMapShapeSeries)();
|
|
32
|
+
const featureIndexesByName = (0, _useGeoFeatureIndexesByName.useGeoFeatureIndexesByName)();
|
|
33
|
+
const {
|
|
34
|
+
zAxis,
|
|
35
|
+
zAxisIds
|
|
36
|
+
} = (0, _hooks.useZAxes)();
|
|
37
|
+
if (!geoData || !path || series.length === 0) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const defaultZAxisId = zAxisIds[0];
|
|
41
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
42
|
+
className: className,
|
|
43
|
+
children: [series.map(seriesItem => {
|
|
44
|
+
const {
|
|
45
|
+
data,
|
|
46
|
+
id,
|
|
47
|
+
hidden,
|
|
48
|
+
colorAxisId
|
|
49
|
+
} = seriesItem;
|
|
50
|
+
if (hidden) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const colorAxis = zAxis[colorAxisId ?? defaultZAxisId];
|
|
54
|
+
const colorGetter = _seriesConfig.mapShapeSeriesConfig.colorProcessor(seriesItem, undefined, undefined, colorAxis);
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
56
|
+
"data-series": id,
|
|
57
|
+
children: data.map((item, dataIndex) => {
|
|
58
|
+
if (item.hidden) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
const featureIndexes = featureIndexesByName.get(item.name);
|
|
62
|
+
if (featureIndexes === undefined || featureIndexes.length === 0) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
66
|
+
children: featureIndexes.map(featureIndex => {
|
|
67
|
+
const feature = geoData.features[featureIndex];
|
|
68
|
+
const d = path(feature);
|
|
69
|
+
if (!d) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MapShape.MapShape, {
|
|
73
|
+
seriesId: id,
|
|
74
|
+
dataIndex: dataIndex,
|
|
75
|
+
d: d,
|
|
76
|
+
color: fill ?? colorGetter(dataIndex),
|
|
77
|
+
stroke: stroke,
|
|
78
|
+
strokeWidth: strokeWidth
|
|
79
|
+
}, featureIndex);
|
|
80
|
+
})
|
|
81
|
+
}, item.name);
|
|
82
|
+
})
|
|
83
|
+
}, id);
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FocusedMapShape.FocusedMapShape, {})]
|
|
85
|
+
});
|
|
86
|
+
}
|