@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.
Files changed (230) hide show
  1. package/BarChartPremium/BarChartPremium.d.mts +1 -1
  2. package/BarChartPremium/BarChartPremium.d.ts +1 -1
  3. package/BarChartPremium/BarChartPremium.js +14 -3
  4. package/BarChartPremium/BarChartPremium.mjs +14 -3
  5. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +2 -1
  6. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +2 -1
  7. package/BarChartPremium/RangeBar/FocusedRangeBar.d.mts +1 -1
  8. package/BarChartPremium/RangeBar/FocusedRangeBar.d.ts +1 -1
  9. package/BarChartPremium/RangeBar/seriesConfig/index.js +2 -2
  10. package/BarChartPremium/RangeBar/seriesConfig/index.mjs +2 -2
  11. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +2 -3
  12. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +2 -3
  13. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.js +12 -15
  14. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.mjs +11 -14
  15. package/BarChartPremium/webgl/BarWebGLProgram.d.mts +4 -5
  16. package/BarChartPremium/webgl/BarWebGLProgram.d.ts +4 -5
  17. package/BarChartPremium/webgl/BarWebGLProgram.js +24 -65
  18. package/BarChartPremium/webgl/BarWebGLProgram.mjs +24 -65
  19. package/BarChartPremium/webgl/shaders.d.mts +1 -1
  20. package/BarChartPremium/webgl/shaders.d.ts +1 -1
  21. package/BarChartPremium/webgl/shaders.js +2 -15
  22. package/BarChartPremium/webgl/shaders.mjs +3 -15
  23. package/CHANGELOG.md +249 -1
  24. package/CandlestickChart/CandlestickPlot.d.mts +2 -1
  25. package/CandlestickChart/CandlestickPlot.d.ts +2 -1
  26. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +2 -1
  27. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +2 -1
  28. package/CandlestickChart/seriesConfig/index.js +2 -2
  29. package/CandlestickChart/seriesConfig/index.mjs +2 -2
  30. package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +2 -3
  31. package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +2 -3
  32. package/CandlestickChart/seriesConfig/tooltipPosition.js +10 -14
  33. package/CandlestickChart/seriesConfig/tooltipPosition.mjs +10 -14
  34. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +1 -1
  35. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +1 -1
  36. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
  37. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
  38. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +1 -1
  39. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +1 -1
  40. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +2 -2
  41. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +2 -2
  42. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +4 -3
  43. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +4 -3
  44. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +2 -1
  45. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +2 -1
  46. package/ChartsGeoDataProviderPremium/index.d.mts +2 -1
  47. package/ChartsGeoDataProviderPremium/index.d.ts +2 -1
  48. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +2 -1
  49. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +2 -1
  50. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
  51. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
  52. package/ChartsRenderer/components/PaletteOption.d.mts +1 -1
  53. package/ChartsRenderer/components/PaletteOption.d.ts +1 -1
  54. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +2 -1
  55. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +2 -1
  56. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
  57. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
  58. package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
  59. package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
  60. package/HeatmapPremium/webgl/HeatmapWebGLProgram.js +12 -37
  61. package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +12 -37
  62. package/HeatmapPremium/webgl/shaders.d.mts +3 -3
  63. package/HeatmapPremium/webgl/shaders.d.ts +3 -3
  64. package/HeatmapPremium/webgl/shaders.js +12 -15
  65. package/HeatmapPremium/webgl/shaders.mjs +13 -15
  66. package/HeatmapPremium/webgl/useHeatmapPlotData.js +3 -8
  67. package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +3 -8
  68. package/Map/FocusedMapShape.d.mts +2 -1
  69. package/Map/FocusedMapShape.d.ts +2 -1
  70. package/Map/FocusedMapShape.js +5 -1
  71. package/Map/FocusedMapShape.mjs +5 -1
  72. package/Map/GeoDataPlot.d.mts +1 -1
  73. package/Map/GeoDataPlot.d.ts +1 -1
  74. package/Map/Graticule.d.mts +1 -1
  75. package/Map/Graticule.d.ts +1 -1
  76. package/Map/MapImagePlot.d.mts +39 -0
  77. package/Map/MapImagePlot.d.ts +39 -0
  78. package/Map/MapImagePlot.js +138 -0
  79. package/Map/MapImagePlot.mjs +132 -0
  80. package/Map/MapShape.d.mts +2 -2
  81. package/Map/MapShape.d.ts +2 -2
  82. package/Map/MapShape.js +6 -6
  83. package/Map/MapShape.mjs +6 -6
  84. package/Map/MapShapePlot.d.mts +9 -1
  85. package/Map/MapShapePlot.d.ts +9 -1
  86. package/Map/MapShapePlot.js +17 -5
  87. package/Map/MapShapePlot.mjs +17 -5
  88. package/Map/index.d.mts +2 -3
  89. package/Map/index.d.ts +2 -3
  90. package/Map/index.js +11 -0
  91. package/Map/index.mjs +1 -0
  92. package/Map/reprojectEquirectangularImage.d.mts +60 -0
  93. package/Map/reprojectEquirectangularImage.d.ts +60 -0
  94. package/Map/reprojectEquirectangularImage.js +116 -0
  95. package/Map/reprojectEquirectangularImage.mjs +110 -0
  96. package/Map/seriesConfig/descriptionGetter.js +5 -1
  97. package/Map/seriesConfig/descriptionGetter.mjs +5 -1
  98. package/Map/seriesConfig/getColor.js +18 -6
  99. package/Map/seriesConfig/getColor.mjs +18 -6
  100. package/Map/seriesConfig/highlight.d.mts +10 -0
  101. package/Map/seriesConfig/highlight.d.ts +10 -0
  102. package/Map/seriesConfig/highlight.js +52 -0
  103. package/Map/seriesConfig/highlight.mjs +45 -0
  104. package/Map/seriesConfig/identifierCleaner.d.mts +3 -0
  105. package/Map/seriesConfig/identifierCleaner.d.ts +3 -0
  106. package/Map/seriesConfig/identifierCleaner.js +14 -0
  107. package/Map/seriesConfig/identifierCleaner.mjs +8 -0
  108. package/Map/seriesConfig/identifierSerializer.d.mts +3 -0
  109. package/Map/seriesConfig/identifierSerializer.d.ts +3 -0
  110. package/Map/seriesConfig/identifierSerializer.js +12 -0
  111. package/Map/seriesConfig/identifierSerializer.mjs +6 -0
  112. package/Map/seriesConfig/index.js +8 -6
  113. package/Map/seriesConfig/index.mjs +7 -5
  114. package/Map/seriesConfig/keyboardFocusHandler.d.mts +0 -6
  115. package/Map/seriesConfig/keyboardFocusHandler.d.ts +0 -6
  116. package/Map/seriesConfig/keyboardFocusHandler.js +40 -7
  117. package/Map/seriesConfig/keyboardFocusHandler.mjs +41 -8
  118. package/Map/seriesConfig/seriesProcessor.js +11 -2
  119. package/Map/seriesConfig/seriesProcessor.mjs +11 -2
  120. package/Map/seriesConfig/tooltip.js +8 -4
  121. package/Map/seriesConfig/tooltip.mjs +8 -4
  122. package/Map/seriesConfig/tooltipPosition.d.mts +8 -3
  123. package/Map/seriesConfig/tooltipPosition.d.ts +8 -3
  124. package/Map/seriesConfig/tooltipPosition.js +15 -27
  125. package/Map/seriesConfig/tooltipPosition.mjs +16 -27
  126. package/RadialBarChart/RadialBarElement.d.mts +1 -1
  127. package/RadialBarChart/RadialBarElement.d.ts +1 -1
  128. package/RadialBarChart/seriesConfig/index.js +2 -2
  129. package/RadialBarChart/seriesConfig/index.mjs +2 -2
  130. package/RadialBarChart/seriesConfig/tooltipPosition.d.mts +2 -3
  131. package/RadialBarChart/seriesConfig/tooltipPosition.d.ts +2 -3
  132. package/RadialBarChart/seriesConfig/tooltipPosition.js +4 -6
  133. package/RadialBarChart/seriesConfig/tooltipPosition.mjs +2 -5
  134. package/RadialLineChart/RadialArea.d.mts +2 -1
  135. package/RadialLineChart/RadialArea.d.ts +2 -1
  136. package/RadialLineChart/RadialAreaPlot.d.mts +1 -1
  137. package/RadialLineChart/RadialAreaPlot.d.ts +1 -1
  138. package/RadialLineChart/RadialLine.d.mts +1 -1
  139. package/RadialLineChart/RadialLine.d.ts +1 -1
  140. package/RadialLineChart/RadialLineHighlightElement.d.mts +1 -1
  141. package/RadialLineChart/RadialLineHighlightElement.d.ts +1 -1
  142. package/RadialLineChart/RadialLineHighlightPlot.d.mts +1 -1
  143. package/RadialLineChart/RadialLineHighlightPlot.d.ts +1 -1
  144. package/RadialLineChart/RadialLinePlot.d.mts +1 -1
  145. package/RadialLineChart/RadialLinePlot.d.ts +1 -1
  146. package/RadialLineChart/RadialMarkPlot.d.mts +1 -1
  147. package/RadialLineChart/RadialMarkPlot.d.ts +1 -1
  148. package/RadialLineChart/seriesConfig/index.js +2 -2
  149. package/RadialLineChart/seriesConfig/index.mjs +2 -2
  150. package/RadialLineChart/seriesConfig/tooltipPosition.d.mts +2 -3
  151. package/RadialLineChart/seriesConfig/tooltipPosition.d.ts +2 -3
  152. package/RadialLineChart/seriesConfig/tooltipPosition.js +4 -6
  153. package/RadialLineChart/seriesConfig/tooltipPosition.mjs +2 -5
  154. package/ScatterChartPremium/ScatterPlotPremium.d.mts +2 -1
  155. package/ScatterChartPremium/ScatterPlotPremium.d.ts +2 -1
  156. package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.mts +2 -1
  157. package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.ts +2 -1
  158. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +0 -2
  159. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +0 -2
  160. package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +23 -81
  161. package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +23 -81
  162. package/index.js +1 -1
  163. package/index.mjs +1 -1
  164. package/internals/createGetVisibleCoordinate.d.mts +14 -0
  165. package/internals/createGetVisibleCoordinate.d.ts +14 -0
  166. package/internals/createGetVisibleCoordinate.js +66 -0
  167. package/internals/createGetVisibleCoordinate.mjs +60 -0
  168. package/internals/plugins/useGeoProjection/factories.d.mts +3 -0
  169. package/internals/plugins/useGeoProjection/factories.d.ts +3 -0
  170. package/internals/plugins/useGeoProjection/factories.js +29 -0
  171. package/internals/plugins/useGeoProjection/factories.mjs +23 -0
  172. package/internals/plugins/useGeoProjection/projection.utils.d.mts +17 -0
  173. package/internals/plugins/useGeoProjection/projection.utils.d.ts +17 -0
  174. package/internals/plugins/useGeoProjection/projection.utils.js +67 -0
  175. package/internals/plugins/useGeoProjection/projection.utils.mjs +59 -0
  176. package/internals/plugins/useGeoProjection/useGeoProjection.js +7 -40
  177. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +7 -40
  178. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +47 -11
  179. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +47 -11
  180. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +118 -8
  181. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -8
  182. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +63 -2
  183. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +63 -2
  184. package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.mts +11 -0
  185. package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.ts +11 -0
  186. package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.js +65 -0
  187. package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.mjs +58 -0
  188. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.mts +13 -0
  189. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.ts +13 -0
  190. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.js +62 -0
  191. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.mjs +56 -0
  192. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.mts +13 -0
  193. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.ts +13 -0
  194. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.js +64 -0
  195. package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.mjs +58 -0
  196. package/internals/plugins/useGeoProjectionZoom/index.d.mts +2 -0
  197. package/internals/plugins/useGeoProjectionZoom/index.d.ts +2 -0
  198. package/internals/plugins/useGeoProjectionZoom/index.js +12 -0
  199. package/internals/plugins/useGeoProjectionZoom/index.mjs +1 -0
  200. package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.mts +31 -0
  201. package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.ts +31 -0
  202. package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.js +187 -0
  203. package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.mjs +177 -0
  204. package/internals/plugins/useGeoProjectionZoom/rotationMath.d.mts +23 -0
  205. package/internals/plugins/useGeoProjectionZoom/rotationMath.d.ts +23 -0
  206. package/internals/plugins/useGeoProjectionZoom/rotationMath.js +190 -0
  207. package/internals/plugins/useGeoProjectionZoom/rotationMath.mjs +182 -0
  208. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.mts +3 -0
  209. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.ts +3 -0
  210. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.js +174 -0
  211. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.mjs +166 -0
  212. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.mts +152 -0
  213. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.ts +152 -0
  214. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.js +5 -0
  215. package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.mjs +1 -0
  216. package/models/seriesType/mapShape.d.mts +2 -1
  217. package/models/seriesType/mapShape.d.ts +2 -1
  218. package/package.json +6 -6
  219. package/utils/webgl/glsl.d.mts +15 -0
  220. package/utils/webgl/glsl.d.ts +15 -0
  221. package/utils/webgl/glsl.js +34 -0
  222. package/utils/webgl/glsl.mjs +28 -0
  223. package/utils/webgl/instancedAttribute.d.mts +28 -0
  224. package/utils/webgl/instancedAttribute.d.ts +28 -0
  225. package/utils/webgl/instancedAttribute.js +57 -0
  226. package/utils/webgl/instancedAttribute.mjs +50 -0
  227. package/utils/webgl/utils.d.mts +21 -2
  228. package/utils/webgl/utils.d.ts +21 -2
  229. package/utils/webgl/utils.js +44 -8
  230. 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
- tooltipItemPositionGetter: _tooltipPosition.default,
24
+ selectorTooltipItemPosition: _tooltipPosition.default,
23
25
  getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
24
26
  keyboardFocusHandler: _keyboardFocusHandler.default,
25
- identifierSerializer: _internals.identifierSerializerSeriesIdDataIndex,
26
- identifierCleaner: _internals.identifierCleanerSeriesIdDataIndex,
27
+ identifierSerializer: _identifierSerializer.default,
28
+ identifierCleaner: _identifierCleaner.default,
27
29
  descriptionGetter: _descriptionGetter.default,
28
- isHighlightedCreator: _internals.createIsHighlighted,
29
- isFadedCreator: _internals.createIsFaded
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 tooltipItemPositionGetter from "./tooltipPosition.mjs";
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
- tooltipItemPositionGetter,
17
+ selectorTooltipItemPosition,
16
18
  getSeriesWithDefaultValues,
17
19
  keyboardFocusHandler,
18
- identifierSerializer: identifierSerializerSeriesIdDataIndex,
19
- identifierCleaner: identifierCleanerSeriesIdDataIndex,
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
- * Move the focus across the shapes of the map series.
14
- *
15
- * `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
16
- * while `ArrowUp`/`ArrowDown` move between series.
17
- */
18
- const keyboardFocusHandler = (0, _internals.createCommonKeyboardFocusHandler)(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
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
- * Move the focus across the shapes of the map series.
8
- *
9
- * `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
10
- * while `ArrowUp`/`ArrowDown` move between series.
11
- */
12
- const keyboardFocusHandler = createCommonKeyboardFocusHandler(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
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((item, dataIndex) => (0, _extends2.default)({}, item, {
55
+ data: data.map(item => (0, _extends2.default)({}, item, {
48
56
  hidden: !isItemVisible?.({
49
57
  type: 'mapShape',
50
58
  seriesId,
51
- dataIndex
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((item, dataIndex) => _extends({}, item, {
48
+ data: data.map(item => _extends({}, item, {
41
49
  hidden: !isItemVisible?.({
42
50
  type: 'mapShape',
43
51
  seriesId,
44
- dataIndex
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.dataIndex === undefined) {
13
+ if (!identifier || identifier.name === undefined) {
14
14
  return null;
15
15
  }
16
- const point = series.data[identifier.dataIndex];
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.dataIndex);
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: identifier.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.dataIndex === undefined) {
7
+ if (!identifier || identifier.name === undefined) {
8
8
  return null;
9
9
  }
10
- const point = series.data[identifier.dataIndex];
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.dataIndex);
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: identifier.dataIndex
24
+ dataIndex: index
21
25
  });
22
26
  return {
23
27
  identifier,
@@ -1,3 +1,8 @@
1
- import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
- export default tooltipItemPositionGetter;
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 { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
- export default tooltipItemPositionGetter;
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
- const tooltipItemPositionGetter = params => {
9
- const {
10
- series,
11
- identifier,
12
- axesConfig,
13
- placement
14
- } = params;
15
- if (!identifier || identifier.dataIndex === undefined) {
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(itemSeries.data[identifier.dataIndex].name)?.[0];
23
+ const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
34
24
  if (featureIndex === undefined) {
35
25
  return null;
36
26
  }
37
- const feature = geoData.features[featureIndex];
38
- const path = (0, _d3Geo.geoPath)(projection);
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 = tooltipItemPositionGetter;
51
+ });
52
+ var _default = exports.default = selectorTooltipItemPosition;
@@ -1,37 +1,26 @@
1
1
  import { geoPath } from '@mui/x-charts-vendor/d3-geo';
2
- const tooltipItemPositionGetter = params => {
3
- const {
4
- series,
5
- identifier,
6
- axesConfig,
7
- placement
8
- } = params;
9
- if (!identifier || identifier.dataIndex === undefined) {
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(itemSeries.data[identifier.dataIndex].name)?.[0];
18
+ const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
28
19
  if (featureIndex === undefined) {
29
20
  return null;
30
21
  }
31
- const feature = geoData.features[featureIndex];
32
- const path = geoPath(projection);
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 tooltipItemPositionGetter;
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): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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 = _interopRequireDefault(require("./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
- tooltipItemPositionGetter: _tooltipPosition.default,
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 tooltipItemPositionGetter from "./tooltipPosition.mjs";
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
- tooltipItemPositionGetter,
19
+ selectorTooltipItemPosition,
20
20
  axisTooltipGetter,
21
21
  rotationExtremumGetter,
22
22
  radiusExtremumGetter,
@@ -1,3 +1,2 @@
1
- import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'radialBar'>;
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 { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'radialBar'>;
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.default = void 0;
7
- const tooltipItemPositionGetter = () => {
8
- // Todo: to implement
9
- return null;
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,5 +1,2 @@
1
- const tooltipItemPositionGetter = () => {
2
- // Todo: to implement
3
- return null;
4
- };
5
- export default tooltipItemPositionGetter;
1
+ // Todo: to implement
2
+ export const selectorTooltipItemPosition = () => null;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { RadialLineOrAreaProps } from "./RadialLine.mjs";
2
- declare function RadialArea(props: RadialLineOrAreaProps): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
14
+ declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): React.JSX.Element;
15
15
  declare namespace RadialLineHighlightElement {
16
16
  var propTypes: any;
17
17
  }