@mui/x-charts-premium 9.5.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/CHANGELOG.md +151 -0
- package/CandlestickChart/CandlestickChart.js +1 -1
- package/CandlestickChart/CandlestickChart.mjs +1 -1
- 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.js +1 -1
- package/RadialBarChart/RadialBarChart.mjs +1 -1
- package/RadialBarChart/RadialBarPlot.js +1 -1
- package/RadialBarChart/RadialBarPlot.mjs +1 -1
- 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.js +1 -1
- package/RadialLineChart/RadialLineChart.mjs +1 -1
- 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/ScatterChartPremium/ScatterChartPremium.js +5 -3
- package/ScatterChartPremium/ScatterChartPremium.mjs +5 -3
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +19 -3
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +19 -3
- 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.js +1 -1
- package/index.mjs +1 -1
- 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/package.json +9 -6
|
@@ -72,7 +72,7 @@ const RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(i
|
|
|
72
72
|
}));
|
|
73
73
|
});
|
|
74
74
|
if (process.env.NODE_ENV !== "production") RadialLineChart.displayName = "RadialLineChart";
|
|
75
|
-
process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
75
|
+
process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes /* remove-proptypes */ = {
|
|
76
76
|
// ----------------------------- Warning --------------------------------
|
|
77
77
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
78
78
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -12,4 +12,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
|
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
13
|
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
|
|
14
14
|
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace RadialLineHighlightElement {
|
|
16
|
+
var propTypes: any;
|
|
17
|
+
}
|
|
15
18
|
export { RadialLineHighlightElement };
|
|
@@ -12,4 +12,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
|
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
13
|
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
|
|
14
14
|
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace RadialLineHighlightElement {
|
|
16
|
+
var propTypes: any;
|
|
17
|
+
}
|
|
15
18
|
export { RadialLineHighlightElement };
|
|
@@ -9,6 +9,7 @@ exports.RadialLineHighlightElement = RadialLineHighlightElement;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _reactMajor = _interopRequireDefault(require("@mui/x-internals/reactMajor"));
|
|
13
14
|
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
14
15
|
var _internals = require("@mui/x-charts/internals");
|
|
@@ -43,4 +44,12 @@ function RadialLineHighlightElement(props) {
|
|
|
43
44
|
transform: `translate(${x} ${y})`,
|
|
44
45
|
fill: color
|
|
45
46
|
}, transformOrigin, additionalProps, other));
|
|
46
|
-
}
|
|
47
|
+
}
|
|
48
|
+
process.env.NODE_ENV !== "production" ? RadialLineHighlightElement.propTypes /* remove-proptypes */ = {
|
|
49
|
+
// ----------------------------- Warning --------------------------------
|
|
50
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
51
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
52
|
+
// ----------------------------------------------------------------------
|
|
53
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
54
|
+
shape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
|
|
55
|
+
} : void 0;
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["x", "y", "seriesId", "color", "shape"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import reactMajor from '@mui/x-internals/reactMajor';
|
|
6
7
|
import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
|
|
7
8
|
import { getSymbol } from '@mui/x-charts/internals';
|
|
@@ -36,4 +37,12 @@ function RadialLineHighlightElement(props) {
|
|
|
36
37
|
fill: color
|
|
37
38
|
}, transformOrigin, additionalProps, other));
|
|
38
39
|
}
|
|
40
|
+
process.env.NODE_ENV !== "production" ? RadialLineHighlightElement.propTypes /* remove-proptypes */ = {
|
|
41
|
+
// ----------------------------- Warning --------------------------------
|
|
42
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
44
|
+
// ----------------------------------------------------------------------
|
|
45
|
+
seriesId: PropTypes.string.isRequired,
|
|
46
|
+
shape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
|
|
47
|
+
} : void 0;
|
|
39
48
|
export { RadialLineHighlightElement };
|
|
@@ -21,4 +21,7 @@ export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGEl
|
|
|
21
21
|
slotProps?: RadialLineHighlightPlotSlotProps;
|
|
22
22
|
}
|
|
23
23
|
declare function RadialLineHighlightPlot(props: RadialLineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
declare namespace RadialLineHighlightPlot {
|
|
25
|
+
var propTypes: any;
|
|
26
|
+
}
|
|
24
27
|
export { RadialLineHighlightPlot };
|
|
@@ -21,4 +21,7 @@ export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGEl
|
|
|
21
21
|
slotProps?: RadialLineHighlightPlotSlotProps;
|
|
22
22
|
}
|
|
23
23
|
declare function RadialLineHighlightPlot(props: RadialLineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
declare namespace RadialLineHighlightPlot {
|
|
25
|
+
var propTypes: any;
|
|
26
|
+
}
|
|
24
27
|
export { RadialLineHighlightPlot };
|
|
@@ -10,6 +10,7 @@ exports.RadialLineHighlightPlot = RadialLineHighlightPlot;
|
|
|
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 _internals = require("@mui/x-charts/internals");
|
|
14
15
|
var _hooks = require("@mui/x-charts/hooks");
|
|
15
16
|
var _useRadialLineSeries = require("../hooks/useRadialLineSeries");
|
|
@@ -89,4 +90,20 @@ function RadialLineHighlightPlot(props) {
|
|
|
89
90
|
}, slotProps?.radialLineHighlight), `${seriesId}`);
|
|
90
91
|
}))
|
|
91
92
|
}));
|
|
92
|
-
}
|
|
93
|
+
}
|
|
94
|
+
process.env.NODE_ENV !== "production" ? RadialLineHighlightPlot.propTypes /* remove-proptypes */ = {
|
|
95
|
+
// ----------------------------- Warning --------------------------------
|
|
96
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
97
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
98
|
+
// ----------------------------------------------------------------------
|
|
99
|
+
/**
|
|
100
|
+
* The props used for each component slot.
|
|
101
|
+
* @default {}
|
|
102
|
+
*/
|
|
103
|
+
slotProps: _propTypes.default.object,
|
|
104
|
+
/**
|
|
105
|
+
* Overridable component slots.
|
|
106
|
+
* @default {}
|
|
107
|
+
*/
|
|
108
|
+
slots: _propTypes.default.object
|
|
109
|
+
} : void 0;
|
|
@@ -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 = ["slots", "slotProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import { selectorChartsInteractionRotationAxisIndex, useChartsContext } from '@mui/x-charts/internals';
|
|
8
9
|
import { getValueToPositionMapper, useRadiusAxes, useRotationAxes } from '@mui/x-charts/hooks';
|
|
9
10
|
import { useRadialLineSeriesContext } from "../hooks/useRadialLineSeries.mjs";
|
|
@@ -83,4 +84,20 @@ function RadialLineHighlightPlot(props) {
|
|
|
83
84
|
}))
|
|
84
85
|
}));
|
|
85
86
|
}
|
|
87
|
+
process.env.NODE_ENV !== "production" ? RadialLineHighlightPlot.propTypes /* remove-proptypes */ = {
|
|
88
|
+
// ----------------------------- Warning --------------------------------
|
|
89
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
90
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
91
|
+
// ----------------------------------------------------------------------
|
|
92
|
+
/**
|
|
93
|
+
* The props used for each component slot.
|
|
94
|
+
* @default {}
|
|
95
|
+
*/
|
|
96
|
+
slotProps: PropTypes.object,
|
|
97
|
+
/**
|
|
98
|
+
* Overridable component slots.
|
|
99
|
+
* @default {}
|
|
100
|
+
*/
|
|
101
|
+
slots: PropTypes.object
|
|
102
|
+
} : void 0;
|
|
86
103
|
export { RadialLineHighlightPlot };
|
|
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.mjs";
|
|
|
2
2
|
export interface RadialLinePlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'line' | 'linePlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialLinePlot(props: RadialLinePlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialLinePlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialLinePlot };
|
|
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.js";
|
|
|
2
2
|
export interface RadialLinePlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'line' | 'linePlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialLinePlot(props: RadialLinePlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialLinePlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialLinePlot };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.RadialLinePlot = RadialLinePlot;
|
|
7
8
|
var _styles = require("@mui/material/styles");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
10
|
var _internals = require("@mui/x-charts/internals");
|
|
9
11
|
var _useRadialLinePlotData = require("./useRadialLinePlotData");
|
|
10
12
|
var _radialLineClasses = require("./radialLineClasses");
|
|
@@ -49,4 +51,11 @@ function RadialLinePlot(props) {
|
|
|
49
51
|
className: classes.line
|
|
50
52
|
}, seriesId))
|
|
51
53
|
});
|
|
52
|
-
}
|
|
54
|
+
}
|
|
55
|
+
process.env.NODE_ENV !== "production" ? RadialLinePlot.propTypes /* remove-proptypes */ = {
|
|
56
|
+
// ----------------------------- Warning --------------------------------
|
|
57
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
58
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
59
|
+
// ----------------------------------------------------------------------
|
|
60
|
+
classes: _propTypes.default.object
|
|
61
|
+
} : void 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { styled } from '@mui/material/styles';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { selectorChartPolarCenter, useChartsContext } from '@mui/x-charts/internals';
|
|
3
4
|
import { useRadialLinePlotData } from "./useRadialLinePlotData.mjs";
|
|
4
5
|
import { useUtilityClasses } from "./radialLineClasses.mjs";
|
|
@@ -8,7 +9,7 @@ const RadialLinePlotRoot = styled('g', {
|
|
|
8
9
|
name: 'MuiRadialLinePlot',
|
|
9
10
|
slot: 'Root'
|
|
10
11
|
})();
|
|
11
|
-
|
|
12
|
+
function RadialLinePlot(props) {
|
|
12
13
|
const {
|
|
13
14
|
classes: inClasses
|
|
14
15
|
} = props;
|
|
@@ -43,4 +44,12 @@ export function RadialLinePlot(props) {
|
|
|
43
44
|
className: classes.line
|
|
44
45
|
}, seriesId))
|
|
45
46
|
});
|
|
46
|
-
}
|
|
47
|
+
}
|
|
48
|
+
process.env.NODE_ENV !== "production" ? RadialLinePlot.propTypes /* remove-proptypes */ = {
|
|
49
|
+
// ----------------------------- Warning --------------------------------
|
|
50
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
51
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
52
|
+
// ----------------------------------------------------------------------
|
|
53
|
+
classes: PropTypes.object
|
|
54
|
+
} : void 0;
|
|
55
|
+
export { RadialLinePlot };
|
|
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.mjs";
|
|
|
2
2
|
export interface RadialMarkPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'mark' | 'markPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialMarkPlot(props: RadialMarkPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialMarkPlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialMarkPlot };
|
|
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.js";
|
|
|
2
2
|
export interface RadialMarkPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'mark' | 'markPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialMarkPlot(props: RadialMarkPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialMarkPlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialMarkPlot };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.RadialMarkPlot = RadialMarkPlot;
|
|
7
8
|
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
10
|
var _styles = require("@mui/material/styles");
|
|
9
11
|
var _internals = require("@mui/x-charts/internals");
|
|
10
12
|
var _useRadialLinePlotData = require("./useRadialLinePlotData");
|
|
@@ -74,4 +76,11 @@ function RadialMarkPlot(props) {
|
|
|
74
76
|
}, seriesId);
|
|
75
77
|
})
|
|
76
78
|
});
|
|
77
|
-
}
|
|
79
|
+
}
|
|
80
|
+
process.env.NODE_ENV !== "production" ? RadialMarkPlot.propTypes /* remove-proptypes */ = {
|
|
81
|
+
// ----------------------------- Warning --------------------------------
|
|
82
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
84
|
+
// ----------------------------------------------------------------------
|
|
85
|
+
classes: _propTypes.default.object
|
|
86
|
+
} : void 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { styled } from '@mui/material/styles';
|
|
3
4
|
import { getSymbol } from '@mui/x-charts/internals';
|
|
4
5
|
import { useRadialLinePlotData } from "./useRadialLinePlotData.mjs";
|
|
@@ -9,7 +10,7 @@ const RadialMarkPlotRoot = styled('g', {
|
|
|
9
10
|
name: 'MuiRadialMarkPlot',
|
|
10
11
|
slot: 'Root'
|
|
11
12
|
})();
|
|
12
|
-
|
|
13
|
+
function RadialMarkPlot(props) {
|
|
13
14
|
const {
|
|
14
15
|
classes: inClasses
|
|
15
16
|
} = props;
|
|
@@ -68,4 +69,12 @@ export function RadialMarkPlot(props) {
|
|
|
68
69
|
}, seriesId);
|
|
69
70
|
})
|
|
70
71
|
});
|
|
71
|
-
}
|
|
72
|
+
}
|
|
73
|
+
process.env.NODE_ENV !== "production" ? RadialMarkPlot.propTypes /* remove-proptypes */ = {
|
|
74
|
+
// ----------------------------- Warning --------------------------------
|
|
75
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
77
|
+
// ----------------------------------------------------------------------
|
|
78
|
+
classes: PropTypes.object
|
|
79
|
+
} : void 0;
|
|
80
|
+
export { RadialMarkPlot };
|
|
@@ -109,7 +109,7 @@ const ScatterChartPremium = exports.ScatterChartPremium = /*#__PURE__*/React.for
|
|
|
109
109
|
}));
|
|
110
110
|
});
|
|
111
111
|
if (process.env.NODE_ENV !== "production") ScatterChartPremium.displayName = "ScatterChartPremium";
|
|
112
|
-
process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
112
|
+
process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes /* remove-proptypes */ = {
|
|
113
113
|
// ----------------------------- Warning --------------------------------
|
|
114
114
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
115
115
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -449,11 +449,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
|
449
449
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
450
450
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
451
451
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
452
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
452
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired,
|
|
453
|
+
unknownColor: _propTypes.default.string
|
|
453
454
|
}), _propTypes.default.shape({
|
|
454
455
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
455
456
|
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
456
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
457
|
+
type: _propTypes.default.oneOf(['piecewise']).isRequired,
|
|
458
|
+
unknownColor: _propTypes.default.string
|
|
457
459
|
}), _propTypes.default.shape({
|
|
458
460
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
459
461
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -102,7 +102,7 @@ const ScatterChartPremium = /*#__PURE__*/React.forwardRef(function ScatterChartP
|
|
|
102
102
|
}));
|
|
103
103
|
});
|
|
104
104
|
if (process.env.NODE_ENV !== "production") ScatterChartPremium.displayName = "ScatterChartPremium";
|
|
105
|
-
process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
105
|
+
process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes /* remove-proptypes */ = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
108
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -442,11 +442,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
|
442
442
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
443
443
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
444
444
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
445
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
445
|
+
type: PropTypes.oneOf(['continuous']).isRequired,
|
|
446
|
+
unknownColor: PropTypes.string
|
|
446
447
|
}), PropTypes.shape({
|
|
447
448
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
448
449
|
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
449
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
450
|
+
type: PropTypes.oneOf(['piecewise']).isRequired,
|
|
451
|
+
unknownColor: PropTypes.string
|
|
450
452
|
}), PropTypes.shape({
|
|
451
453
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
452
454
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type RendererType, type ScatterPlotProps } from '@mui/x-charts/ScatterChart';
|
|
1
|
+
import { type RendererType, type ScatterPlotProps, type ScatterPlotSlots, type ScatterPlotSlotProps } from '@mui/x-charts/ScatterChart';
|
|
2
|
+
export interface ScatterPlotPremiumSlots extends ScatterPlotSlots {}
|
|
3
|
+
export interface ScatterPlotPremiumSlotProps extends ScatterPlotSlotProps {}
|
|
2
4
|
export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'renderer'> {
|
|
3
5
|
/**
|
|
4
6
|
* The type of renderer to use for the scatter plot.
|
|
@@ -7,8 +9,22 @@ export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'rendere
|
|
|
7
9
|
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
8
10
|
*/
|
|
9
11
|
renderer: RendererType | 'webgl';
|
|
12
|
+
/**
|
|
13
|
+
* Overridable component slots.
|
|
14
|
+
* @default {}
|
|
15
|
+
*/
|
|
16
|
+
slots?: ScatterPlotPremiumSlots;
|
|
17
|
+
/**
|
|
18
|
+
* The props used for each component slot.
|
|
19
|
+
* @default {}
|
|
20
|
+
*/
|
|
21
|
+
slotProps?: ScatterPlotPremiumSlotProps;
|
|
10
22
|
}
|
|
11
|
-
|
|
23
|
+
declare function ScatterPlotPremium({
|
|
12
24
|
renderer,
|
|
13
25
|
...props
|
|
14
|
-
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare namespace ScatterPlotPremium {
|
|
28
|
+
var propTypes: any;
|
|
29
|
+
}
|
|
30
|
+
export { ScatterPlotPremium };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type RendererType, type ScatterPlotProps } from '@mui/x-charts/ScatterChart';
|
|
1
|
+
import { type RendererType, type ScatterPlotProps, type ScatterPlotSlots, type ScatterPlotSlotProps } from '@mui/x-charts/ScatterChart';
|
|
2
|
+
export interface ScatterPlotPremiumSlots extends ScatterPlotSlots {}
|
|
3
|
+
export interface ScatterPlotPremiumSlotProps extends ScatterPlotSlotProps {}
|
|
2
4
|
export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'renderer'> {
|
|
3
5
|
/**
|
|
4
6
|
* The type of renderer to use for the scatter plot.
|
|
@@ -7,8 +9,22 @@ export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'rendere
|
|
|
7
9
|
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
8
10
|
*/
|
|
9
11
|
renderer: RendererType | 'webgl';
|
|
12
|
+
/**
|
|
13
|
+
* Overridable component slots.
|
|
14
|
+
* @default {}
|
|
15
|
+
*/
|
|
16
|
+
slots?: ScatterPlotPremiumSlots;
|
|
17
|
+
/**
|
|
18
|
+
* The props used for each component slot.
|
|
19
|
+
* @default {}
|
|
20
|
+
*/
|
|
21
|
+
slotProps?: ScatterPlotPremiumSlotProps;
|
|
10
22
|
}
|
|
11
|
-
|
|
23
|
+
declare function ScatterPlotPremium({
|
|
12
24
|
renderer,
|
|
13
25
|
...props
|
|
14
|
-
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare namespace ScatterPlotPremium {
|
|
28
|
+
var propTypes: any;
|
|
29
|
+
}
|
|
30
|
+
export { ScatterPlotPremium };
|
|
@@ -10,6 +10,7 @@ exports.ScatterPlotPremium = ScatterPlotPremium;
|
|
|
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 _ScatterChart = require("@mui/x-charts/ScatterChart");
|
|
14
15
|
var _ScatterWebGLPlot = require("./webgl/ScatterWebGLPlot");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -25,4 +26,36 @@ function ScatterPlotPremium(_ref) {
|
|
|
25
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.ScatterPlot, (0, _extends2.default)({
|
|
26
27
|
renderer: renderer
|
|
27
28
|
}, props));
|
|
28
|
-
}
|
|
29
|
+
}
|
|
30
|
+
process.env.NODE_ENV !== "production" ? ScatterPlotPremium.propTypes /* remove-proptypes */ = {
|
|
31
|
+
// ----------------------------- Warning --------------------------------
|
|
32
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
33
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
34
|
+
// ----------------------------------------------------------------------
|
|
35
|
+
classes: _propTypes.default.object,
|
|
36
|
+
className: _propTypes.default.string,
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired when a marker is clicked directly.
|
|
39
|
+
* For closest-point clicks (the `ScatterChart` default), pass `onItemClick` to the chart container instead.
|
|
40
|
+
* @param {MouseEvent} event Mouse event recorded on the `<svg/>` element.
|
|
41
|
+
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
42
|
+
*/
|
|
43
|
+
onItemClick: _propTypes.default.func,
|
|
44
|
+
/**
|
|
45
|
+
* The type of renderer to use for the scatter plot.
|
|
46
|
+
* - `svg-single`: Renders every scatter item in its own `<circle />` element.
|
|
47
|
+
* - `svg-batch`: Renders all scatter items in a single batched SVG path.
|
|
48
|
+
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
49
|
+
*/
|
|
50
|
+
renderer: _propTypes.default.oneOf(['svg-batch', 'svg-single', 'webgl']).isRequired,
|
|
51
|
+
/**
|
|
52
|
+
* The props used for each component slot.
|
|
53
|
+
* @default {}
|
|
54
|
+
*/
|
|
55
|
+
slotProps: _propTypes.default.object,
|
|
56
|
+
/**
|
|
57
|
+
* Overridable component slots.
|
|
58
|
+
* @default {}
|
|
59
|
+
*/
|
|
60
|
+
slots: _propTypes.default.object
|
|
61
|
+
} : void 0;
|
|
@@ -4,10 +4,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["renderer"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import { ScatterPlot } from '@mui/x-charts/ScatterChart';
|
|
8
9
|
import { ScatterWebGLPlot } from "./webgl/ScatterWebGLPlot.mjs";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
+
function ScatterPlotPremium(_ref) {
|
|
11
12
|
let {
|
|
12
13
|
renderer
|
|
13
14
|
} = _ref,
|
|
@@ -18,4 +19,37 @@ export function ScatterPlotPremium(_ref) {
|
|
|
18
19
|
return /*#__PURE__*/_jsx(ScatterPlot, _extends({
|
|
19
20
|
renderer: renderer
|
|
20
21
|
}, props));
|
|
21
|
-
}
|
|
22
|
+
}
|
|
23
|
+
process.env.NODE_ENV !== "production" ? ScatterPlotPremium.propTypes /* remove-proptypes */ = {
|
|
24
|
+
// ----------------------------- Warning --------------------------------
|
|
25
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
26
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
27
|
+
// ----------------------------------------------------------------------
|
|
28
|
+
classes: PropTypes.object,
|
|
29
|
+
className: PropTypes.string,
|
|
30
|
+
/**
|
|
31
|
+
* Callback fired when a marker is clicked directly.
|
|
32
|
+
* For closest-point clicks (the `ScatterChart` default), pass `onItemClick` to the chart container instead.
|
|
33
|
+
* @param {MouseEvent} event Mouse event recorded on the `<svg/>` element.
|
|
34
|
+
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
35
|
+
*/
|
|
36
|
+
onItemClick: PropTypes.func,
|
|
37
|
+
/**
|
|
38
|
+
* The type of renderer to use for the scatter plot.
|
|
39
|
+
* - `svg-single`: Renders every scatter item in its own `<circle />` element.
|
|
40
|
+
* - `svg-batch`: Renders all scatter items in a single batched SVG path.
|
|
41
|
+
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
42
|
+
*/
|
|
43
|
+
renderer: PropTypes.oneOf(['svg-batch', 'svg-single', 'webgl']).isRequired,
|
|
44
|
+
/**
|
|
45
|
+
* The props used for each component slot.
|
|
46
|
+
* @default {}
|
|
47
|
+
*/
|
|
48
|
+
slotProps: PropTypes.object,
|
|
49
|
+
/**
|
|
50
|
+
* Overridable component slots.
|
|
51
|
+
* @default {}
|
|
52
|
+
*/
|
|
53
|
+
slots: PropTypes.object
|
|
54
|
+
} : void 0;
|
|
55
|
+
export { ScatterPlotPremium };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ScatterChartPremium, type ScatterChartPremiumProps, type ScatterChartPremiumSlots, type ScatterChartPremiumSlotProps } from "./ScatterChartPremium.mjs";
|
|
2
2
|
export { SCATTER_CHART_PREMIUM_PLUGINS, type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.mjs";
|
|
3
|
-
export { ScatterPlotPremium, type ScatterPlotPremiumProps } from "./ScatterPlotPremium.mjs";
|
|
3
|
+
export { ScatterPlotPremium, type ScatterPlotPremiumProps, type ScatterPlotPremiumSlots, type ScatterPlotPremiumSlotProps } from "./ScatterPlotPremium.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ScatterChartPremium, type ScatterChartPremiumProps, type ScatterChartPremiumSlots, type ScatterChartPremiumSlotProps } from "./ScatterChartPremium.js";
|
|
2
2
|
export { SCATTER_CHART_PREMIUM_PLUGINS, type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.js";
|
|
3
|
-
export { ScatterPlotPremium, type ScatterPlotPremiumProps } from "./ScatterPlotPremium.js";
|
|
3
|
+
export { ScatterPlotPremium, type ScatterPlotPremiumProps, type ScatterPlotPremiumSlots, type ScatterPlotPremiumSlotProps } from "./ScatterPlotPremium.js";
|
|
@@ -2,8 +2,11 @@ import type { ProPluginsPerSeriesType } from '@mui/x-charts-pro/internals';
|
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartPublicAPI } from '@mui/x-charts/internals';
|
|
3
3
|
import type { BarChartPremiumPluginSignatures } from "../BarChartPremium/BarChartPremium.plugins.mjs";
|
|
4
4
|
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.mjs";
|
|
5
|
+
import type { GeoPremiumPluginSignatures } from "../ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs";
|
|
5
6
|
export type PremiumPluginsPerSeriesType = Omit<ProPluginsPerSeriesType, 'bar'> & {
|
|
6
7
|
bar: BarChartPremiumPluginSignatures;
|
|
8
|
+
rangeBar: BarChartPremiumPluginSignatures;
|
|
9
|
+
mapShape: GeoPremiumPluginSignatures;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* The API of the chart `apiRef` object.
|
|
@@ -12,4 +15,4 @@ export type PremiumPluginsPerSeriesType = Omit<ProPluginsPerSeriesType, 'bar'> &
|
|
|
12
15
|
* If the chart is being created using composition, the `composition` value can be used.
|
|
13
16
|
* @example ChartProApi<'composition'>
|
|
14
17
|
*/
|
|
15
|
-
export type ChartPremiumApi<ChartType extends keyof
|
|
18
|
+
export type ChartPremiumApi<ChartType extends keyof PremiumPluginsPerSeriesType | undefined = undefined, Signatures extends readonly ChartAnyPluginSignature[] = (ChartType extends keyof PremiumPluginsPerSeriesType ? PremiumPluginsPerSeriesType[ChartType] : AllPluginSignatures)> = ChartPublicAPI<Signatures>;
|
|
@@ -2,8 +2,11 @@ import type { ProPluginsPerSeriesType } from '@mui/x-charts-pro/internals';
|
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartPublicAPI } from '@mui/x-charts/internals';
|
|
3
3
|
import type { BarChartPremiumPluginSignatures } from "../BarChartPremium/BarChartPremium.plugins.js";
|
|
4
4
|
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
import type { GeoPremiumPluginSignatures } from "../ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js";
|
|
5
6
|
export type PremiumPluginsPerSeriesType = Omit<ProPluginsPerSeriesType, 'bar'> & {
|
|
6
7
|
bar: BarChartPremiumPluginSignatures;
|
|
8
|
+
rangeBar: BarChartPremiumPluginSignatures;
|
|
9
|
+
mapShape: GeoPremiumPluginSignatures;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* The API of the chart `apiRef` object.
|
|
@@ -12,4 +15,4 @@ export type PremiumPluginsPerSeriesType = Omit<ProPluginsPerSeriesType, 'bar'> &
|
|
|
12
15
|
* If the chart is being created using composition, the `composition` value can be used.
|
|
13
16
|
* @example ChartProApi<'composition'>
|
|
14
17
|
*/
|
|
15
|
-
export type ChartPremiumApi<ChartType extends keyof
|
|
18
|
+
export type ChartPremiumApi<ChartType extends keyof PremiumPluginsPerSeriesType | undefined = undefined, Signatures extends readonly ChartAnyPluginSignature[] = (ChartType extends keyof PremiumPluginsPerSeriesType ? PremiumPluginsPerSeriesType[ChartType] : AllPluginSignatures)> = ChartPublicAPI<Signatures>;
|
package/hooks/useGeoData.js
CHANGED
|
@@ -13,5 +13,5 @@ var _useGeoProjection = require("../internals/plugins/useGeoProjection");
|
|
|
13
13
|
*/
|
|
14
14
|
function useGeoData() {
|
|
15
15
|
const store = (0, _internals.useStore)();
|
|
16
|
-
return store.use(_useGeoProjection.
|
|
16
|
+
return store.use(_useGeoProjection.selectorChartGeoData);
|
|
17
17
|
}
|
package/hooks/useGeoData.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useStore } from '@mui/x-charts/internals';
|
|
4
|
-
import {
|
|
4
|
+
import { selectorChartGeoData } from "../internals/plugins/useGeoProjection/index.mjs";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Get the GeoJSON `FeatureCollection` currently registered with the geo chart,
|
|
@@ -9,5 +9,5 @@ import { selectorChartRawGeoData } from "../internals/plugins/useGeoProjection/i
|
|
|
9
9
|
*/
|
|
10
10
|
export function useGeoData() {
|
|
11
11
|
const store = useStore();
|
|
12
|
-
return store.use(
|
|
12
|
+
return store.use(selectorChartGeoData);
|
|
13
13
|
}
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
2
|
import { type UseGeoProjectionSignature } from "./useGeoProjection.types.mjs";
|
|
3
3
|
export declare const useGeoProjection: ChartPlugin<UseGeoProjectionSignature>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
2
|
import { type UseGeoProjectionSignature } from "./useGeoProjection.types.js";
|
|
3
3
|
export declare const useGeoProjection: ChartPlugin<UseGeoProjectionSignature>;
|