@mui/x-charts-premium 9.4.0 → 9.6.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 +5 -3
- package/BarChartPremium/BarChartPremium.mjs +5 -3
- package/BarChartPremium/BarPlotPremium.js +1 -1
- package/BarChartPremium/BarPlotPremium.mjs +1 -1
- package/BarChartPremium/RangeBar/RangeBarPlot.js +2 -2
- package/BarChartPremium/RangeBar/RangeBarPlot.mjs +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/getColor.js +2 -5
- package/BarChartPremium/RangeBar/seriesConfig/getColor.mjs +2 -5
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +1 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +1 -0
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +66 -7
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +66 -7
- package/CHANGELOG.md +251 -0
- package/CandlestickChart/CandlestickChart.js +1 -1
- package/CandlestickChart/CandlestickChart.mjs +1 -1
- 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/getColor.js +2 -5
- package/CandlestickChart/seriesConfig/getColor.mjs +2 -5
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +7 -3
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +7 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +11 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +11 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +1 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +11 -3
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +11 -3
- package/ChartsRenderer/ChartsRenderer.js +1 -1
- package/ChartsRenderer/ChartsRenderer.mjs +1 -1
- package/HeatmapPremium/HeatmapPremium.js +5 -3
- package/HeatmapPremium/HeatmapPremium.mjs +5 -3
- package/Map/GeoDataPlot.js +1 -1
- package/Map/GeoDataPlot.mjs +1 -1
- package/Map/MapShape.d.mts +3 -0
- package/Map/MapShape.d.ts +3 -0
- package/Map/MapShape.js +10 -1
- package/Map/MapShape.mjs +9 -0
- package/Map/MapShapePlot.d.mts +5 -1
- package/Map/MapShapePlot.d.ts +5 -1
- package/Map/MapShapePlot.js +27 -3
- package/Map/MapShapePlot.mjs +28 -4
- package/Map/index.d.mts +3 -1
- package/Map/index.d.ts +3 -1
- package/Map/seriesConfig/getColor.js +4 -9
- package/Map/seriesConfig/getColor.mjs +4 -9
- package/Map/seriesConfig/index.js +2 -0
- package/Map/seriesConfig/index.mjs +2 -0
- package/Map/seriesConfig/tooltip.js +5 -1
- package/Map/seriesConfig/tooltip.mjs +5 -1
- package/Map/seriesConfig/tooltipPosition.d.mts +3 -0
- package/Map/seriesConfig/tooltipPosition.d.ts +3 -0
- package/Map/seriesConfig/tooltipPosition.js +64 -0
- package/Map/seriesConfig/tooltipPosition.mjs +58 -0
- package/RadialBarChart/RadialBarChart.d.mts +1 -1
- package/RadialBarChart/RadialBarChart.d.ts +1 -1
- package/RadialBarChart/RadialBarChart.js +3 -3
- package/RadialBarChart/RadialBarChart.mjs +2 -2
- package/RadialBarChart/RadialBarPlot.js +1 -1
- package/RadialBarChart/RadialBarPlot.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/RadialAreaPlot.d.mts +5 -1
- package/RadialLineChart/RadialAreaPlot.d.ts +5 -1
- package/RadialLineChart/RadialAreaPlot.js +10 -1
- package/RadialLineChart/RadialAreaPlot.mjs +11 -2
- package/RadialLineChart/RadialLineChart.d.mts +1 -1
- package/RadialLineChart/RadialLineChart.d.ts +1 -1
- package/RadialLineChart/RadialLineChart.js +5 -5
- package/RadialLineChart/RadialLineChart.mjs +6 -6
- package/RadialLineChart/RadialLineHighlightElement.d.mts +3 -0
- package/RadialLineChart/RadialLineHighlightElement.d.ts +3 -0
- package/RadialLineChart/RadialLineHighlightElement.js +10 -1
- package/RadialLineChart/RadialLineHighlightElement.mjs +9 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -0
- package/RadialLineChart/RadialLineHighlightPlot.js +18 -1
- package/RadialLineChart/RadialLineHighlightPlot.mjs +17 -0
- package/RadialLineChart/RadialLinePlot.d.mts +5 -1
- package/RadialLineChart/RadialLinePlot.d.ts +5 -1
- package/RadialLineChart/RadialLinePlot.js +10 -1
- package/RadialLineChart/RadialLinePlot.mjs +11 -2
- package/RadialLineChart/RadialMarkPlot.d.mts +5 -1
- package/RadialLineChart/RadialMarkPlot.d.ts +5 -1
- package/RadialLineChart/RadialMarkPlot.js +10 -1
- package/RadialLineChart/RadialMarkPlot.mjs +11 -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.js +9 -5
- package/ScatterChartPremium/ScatterChartPremium.mjs +10 -6
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +20 -4
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +20 -4
- package/ScatterChartPremium/ScatterPlotPremium.js +34 -1
- package/ScatterChartPremium/ScatterPlotPremium.mjs +36 -2
- package/ScatterChartPremium/index.d.mts +1 -1
- package/ScatterChartPremium/index.d.ts +1 -1
- package/context/ChartPremiumApi.d.mts +4 -1
- package/context/ChartPremiumApi.d.ts +4 -1
- package/hooks/useGeoData.js +1 -1
- package/hooks/useGeoData.mjs +2 -2
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +8 -1
- package/index.mjs +2 -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/useGeoProjection.d.mts +1 -1
- package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +1 -1
- package/internals/plugins/useGeoProjection/useGeoProjection.js +32 -3
- package/internals/plugins/useGeoProjection/useGeoProjection.mjs +32 -3
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +12 -34
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +12 -34
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +8 -129
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +8 -128
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +2 -55
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +2 -55
- package/models/seriesType/mapShape.d.mts +1 -1
- package/models/seriesType/mapShape.d.ts +1 -1
- 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 +9 -6
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CandlestickPlot } from "./CandlestickPlot.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated candlestick chart is now stable, import `ChartsCandlestickChart` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_CandlestickChart: import("react").ForwardRefExoticComponent<import("./CandlestickChart.js").CandlestickChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated candlestick plot is now stable, import `ChartsCandlestickPlot` instead
|
|
8
|
+
*/
|
|
9
|
+
export declare const Unstable_CandlestickPlot: typeof CandlestickPlot;
|
|
10
|
+
export { CandlestickChart, type CandlestickChartProps, type CandlestickChartSlots, type CandlestickChartSlotProps, type OHLCSeries } from "./CandlestickChart.js";
|
|
11
|
+
export { CandlestickPlot, type CandlestickPlotProps } from "./CandlestickPlot.js";
|
|
@@ -3,17 +3,29 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "CandlestickChart", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _CandlestickChart.CandlestickChart;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "CandlestickPlot", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
15
|
return _CandlestickPlot.CandlestickPlot;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
exports.Unstable_CandlestickPlot = exports.Unstable_CandlestickChart = void 0;
|
|
18
19
|
var _CandlestickChart = require("./CandlestickChart");
|
|
19
|
-
var _CandlestickPlot = require("./CandlestickPlot");
|
|
20
|
+
var _CandlestickPlot = require("./CandlestickPlot");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated candlestick chart is now stable, import `ChartsCandlestickChart` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_CandlestickChart = exports.Unstable_CandlestickChart = _CandlestickChart.CandlestickChart;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated candlestick plot is now stable, import `ChartsCandlestickPlot` instead
|
|
29
|
+
*/
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
31
|
+
const Unstable_CandlestickPlot = exports.Unstable_CandlestickPlot = _CandlestickPlot.CandlestickPlot;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CandlestickChart } from "./CandlestickChart.mjs";
|
|
2
|
+
import { CandlestickPlot } from "./CandlestickPlot.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated candlestick chart is now stable, import `ChartsCandlestickChart` instead
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const Unstable_CandlestickChart = CandlestickChart;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated candlestick plot is now stable, import `ChartsCandlestickPlot` instead
|
|
12
|
+
*/
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
+
export const Unstable_CandlestickPlot = CandlestickPlot;
|
|
15
|
+
export { CandlestickChart } from "./CandlestickChart.mjs";
|
|
16
|
+
export { CandlestickPlot } from "./CandlestickPlot.mjs";
|
|
@@ -15,11 +15,8 @@ const getColor = (series, xAxis) => {
|
|
|
15
15
|
return series.color;
|
|
16
16
|
}
|
|
17
17
|
const value = bandValues[dataIndex];
|
|
18
|
-
const color = value
|
|
19
|
-
|
|
20
|
-
dataIndex
|
|
21
|
-
}) : bandColorScale(value);
|
|
22
|
-
if (color === null) {
|
|
18
|
+
const color = bandColorScale(value);
|
|
19
|
+
if (typeof color !== 'string') {
|
|
23
20
|
return getSeriesColor({
|
|
24
21
|
value,
|
|
25
22
|
dataIndex
|
|
@@ -9,11 +9,8 @@ const getColor = (series, xAxis) => {
|
|
|
9
9
|
return series.color;
|
|
10
10
|
}
|
|
11
11
|
const value = bandValues[dataIndex];
|
|
12
|
-
const color = value
|
|
13
|
-
|
|
14
|
-
dataIndex
|
|
15
|
-
}) : bandColorScale(value);
|
|
16
|
-
if (color === null) {
|
|
12
|
+
const color = bandColorScale(value);
|
|
13
|
+
if (typeof color !== 'string') {
|
|
17
14
|
return getSeriesColor({
|
|
18
15
|
value,
|
|
19
16
|
dataIndex
|
|
@@ -19,8 +19,8 @@ var _useChartsDataProviderPremiumProps = require("./useChartsDataProviderPremium
|
|
|
19
19
|
var _seriesConfig2 = require("../CandlestickChart/seriesConfig");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const packageInfo = {
|
|
22
|
-
releaseDate: "
|
|
23
|
-
version: "9.
|
|
22
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
23
|
+
version: "9.6.0",
|
|
24
24
|
name: 'x-charts-premium'
|
|
25
25
|
};
|
|
26
26
|
const defaultSeriesConfigPremium = exports.defaultSeriesConfigPremium = (0, _extends2.default)({}, _internals2.defaultSeriesConfigPro, {
|
|
@@ -81,7 +81,7 @@ function ChartsDataProviderPremium(props) {
|
|
|
81
81
|
})]
|
|
82
82
|
}));
|
|
83
83
|
}
|
|
84
|
-
process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes = {
|
|
84
|
+
process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
85
85
|
// ----------------------------- Warning --------------------------------
|
|
86
86
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
87
87
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -98,6 +98,10 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes = {
|
|
|
98
98
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
99
99
|
*/
|
|
100
100
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
101
|
+
/**
|
|
102
|
+
* Options to enable features planned for the next major.
|
|
103
|
+
*/
|
|
104
|
+
experimentalFeatures: _propTypes.default.any,
|
|
101
105
|
/**
|
|
102
106
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
103
107
|
*/
|
|
@@ -13,8 +13,8 @@ import { useChartsDataProviderPremiumProps } from "./useChartsDataProviderPremiu
|
|
|
13
13
|
import { ohlcSeriesConfig } from "../CandlestickChart/seriesConfig/index.mjs";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const packageInfo = {
|
|
16
|
-
releaseDate: "
|
|
17
|
-
version: "9.
|
|
16
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
17
|
+
version: "9.6.0",
|
|
18
18
|
name: 'x-charts-premium'
|
|
19
19
|
};
|
|
20
20
|
export const defaultSeriesConfigPremium = _extends({}, defaultSeriesConfigPro, {
|
|
@@ -75,7 +75,7 @@ function ChartsDataProviderPremium(props) {
|
|
|
75
75
|
})]
|
|
76
76
|
}));
|
|
77
77
|
}
|
|
78
|
-
process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes = {
|
|
78
|
+
process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
79
79
|
// ----------------------------- Warning --------------------------------
|
|
80
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -92,6 +92,10 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes = {
|
|
|
92
92
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
93
93
|
*/
|
|
94
94
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
95
|
+
/**
|
|
96
|
+
* Options to enable features planned for the next major.
|
|
97
|
+
*/
|
|
98
|
+
experimentalFeatures: PropTypes.any,
|
|
95
99
|
/**
|
|
96
100
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
97
101
|
*/
|
|
@@ -18,8 +18,8 @@ var _useChartsGeoDataProviderPremiumProps = require("./useChartsGeoDataProviderP
|
|
|
18
18
|
var _ChartsGeoDataProviderPremium = require("./ChartsGeoDataProviderPremium.plugins");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const packageInfo = {
|
|
21
|
-
releaseDate: "
|
|
22
|
-
version: "9.
|
|
21
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
22
|
+
version: "9.6.0",
|
|
23
23
|
name: 'x-charts-premium'
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
@@ -60,7 +60,7 @@ function ChartsGeoDataProviderPremium(props) {
|
|
|
60
60
|
})]
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
|
-
process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes = {
|
|
63
|
+
process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
66
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -73,6 +73,14 @@ process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes =
|
|
|
73
73
|
* @default rainbowSurgePalette
|
|
74
74
|
*/
|
|
75
75
|
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
76
|
+
/**
|
|
77
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
78
|
+
*/
|
|
79
|
+
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
80
|
+
/**
|
|
81
|
+
* Options to enable features planned for the next major.
|
|
82
|
+
*/
|
|
83
|
+
experimentalFeatures: _propTypes.default.any,
|
|
76
84
|
/**
|
|
77
85
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
78
86
|
*/
|
|
@@ -11,8 +11,8 @@ import { useChartsGeoDataProviderPremiumProps } from "./useChartsGeoDataProvider
|
|
|
11
11
|
import { GEO_PREMIUM_PLUGINS } from "./ChartsGeoDataProviderPremium.plugins.mjs";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const packageInfo = {
|
|
14
|
-
releaseDate: "
|
|
15
|
-
version: "9.
|
|
14
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
15
|
+
version: "9.6.0",
|
|
16
16
|
name: 'x-charts-premium'
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
@@ -53,7 +53,7 @@ function ChartsGeoDataProviderPremium(props) {
|
|
|
53
53
|
})]
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
|
-
process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes = {
|
|
56
|
+
process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
57
57
|
// ----------------------------- Warning --------------------------------
|
|
58
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
59
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -66,6 +66,14 @@ process.env.NODE_ENV !== "production" ? ChartsGeoDataProviderPremium.propTypes =
|
|
|
66
66
|
* @default rainbowSurgePalette
|
|
67
67
|
*/
|
|
68
68
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
69
|
+
/**
|
|
70
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
71
|
+
*/
|
|
72
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
73
|
+
/**
|
|
74
|
+
* Options to enable features planned for the next major.
|
|
75
|
+
*/
|
|
76
|
+
experimentalFeatures: PropTypes.any,
|
|
69
77
|
/**
|
|
70
78
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
71
79
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type UseChartZAxisSignature, type ChartSeriesType } from '@mui/x-charts/internals';
|
|
2
2
|
import { type UseChartProExportSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
import { type UseGeoProjectionSignature } from "../internals/plugins/useGeoProjection/index.mjs";
|
|
4
|
-
export declare const GEO_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature>, import("@mui/x-charts/internals").ChartPlugin<UseGeoProjectionSignature>];
|
|
4
|
+
export declare const GEO_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types").UseGeoProjectionSignature>];
|
|
5
5
|
export type GeoPremiumPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartHighlightSignature<SeriesType>, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature<SeriesType>, UseChartProExportSignature, UseGeoProjectionSignature];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type UseChartZAxisSignature, type ChartSeriesType } from '@mui/x-charts/internals';
|
|
2
2
|
import { type UseChartProExportSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
import { type UseGeoProjectionSignature } from "../internals/plugins/useGeoProjection/index.js";
|
|
4
|
-
export declare const GEO_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature>, import("@mui/x-charts/internals").ChartPlugin<UseGeoProjectionSignature>];
|
|
4
|
+
export declare const GEO_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>, import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types").UseGeoProjectionSignature>];
|
|
5
5
|
export type GeoPremiumPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartHighlightSignature<SeriesType>, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature<SeriesType>, UseChartProExportSignature, UseGeoProjectionSignature];
|
|
@@ -19,8 +19,8 @@ var _ChartsRadialDataProviderPremium = require("./ChartsRadialDataProviderPremiu
|
|
|
19
19
|
var _seriesConfig = require("../RadialLineChart/seriesConfig");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const packageInfo = {
|
|
22
|
-
releaseDate: "
|
|
23
|
-
version: "9.
|
|
22
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
23
|
+
version: "9.6.0",
|
|
24
24
|
name: 'x-charts-premium'
|
|
25
25
|
};
|
|
26
26
|
const defaultRadialPremiumSeriesConfig = {
|
|
@@ -67,7 +67,7 @@ function ChartsRadialDataProviderPremium(props) {
|
|
|
67
67
|
})]
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propTypes = {
|
|
70
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
71
71
|
// ----------------------------- Warning --------------------------------
|
|
72
72
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
73
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -80,6 +80,14 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propType
|
|
|
80
80
|
* @default rainbowSurgePalette
|
|
81
81
|
*/
|
|
82
82
|
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
83
|
+
/**
|
|
84
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
85
|
+
*/
|
|
86
|
+
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
87
|
+
/**
|
|
88
|
+
* Options to enable features planned for the next major.
|
|
89
|
+
*/
|
|
90
|
+
experimentalFeatures: _propTypes.default.any,
|
|
83
91
|
/**
|
|
84
92
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
85
93
|
*/
|
|
@@ -12,8 +12,8 @@ import { RADIAL_PREMIUM_PLUGINS } from "./ChartsRadialDataProviderPremium.plugin
|
|
|
12
12
|
import { radialLineSeriesConfig } from "../RadialLineChart/seriesConfig/index.mjs";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const packageInfo = {
|
|
15
|
-
releaseDate: "
|
|
16
|
-
version: "9.
|
|
15
|
+
releaseDate: "MTc4MTc0MDgwMDAwMA==",
|
|
16
|
+
version: "9.6.0",
|
|
17
17
|
name: 'x-charts-premium'
|
|
18
18
|
};
|
|
19
19
|
const defaultRadialPremiumSeriesConfig = {
|
|
@@ -60,7 +60,7 @@ function ChartsRadialDataProviderPremium(props) {
|
|
|
60
60
|
})]
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propTypes = {
|
|
63
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propTypes /* remove-proptypes */ = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
66
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -73,6 +73,14 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProviderPremium.propType
|
|
|
73
73
|
* @default rainbowSurgePalette
|
|
74
74
|
*/
|
|
75
75
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
76
|
+
/**
|
|
77
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
78
|
+
*/
|
|
79
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
80
|
+
/**
|
|
81
|
+
* Options to enable features planned for the next major.
|
|
82
|
+
*/
|
|
83
|
+
experimentalFeatures: PropTypes.any,
|
|
76
84
|
/**
|
|
77
85
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
78
86
|
*/
|
|
@@ -277,7 +277,7 @@ function ChartsRenderer({
|
|
|
277
277
|
}
|
|
278
278
|
return null;
|
|
279
279
|
}
|
|
280
|
-
process.env.NODE_ENV !== "production" ? ChartsRenderer.propTypes = {
|
|
280
|
+
process.env.NODE_ENV !== "production" ? ChartsRenderer.propTypes /* remove-proptypes */ = {
|
|
281
281
|
// ----------------------------- Warning --------------------------------
|
|
282
282
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
283
283
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -269,7 +269,7 @@ function ChartsRenderer({
|
|
|
269
269
|
}
|
|
270
270
|
return null;
|
|
271
271
|
}
|
|
272
|
-
process.env.NODE_ENV !== "production" ? ChartsRenderer.propTypes = {
|
|
272
|
+
process.env.NODE_ENV !== "production" ? ChartsRenderer.propTypes /* remove-proptypes */ = {
|
|
273
273
|
// ----------------------------- Warning --------------------------------
|
|
274
274
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
275
275
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -70,7 +70,7 @@ const HeatmapPremium = exports.HeatmapPremium = /*#__PURE__*/React.forwardRef(fu
|
|
|
70
70
|
}));
|
|
71
71
|
});
|
|
72
72
|
if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
|
|
73
|
-
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
|
|
74
74
|
// ----------------------------- Warning --------------------------------
|
|
75
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
76
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -308,11 +308,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
|
308
308
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
309
309
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
310
310
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
311
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
311
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired,
|
|
312
|
+
unknownColor: _propTypes.default.string
|
|
312
313
|
}), _propTypes.default.shape({
|
|
313
314
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
314
315
|
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
315
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
316
|
+
type: _propTypes.default.oneOf(['piecewise']).isRequired,
|
|
317
|
+
unknownColor: _propTypes.default.string
|
|
316
318
|
}), _propTypes.default.shape({
|
|
317
319
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
318
320
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -63,7 +63,7 @@ const HeatmapPremium = /*#__PURE__*/React.forwardRef(function HeatmapPremium(inP
|
|
|
63
63
|
}));
|
|
64
64
|
});
|
|
65
65
|
if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
|
|
66
|
-
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
66
|
+
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
|
|
67
67
|
// ----------------------------- Warning --------------------------------
|
|
68
68
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
69
69
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -301,11 +301,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
|
301
301
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
302
302
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
303
303
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
304
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
304
|
+
type: PropTypes.oneOf(['continuous']).isRequired,
|
|
305
|
+
unknownColor: PropTypes.string
|
|
305
306
|
}), PropTypes.shape({
|
|
306
307
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
307
308
|
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
308
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
309
|
+
type: PropTypes.oneOf(['piecewise']).isRequired,
|
|
310
|
+
unknownColor: PropTypes.string
|
|
309
311
|
}), PropTypes.shape({
|
|
310
312
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
311
313
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
package/Map/GeoDataPlot.js
CHANGED
|
@@ -41,7 +41,7 @@ function GeoDataPlot(props) {
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
44
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
|
|
45
45
|
// ----------------------------- Warning --------------------------------
|
|
46
46
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
47
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/Map/GeoDataPlot.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function GeoDataPlot(props) {
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
38
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
|
|
39
39
|
// ----------------------------- Warning --------------------------------
|
|
40
40
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41
41
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/Map/MapShape.d.mts
CHANGED
|
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
7
7
|
color: string;
|
|
8
8
|
};
|
|
9
9
|
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace MapShape {
|
|
11
|
+
var propTypes: any;
|
|
12
|
+
}
|
|
10
13
|
export { MapShape };
|
package/Map/MapShape.d.ts
CHANGED
|
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
7
7
|
color: string;
|
|
8
8
|
};
|
|
9
9
|
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace MapShape {
|
|
11
|
+
var propTypes: any;
|
|
12
|
+
}
|
|
10
13
|
export { MapShape };
|
package/Map/MapShape.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.MapShape = MapShape;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _internals = require("@mui/x-charts/internals");
|
|
15
16
|
var _hooks = require("../hooks");
|
|
@@ -52,4 +53,12 @@ function MapShape(props) {
|
|
|
52
53
|
filter: isHighlighted ? 'brightness(120%)' : undefined,
|
|
53
54
|
opacity: isFaded ? 0.3 : 1
|
|
54
55
|
}, other, interactionProps));
|
|
55
|
-
}
|
|
56
|
+
}
|
|
57
|
+
process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
|
|
58
|
+
// ----------------------------- Warning --------------------------------
|
|
59
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
60
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
61
|
+
// ----------------------------------------------------------------------
|
|
62
|
+
dataIndex: _propTypes.default.number.isRequired,
|
|
63
|
+
seriesId: _propTypes.default.string.isRequired
|
|
64
|
+
} : void 0;
|
package/Map/MapShape.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["seriesId", "dataIndex", "d", "color", "onClick"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import { styled } from '@mui/material/styles';
|
|
8
9
|
import { useInteractionItemProps } from '@mui/x-charts/internals';
|
|
9
10
|
import { useItemHighlightState } from "../hooks/index.mjs";
|
|
@@ -46,4 +47,12 @@ function MapShape(props) {
|
|
|
46
47
|
opacity: isFaded ? 0.3 : 1
|
|
47
48
|
}, other, interactionProps));
|
|
48
49
|
}
|
|
50
|
+
process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
|
|
51
|
+
// ----------------------------- Warning --------------------------------
|
|
52
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
53
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
54
|
+
// ----------------------------------------------------------------------
|
|
55
|
+
dataIndex: PropTypes.number.isRequired,
|
|
56
|
+
seriesId: PropTypes.string.isRequired
|
|
57
|
+
} : void 0;
|
|
49
58
|
export { MapShape };
|
package/Map/MapShapePlot.d.mts
CHANGED
|
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Renders series mapShape items.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare namespace MapShapePlot {
|
|
23
|
+
var propTypes: any;
|
|
24
|
+
}
|
|
25
|
+
export { MapShapePlot };
|
package/Map/MapShapePlot.d.ts
CHANGED
|
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Renders series mapShape items.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare namespace MapShapePlot {
|
|
23
|
+
var propTypes: any;
|
|
24
|
+
}
|
|
25
|
+
export { MapShapePlot };
|
package/Map/MapShapePlot.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.MapShapePlot = MapShapePlot;
|
|
9
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
12
|
var _hooks = require("@mui/x-charts/hooks");
|
|
11
13
|
var _useGeoData = require("../hooks/useGeoData");
|
|
12
14
|
var _useGeoPath = require("../hooks/useGeoPath");
|
|
@@ -66,14 +68,15 @@ function MapShapePlot(props) {
|
|
|
66
68
|
children: featureIndexes.map(featureIndex => {
|
|
67
69
|
const feature = geoData.features[featureIndex];
|
|
68
70
|
const d = path(feature);
|
|
69
|
-
|
|
71
|
+
const color = fill ?? colorGetter(dataIndex);
|
|
72
|
+
if (!d || color === null) {
|
|
70
73
|
return null;
|
|
71
74
|
}
|
|
72
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MapShape.MapShape, {
|
|
73
76
|
seriesId: id,
|
|
74
77
|
dataIndex: dataIndex,
|
|
75
78
|
d: d,
|
|
76
|
-
color:
|
|
79
|
+
color: color,
|
|
77
80
|
stroke: stroke,
|
|
78
81
|
strokeWidth: strokeWidth
|
|
79
82
|
}, featureIndex);
|
|
@@ -83,4 +86,25 @@ function MapShapePlot(props) {
|
|
|
83
86
|
}, id);
|
|
84
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FocusedMapShape.FocusedMapShape, {})]
|
|
85
88
|
});
|
|
86
|
-
}
|
|
89
|
+
}
|
|
90
|
+
process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
|
|
91
|
+
// ----------------------------- Warning --------------------------------
|
|
92
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
93
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
94
|
+
// ----------------------------------------------------------------------
|
|
95
|
+
className: _propTypes.default.string,
|
|
96
|
+
/**
|
|
97
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
98
|
+
*/
|
|
99
|
+
fill: _propTypes.default.string,
|
|
100
|
+
/**
|
|
101
|
+
* Stroke color applied to every feature path.
|
|
102
|
+
* @default 'none'
|
|
103
|
+
*/
|
|
104
|
+
stroke: _propTypes.default.string,
|
|
105
|
+
/**
|
|
106
|
+
* Stroke width applied to every feature path.
|
|
107
|
+
* @default 1
|
|
108
|
+
*/
|
|
109
|
+
strokeWidth: _propTypes.default.number
|
|
110
|
+
} : void 0;
|
package/Map/MapShapePlot.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
4
5
|
import { useZAxes } from '@mui/x-charts/hooks';
|
|
5
6
|
import { useGeoData } from "../hooks/useGeoData.mjs";
|
|
6
7
|
import { useGeoPath } from "../hooks/useGeoPath.mjs";
|
|
@@ -13,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
14
|
/**
|
|
14
15
|
* Renders series mapShape items.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
function MapShapePlot(props) {
|
|
17
18
|
const {
|
|
18
19
|
className,
|
|
19
20
|
fill,
|
|
@@ -60,14 +61,15 @@ export function MapShapePlot(props) {
|
|
|
60
61
|
children: featureIndexes.map(featureIndex => {
|
|
61
62
|
const feature = geoData.features[featureIndex];
|
|
62
63
|
const d = path(feature);
|
|
63
|
-
|
|
64
|
+
const color = fill ?? colorGetter(dataIndex);
|
|
65
|
+
if (!d || color === null) {
|
|
64
66
|
return null;
|
|
65
67
|
}
|
|
66
68
|
return /*#__PURE__*/_jsx(MapShape, {
|
|
67
69
|
seriesId: id,
|
|
68
70
|
dataIndex: dataIndex,
|
|
69
71
|
d: d,
|
|
70
|
-
color:
|
|
72
|
+
color: color,
|
|
71
73
|
stroke: stroke,
|
|
72
74
|
strokeWidth: strokeWidth
|
|
73
75
|
}, featureIndex);
|
|
@@ -77,4 +79,26 @@ export function MapShapePlot(props) {
|
|
|
77
79
|
}, id);
|
|
78
80
|
}), /*#__PURE__*/_jsx(FocusedMapShape, {})]
|
|
79
81
|
});
|
|
80
|
-
}
|
|
82
|
+
}
|
|
83
|
+
process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
|
|
84
|
+
// ----------------------------- Warning --------------------------------
|
|
85
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
87
|
+
// ----------------------------------------------------------------------
|
|
88
|
+
className: PropTypes.string,
|
|
89
|
+
/**
|
|
90
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
91
|
+
*/
|
|
92
|
+
fill: PropTypes.string,
|
|
93
|
+
/**
|
|
94
|
+
* Stroke color applied to every feature path.
|
|
95
|
+
* @default 'none'
|
|
96
|
+
*/
|
|
97
|
+
stroke: PropTypes.string,
|
|
98
|
+
/**
|
|
99
|
+
* Stroke width applied to every feature path.
|
|
100
|
+
* @default 1
|
|
101
|
+
*/
|
|
102
|
+
strokeWidth: PropTypes.number
|
|
103
|
+
} : void 0;
|
|
104
|
+
export { MapShapePlot };
|
package/Map/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type useGeoProjectionTypes } from '@mui/x-charts/internals';
|
|
1
2
|
export * from "./GeoDataPlot.mjs";
|
|
2
3
|
export * from "./MapShapePlot.mjs";
|
|
3
4
|
export * from "./MapShape.mjs";
|
|
4
5
|
export * from "./FocusedMapShape.mjs";
|
|
5
6
|
export * from "./Graticule.mjs";
|
|
6
|
-
export type
|
|
7
|
+
export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
|
|
8
|
+
export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
|
|
7
9
|
export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
|