@mui/x-charts-premium 9.7.0 → 9.9.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.d.mts +1 -1
- package/BarChartPremium/BarChartPremium.d.ts +1 -1
- package/BarChartPremium/BarChartPremium.js +14 -3
- package/BarChartPremium/BarChartPremium.mjs +14 -3
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +2 -1
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +2 -1
- package/BarChartPremium/RangeBar/FocusedRangeBar.d.mts +1 -1
- package/BarChartPremium/RangeBar/FocusedRangeBar.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/index.js +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/index.mjs +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +2 -3
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +2 -3
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.js +12 -15
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.mjs +11 -14
- package/BarChartPremium/webgl/BarWebGLProgram.d.mts +4 -5
- package/BarChartPremium/webgl/BarWebGLProgram.d.ts +4 -5
- package/BarChartPremium/webgl/BarWebGLProgram.js +24 -65
- package/BarChartPremium/webgl/BarWebGLProgram.mjs +24 -65
- package/BarChartPremium/webgl/shaders.d.mts +1 -1
- package/BarChartPremium/webgl/shaders.d.ts +1 -1
- package/BarChartPremium/webgl/shaders.js +2 -15
- package/BarChartPremium/webgl/shaders.mjs +3 -15
- package/CHANGELOG.md +249 -1
- package/CandlestickChart/CandlestickPlot.d.mts +2 -1
- package/CandlestickChart/CandlestickPlot.d.ts +2 -1
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +2 -1
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +2 -1
- package/CandlestickChart/seriesConfig/index.js +2 -2
- package/CandlestickChart/seriesConfig/index.mjs +2 -2
- package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/CandlestickChart/seriesConfig/tooltipPosition.js +10 -14
- package/CandlestickChart/seriesConfig/tooltipPosition.mjs +10 -14
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +1 -1
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +1 -1
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +4 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +4 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +2 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +2 -1
- package/ChartsGeoDataProviderPremium/index.d.mts +2 -1
- package/ChartsGeoDataProviderPremium/index.d.ts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- package/ChartsRenderer/components/PaletteOption.d.mts +1 -1
- package/ChartsRenderer/components/PaletteOption.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +2 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.js +12 -37
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +12 -37
- package/HeatmapPremium/webgl/shaders.d.mts +3 -3
- package/HeatmapPremium/webgl/shaders.d.ts +3 -3
- package/HeatmapPremium/webgl/shaders.js +12 -15
- package/HeatmapPremium/webgl/shaders.mjs +13 -15
- package/HeatmapPremium/webgl/useHeatmapPlotData.js +3 -8
- package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +3 -8
- package/Map/FocusedMapShape.d.mts +2 -1
- package/Map/FocusedMapShape.d.ts +2 -1
- package/Map/FocusedMapShape.js +5 -1
- package/Map/FocusedMapShape.mjs +5 -1
- package/Map/GeoDataPlot.d.mts +1 -1
- package/Map/GeoDataPlot.d.ts +1 -1
- package/Map/Graticule.d.mts +1 -1
- package/Map/Graticule.d.ts +1 -1
- package/Map/MapImagePlot.d.mts +39 -0
- package/Map/MapImagePlot.d.ts +39 -0
- package/Map/MapImagePlot.js +138 -0
- package/Map/MapImagePlot.mjs +132 -0
- package/Map/MapShape.d.mts +2 -2
- package/Map/MapShape.d.ts +2 -2
- package/Map/MapShape.js +6 -6
- package/Map/MapShape.mjs +6 -6
- package/Map/MapShapePlot.d.mts +9 -1
- package/Map/MapShapePlot.d.ts +9 -1
- package/Map/MapShapePlot.js +17 -5
- package/Map/MapShapePlot.mjs +17 -5
- package/Map/index.d.mts +2 -3
- package/Map/index.d.ts +2 -3
- package/Map/index.js +11 -0
- package/Map/index.mjs +1 -0
- package/Map/reprojectEquirectangularImage.d.mts +60 -0
- package/Map/reprojectEquirectangularImage.d.ts +60 -0
- package/Map/reprojectEquirectangularImage.js +116 -0
- package/Map/reprojectEquirectangularImage.mjs +110 -0
- package/Map/seriesConfig/descriptionGetter.js +5 -1
- package/Map/seriesConfig/descriptionGetter.mjs +5 -1
- package/Map/seriesConfig/getColor.js +18 -6
- package/Map/seriesConfig/getColor.mjs +18 -6
- package/Map/seriesConfig/highlight.d.mts +10 -0
- package/Map/seriesConfig/highlight.d.ts +10 -0
- package/Map/seriesConfig/highlight.js +52 -0
- package/Map/seriesConfig/highlight.mjs +45 -0
- package/Map/seriesConfig/identifierCleaner.d.mts +3 -0
- package/Map/seriesConfig/identifierCleaner.d.ts +3 -0
- package/Map/seriesConfig/identifierCleaner.js +14 -0
- package/Map/seriesConfig/identifierCleaner.mjs +8 -0
- package/Map/seriesConfig/identifierSerializer.d.mts +3 -0
- package/Map/seriesConfig/identifierSerializer.d.ts +3 -0
- package/Map/seriesConfig/identifierSerializer.js +12 -0
- package/Map/seriesConfig/identifierSerializer.mjs +6 -0
- package/Map/seriesConfig/index.js +8 -6
- package/Map/seriesConfig/index.mjs +7 -5
- package/Map/seriesConfig/keyboardFocusHandler.d.mts +0 -6
- package/Map/seriesConfig/keyboardFocusHandler.d.ts +0 -6
- package/Map/seriesConfig/keyboardFocusHandler.js +40 -7
- package/Map/seriesConfig/keyboardFocusHandler.mjs +41 -8
- package/Map/seriesConfig/seriesProcessor.js +11 -2
- package/Map/seriesConfig/seriesProcessor.mjs +11 -2
- package/Map/seriesConfig/tooltip.js +8 -4
- package/Map/seriesConfig/tooltip.mjs +8 -4
- package/Map/seriesConfig/tooltipPosition.d.mts +8 -3
- package/Map/seriesConfig/tooltipPosition.d.ts +8 -3
- package/Map/seriesConfig/tooltipPosition.js +15 -27
- package/Map/seriesConfig/tooltipPosition.mjs +16 -27
- package/RadialBarChart/RadialBarElement.d.mts +1 -1
- package/RadialBarChart/RadialBarElement.d.ts +1 -1
- package/RadialBarChart/seriesConfig/index.js +2 -2
- package/RadialBarChart/seriesConfig/index.mjs +2 -2
- package/RadialBarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadialBarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadialBarChart/seriesConfig/tooltipPosition.js +4 -6
- package/RadialBarChart/seriesConfig/tooltipPosition.mjs +2 -5
- package/RadialLineChart/RadialArea.d.mts +2 -1
- package/RadialLineChart/RadialArea.d.ts +2 -1
- package/RadialLineChart/RadialAreaPlot.d.mts +1 -1
- package/RadialLineChart/RadialAreaPlot.d.ts +1 -1
- package/RadialLineChart/RadialLine.d.mts +1 -1
- package/RadialLineChart/RadialLine.d.ts +1 -1
- package/RadialLineChart/RadialLineHighlightElement.d.mts +1 -1
- package/RadialLineChart/RadialLineHighlightElement.d.ts +1 -1
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +1 -1
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +1 -1
- package/RadialLineChart/RadialLinePlot.d.mts +1 -1
- package/RadialLineChart/RadialLinePlot.d.ts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.mts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.ts +1 -1
- package/RadialLineChart/seriesConfig/index.js +2 -2
- package/RadialLineChart/seriesConfig/index.mjs +2 -2
- package/RadialLineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadialLineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadialLineChart/seriesConfig/tooltipPosition.js +4 -6
- package/RadialLineChart/seriesConfig/tooltipPosition.mjs +2 -5
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +2 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +2 -1
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.mts +2 -1
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.ts +2 -1
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +0 -2
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +0 -2
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +23 -81
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +23 -81
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/createGetVisibleCoordinate.d.mts +14 -0
- package/internals/createGetVisibleCoordinate.d.ts +14 -0
- package/internals/createGetVisibleCoordinate.js +66 -0
- package/internals/createGetVisibleCoordinate.mjs +60 -0
- package/internals/plugins/useGeoProjection/factories.d.mts +3 -0
- package/internals/plugins/useGeoProjection/factories.d.ts +3 -0
- package/internals/plugins/useGeoProjection/factories.js +29 -0
- package/internals/plugins/useGeoProjection/factories.mjs +23 -0
- package/internals/plugins/useGeoProjection/projection.utils.d.mts +17 -0
- package/internals/plugins/useGeoProjection/projection.utils.d.ts +17 -0
- package/internals/plugins/useGeoProjection/projection.utils.js +67 -0
- package/internals/plugins/useGeoProjection/projection.utils.mjs +59 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.js +7 -40
- package/internals/plugins/useGeoProjection/useGeoProjection.mjs +7 -40
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +47 -11
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +47 -11
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +118 -8
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -8
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +63 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +63 -2
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.mts +11 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.ts +11 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.js +65 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.mjs +58 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.mts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.ts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.js +62 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.mjs +56 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.mts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.ts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.js +64 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.mjs +58 -0
- package/internals/plugins/useGeoProjectionZoom/index.d.mts +2 -0
- package/internals/plugins/useGeoProjectionZoom/index.d.ts +2 -0
- package/internals/plugins/useGeoProjectionZoom/index.js +12 -0
- package/internals/plugins/useGeoProjectionZoom/index.mjs +1 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.mts +31 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.ts +31 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.js +187 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.mjs +177 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.d.mts +23 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.d.ts +23 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.js +190 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.mjs +182 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.mts +3 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.ts +3 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.js +174 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.mjs +166 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.mts +152 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.ts +152 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.js +5 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.mjs +1 -0
- package/models/seriesType/mapShape.d.mts +2 -1
- package/models/seriesType/mapShape.d.ts +2 -1
- package/package.json +6 -6
- package/utils/webgl/glsl.d.mts +15 -0
- package/utils/webgl/glsl.d.ts +15 -0
- package/utils/webgl/glsl.js +34 -0
- package/utils/webgl/glsl.mjs +28 -0
- package/utils/webgl/instancedAttribute.d.mts +28 -0
- package/utils/webgl/instancedAttribute.d.ts +28 -0
- package/utils/webgl/instancedAttribute.js +57 -0
- package/utils/webgl/instancedAttribute.mjs +50 -0
- package/utils/webgl/utils.d.mts +21 -2
- package/utils/webgl/utils.d.ts +21 -2
- package/utils/webgl/utils.js +44 -8
- package/utils/webgl/utils.mjs +41 -7
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.mapShapeSeriesConfig = void 0;
|
|
8
|
-
var _internals = require("@mui/x-charts/internals");
|
|
9
8
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
9
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
11
10
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
@@ -14,17 +13,20 @@ var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWit
|
|
|
14
13
|
var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
|
|
15
14
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
16
15
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
16
|
+
var _identifierSerializer = _interopRequireDefault(require("./identifierSerializer"));
|
|
17
|
+
var _identifierCleaner = _interopRequireDefault(require("./identifierCleaner"));
|
|
18
|
+
var _highlight = require("./highlight");
|
|
17
19
|
const mapShapeSeriesConfig = exports.mapShapeSeriesConfig = {
|
|
18
20
|
seriesProcessor: _seriesProcessor.default,
|
|
19
21
|
colorProcessor: _getColor.default,
|
|
20
22
|
legendGetter: _legend.default,
|
|
21
23
|
tooltipGetter: _tooltip.default,
|
|
22
|
-
|
|
24
|
+
selectorTooltipItemPosition: _tooltipPosition.default,
|
|
23
25
|
getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
|
|
24
26
|
keyboardFocusHandler: _keyboardFocusHandler.default,
|
|
25
|
-
identifierSerializer:
|
|
26
|
-
identifierCleaner:
|
|
27
|
+
identifierSerializer: _identifierSerializer.default,
|
|
28
|
+
identifierCleaner: _identifierCleaner.default,
|
|
27
29
|
descriptionGetter: _descriptionGetter.default,
|
|
28
|
-
isHighlightedCreator:
|
|
29
|
-
isFadedCreator:
|
|
30
|
+
isHighlightedCreator: _highlight.createIsHighlighted,
|
|
31
|
+
isFadedCreator: _highlight.createIsFaded
|
|
30
32
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { identifierSerializerSeriesIdDataIndex, identifierCleanerSeriesIdDataIndex, createIsHighlighted, createIsFaded } from '@mui/x-charts/internals';
|
|
2
1
|
import seriesProcessor from "./seriesProcessor.mjs";
|
|
3
2
|
import getColor from "./getColor.mjs";
|
|
4
3
|
import legendGetter from "./legend.mjs";
|
|
@@ -6,17 +5,20 @@ import tooltipGetter from "./tooltip.mjs";
|
|
|
6
5
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
|
|
7
6
|
import descriptionGetter from "./descriptionGetter.mjs";
|
|
8
7
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
|
-
import
|
|
8
|
+
import selectorTooltipItemPosition from "./tooltipPosition.mjs";
|
|
9
|
+
import identifierSerializer from "./identifierSerializer.mjs";
|
|
10
|
+
import identifierCleaner from "./identifierCleaner.mjs";
|
|
11
|
+
import { createIsHighlighted, createIsFaded } from "./highlight.mjs";
|
|
10
12
|
export const mapShapeSeriesConfig = {
|
|
11
13
|
seriesProcessor,
|
|
12
14
|
colorProcessor: getColor,
|
|
13
15
|
legendGetter,
|
|
14
16
|
tooltipGetter,
|
|
15
|
-
|
|
17
|
+
selectorTooltipItemPosition,
|
|
16
18
|
getSeriesWithDefaultValues,
|
|
17
19
|
keyboardFocusHandler,
|
|
18
|
-
identifierSerializer
|
|
19
|
-
identifierCleaner
|
|
20
|
+
identifierSerializer,
|
|
21
|
+
identifierCleaner,
|
|
20
22
|
descriptionGetter,
|
|
21
23
|
isHighlightedCreator: createIsHighlighted,
|
|
22
24
|
isFadedCreator: createIsFaded
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
2
|
-
/**
|
|
3
|
-
* Move the focus across the shapes of the map series.
|
|
4
|
-
*
|
|
5
|
-
* `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
|
|
6
|
-
* while `ArrowUp`/`ArrowDown` move between series.
|
|
7
|
-
*/
|
|
8
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'mapShape', 'mapShape'>;
|
|
9
3
|
export default keyboardFocusHandler;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
2
|
-
/**
|
|
3
|
-
* Move the focus across the shapes of the map series.
|
|
4
|
-
*
|
|
5
|
-
* `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
|
|
6
|
-
* while `ArrowUp`/`ArrowDown` move between series.
|
|
7
|
-
*/
|
|
8
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'mapShape', 'mapShape'>;
|
|
9
3
|
export default keyboardFocusHandler;
|
|
@@ -5,15 +5,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
/**
|
|
9
|
+
* Keyboard navigation for the map series.
|
|
10
|
+
*
|
|
11
|
+
* The `mapShape` identifier is keyed by the feature `name` (a string), but navigation itself
|
|
12
|
+
* is position-based, so the shared `createCommonKeyboardFocusHandler` does all the work
|
|
13
|
+
* (stepping, hidden-skipping, boundaries, moving between series). This handler only adapts the
|
|
14
|
+
* boundaries: it translates the focused `name` to a `dataIndex` on the way in (through the
|
|
15
|
+
* series `lookupByName` map), and the resulting `dataIndex` back to a `name` on the way out.
|
|
16
|
+
*
|
|
17
|
+
* `ArrowRight`/`ArrowLeft` step within the focused series, `ArrowUp`/`ArrowDown` move between series.
|
|
18
|
+
*/
|
|
19
|
+
|
|
8
20
|
const mapShapeSeriesTypes = new Set(['mapShape']);
|
|
9
21
|
const allowCycles = false;
|
|
10
22
|
const useCurrentSeriesMaxLength = true;
|
|
23
|
+
const commonFocusHandler = (0, _internals.createCommonKeyboardFocusHandler)(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
24
|
+
const keyboardFocusHandler = event => {
|
|
25
|
+
const updateFocusedItem = commonFocusHandler(event);
|
|
26
|
+
if (!updateFocusedItem) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return (currentItem, state) => {
|
|
30
|
+
const mapSeries = (0, _internals.selectorChartSeriesProcessed)(state).mapShape;
|
|
11
31
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
32
|
+
// name -> dataIndex
|
|
33
|
+
const current = currentItem ? {
|
|
34
|
+
type: 'mapShape',
|
|
35
|
+
seriesId: currentItem.seriesId,
|
|
36
|
+
dataIndex: mapSeries?.series[currentItem.seriesId]?.lookupByName.get(currentItem.name) ?? -1
|
|
37
|
+
} : null;
|
|
38
|
+
const next = updateFocusedItem(current, state);
|
|
39
|
+
if (!next) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// dataIndex -> name
|
|
44
|
+
const name = mapSeries?.series[next.seriesId]?.data[next.dataIndex]?.name;
|
|
45
|
+
return name === undefined ? null : {
|
|
46
|
+
type: 'mapShape',
|
|
47
|
+
seriesId: next.seriesId,
|
|
48
|
+
name
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
19
52
|
var _default = exports.default = keyboardFocusHandler;
|
|
@@ -1,13 +1,46 @@
|
|
|
1
|
-
import { createCommonKeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
1
|
+
import { createCommonKeyboardFocusHandler, selectorChartSeriesProcessed } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Keyboard navigation for the map series.
|
|
4
|
+
*
|
|
5
|
+
* The `mapShape` identifier is keyed by the feature `name` (a string), but navigation itself
|
|
6
|
+
* is position-based, so the shared `createCommonKeyboardFocusHandler` does all the work
|
|
7
|
+
* (stepping, hidden-skipping, boundaries, moving between series). This handler only adapts the
|
|
8
|
+
* boundaries: it translates the focused `name` to a `dataIndex` on the way in (through the
|
|
9
|
+
* series `lookupByName` map), and the resulting `dataIndex` back to a `name` on the way out.
|
|
10
|
+
*
|
|
11
|
+
* `ArrowRight`/`ArrowLeft` step within the focused series, `ArrowUp`/`ArrowDown` move between series.
|
|
12
|
+
*/
|
|
13
|
+
|
|
2
14
|
const mapShapeSeriesTypes = new Set(['mapShape']);
|
|
3
15
|
const allowCycles = false;
|
|
4
16
|
const useCurrentSeriesMaxLength = true;
|
|
17
|
+
const commonFocusHandler = createCommonKeyboardFocusHandler(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
18
|
+
const keyboardFocusHandler = event => {
|
|
19
|
+
const updateFocusedItem = commonFocusHandler(event);
|
|
20
|
+
if (!updateFocusedItem) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return (currentItem, state) => {
|
|
24
|
+
const mapSeries = selectorChartSeriesProcessed(state).mapShape;
|
|
5
25
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
26
|
+
// name -> dataIndex
|
|
27
|
+
const current = currentItem ? {
|
|
28
|
+
type: 'mapShape',
|
|
29
|
+
seriesId: currentItem.seriesId,
|
|
30
|
+
dataIndex: mapSeries?.series[currentItem.seriesId]?.lookupByName.get(currentItem.name) ?? -1
|
|
31
|
+
} : null;
|
|
32
|
+
const next = updateFocusedItem(current, state);
|
|
33
|
+
if (!next) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// dataIndex -> name
|
|
38
|
+
const name = mapSeries?.series[next.seriesId]?.data[next.dataIndex]?.name;
|
|
39
|
+
return name === undefined ? null : {
|
|
40
|
+
type: 'mapShape',
|
|
41
|
+
seriesId: next.seriesId,
|
|
42
|
+
name
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
13
46
|
export default keyboardFocusHandler;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
9
10
|
var _internals = require("@mui/x-charts/internals");
|
|
10
11
|
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
11
12
|
const seriesProcessor = ({
|
|
@@ -41,16 +42,24 @@ const seriesProcessor = ({
|
|
|
41
42
|
} else {
|
|
42
43
|
data = input.data ?? [];
|
|
43
44
|
}
|
|
45
|
+
const lookupByName = new Map();
|
|
46
|
+
data.forEach((item, index) => {
|
|
47
|
+
if (lookupByName.has(item.name)) {
|
|
48
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Series "${seriesId}" has a duplicated name "${item.name}".\n` + `Map shapes are identified by their name, so duplicates cannot be told apart for coloring, tooltips, and highlighting.\n` + `Ensure each data entry has a unique name.` : (0, _formatErrorMessage2.default)(294, seriesId, item.name));
|
|
49
|
+
}
|
|
50
|
+
lookupByName.set(item.name, index);
|
|
51
|
+
});
|
|
44
52
|
defaultizedSeries[seriesId] = (0, _extends2.default)({
|
|
45
53
|
labelMarkType: 'square'
|
|
46
54
|
}, input, {
|
|
47
|
-
data: data.map(
|
|
55
|
+
data: data.map(item => (0, _extends2.default)({}, item, {
|
|
48
56
|
hidden: !isItemVisible?.({
|
|
49
57
|
type: 'mapShape',
|
|
50
58
|
seriesId,
|
|
51
|
-
|
|
59
|
+
name: item.name
|
|
52
60
|
})
|
|
53
61
|
})),
|
|
62
|
+
lookupByName,
|
|
54
63
|
hidden: !isItemVisible?.({
|
|
55
64
|
type: 'mapShape',
|
|
56
65
|
seriesId
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
2
3
|
import { incompleteDatasetKeysError } from '@mui/x-charts/internals';
|
|
3
4
|
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
4
5
|
const seriesProcessor = ({
|
|
@@ -34,16 +35,24 @@ const seriesProcessor = ({
|
|
|
34
35
|
} else {
|
|
35
36
|
data = input.data ?? [];
|
|
36
37
|
}
|
|
38
|
+
const lookupByName = new Map();
|
|
39
|
+
data.forEach((item, index) => {
|
|
40
|
+
if (lookupByName.has(item.name)) {
|
|
41
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Series "${seriesId}" has a duplicated name "${item.name}".\n` + `Map shapes are identified by their name, so duplicates cannot be told apart for coloring, tooltips, and highlighting.\n` + `Ensure each data entry has a unique name.` : _formatErrorMessage(294, seriesId, item.name));
|
|
42
|
+
}
|
|
43
|
+
lookupByName.set(item.name, index);
|
|
44
|
+
});
|
|
37
45
|
defaultizedSeries[seriesId] = _extends({
|
|
38
46
|
labelMarkType: 'square'
|
|
39
47
|
}, input, {
|
|
40
|
-
data: data.map(
|
|
48
|
+
data: data.map(item => _extends({}, item, {
|
|
41
49
|
hidden: !isItemVisible?.({
|
|
42
50
|
type: 'mapShape',
|
|
43
51
|
seriesId,
|
|
44
|
-
|
|
52
|
+
name: item.name
|
|
45
53
|
})
|
|
46
54
|
})),
|
|
55
|
+
lookupByName,
|
|
47
56
|
hidden: !isItemVisible?.({
|
|
48
57
|
type: 'mapShape',
|
|
49
58
|
seriesId
|
|
@@ -10,20 +10,24 @@ const tooltipGetter = ({
|
|
|
10
10
|
getColor,
|
|
11
11
|
identifier
|
|
12
12
|
}) => {
|
|
13
|
-
if (!identifier || identifier.
|
|
13
|
+
if (!identifier || identifier.name === undefined) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const index = series.lookupByName.get(identifier.name);
|
|
17
|
+
if (index === undefined) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const point = series.data[index];
|
|
17
21
|
if (point == null) {
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
|
-
const color = getColor(identifier.
|
|
24
|
+
const color = getColor(identifier.name);
|
|
21
25
|
if (color === null) {
|
|
22
26
|
return null;
|
|
23
27
|
}
|
|
24
28
|
const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
|
|
25
29
|
const formattedValue = series.valueFormatter(point, {
|
|
26
|
-
dataIndex:
|
|
30
|
+
dataIndex: index
|
|
27
31
|
});
|
|
28
32
|
return {
|
|
29
33
|
identifier,
|
|
@@ -4,20 +4,24 @@ const tooltipGetter = ({
|
|
|
4
4
|
getColor,
|
|
5
5
|
identifier
|
|
6
6
|
}) => {
|
|
7
|
-
if (!identifier || identifier.
|
|
7
|
+
if (!identifier || identifier.name === undefined) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const index = series.lookupByName.get(identifier.name);
|
|
11
|
+
if (index === undefined) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
const point = series.data[index];
|
|
11
15
|
if (point == null) {
|
|
12
16
|
return null;
|
|
13
17
|
}
|
|
14
|
-
const color = getColor(identifier.
|
|
18
|
+
const color = getColor(identifier.name);
|
|
15
19
|
if (color === null) {
|
|
16
20
|
return null;
|
|
17
21
|
}
|
|
18
22
|
const label = getLabel(point.label ?? point.name, 'tooltip');
|
|
19
23
|
const formattedValue = series.valueFormatter(point, {
|
|
20
|
-
dataIndex:
|
|
24
|
+
dataIndex: index
|
|
21
25
|
});
|
|
22
26
|
return {
|
|
23
27
|
identifier,
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
4
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
5
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
6
|
+
*/
|
|
7
|
+
declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'mapShape'>;
|
|
8
|
+
export default selectorTooltipItemPosition;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
4
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
5
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
6
|
+
*/
|
|
7
|
+
declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'mapShape'>;
|
|
8
|
+
export default selectorTooltipItemPosition;
|
|
@@ -5,39 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _d3Geo = require("@mui/x-charts-vendor/d3-geo");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
var _store = require("@mui/x-internals/store");
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
var _useGeoProjection = require("../../internals/plugins/useGeoProjection/useGeoProjection.selectors");
|
|
11
|
+
/**
|
|
12
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
13
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
14
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
15
|
+
*/
|
|
16
|
+
const selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _useGeoProjection.selectorChartGeoData, _useGeoProjection.selectorChartGeoFeatureIndexesByName, _useGeoProjection.selectorChartProjection, (identifier, geoData, featureIndexesByName, projection, position) => {
|
|
17
|
+
if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
|
|
16
18
|
return null;
|
|
17
19
|
}
|
|
18
|
-
const itemSeries = series.mapShape?.series[identifier.seriesId];
|
|
19
|
-
if (itemSeries == null) {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
if (axesConfig.geo === undefined) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
const {
|
|
26
|
-
projection,
|
|
27
|
-
geoData,
|
|
28
|
-
featureIndexesByName
|
|
29
|
-
} = axesConfig.geo;
|
|
30
20
|
if (projection == null || geoData == null) {
|
|
31
21
|
return null;
|
|
32
22
|
}
|
|
33
|
-
const featureIndex = featureIndexesByName.get(
|
|
23
|
+
const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
|
|
34
24
|
if (featureIndex === undefined) {
|
|
35
25
|
return null;
|
|
36
26
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
40
|
-
switch (placement) {
|
|
27
|
+
const [[x0, y0], [x1, y1]] = (0, _d3Geo.geoPath)(projection).bounds(geoData.features[featureIndex]);
|
|
28
|
+
switch (position) {
|
|
41
29
|
case 'right':
|
|
42
30
|
return {
|
|
43
31
|
x: x1,
|
|
@@ -60,5 +48,5 @@ const tooltipItemPositionGetter = params => {
|
|
|
60
48
|
y: y0
|
|
61
49
|
};
|
|
62
50
|
}
|
|
63
|
-
};
|
|
64
|
-
var _default = exports.default =
|
|
51
|
+
});
|
|
52
|
+
var _default = exports.default = selectorTooltipItemPosition;
|
|
@@ -1,37 +1,26 @@
|
|
|
1
1
|
import { geoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
3
|
+
import { selectorChartsTooltipItem } from '@mui/x-charts/internals';
|
|
4
|
+
import { selectorChartGeoData, selectorChartGeoFeatureIndexesByName, selectorChartProjection } from "../../internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
8
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
9
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
10
|
+
*/
|
|
11
|
+
const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartGeoData, selectorChartGeoFeatureIndexesByName, selectorChartProjection, (identifier, geoData, featureIndexesByName, projection, position) => {
|
|
12
|
+
if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
|
|
10
13
|
return null;
|
|
11
14
|
}
|
|
12
|
-
const itemSeries = series.mapShape?.series[identifier.seriesId];
|
|
13
|
-
if (itemSeries == null) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
if (axesConfig.geo === undefined) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const {
|
|
20
|
-
projection,
|
|
21
|
-
geoData,
|
|
22
|
-
featureIndexesByName
|
|
23
|
-
} = axesConfig.geo;
|
|
24
15
|
if (projection == null || geoData == null) {
|
|
25
16
|
return null;
|
|
26
17
|
}
|
|
27
|
-
const featureIndex = featureIndexesByName.get(
|
|
18
|
+
const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
|
|
28
19
|
if (featureIndex === undefined) {
|
|
29
20
|
return null;
|
|
30
21
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
34
|
-
switch (placement) {
|
|
22
|
+
const [[x0, y0], [x1, y1]] = geoPath(projection).bounds(geoData.features[featureIndex]);
|
|
23
|
+
switch (position) {
|
|
35
24
|
case 'right':
|
|
36
25
|
return {
|
|
37
26
|
x: x1,
|
|
@@ -54,5 +43,5 @@ const tooltipItemPositionGetter = params => {
|
|
|
54
43
|
y: y0
|
|
55
44
|
};
|
|
56
45
|
}
|
|
57
|
-
};
|
|
58
|
-
export default
|
|
46
|
+
});
|
|
47
|
+
export default selectorTooltipItemPosition;
|
|
@@ -12,5 +12,5 @@ type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
12
12
|
classes?: Partial<RadialBarClasses>;
|
|
13
13
|
onClick?: (event: React.MouseEvent<SVGPathElement, MouseEvent>) => void;
|
|
14
14
|
};
|
|
15
|
-
declare function RadialBarElement(props: RadialBarElementProps):
|
|
15
|
+
declare function RadialBarElement(props: RadialBarElementProps): React.JSX.Element;
|
|
16
16
|
export { RadialBarElement };
|
|
@@ -12,5 +12,5 @@ type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
12
12
|
classes?: Partial<RadialBarClasses>;
|
|
13
13
|
onClick?: (event: React.MouseEvent<SVGPathElement, MouseEvent>) => void;
|
|
14
14
|
};
|
|
15
|
-
declare function RadialBarElement(props: RadialBarElementProps):
|
|
15
|
+
declare function RadialBarElement(props: RadialBarElementProps): React.JSX.Element;
|
|
16
16
|
export { RadialBarElement };
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.radialBarSeriesConfig = void 0;
|
|
8
8
|
var _internals = require("@mui/x-charts/internals");
|
|
9
9
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
10
|
-
var _tooltipPosition =
|
|
10
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
11
11
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
12
12
|
var _axisTooltipGetter = require("./axisTooltipGetter");
|
|
13
13
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
@@ -23,7 +23,7 @@ const radialBarSeriesConfig = exports.radialBarSeriesConfig = {
|
|
|
23
23
|
seriesProcessor: _seriesProcessor.default,
|
|
24
24
|
legendGetter: _legend.default,
|
|
25
25
|
tooltipGetter: _tooltip.default,
|
|
26
|
-
|
|
26
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
27
27
|
axisTooltipGetter: _axisTooltipGetter.axisTooltipGetter,
|
|
28
28
|
rotationExtremumGetter: _extremums.rotationExtremumGetter,
|
|
29
29
|
radiusExtremumGetter: _extremums.radiusExtremumGetter,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { identifierSerializerSeriesIdDataIndex, identifierCleanerSeriesIdDataIndex, createIsHighlighted, createIsFaded, polarSeriesTypes } from '@mui/x-charts/internals';
|
|
2
2
|
import legendGetter from "./legend.mjs";
|
|
3
|
-
import
|
|
3
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
4
4
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
5
5
|
import { axisTooltipGetter } from "./axisTooltipGetter.mjs";
|
|
6
6
|
import colorProcessor from "./getColor.mjs";
|
|
@@ -16,7 +16,7 @@ export const radialBarSeriesConfig = {
|
|
|
16
16
|
seriesProcessor,
|
|
17
17
|
legendGetter,
|
|
18
18
|
tooltipGetter,
|
|
19
|
-
|
|
19
|
+
selectorTooltipItemPosition,
|
|
20
20
|
axisTooltipGetter,
|
|
21
21
|
rotationExtremumGetter,
|
|
22
22
|
radiusExtremumGetter,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'radialBar'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'radialBar'>;
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
// Todo: to implement
|
|
8
|
+
const selectorTooltipItemPosition = () => null;
|
|
9
|
+
exports.selectorTooltipItemPosition = selectorTooltipItemPosition;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadialLineOrAreaProps } from "./RadialLine.mjs";
|
|
2
|
-
declare function RadialArea(props: RadialLineOrAreaProps):
|
|
3
|
+
declare function RadialArea(props: RadialLineOrAreaProps): React.JSX.Element;
|
|
3
4
|
export { RadialArea };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadialLineOrAreaProps } from "./RadialLine.js";
|
|
2
|
-
declare function RadialArea(props: RadialLineOrAreaProps):
|
|
3
|
+
declare function RadialArea(props: RadialLineOrAreaProps): React.JSX.Element;
|
|
3
4
|
export { RadialArea };
|
|
@@ -2,7 +2,7 @@ import type { RadialLineClasses } from "./radialLineClasses.mjs";
|
|
|
2
2
|
export interface RadialAreaPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react
|
|
5
|
+
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react").JSX.Element;
|
|
6
6
|
declare namespace RadialAreaPlot {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import type { RadialLineClasses } from "./radialLineClasses.js";
|
|
|
2
2
|
export interface RadialAreaPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react
|
|
5
|
+
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react").JSX.Element;
|
|
6
6
|
declare namespace RadialAreaPlot {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -9,5 +9,5 @@ export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElemen
|
|
|
9
9
|
points: RadialLinePoint[];
|
|
10
10
|
closePath?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare function RadialLine(props: RadialLineOrAreaProps):
|
|
12
|
+
declare function RadialLine(props: RadialLineOrAreaProps): React.JSX.Element;
|
|
13
13
|
export { RadialLine };
|
|
@@ -9,5 +9,5 @@ export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElemen
|
|
|
9
9
|
points: RadialLinePoint[];
|
|
10
10
|
closePath?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare function RadialLine(props: RadialLineOrAreaProps):
|
|
12
|
+
declare function RadialLine(props: RadialLineOrAreaProps): React.JSX.Element;
|
|
13
13
|
export { RadialLine };
|
|
@@ -11,7 +11,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
|
|
|
11
11
|
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (RadialLineHighlightElementCommonProps & {
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
13
|
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
|
|
14
|
-
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps):
|
|
14
|
+
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): React.JSX.Element;
|
|
15
15
|
declare namespace RadialLineHighlightElement {
|
|
16
16
|
var propTypes: any;
|
|
17
17
|
}
|
|
@@ -11,7 +11,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
|
|
|
11
11
|
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (RadialLineHighlightElementCommonProps & {
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
13
|
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
|
|
14
|
-
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps):
|
|
14
|
+
declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): React.JSX.Element;
|
|
15
15
|
declare namespace RadialLineHighlightElement {
|
|
16
16
|
var propTypes: any;
|
|
17
17
|
}
|