@mui/x-charts-premium 9.6.0 → 9.8.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 (329) hide show
  1. package/BarChartPremium/BarChartPremium.d.mts +4 -4
  2. package/BarChartPremium/BarChartPremium.d.ts +4 -4
  3. package/BarChartPremium/BarChartPremium.plugins.d.mts +2 -2
  4. package/BarChartPremium/BarChartPremium.plugins.d.ts +2 -2
  5. package/BarChartPremium/BarPlotPremium.d.mts +1 -1
  6. package/BarChartPremium/BarPlotPremium.d.ts +1 -1
  7. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +1 -1
  8. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +1 -1
  9. package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +2 -2
  10. package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +2 -2
  11. package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.mts +1 -1
  12. package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.ts +1 -1
  13. package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.mts +1 -1
  14. package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.ts +1 -1
  15. package/BarChartPremium/RangeBar/seriesConfig/extrema.d.mts +1 -1
  16. package/BarChartPremium/RangeBar/seriesConfig/extrema.d.ts +1 -1
  17. package/BarChartPremium/RangeBar/seriesConfig/getColor.d.mts +1 -1
  18. package/BarChartPremium/RangeBar/seriesConfig/getColor.d.ts +1 -1
  19. package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  20. package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  21. package/BarChartPremium/RangeBar/seriesConfig/index.d.mts +1 -1
  22. package/BarChartPremium/RangeBar/seriesConfig/index.d.ts +1 -1
  23. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  24. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  25. package/BarChartPremium/RangeBar/seriesConfig/legend.d.mts +1 -1
  26. package/BarChartPremium/RangeBar/seriesConfig/legend.d.ts +1 -1
  27. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.mts +1 -1
  28. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.ts +1 -1
  29. package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.mts +1 -1
  30. package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.ts +1 -1
  31. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +1 -1
  32. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +1 -1
  33. package/BarChartPremium/RangeBar/useRangeBarPlotData.d.mts +4 -4
  34. package/BarChartPremium/RangeBar/useRangeBarPlotData.d.ts +4 -4
  35. package/BarChartPremium/useBarChartPremiumProps.d.mts +5 -5
  36. package/BarChartPremium/useBarChartPremiumProps.d.ts +5 -5
  37. package/BarChartPremium/webgl/BarWebGLProgram.d.mts +5 -6
  38. package/BarChartPremium/webgl/BarWebGLProgram.d.ts +5 -6
  39. package/BarChartPremium/webgl/BarWebGLProgram.js +24 -65
  40. package/BarChartPremium/webgl/BarWebGLProgram.mjs +24 -65
  41. package/BarChartPremium/webgl/shaders.d.mts +1 -1
  42. package/BarChartPremium/webgl/shaders.d.ts +1 -1
  43. package/BarChartPremium/webgl/shaders.js +2 -15
  44. package/BarChartPremium/webgl/shaders.mjs +3 -15
  45. package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +3 -3
  46. package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +3 -3
  47. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +3 -3
  48. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +3 -3
  49. package/CHANGELOG.md +241 -2
  50. package/CandlestickChart/CandlestickChart.d.mts +12 -12
  51. package/CandlestickChart/CandlestickChart.d.ts +12 -12
  52. package/CandlestickChart/CandlestickChart.plugins.d.mts +2 -2
  53. package/CandlestickChart/CandlestickChart.plugins.d.ts +2 -2
  54. package/CandlestickChart/CandlestickWebGLProgram.d.mts +1 -1
  55. package/CandlestickChart/CandlestickWebGLProgram.d.ts +1 -1
  56. package/CandlestickChart/checkCandlestickScaleErrors.d.mts +2 -2
  57. package/CandlestickChart/checkCandlestickScaleErrors.d.ts +2 -2
  58. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +1 -1
  59. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +1 -1
  60. package/CandlestickChart/seriesConfig/descriptionGetter.d.mts +1 -1
  61. package/CandlestickChart/seriesConfig/descriptionGetter.d.ts +1 -1
  62. package/CandlestickChart/seriesConfig/extrema.d.mts +1 -1
  63. package/CandlestickChart/seriesConfig/extrema.d.ts +1 -1
  64. package/CandlestickChart/seriesConfig/getColor.d.mts +1 -1
  65. package/CandlestickChart/seriesConfig/getColor.d.ts +1 -1
  66. package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  67. package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  68. package/CandlestickChart/seriesConfig/index.d.mts +1 -1
  69. package/CandlestickChart/seriesConfig/index.d.ts +1 -1
  70. package/CandlestickChart/seriesConfig/legend.d.mts +1 -1
  71. package/CandlestickChart/seriesConfig/legend.d.ts +1 -1
  72. package/CandlestickChart/seriesConfig/seriesProcessor.d.mts +1 -1
  73. package/CandlestickChart/seriesConfig/seriesProcessor.d.ts +1 -1
  74. package/CandlestickChart/seriesConfig/tooltip.d.mts +1 -1
  75. package/CandlestickChart/seriesConfig/tooltip.d.ts +1 -1
  76. package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +1 -1
  77. package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +1 -1
  78. package/CandlestickChart/useCandlestickChartProps.d.mts +9 -9
  79. package/CandlestickChart/useCandlestickChartProps.d.ts +9 -9
  80. package/CandlestickChart/useCandlestickChartProps.mjs +0 -1
  81. package/CandlestickChart/useCandlestickPlotData.d.mts +3 -3
  82. package/CandlestickChart/useCandlestickPlotData.d.ts +3 -3
  83. package/ChartsContainerPremium/ChartsContainerPremium.d.mts +4 -4
  84. package/ChartsContainerPremium/ChartsContainerPremium.d.ts +4 -4
  85. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.mts +2 -2
  86. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +2 -2
  87. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +4 -4
  88. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +4 -4
  89. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
  90. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +3 -4
  91. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.mts +1 -1
  92. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +1 -1
  93. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +4 -4
  94. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +4 -4
  95. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +2 -2
  96. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +2 -2
  97. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +3 -3
  98. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +3 -3
  99. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +2 -2
  100. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +2 -2
  101. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +4 -4
  102. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +4 -4
  103. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
  104. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
  105. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.mts +3 -3
  106. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.ts +3 -3
  107. package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.mts +1 -1
  108. package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.ts +1 -1
  109. package/ChartsRenderer/colors.d.mts +1 -1
  110. package/ChartsRenderer/colors.d.ts +1 -1
  111. package/ChartsRenderer/configuration.d.mts +1 -1
  112. package/ChartsRenderer/configuration.d.ts +1 -1
  113. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +1 -1
  114. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +1 -1
  115. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
  116. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
  117. package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
  118. package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
  119. package/HeatmapPremium/HeatmapPremium.d.mts +1 -1
  120. package/HeatmapPremium/HeatmapPremium.d.ts +1 -1
  121. package/HeatmapPremium/HeatmapPremium.plugins.d.mts +2 -2
  122. package/HeatmapPremium/HeatmapPremium.plugins.d.ts +2 -2
  123. package/HeatmapPremium/useHeatmapPremiumProps.d.mts +2 -2
  124. package/HeatmapPremium/useHeatmapPremiumProps.d.ts +2 -2
  125. package/HeatmapPremium/webgl/HeatmapWebGLProgram.js +12 -37
  126. package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +12 -37
  127. package/HeatmapPremium/webgl/shaders.d.mts +3 -3
  128. package/HeatmapPremium/webgl/shaders.d.ts +3 -3
  129. package/HeatmapPremium/webgl/shaders.js +12 -15
  130. package/HeatmapPremium/webgl/shaders.mjs +13 -15
  131. package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
  132. package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
  133. package/HeatmapPremium/webgl/useHeatmapPlotData.js +3 -8
  134. package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +3 -8
  135. package/Map/FocusedMapShape.js +5 -1
  136. package/Map/FocusedMapShape.mjs +5 -1
  137. package/Map/MapImagePlot.d.mts +39 -0
  138. package/Map/MapImagePlot.d.ts +39 -0
  139. package/Map/MapImagePlot.js +138 -0
  140. package/Map/MapImagePlot.mjs +132 -0
  141. package/Map/MapShape.d.mts +2 -2
  142. package/Map/MapShape.d.ts +2 -2
  143. package/Map/MapShape.js +6 -6
  144. package/Map/MapShape.mjs +6 -6
  145. package/Map/MapShapePlot.d.mts +8 -0
  146. package/Map/MapShapePlot.d.ts +8 -0
  147. package/Map/MapShapePlot.js +17 -5
  148. package/Map/MapShapePlot.mjs +17 -5
  149. package/Map/index.d.mts +2 -1
  150. package/Map/index.d.ts +2 -1
  151. package/Map/index.js +11 -0
  152. package/Map/index.mjs +1 -0
  153. package/Map/reprojectEquirectangularImage.d.mts +60 -0
  154. package/Map/reprojectEquirectangularImage.d.ts +60 -0
  155. package/Map/reprojectEquirectangularImage.js +116 -0
  156. package/Map/reprojectEquirectangularImage.mjs +110 -0
  157. package/Map/seriesConfig/descriptionGetter.d.mts +1 -1
  158. package/Map/seriesConfig/descriptionGetter.d.ts +1 -1
  159. package/Map/seriesConfig/descriptionGetter.js +5 -1
  160. package/Map/seriesConfig/descriptionGetter.mjs +5 -1
  161. package/Map/seriesConfig/getColor.js +18 -6
  162. package/Map/seriesConfig/getColor.mjs +18 -6
  163. package/Map/seriesConfig/highlight.d.mts +10 -0
  164. package/Map/seriesConfig/highlight.d.ts +10 -0
  165. package/Map/seriesConfig/highlight.js +52 -0
  166. package/Map/seriesConfig/highlight.mjs +45 -0
  167. package/Map/seriesConfig/identifierCleaner.d.mts +3 -0
  168. package/Map/seriesConfig/identifierCleaner.d.ts +3 -0
  169. package/Map/seriesConfig/identifierCleaner.js +14 -0
  170. package/Map/seriesConfig/identifierCleaner.mjs +8 -0
  171. package/Map/seriesConfig/identifierSerializer.d.mts +3 -0
  172. package/Map/seriesConfig/identifierSerializer.d.ts +3 -0
  173. package/Map/seriesConfig/identifierSerializer.js +12 -0
  174. package/Map/seriesConfig/identifierSerializer.mjs +6 -0
  175. package/Map/seriesConfig/index.d.mts +1 -1
  176. package/Map/seriesConfig/index.d.ts +1 -1
  177. package/Map/seriesConfig/index.js +8 -6
  178. package/Map/seriesConfig/index.mjs +7 -5
  179. package/Map/seriesConfig/keyboardFocusHandler.d.mts +1 -7
  180. package/Map/seriesConfig/keyboardFocusHandler.d.ts +1 -7
  181. package/Map/seriesConfig/keyboardFocusHandler.js +40 -7
  182. package/Map/seriesConfig/keyboardFocusHandler.mjs +41 -8
  183. package/Map/seriesConfig/legend.d.mts +1 -1
  184. package/Map/seriesConfig/legend.d.ts +1 -1
  185. package/Map/seriesConfig/seriesProcessor.d.mts +1 -1
  186. package/Map/seriesConfig/seriesProcessor.d.ts +1 -1
  187. package/Map/seriesConfig/seriesProcessor.js +11 -2
  188. package/Map/seriesConfig/seriesProcessor.mjs +11 -2
  189. package/Map/seriesConfig/tooltip.d.mts +1 -1
  190. package/Map/seriesConfig/tooltip.d.ts +1 -1
  191. package/Map/seriesConfig/tooltip.js +8 -4
  192. package/Map/seriesConfig/tooltip.mjs +8 -4
  193. package/Map/seriesConfig/tooltipPosition.d.mts +8 -3
  194. package/Map/seriesConfig/tooltipPosition.d.ts +8 -3
  195. package/Map/seriesConfig/tooltipPosition.js +21 -27
  196. package/Map/seriesConfig/tooltipPosition.mjs +22 -27
  197. package/RadialBarChart/RadialBarChart.d.mts +10 -10
  198. package/RadialBarChart/RadialBarChart.d.ts +10 -10
  199. package/RadialBarChart/RadialBarChart.plugins.d.mts +2 -2
  200. package/RadialBarChart/RadialBarChart.plugins.d.ts +2 -2
  201. package/RadialBarChart/RadialBarElement.d.mts +2 -2
  202. package/RadialBarChart/RadialBarElement.d.ts +2 -2
  203. package/RadialBarChart/seriesConfig/descriptionGetter.d.mts +1 -1
  204. package/RadialBarChart/seriesConfig/descriptionGetter.d.ts +1 -1
  205. package/RadialBarChart/seriesConfig/extremums.d.mts +1 -1
  206. package/RadialBarChart/seriesConfig/extremums.d.ts +1 -1
  207. package/RadialBarChart/seriesConfig/getColor.d.mts +1 -1
  208. package/RadialBarChart/seriesConfig/getColor.d.ts +1 -1
  209. package/RadialBarChart/seriesConfig/getItemAtPosition.d.mts +1 -1
  210. package/RadialBarChart/seriesConfig/getItemAtPosition.d.ts +1 -1
  211. package/RadialBarChart/seriesConfig/index.d.mts +1 -1
  212. package/RadialBarChart/seriesConfig/index.d.ts +1 -1
  213. package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  214. package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  215. package/RadialBarChart/seriesConfig/tooltip.d.mts +1 -1
  216. package/RadialBarChart/seriesConfig/tooltip.d.ts +1 -1
  217. package/RadialBarChart/useRadialBarChartProps.d.mts +6 -6
  218. package/RadialBarChart/useRadialBarChartProps.d.ts +6 -6
  219. package/RadialBarChart/useRadialBarPlotData.d.mts +1 -1
  220. package/RadialBarChart/useRadialBarPlotData.d.ts +1 -1
  221. package/RadialBarChart/useRadialBarPlotData.js +4 -1
  222. package/RadialBarChart/useRadialBarPlotData.mjs +3 -1
  223. package/RadialLineChart/RadialArea.d.mts +1 -1
  224. package/RadialLineChart/RadialArea.d.ts +1 -1
  225. package/RadialLineChart/RadialAreaPlot.d.mts +1 -1
  226. package/RadialLineChart/RadialAreaPlot.d.ts +1 -1
  227. package/RadialLineChart/RadialLine.d.mts +2 -2
  228. package/RadialLineChart/RadialLine.d.ts +2 -2
  229. package/RadialLineChart/RadialLineChart.d.mts +10 -10
  230. package/RadialLineChart/RadialLineChart.d.ts +10 -10
  231. package/RadialLineChart/RadialLineChart.plugins.d.mts +2 -2
  232. package/RadialLineChart/RadialLineChart.plugins.d.ts +2 -2
  233. package/RadialLineChart/RadialLineHighlightElement.d.mts +1 -1
  234. package/RadialLineChart/RadialLineHighlightElement.d.ts +1 -1
  235. package/RadialLineChart/RadialLineHighlightPlot.d.mts +2 -2
  236. package/RadialLineChart/RadialLineHighlightPlot.d.ts +2 -2
  237. package/RadialLineChart/RadialLinePlot.d.mts +1 -1
  238. package/RadialLineChart/RadialLinePlot.d.ts +1 -1
  239. package/RadialLineChart/RadialMarkPlot.d.mts +1 -1
  240. package/RadialLineChart/RadialMarkPlot.d.ts +1 -1
  241. package/RadialLineChart/seriesConfig/descriptionGetter.d.mts +1 -1
  242. package/RadialLineChart/seriesConfig/descriptionGetter.d.ts +1 -1
  243. package/RadialLineChart/seriesConfig/extremums.d.mts +1 -1
  244. package/RadialLineChart/seriesConfig/extremums.d.ts +1 -1
  245. package/RadialLineChart/seriesConfig/getColor.d.mts +1 -1
  246. package/RadialLineChart/seriesConfig/getColor.d.ts +1 -1
  247. package/RadialLineChart/seriesConfig/getItemAtPosition.d.mts +1 -1
  248. package/RadialLineChart/seriesConfig/getItemAtPosition.d.ts +1 -1
  249. package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +1 -2
  250. package/RadialLineChart/seriesConfig/index.d.mts +1 -1
  251. package/RadialLineChart/seriesConfig/index.d.ts +1 -1
  252. package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  253. package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  254. package/RadialLineChart/seriesConfig/legend.d.mts +1 -1
  255. package/RadialLineChart/seriesConfig/legend.d.ts +1 -1
  256. package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +1 -1
  257. package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +1 -1
  258. package/RadialLineChart/seriesConfig/tooltip.d.mts +1 -1
  259. package/RadialLineChart/seriesConfig/tooltip.d.ts +1 -1
  260. package/RadialLineChart/useRadialLineChartProps.d.mts +7 -7
  261. package/RadialLineChart/useRadialLineChartProps.d.ts +7 -7
  262. package/RadialLineChart/useRadialLinePlotData.d.mts +1 -1
  263. package/RadialLineChart/useRadialLinePlotData.d.ts +1 -1
  264. package/ScatterChartPremium/ScatterChartPremium.d.mts +6 -6
  265. package/ScatterChartPremium/ScatterChartPremium.d.ts +6 -6
  266. package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
  267. package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
  268. package/ScatterChartPremium/ScatterPlotPremium.d.mts +1 -1
  269. package/ScatterChartPremium/ScatterPlotPremium.d.ts +1 -1
  270. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +1 -3
  271. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +1 -3
  272. package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +23 -81
  273. package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +23 -81
  274. package/context/useChartPremiumApiContext.d.mts +1 -1
  275. package/context/useChartPremiumApiContext.d.ts +1 -1
  276. package/hooks/animation/useAnimateRangeBar.d.mts +1 -1
  277. package/hooks/animation/useAnimateRangeBar.d.ts +1 -1
  278. package/hooks/useChartPremiumApiRef.d.mts +4 -4
  279. package/hooks/useChartPremiumApiRef.d.ts +4 -4
  280. package/hooks/useGeoData.d.mts +1 -1
  281. package/hooks/useGeoData.d.ts +1 -1
  282. package/hooks/useGeoData.mjs +0 -1
  283. package/hooks/useGeoFeatureIndexesByName.mjs +0 -1
  284. package/hooks/useGeoPath.d.mts +1 -1
  285. package/hooks/useGeoPath.d.ts +1 -1
  286. package/hooks/useGeoPath.mjs +0 -1
  287. package/hooks/useMapShapeSeries.d.mts +2 -2
  288. package/hooks/useMapShapeSeries.d.ts +2 -2
  289. package/hooks/useOHLCSeries.d.mts +2 -2
  290. package/hooks/useOHLCSeries.d.ts +2 -2
  291. package/hooks/useRadialLineSeries.d.mts +2 -2
  292. package/hooks/useRadialLineSeries.d.ts +2 -2
  293. package/hooks/useRangeBarSeries.d.mts +2 -2
  294. package/hooks/useRangeBarSeries.d.ts +2 -2
  295. package/index.js +1 -1
  296. package/index.mjs +1 -1
  297. package/internals/createGetVisibleCoordinate.d.mts +14 -0
  298. package/internals/createGetVisibleCoordinate.d.ts +14 -0
  299. package/internals/createGetVisibleCoordinate.js +66 -0
  300. package/internals/createGetVisibleCoordinate.mjs +60 -0
  301. package/internals/plugins/allPlugins.d.mts +2 -2
  302. package/internals/plugins/allPlugins.d.ts +2 -2
  303. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +1 -1
  304. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +1 -1
  305. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +1 -1
  306. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +1 -1
  307. package/models/seriesType/mapShape.d.mts +2 -1
  308. package/models/seriesType/mapShape.d.ts +2 -1
  309. package/models/seriesType/ohlc.d.mts +2 -2
  310. package/models/seriesType/ohlc.d.ts +2 -2
  311. package/models/seriesType/rangeBar.d.mts +2 -2
  312. package/models/seriesType/rangeBar.d.ts +2 -2
  313. package/moduleAugmentation/rangeBarOnClick.d.mts +1 -1
  314. package/moduleAugmentation/rangeBarOnClick.d.ts +1 -1
  315. package/package.json +6 -6
  316. package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
  317. package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
  318. package/utils/webgl/glsl.d.mts +15 -0
  319. package/utils/webgl/glsl.d.ts +15 -0
  320. package/utils/webgl/glsl.js +34 -0
  321. package/utils/webgl/glsl.mjs +28 -0
  322. package/utils/webgl/instancedAttribute.d.mts +28 -0
  323. package/utils/webgl/instancedAttribute.d.ts +28 -0
  324. package/utils/webgl/instancedAttribute.js +57 -0
  325. package/utils/webgl/instancedAttribute.mjs +50 -0
  326. package/utils/webgl/utils.d.mts +21 -2
  327. package/utils/webgl/utils.d.ts +21 -2
  328. package/utils/webgl/utils.js +44 -8
  329. package/utils/webgl/utils.mjs +41 -7
@@ -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
- 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
- */
1
+ import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
8
2
  declare const keyboardFocusHandler: KeyboardFocusHandler<'mapShape', 'mapShape'>;
9
3
  export default keyboardFocusHandler;
@@ -1,9 +1,3 @@
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
- */
1
+ import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
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;
@@ -1,3 +1,3 @@
1
- import { type LegendGetter } from '@mui/x-charts/internals';
1
+ import type { LegendGetter } from '@mui/x-charts/internals';
2
2
  declare const legendGetter: LegendGetter<'mapShape'>;
3
3
  export default legendGetter;
@@ -1,3 +1,3 @@
1
- import { type LegendGetter } from '@mui/x-charts/internals';
1
+ import type { LegendGetter } from '@mui/x-charts/internals';
2
2
  declare const legendGetter: LegendGetter<'mapShape'>;
3
3
  export default legendGetter;
@@ -1,3 +1,3 @@
1
- import { type SeriesProcessor } from '@mui/x-charts/internals';
1
+ import type { SeriesProcessor } from '@mui/x-charts/internals';
2
2
  declare const seriesProcessor: SeriesProcessor<'mapShape'>;
3
3
  export default seriesProcessor;
@@ -1,3 +1,3 @@
1
- import { type SeriesProcessor } from '@mui/x-charts/internals';
1
+ import type { SeriesProcessor } from '@mui/x-charts/internals';
2
2
  declare const seriesProcessor: SeriesProcessor<'mapShape'>;
3
3
  export default seriesProcessor;
@@ -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
@@ -1,3 +1,3 @@
1
- import { type TooltipGetter } from '@mui/x-charts/internals';
1
+ import type { TooltipGetter } from '@mui/x-charts/internals';
2
2
  declare const tooltipGetter: TooltipGetter<'mapShape'>;
3
3
  export default tooltipGetter;
@@ -1,3 +1,3 @@
1
- import { type TooltipGetter } from '@mui/x-charts/internals';
1
+ import type { TooltipGetter } from '@mui/x-charts/internals';
2
2
  declare const tooltipGetter: TooltipGetter<'mapShape'>;
3
3
  export default tooltipGetter;
@@ -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;
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;
8
+ export default selectorTooltipItemPosition;
@@ -5,39 +5,33 @@ 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
+ /**
11
+ * Positions a map shape tooltip from the geo projection. It lives in the map
12
+ * series config (rather than the core tooltip plugin) so the geo projection is a
13
+ * tracked dependency and d3-geo is only bundled with map charts.
14
+ */
15
+ const selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.useGeoProjectionSelectors.selectorGeoTooltipPosition,
16
+ // `selectorChartsTooltipItem` is typed with the community series types, which
17
+ // don't include `mapShape`, so the identifier is matched structurally here.
18
+ (identifier, {
19
+ projection,
20
+ geoData,
21
+ featureIndexesByName
22
+ }, position) => {
23
+ if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
16
24
  return null;
17
25
  }
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
26
  if (projection == null || geoData == null) {
31
27
  return null;
32
28
  }
33
- const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
29
+ const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
34
30
  if (featureIndex === undefined) {
35
31
  return null;
36
32
  }
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) {
33
+ const [[x0, y0], [x1, y1]] = (0, _d3Geo.geoPath)(projection).bounds(geoData.features[featureIndex]);
34
+ switch (position) {
41
35
  case 'right':
42
36
  return {
43
37
  x: x1,
@@ -60,5 +54,5 @@ const tooltipItemPositionGetter = params => {
60
54
  y: y0
61
55
  };
62
56
  }
63
- };
64
- var _default = exports.default = tooltipItemPositionGetter;
57
+ });
58
+ var _default = exports.default = selectorTooltipItemPosition;
@@ -1,37 +1,32 @@
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, useGeoProjectionSelectors } from '@mui/x-charts/internals';
4
+
5
+ /**
6
+ * Positions a map shape tooltip from the geo projection. It lives in the map
7
+ * series config (rather than the core tooltip plugin) so the geo projection is a
8
+ * tracked dependency and d3-geo is only bundled with map charts.
9
+ */
10
+ const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, useGeoProjectionSelectors.selectorGeoTooltipPosition,
11
+ // `selectorChartsTooltipItem` is typed with the community series types, which
12
+ // don't include `mapShape`, so the identifier is matched structurally here.
13
+ (identifier, {
14
+ projection,
15
+ geoData,
16
+ featureIndexesByName
17
+ }, position) => {
18
+ if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
10
19
  return null;
11
20
  }
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
21
  if (projection == null || geoData == null) {
25
22
  return null;
26
23
  }
27
- const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
24
+ const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
28
25
  if (featureIndex === undefined) {
29
26
  return null;
30
27
  }
31
- const feature = geoData.features[featureIndex];
32
- const path = geoPath(projection);
33
- const [[x0, y0], [x1, y1]] = path.bounds(feature);
34
- switch (placement) {
28
+ const [[x0, y0], [x1, y1]] = geoPath(projection).bounds(geoData.features[featureIndex]);
29
+ switch (position) {
35
30
  case 'right':
36
31
  return {
37
32
  x: x1,
@@ -54,5 +49,5 @@ const tooltipItemPositionGetter = params => {
54
49
  y: y0
55
50
  };
56
51
  }
57
- };
58
- export default tooltipItemPositionGetter;
52
+ });
53
+ export default selectorTooltipItemPosition;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { type MakeOptional } from '@mui/x-internals/types';
3
- import { type ChartsSlots, type ChartsSlotProps } from '@mui/x-charts/internals';
4
- import { type ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
5
- import { type ChartsLegendSlots, type ChartsLegendSlotProps } from "../ChartsLegend/index.mjs";
6
- import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/index.mjs";
7
- import { type ChartsOverlayProps, type ChartsOverlaySlots, type ChartsOverlaySlotProps } from "../ChartsOverlay/index.mjs";
8
- import { type ChartsToolbarSlots, type ChartsToolbarSlotProps } from "../Toolbar/index.mjs";
9
- import { type ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.mjs";
2
+ import type { MakeOptional } from '@mui/x-internals/types';
3
+ import type { ChartsSlots, ChartsSlotProps } from '@mui/x-charts/internals';
4
+ import type { ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
5
+ import type { ChartsLegendSlots, ChartsLegendSlotProps } from "../ChartsLegend/index.mjs";
6
+ import type { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/index.mjs";
7
+ import type { ChartsOverlayProps, ChartsOverlaySlots, ChartsOverlaySlotProps } from "../ChartsOverlay/index.mjs";
8
+ import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/index.mjs";
9
+ import type { ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.mjs";
10
10
  import type { RadialBarSeriesType } from "../models/seriesType/radialBar.mjs";
11
- import { type RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.mjs";
12
- import { type ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.mjs";
11
+ import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.mjs";
12
+ import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.mjs";
13
13
  export type RadialBarSeries = MakeOptional<RadialBarSeriesType, 'type'>;
14
14
  export interface RadialBarChartSlots extends ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
15
15
  export interface RadialBarChartSlotProps extends ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { type MakeOptional } from '@mui/x-internals/types';
3
- import { type ChartsSlots, type ChartsSlotProps } from '@mui/x-charts/internals';
4
- import { type ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
5
- import { type ChartsLegendSlots, type ChartsLegendSlotProps } from "../ChartsLegend/index.js";
6
- import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/index.js";
7
- import { type ChartsOverlayProps, type ChartsOverlaySlots, type ChartsOverlaySlotProps } from "../ChartsOverlay/index.js";
8
- import { type ChartsToolbarSlots, type ChartsToolbarSlotProps } from "../Toolbar/index.js";
9
- import { type ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.js";
2
+ import type { MakeOptional } from '@mui/x-internals/types';
3
+ import type { ChartsSlots, ChartsSlotProps } from '@mui/x-charts/internals';
4
+ import type { ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
5
+ import type { ChartsLegendSlots, ChartsLegendSlotProps } from "../ChartsLegend/index.js";
6
+ import type { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/index.js";
7
+ import type { ChartsOverlayProps, ChartsOverlaySlots, ChartsOverlaySlotProps } from "../ChartsOverlay/index.js";
8
+ import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/index.js";
9
+ import type { ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.js";
10
10
  import type { RadialBarSeriesType } from "../models/seriesType/radialBar.js";
11
- import { type RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.js";
12
- import { type ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.js";
11
+ import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.js";
12
+ import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.js";
13
13
  export type RadialBarSeries = MakeOptional<RadialBarSeriesType, 'type'>;
14
14
  export interface RadialBarChartSlots extends ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
15
15
  export interface RadialBarChartSlotProps extends ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
@@ -1,4 +1,4 @@
1
- import { type UseChartZAxisSignature, type UseChartPolarAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "../plugins/index.mjs";
1
+ import type { UseChartZAxisSignature, UseChartPolarAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "../plugins/index.mjs";
3
3
  export type RadialBarChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialBar'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialBar'>, UseChartHighlightSignature<'radialBar'>, UseChartVisibilityManagerSignature<'radialBar'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
4
4
  export declare const RADIAL_BAR_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialBarChartPluginSignatures>;
@@ -1,4 +1,4 @@
1
- import { type UseChartZAxisSignature, type UseChartPolarAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "../plugins/index.js";
1
+ import type { UseChartZAxisSignature, UseChartPolarAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "../plugins/index.js";
3
3
  export type RadialBarChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialBar'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialBar'>, UseChartHighlightSignature<'radialBar'>, UseChartVisibilityManagerSignature<'radialBar'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
4
4
  export declare const RADIAL_BAR_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialBarChartPluginSignatures>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from '@mui/x-charts/internals';
3
- import { type RadialBarClasses } from "./radialBarClasses.mjs";
2
+ import type { SeriesId } from '@mui/x-charts/internals';
3
+ import type { RadialBarClasses } from "./radialBarClasses.mjs";
4
4
  type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
5
5
  seriesId: SeriesId;
6
6
  dataIndex: number;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from '@mui/x-charts/internals';
3
- import { type RadialBarClasses } from "./radialBarClasses.js";
2
+ import type { SeriesId } from '@mui/x-charts/internals';
3
+ import type { RadialBarClasses } from "./radialBarClasses.js";
4
4
  type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
5
5
  seriesId: SeriesId;
6
6
  dataIndex: number;
@@ -1,3 +1,3 @@
1
- import { type DescriptionGetter } from '@mui/x-charts/internals';
1
+ import type { DescriptionGetter } from '@mui/x-charts/internals';
2
2
  declare const descriptionGetter: DescriptionGetter<'radialBar'>;
3
3
  export default descriptionGetter;
@@ -1,3 +1,3 @@
1
- import { type DescriptionGetter } from '@mui/x-charts/internals';
1
+ import type { DescriptionGetter } from '@mui/x-charts/internals';
2
2
  declare const descriptionGetter: DescriptionGetter<'radialBar'>;
3
3
  export default descriptionGetter;
@@ -1,3 +1,3 @@
1
- import { type PolarExtremumGetter } from '@mui/x-charts/internals';
1
+ import type { PolarExtremumGetter } from '@mui/x-charts/internals';
2
2
  export declare const rotationExtremumGetter: PolarExtremumGetter<'radialBar'>;
3
3
  export declare const radiusExtremumGetter: PolarExtremumGetter<'radialBar'>;
@@ -1,3 +1,3 @@
1
- import { type PolarExtremumGetter } from '@mui/x-charts/internals';
1
+ import type { PolarExtremumGetter } from '@mui/x-charts/internals';
2
2
  export declare const rotationExtremumGetter: PolarExtremumGetter<'radialBar'>;
3
3
  export declare const radiusExtremumGetter: PolarExtremumGetter<'radialBar'>;
@@ -1,3 +1,3 @@
1
- import { type ColorProcessor } from '@mui/x-charts/internals';
1
+ import type { ColorProcessor } from '@mui/x-charts/internals';
2
2
  declare const getColor: ColorProcessor<'radialBar'>;
3
3
  export default getColor;
@@ -1,3 +1,3 @@
1
- import { type ColorProcessor } from '@mui/x-charts/internals';
1
+ import type { ColorProcessor } from '@mui/x-charts/internals';
2
2
  declare const getColor: ColorProcessor<'radialBar'>;
3
3
  export default getColor;
@@ -1,4 +1,4 @@
1
- import { type ChartState, type UseChartPolarAxisSignature } from '@mui/x-charts/internals';
1
+ import type { ChartState, UseChartPolarAxisSignature } from '@mui/x-charts/internals';
2
2
  import type { SeriesItemIdentifierWithType } from '@mui/x-charts/models';
3
3
  export default function getItemAtPosition(state: ChartState<[UseChartPolarAxisSignature]>, point: {
4
4
  x: number;