@mui/x-charts-premium 9.5.0 → 9.7.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 (314) hide show
  1. package/BarChartPremium/BarChartPremium.d.mts +4 -4
  2. package/BarChartPremium/BarChartPremium.d.ts +4 -4
  3. package/BarChartPremium/BarChartPremium.js +5 -3
  4. package/BarChartPremium/BarChartPremium.mjs +5 -3
  5. package/BarChartPremium/BarChartPremium.plugins.d.mts +2 -2
  6. package/BarChartPremium/BarChartPremium.plugins.d.ts +2 -2
  7. package/BarChartPremium/BarPlotPremium.d.mts +1 -1
  8. package/BarChartPremium/BarPlotPremium.d.ts +1 -1
  9. package/BarChartPremium/BarPlotPremium.js +1 -1
  10. package/BarChartPremium/BarPlotPremium.mjs +1 -1
  11. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +1 -1
  12. package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +1 -1
  13. package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +2 -2
  14. package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +2 -2
  15. package/BarChartPremium/RangeBar/RangeBarPlot.js +2 -2
  16. package/BarChartPremium/RangeBar/RangeBarPlot.mjs +2 -2
  17. package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.mts +1 -1
  18. package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.ts +1 -1
  19. package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.mts +1 -1
  20. package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.ts +1 -1
  21. package/BarChartPremium/RangeBar/seriesConfig/extrema.d.mts +1 -1
  22. package/BarChartPremium/RangeBar/seriesConfig/extrema.d.ts +1 -1
  23. package/BarChartPremium/RangeBar/seriesConfig/getColor.d.mts +1 -1
  24. package/BarChartPremium/RangeBar/seriesConfig/getColor.d.ts +1 -1
  25. package/BarChartPremium/RangeBar/seriesConfig/getColor.js +2 -5
  26. package/BarChartPremium/RangeBar/seriesConfig/getColor.mjs +2 -5
  27. package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  28. package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  29. package/BarChartPremium/RangeBar/seriesConfig/index.d.mts +1 -1
  30. package/BarChartPremium/RangeBar/seriesConfig/index.d.ts +1 -1
  31. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  32. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  33. package/BarChartPremium/RangeBar/seriesConfig/legend.d.mts +1 -1
  34. package/BarChartPremium/RangeBar/seriesConfig/legend.d.ts +1 -1
  35. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.mts +1 -1
  36. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.ts +1 -1
  37. package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.mts +1 -1
  38. package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.ts +1 -1
  39. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +1 -1
  40. package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +1 -1
  41. package/BarChartPremium/RangeBar/useRangeBarPlotData.d.mts +4 -4
  42. package/BarChartPremium/RangeBar/useRangeBarPlotData.d.ts +4 -4
  43. package/BarChartPremium/useBarChartPremiumProps.d.mts +5 -5
  44. package/BarChartPremium/useBarChartPremiumProps.d.ts +5 -5
  45. package/BarChartPremium/webgl/BarWebGLProgram.d.mts +1 -1
  46. package/BarChartPremium/webgl/BarWebGLProgram.d.ts +1 -1
  47. package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +3 -3
  48. package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +3 -3
  49. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +3 -3
  50. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +3 -3
  51. package/CHANGELOG.md +261 -0
  52. package/CandlestickChart/CandlestickChart.d.mts +12 -12
  53. package/CandlestickChart/CandlestickChart.d.ts +12 -12
  54. package/CandlestickChart/CandlestickChart.js +1 -1
  55. package/CandlestickChart/CandlestickChart.mjs +1 -1
  56. package/CandlestickChart/CandlestickChart.plugins.d.mts +2 -2
  57. package/CandlestickChart/CandlestickChart.plugins.d.ts +2 -2
  58. package/CandlestickChart/CandlestickWebGLProgram.d.mts +1 -1
  59. package/CandlestickChart/CandlestickWebGLProgram.d.ts +1 -1
  60. package/CandlestickChart/checkCandlestickScaleErrors.d.mts +2 -2
  61. package/CandlestickChart/checkCandlestickScaleErrors.d.ts +2 -2
  62. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +1 -1
  63. package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +1 -1
  64. package/CandlestickChart/seriesConfig/descriptionGetter.d.mts +1 -1
  65. package/CandlestickChart/seriesConfig/descriptionGetter.d.ts +1 -1
  66. package/CandlestickChart/seriesConfig/extrema.d.mts +1 -1
  67. package/CandlestickChart/seriesConfig/extrema.d.ts +1 -1
  68. package/CandlestickChart/seriesConfig/getColor.d.mts +1 -1
  69. package/CandlestickChart/seriesConfig/getColor.d.ts +1 -1
  70. package/CandlestickChart/seriesConfig/getColor.js +2 -5
  71. package/CandlestickChart/seriesConfig/getColor.mjs +2 -5
  72. package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  73. package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  74. package/CandlestickChart/seriesConfig/index.d.mts +1 -1
  75. package/CandlestickChart/seriesConfig/index.d.ts +1 -1
  76. package/CandlestickChart/seriesConfig/legend.d.mts +1 -1
  77. package/CandlestickChart/seriesConfig/legend.d.ts +1 -1
  78. package/CandlestickChart/seriesConfig/seriesProcessor.d.mts +1 -1
  79. package/CandlestickChart/seriesConfig/seriesProcessor.d.ts +1 -1
  80. package/CandlestickChart/seriesConfig/tooltip.d.mts +1 -1
  81. package/CandlestickChart/seriesConfig/tooltip.d.ts +1 -1
  82. package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +1 -1
  83. package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +1 -1
  84. package/CandlestickChart/useCandlestickChartProps.d.mts +9 -9
  85. package/CandlestickChart/useCandlestickChartProps.d.ts +9 -9
  86. package/CandlestickChart/useCandlestickChartProps.mjs +0 -1
  87. package/CandlestickChart/useCandlestickPlotData.d.mts +3 -3
  88. package/CandlestickChart/useCandlestickPlotData.d.ts +3 -3
  89. package/ChartsContainerPremium/ChartsContainerPremium.d.mts +4 -4
  90. package/ChartsContainerPremium/ChartsContainerPremium.d.ts +4 -4
  91. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.mts +2 -2
  92. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +2 -2
  93. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +4 -4
  94. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +4 -4
  95. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +7 -3
  96. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +8 -5
  97. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.mts +1 -1
  98. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +1 -1
  99. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +4 -4
  100. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +4 -4
  101. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +11 -3
  102. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +11 -3
  103. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +4 -4
  104. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +4 -4
  105. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +2 -2
  106. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +2 -2
  107. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +4 -4
  108. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +4 -4
  109. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +11 -3
  110. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +11 -3
  111. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.mts +3 -3
  112. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.ts +3 -3
  113. package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.mts +1 -1
  114. package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.ts +1 -1
  115. package/ChartsRenderer/ChartsRenderer.js +1 -1
  116. package/ChartsRenderer/ChartsRenderer.mjs +1 -1
  117. package/ChartsRenderer/colors.d.mts +1 -1
  118. package/ChartsRenderer/colors.d.ts +1 -1
  119. package/ChartsRenderer/configuration.d.mts +1 -1
  120. package/ChartsRenderer/configuration.d.ts +1 -1
  121. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +1 -1
  122. package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +1 -1
  123. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
  124. package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
  125. package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
  126. package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
  127. package/HeatmapPremium/HeatmapPremium.d.mts +1 -1
  128. package/HeatmapPremium/HeatmapPremium.d.ts +1 -1
  129. package/HeatmapPremium/HeatmapPremium.js +5 -3
  130. package/HeatmapPremium/HeatmapPremium.mjs +5 -3
  131. package/HeatmapPremium/HeatmapPremium.plugins.d.mts +2 -2
  132. package/HeatmapPremium/HeatmapPremium.plugins.d.ts +2 -2
  133. package/HeatmapPremium/useHeatmapPremiumProps.d.mts +2 -2
  134. package/HeatmapPremium/useHeatmapPremiumProps.d.ts +2 -2
  135. package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
  136. package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
  137. package/Map/GeoDataPlot.js +1 -1
  138. package/Map/GeoDataPlot.mjs +1 -1
  139. package/Map/MapShape.d.mts +4 -1
  140. package/Map/MapShape.d.ts +4 -1
  141. package/Map/MapShape.js +10 -1
  142. package/Map/MapShape.mjs +9 -0
  143. package/Map/MapShapePlot.d.mts +5 -1
  144. package/Map/MapShapePlot.d.ts +5 -1
  145. package/Map/MapShapePlot.js +27 -3
  146. package/Map/MapShapePlot.mjs +28 -4
  147. package/Map/index.d.mts +3 -1
  148. package/Map/index.d.ts +3 -1
  149. package/Map/seriesConfig/descriptionGetter.d.mts +1 -1
  150. package/Map/seriesConfig/descriptionGetter.d.ts +1 -1
  151. package/Map/seriesConfig/getColor.js +4 -9
  152. package/Map/seriesConfig/getColor.mjs +4 -9
  153. package/Map/seriesConfig/index.d.mts +1 -1
  154. package/Map/seriesConfig/index.d.ts +1 -1
  155. package/Map/seriesConfig/index.js +2 -0
  156. package/Map/seriesConfig/index.mjs +2 -0
  157. package/Map/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  158. package/Map/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  159. package/Map/seriesConfig/legend.d.mts +1 -1
  160. package/Map/seriesConfig/legend.d.ts +1 -1
  161. package/Map/seriesConfig/seriesProcessor.d.mts +1 -1
  162. package/Map/seriesConfig/seriesProcessor.d.ts +1 -1
  163. package/Map/seriesConfig/tooltip.d.mts +1 -1
  164. package/Map/seriesConfig/tooltip.d.ts +1 -1
  165. package/Map/seriesConfig/tooltip.js +5 -1
  166. package/Map/seriesConfig/tooltip.mjs +5 -1
  167. package/Map/seriesConfig/tooltipPosition.d.mts +3 -0
  168. package/Map/seriesConfig/tooltipPosition.d.ts +3 -0
  169. package/Map/seriesConfig/tooltipPosition.js +64 -0
  170. package/Map/seriesConfig/tooltipPosition.mjs +58 -0
  171. package/RadialBarChart/RadialBarChart.d.mts +10 -10
  172. package/RadialBarChart/RadialBarChart.d.ts +10 -10
  173. package/RadialBarChart/RadialBarChart.js +1 -1
  174. package/RadialBarChart/RadialBarChart.mjs +1 -1
  175. package/RadialBarChart/RadialBarChart.plugins.d.mts +2 -2
  176. package/RadialBarChart/RadialBarChart.plugins.d.ts +2 -2
  177. package/RadialBarChart/RadialBarElement.d.mts +2 -2
  178. package/RadialBarChart/RadialBarElement.d.ts +2 -2
  179. package/RadialBarChart/RadialBarPlot.js +1 -1
  180. package/RadialBarChart/RadialBarPlot.mjs +1 -1
  181. package/RadialBarChart/seriesConfig/descriptionGetter.d.mts +1 -1
  182. package/RadialBarChart/seriesConfig/descriptionGetter.d.ts +1 -1
  183. package/RadialBarChart/seriesConfig/extremums.d.mts +1 -1
  184. package/RadialBarChart/seriesConfig/extremums.d.ts +1 -1
  185. package/RadialBarChart/seriesConfig/getColor.d.mts +1 -1
  186. package/RadialBarChart/seriesConfig/getColor.d.ts +1 -1
  187. package/RadialBarChart/seriesConfig/getItemAtPosition.d.mts +1 -1
  188. package/RadialBarChart/seriesConfig/getItemAtPosition.d.ts +1 -1
  189. package/RadialBarChart/seriesConfig/index.d.mts +1 -1
  190. package/RadialBarChart/seriesConfig/index.d.ts +1 -1
  191. package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  192. package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  193. package/RadialBarChart/seriesConfig/tooltip.d.mts +1 -1
  194. package/RadialBarChart/seriesConfig/tooltip.d.ts +1 -1
  195. package/RadialBarChart/useRadialBarChartProps.d.mts +6 -6
  196. package/RadialBarChart/useRadialBarChartProps.d.ts +6 -6
  197. package/RadialBarChart/useRadialBarPlotData.d.mts +1 -1
  198. package/RadialBarChart/useRadialBarPlotData.d.ts +1 -1
  199. package/RadialBarChart/useRadialBarPlotData.js +4 -1
  200. package/RadialBarChart/useRadialBarPlotData.mjs +3 -1
  201. package/RadialLineChart/RadialArea.d.mts +1 -1
  202. package/RadialLineChart/RadialArea.d.ts +1 -1
  203. package/RadialLineChart/RadialAreaPlot.d.mts +6 -2
  204. package/RadialLineChart/RadialAreaPlot.d.ts +6 -2
  205. package/RadialLineChart/RadialAreaPlot.js +10 -1
  206. package/RadialLineChart/RadialAreaPlot.mjs +11 -2
  207. package/RadialLineChart/RadialLine.d.mts +2 -2
  208. package/RadialLineChart/RadialLine.d.ts +2 -2
  209. package/RadialLineChart/RadialLineChart.d.mts +10 -10
  210. package/RadialLineChart/RadialLineChart.d.ts +10 -10
  211. package/RadialLineChart/RadialLineChart.js +1 -1
  212. package/RadialLineChart/RadialLineChart.mjs +1 -1
  213. package/RadialLineChart/RadialLineChart.plugins.d.mts +2 -2
  214. package/RadialLineChart/RadialLineChart.plugins.d.ts +2 -2
  215. package/RadialLineChart/RadialLineHighlightElement.d.mts +4 -1
  216. package/RadialLineChart/RadialLineHighlightElement.d.ts +4 -1
  217. package/RadialLineChart/RadialLineHighlightElement.js +10 -1
  218. package/RadialLineChart/RadialLineHighlightElement.mjs +9 -0
  219. package/RadialLineChart/RadialLineHighlightPlot.d.mts +5 -2
  220. package/RadialLineChart/RadialLineHighlightPlot.d.ts +5 -2
  221. package/RadialLineChart/RadialLineHighlightPlot.js +18 -1
  222. package/RadialLineChart/RadialLineHighlightPlot.mjs +17 -0
  223. package/RadialLineChart/RadialLinePlot.d.mts +6 -2
  224. package/RadialLineChart/RadialLinePlot.d.ts +6 -2
  225. package/RadialLineChart/RadialLinePlot.js +10 -1
  226. package/RadialLineChart/RadialLinePlot.mjs +11 -2
  227. package/RadialLineChart/RadialMarkPlot.d.mts +6 -2
  228. package/RadialLineChart/RadialMarkPlot.d.ts +6 -2
  229. package/RadialLineChart/RadialMarkPlot.js +10 -1
  230. package/RadialLineChart/RadialMarkPlot.mjs +11 -2
  231. package/RadialLineChart/seriesConfig/descriptionGetter.d.mts +1 -1
  232. package/RadialLineChart/seriesConfig/descriptionGetter.d.ts +1 -1
  233. package/RadialLineChart/seriesConfig/extremums.d.mts +1 -1
  234. package/RadialLineChart/seriesConfig/extremums.d.ts +1 -1
  235. package/RadialLineChart/seriesConfig/getColor.d.mts +1 -1
  236. package/RadialLineChart/seriesConfig/getColor.d.ts +1 -1
  237. package/RadialLineChart/seriesConfig/getItemAtPosition.d.mts +1 -1
  238. package/RadialLineChart/seriesConfig/getItemAtPosition.d.ts +1 -1
  239. package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +1 -2
  240. package/RadialLineChart/seriesConfig/index.d.mts +1 -1
  241. package/RadialLineChart/seriesConfig/index.d.ts +1 -1
  242. package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  243. package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  244. package/RadialLineChart/seriesConfig/legend.d.mts +1 -1
  245. package/RadialLineChart/seriesConfig/legend.d.ts +1 -1
  246. package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +1 -1
  247. package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +1 -1
  248. package/RadialLineChart/seriesConfig/tooltip.d.mts +1 -1
  249. package/RadialLineChart/seriesConfig/tooltip.d.ts +1 -1
  250. package/RadialLineChart/useRadialLineChartProps.d.mts +7 -7
  251. package/RadialLineChart/useRadialLineChartProps.d.ts +7 -7
  252. package/RadialLineChart/useRadialLinePlotData.d.mts +1 -1
  253. package/RadialLineChart/useRadialLinePlotData.d.ts +1 -1
  254. package/ScatterChartPremium/ScatterChartPremium.d.mts +6 -6
  255. package/ScatterChartPremium/ScatterChartPremium.d.ts +6 -6
  256. package/ScatterChartPremium/ScatterChartPremium.js +5 -3
  257. package/ScatterChartPremium/ScatterChartPremium.mjs +5 -3
  258. package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
  259. package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
  260. package/ScatterChartPremium/ScatterPlotPremium.d.mts +19 -3
  261. package/ScatterChartPremium/ScatterPlotPremium.d.ts +19 -3
  262. package/ScatterChartPremium/ScatterPlotPremium.js +34 -1
  263. package/ScatterChartPremium/ScatterPlotPremium.mjs +36 -2
  264. package/ScatterChartPremium/index.d.mts +1 -1
  265. package/ScatterChartPremium/index.d.ts +1 -1
  266. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +1 -1
  267. package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +1 -1
  268. package/context/ChartPremiumApi.d.mts +4 -1
  269. package/context/ChartPremiumApi.d.ts +4 -1
  270. package/context/useChartPremiumApiContext.d.mts +1 -1
  271. package/context/useChartPremiumApiContext.d.ts +1 -1
  272. package/hooks/animation/useAnimateRangeBar.d.mts +1 -1
  273. package/hooks/animation/useAnimateRangeBar.d.ts +1 -1
  274. package/hooks/useChartPremiumApiRef.d.mts +4 -4
  275. package/hooks/useChartPremiumApiRef.d.ts +4 -4
  276. package/hooks/useGeoData.d.mts +1 -1
  277. package/hooks/useGeoData.d.ts +1 -1
  278. package/hooks/useGeoData.js +1 -1
  279. package/hooks/useGeoData.mjs +2 -3
  280. package/hooks/useGeoFeatureIndexesByName.mjs +0 -1
  281. package/hooks/useGeoPath.d.mts +1 -1
  282. package/hooks/useGeoPath.d.ts +1 -1
  283. package/hooks/useGeoPath.mjs +0 -1
  284. package/hooks/useMapShapeSeries.d.mts +2 -2
  285. package/hooks/useMapShapeSeries.d.ts +2 -2
  286. package/hooks/useOHLCSeries.d.mts +2 -2
  287. package/hooks/useOHLCSeries.d.ts +2 -2
  288. package/hooks/useRadialLineSeries.d.mts +2 -2
  289. package/hooks/useRadialLineSeries.d.ts +2 -2
  290. package/hooks/useRangeBarSeries.d.mts +2 -2
  291. package/hooks/useRangeBarSeries.d.ts +2 -2
  292. package/index.js +1 -1
  293. package/index.mjs +1 -1
  294. package/internals/plugins/allPlugins.d.mts +2 -2
  295. package/internals/plugins/allPlugins.d.ts +2 -2
  296. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +2 -2
  297. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +2 -2
  298. package/internals/plugins/useGeoProjection/useGeoProjection.js +32 -3
  299. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +32 -3
  300. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +12 -34
  301. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +12 -34
  302. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +8 -129
  303. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +8 -128
  304. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +2 -55
  305. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +2 -55
  306. package/models/seriesType/ohlc.d.mts +2 -2
  307. package/models/seriesType/ohlc.d.ts +2 -2
  308. package/models/seriesType/rangeBar.d.mts +2 -2
  309. package/models/seriesType/rangeBar.d.ts +2 -2
  310. package/moduleAugmentation/rangeBarOnClick.d.mts +1 -1
  311. package/moduleAugmentation/rangeBarOnClick.d.ts +1 -1
  312. package/package.json +9 -6
  313. package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
  314. package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
@@ -70,7 +70,7 @@ const HeatmapPremium = exports.HeatmapPremium = /*#__PURE__*/React.forwardRef(fu
70
70
  }));
71
71
  });
72
72
  if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
73
- process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
73
+ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
74
74
  // ----------------------------- Warning --------------------------------
75
75
  // | These PropTypes are generated from the TypeScript type definitions |
76
76
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -308,11 +308,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
308
308
  color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
309
309
  max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
310
310
  min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
311
- type: _propTypes.default.oneOf(['continuous']).isRequired
311
+ type: _propTypes.default.oneOf(['continuous']).isRequired,
312
+ unknownColor: _propTypes.default.string
312
313
  }), _propTypes.default.shape({
313
314
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
314
315
  thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
315
- type: _propTypes.default.oneOf(['piecewise']).isRequired
316
+ type: _propTypes.default.oneOf(['piecewise']).isRequired,
317
+ unknownColor: _propTypes.default.string
316
318
  }), _propTypes.default.shape({
317
319
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
318
320
  type: _propTypes.default.oneOf(['ordinal']).isRequired,
@@ -63,7 +63,7 @@ const HeatmapPremium = /*#__PURE__*/React.forwardRef(function HeatmapPremium(inP
63
63
  }));
64
64
  });
65
65
  if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
66
- process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
66
+ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
67
67
  // ----------------------------- Warning --------------------------------
68
68
  // | These PropTypes are generated from the TypeScript type definitions |
69
69
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -301,11 +301,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
301
301
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
302
302
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
303
303
  min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
304
- type: PropTypes.oneOf(['continuous']).isRequired
304
+ type: PropTypes.oneOf(['continuous']).isRequired,
305
+ unknownColor: PropTypes.string
305
306
  }), PropTypes.shape({
306
307
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
307
308
  thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
308
- type: PropTypes.oneOf(['piecewise']).isRequired
309
+ type: PropTypes.oneOf(['piecewise']).isRequired,
310
+ unknownColor: PropTypes.string
309
311
  }), PropTypes.shape({
310
312
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
311
313
  type: PropTypes.oneOf(['ordinal']).isRequired,
@@ -1,4 +1,4 @@
1
- import { type UseChartZAxisSignature, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type ConvertSignaturesIntoPlugins, type UseChartBrushSignature, type UseChartKeyboardNavigationSignature, type UseChartItemClickSignature } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature, type UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
1
+ import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins, UseChartBrushSignature, UseChartKeyboardNavigationSignature, UseChartItemClickSignature } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature, UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
3
3
  export type HeatmapPremiumPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'heatmap'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'heatmap'>, UseChartHighlightSignature<'heatmap'>, UseChartProExportSignature, UseChartBrushSignature, UseChartProZoomSignature, UseChartItemClickSignature<'heatmap'>, UseChartKeyboardNavigationSignature];
4
4
  export declare const HEATMAP_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<HeatmapPremiumPluginSignatures>;
@@ -1,4 +1,4 @@
1
- import { type UseChartZAxisSignature, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type ConvertSignaturesIntoPlugins, type UseChartBrushSignature, type UseChartKeyboardNavigationSignature, type UseChartItemClickSignature } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature, type UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
1
+ import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins, UseChartBrushSignature, UseChartKeyboardNavigationSignature, UseChartItemClickSignature } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature, UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
3
3
  export type HeatmapPremiumPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'heatmap'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'heatmap'>, UseChartHighlightSignature<'heatmap'>, UseChartProExportSignature, UseChartBrushSignature, UseChartProZoomSignature, UseChartItemClickSignature<'heatmap'>, UseChartKeyboardNavigationSignature];
4
4
  export declare const HEATMAP_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<HeatmapPremiumPluginSignatures>;
@@ -1,5 +1,5 @@
1
- import { type HeatmapPremiumProps } from "./HeatmapPremium.mjs";
2
- import { type HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.mjs";
1
+ import type { HeatmapPremiumProps } from "./HeatmapPremium.mjs";
2
+ import type { HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.mjs";
3
3
  export type UseHeatmapPremiumProps = HeatmapPremiumProps;
4
4
  export declare function useHeatmapPremiumProps(props: UseHeatmapPremiumProps): {
5
5
  heatmapPlotPremiumProps: HeatmapPlotPremiumProps;
@@ -1,5 +1,5 @@
1
- import { type HeatmapPremiumProps } from "./HeatmapPremium.js";
2
- import { type HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.js";
1
+ import type { HeatmapPremiumProps } from "./HeatmapPremium.js";
2
+ import type { HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.js";
3
3
  export type UseHeatmapPremiumProps = HeatmapPremiumProps;
4
4
  export declare function useHeatmapPremiumProps(props: UseHeatmapPremiumProps): {
5
5
  heatmapPlotPremiumProps: HeatmapPlotPremiumProps;
@@ -1,6 +1,6 @@
1
- import { type ScaleBand } from '@mui/x-charts-vendor/d3-scale';
2
- import { type DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
3
- import { type ChartDrawingArea } from '@mui/x-charts/hooks';
1
+ import type { ScaleBand } from '@mui/x-charts-vendor/d3-scale';
2
+ import type { DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
3
+ import type { ChartDrawingArea } from '@mui/x-charts/hooks';
4
4
  export declare function useHeatmapPlotData(drawingArea: ChartDrawingArea, series: DefaultizedHeatmapSeriesType, xScale: ScaleBand<{
5
5
  toString(): string;
6
6
  }>, yScale: ScaleBand<{
@@ -1,6 +1,6 @@
1
- import { type ScaleBand } from '@mui/x-charts-vendor/d3-scale';
2
- import { type DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
3
- import { type ChartDrawingArea } from '@mui/x-charts/hooks';
1
+ import type { ScaleBand } from '@mui/x-charts-vendor/d3-scale';
2
+ import type { DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
3
+ import type { ChartDrawingArea } from '@mui/x-charts/hooks';
4
4
  export declare function useHeatmapPlotData(drawingArea: ChartDrawingArea, series: DefaultizedHeatmapSeriesType, xScale: ScaleBand<{
5
5
  toString(): string;
6
6
  }>, yScale: ScaleBand<{
@@ -41,7 +41,7 @@ function GeoDataPlot(props) {
41
41
  })
42
42
  });
43
43
  }
44
- process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
44
+ process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
45
45
  // ----------------------------- Warning --------------------------------
46
46
  // | These PropTypes are generated from the TypeScript type definitions |
47
47
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -35,7 +35,7 @@ function GeoDataPlot(props) {
35
35
  })
36
36
  });
37
37
  }
38
- process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
38
+ process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
39
39
  // ----------------------------- Warning --------------------------------
40
40
  // | These PropTypes are generated from the TypeScript type definitions |
41
41
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from '@mui/x-charts/internals';
2
+ import type { SeriesId } from '@mui/x-charts/internals';
3
3
  export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
4
4
  seriesId: SeriesId;
5
5
  dataIndex: number;
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
7
7
  color: string;
8
8
  };
9
9
  declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
10
+ declare namespace MapShape {
11
+ var propTypes: any;
12
+ }
10
13
  export { MapShape };
package/Map/MapShape.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from '@mui/x-charts/internals';
2
+ import type { SeriesId } from '@mui/x-charts/internals';
3
3
  export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
4
4
  seriesId: SeriesId;
5
5
  dataIndex: number;
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
7
7
  color: string;
8
8
  };
9
9
  declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
10
+ declare namespace MapShape {
11
+ var propTypes: any;
12
+ }
10
13
  export { MapShape };
package/Map/MapShape.js CHANGED
@@ -10,6 +10,7 @@ exports.MapShape = MapShape;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _styles = require("@mui/material/styles");
14
15
  var _internals = require("@mui/x-charts/internals");
15
16
  var _hooks = require("../hooks");
@@ -52,4 +53,12 @@ function MapShape(props) {
52
53
  filter: isHighlighted ? 'brightness(120%)' : undefined,
53
54
  opacity: isFaded ? 0.3 : 1
54
55
  }, other, interactionProps));
55
- }
56
+ }
57
+ process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
58
+ // ----------------------------- Warning --------------------------------
59
+ // | These PropTypes are generated from the TypeScript type definitions |
60
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
61
+ // ----------------------------------------------------------------------
62
+ dataIndex: _propTypes.default.number.isRequired,
63
+ seriesId: _propTypes.default.string.isRequired
64
+ } : void 0;
package/Map/MapShape.mjs CHANGED
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["seriesId", "dataIndex", "d", "color", "onClick"];
6
6
  import * as React from 'react';
7
+ import PropTypes from 'prop-types';
7
8
  import { styled } from '@mui/material/styles';
8
9
  import { useInteractionItemProps } from '@mui/x-charts/internals';
9
10
  import { useItemHighlightState } from "../hooks/index.mjs";
@@ -46,4 +47,12 @@ function MapShape(props) {
46
47
  opacity: isFaded ? 0.3 : 1
47
48
  }, other, interactionProps));
48
49
  }
50
+ process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
51
+ // ----------------------------- Warning --------------------------------
52
+ // | These PropTypes are generated from the TypeScript type definitions |
53
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
54
+ // ----------------------------------------------------------------------
55
+ dataIndex: PropTypes.number.isRequired,
56
+ seriesId: PropTypes.string.isRequired
57
+ } : void 0;
49
58
  export { MapShape };
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
18
18
  /**
19
19
  * Renders series mapShape items.
20
20
  */
21
- export declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
21
+ declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
22
+ declare namespace MapShapePlot {
23
+ var propTypes: any;
24
+ }
25
+ export { MapShapePlot };
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
18
18
  /**
19
19
  * Renders series mapShape items.
20
20
  */
21
- export declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
21
+ declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
22
+ declare namespace MapShapePlot {
23
+ var propTypes: any;
24
+ }
25
+ export { MapShapePlot };
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
5
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
6
  Object.defineProperty(exports, "__esModule", {
6
7
  value: true
7
8
  });
8
9
  exports.MapShapePlot = MapShapePlot;
9
10
  var React = _interopRequireWildcard(require("react"));
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
12
  var _hooks = require("@mui/x-charts/hooks");
11
13
  var _useGeoData = require("../hooks/useGeoData");
12
14
  var _useGeoPath = require("../hooks/useGeoPath");
@@ -66,14 +68,15 @@ function MapShapePlot(props) {
66
68
  children: featureIndexes.map(featureIndex => {
67
69
  const feature = geoData.features[featureIndex];
68
70
  const d = path(feature);
69
- if (!d) {
71
+ const color = fill ?? colorGetter(dataIndex);
72
+ if (!d || color === null) {
70
73
  return null;
71
74
  }
72
75
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MapShape.MapShape, {
73
76
  seriesId: id,
74
77
  dataIndex: dataIndex,
75
78
  d: d,
76
- color: fill ?? colorGetter(dataIndex),
79
+ color: color,
77
80
  stroke: stroke,
78
81
  strokeWidth: strokeWidth
79
82
  }, featureIndex);
@@ -83,4 +86,25 @@ function MapShapePlot(props) {
83
86
  }, id);
84
87
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FocusedMapShape.FocusedMapShape, {})]
85
88
  });
86
- }
89
+ }
90
+ process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
91
+ // ----------------------------- Warning --------------------------------
92
+ // | These PropTypes are generated from the TypeScript type definitions |
93
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
94
+ // ----------------------------------------------------------------------
95
+ className: _propTypes.default.string,
96
+ /**
97
+ * Fill color applied to every feature path. Overrides item and series colors.
98
+ */
99
+ fill: _propTypes.default.string,
100
+ /**
101
+ * Stroke color applied to every feature path.
102
+ * @default 'none'
103
+ */
104
+ stroke: _propTypes.default.string,
105
+ /**
106
+ * Stroke width applied to every feature path.
107
+ * @default 1
108
+ */
109
+ strokeWidth: _propTypes.default.number
110
+ } : void 0;
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import * as React from 'react';
4
+ import PropTypes from 'prop-types';
4
5
  import { useZAxes } from '@mui/x-charts/hooks';
5
6
  import { useGeoData } from "../hooks/useGeoData.mjs";
6
7
  import { useGeoPath } from "../hooks/useGeoPath.mjs";
@@ -13,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
14
  /**
14
15
  * Renders series mapShape items.
15
16
  */
16
- export function MapShapePlot(props) {
17
+ function MapShapePlot(props) {
17
18
  const {
18
19
  className,
19
20
  fill,
@@ -60,14 +61,15 @@ export function MapShapePlot(props) {
60
61
  children: featureIndexes.map(featureIndex => {
61
62
  const feature = geoData.features[featureIndex];
62
63
  const d = path(feature);
63
- if (!d) {
64
+ const color = fill ?? colorGetter(dataIndex);
65
+ if (!d || color === null) {
64
66
  return null;
65
67
  }
66
68
  return /*#__PURE__*/_jsx(MapShape, {
67
69
  seriesId: id,
68
70
  dataIndex: dataIndex,
69
71
  d: d,
70
- color: fill ?? colorGetter(dataIndex),
72
+ color: color,
71
73
  stroke: stroke,
72
74
  strokeWidth: strokeWidth
73
75
  }, featureIndex);
@@ -77,4 +79,26 @@ export function MapShapePlot(props) {
77
79
  }, id);
78
80
  }), /*#__PURE__*/_jsx(FocusedMapShape, {})]
79
81
  });
80
- }
82
+ }
83
+ process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
84
+ // ----------------------------- Warning --------------------------------
85
+ // | These PropTypes are generated from the TypeScript type definitions |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
+ // ----------------------------------------------------------------------
88
+ className: PropTypes.string,
89
+ /**
90
+ * Fill color applied to every feature path. Overrides item and series colors.
91
+ */
92
+ fill: PropTypes.string,
93
+ /**
94
+ * Stroke color applied to every feature path.
95
+ * @default 'none'
96
+ */
97
+ stroke: PropTypes.string,
98
+ /**
99
+ * Stroke width applied to every feature path.
100
+ * @default 1
101
+ */
102
+ strokeWidth: PropTypes.number
103
+ } : void 0;
104
+ export { MapShapePlot };
package/Map/index.d.mts CHANGED
@@ -1,7 +1,9 @@
1
+ import type { useGeoProjectionTypes } from '@mui/x-charts/internals';
1
2
  export * from "./GeoDataPlot.mjs";
2
3
  export * from "./MapShapePlot.mjs";
3
4
  export * from "./MapShape.mjs";
4
5
  export * from "./FocusedMapShape.mjs";
5
6
  export * from "./Graticule.mjs";
6
- export type { D3NamedProjection, GeoProjectionInput } from "../internals/plugins/useGeoProjection/useGeoProjection.types.mjs";
7
+ export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
8
+ export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
7
9
  export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
package/Map/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
+ import type { useGeoProjectionTypes } from '@mui/x-charts/internals';
1
2
  export * from "./GeoDataPlot.js";
2
3
  export * from "./MapShapePlot.js";
3
4
  export * from "./MapShape.js";
4
5
  export * from "./FocusedMapShape.js";
5
6
  export * from "./Graticule.js";
6
- export type { D3NamedProjection, GeoProjectionInput } from "../internals/plugins/useGeoProjection/useGeoProjection.types.js";
7
+ export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
8
+ export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
7
9
  export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
@@ -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<'mapShape'>;
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<'mapShape'>;
3
3
  export default descriptionGetter;
@@ -12,17 +12,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
12
12
  return series.color;
13
13
  }
14
14
  const item = series.data[dataIndex];
15
- if (item === undefined) {
16
- return series.color;
15
+ if (item.color !== undefined) {
16
+ return item.color;
17
17
  }
18
18
  const scaleInput = item.colorValue ?? item.value;
19
- if (scaleInput != null) {
20
- const color = colorScale(scaleInput);
21
- if (color !== null) {
22
- return color;
23
- }
24
- }
25
- return item.color ?? series.color;
19
+ const color = colorScale(scaleInput);
20
+ return color;
26
21
  };
27
22
  }
28
23
  return dataIndex => {
@@ -6,17 +6,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
6
6
  return series.color;
7
7
  }
8
8
  const item = series.data[dataIndex];
9
- if (item === undefined) {
10
- return series.color;
9
+ if (item.color !== undefined) {
10
+ return item.color;
11
11
  }
12
12
  const scaleInput = item.colorValue ?? item.value;
13
- if (scaleInput != null) {
14
- const color = colorScale(scaleInput);
15
- if (color !== null) {
16
- return color;
17
- }
18
- }
19
- return item.color ?? series.color;
13
+ const color = colorScale(scaleInput);
14
+ return color;
20
15
  };
21
16
  }
22
17
  return dataIndex => {
@@ -1,2 +1,2 @@
1
- import { type ChartSeriesTypeConfig } from '@mui/x-charts/internals';
1
+ import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
2
  export declare const mapShapeSeriesConfig: ChartSeriesTypeConfig<'mapShape'>;
@@ -1,2 +1,2 @@
1
- import { type ChartSeriesTypeConfig } from '@mui/x-charts/internals';
1
+ import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
2
  export declare const mapShapeSeriesConfig: ChartSeriesTypeConfig<'mapShape'>;
@@ -13,11 +13,13 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
13
13
  var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
14
14
  var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
15
15
  var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
16
+ var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
16
17
  const mapShapeSeriesConfig = exports.mapShapeSeriesConfig = {
17
18
  seriesProcessor: _seriesProcessor.default,
18
19
  colorProcessor: _getColor.default,
19
20
  legendGetter: _legend.default,
20
21
  tooltipGetter: _tooltip.default,
22
+ tooltipItemPositionGetter: _tooltipPosition.default,
21
23
  getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
22
24
  keyboardFocusHandler: _keyboardFocusHandler.default,
23
25
  identifierSerializer: _internals.identifierSerializerSeriesIdDataIndex,
@@ -6,11 +6,13 @@ import tooltipGetter from "./tooltip.mjs";
6
6
  import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
7
7
  import descriptionGetter from "./descriptionGetter.mjs";
8
8
  import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
9
+ import tooltipItemPositionGetter from "./tooltipPosition.mjs";
9
10
  export const mapShapeSeriesConfig = {
10
11
  seriesProcessor,
11
12
  colorProcessor: getColor,
12
13
  legendGetter,
13
14
  tooltipGetter,
15
+ tooltipItemPositionGetter,
14
16
  getSeriesWithDefaultValues,
15
17
  keyboardFocusHandler,
16
18
  identifierSerializer: identifierSerializerSeriesIdDataIndex,
@@ -1,4 +1,4 @@
1
- import { type KeyboardFocusHandler } from '@mui/x-charts/internals';
1
+ import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Move the focus across the shapes of the map series.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type KeyboardFocusHandler } from '@mui/x-charts/internals';
1
+ import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Move the focus across the shapes of the map series.
4
4
  *
@@ -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;
@@ -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;
@@ -17,13 +17,17 @@ const tooltipGetter = ({
17
17
  if (point == null) {
18
18
  return null;
19
19
  }
20
+ const color = getColor(identifier.dataIndex);
21
+ if (color === null) {
22
+ return null;
23
+ }
20
24
  const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
21
25
  const formattedValue = series.valueFormatter(point, {
22
26
  dataIndex: identifier.dataIndex
23
27
  });
24
28
  return {
25
29
  identifier,
26
- color: getColor(identifier.dataIndex),
30
+ color,
27
31
  label,
28
32
  value: point,
29
33
  formattedValue,
@@ -11,13 +11,17 @@ const tooltipGetter = ({
11
11
  if (point == null) {
12
12
  return null;
13
13
  }
14
+ const color = getColor(identifier.dataIndex);
15
+ if (color === null) {
16
+ return null;
17
+ }
14
18
  const label = getLabel(point.label ?? point.name, 'tooltip');
15
19
  const formattedValue = series.valueFormatter(point, {
16
20
  dataIndex: identifier.dataIndex
17
21
  });
18
22
  return {
19
23
  identifier,
20
- color: getColor(identifier.dataIndex),
24
+ color,
21
25
  label,
22
26
  value: point,
23
27
  formattedValue,
@@ -0,0 +1,3 @@
1
+ import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
+ declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
+ export default tooltipItemPositionGetter;
@@ -0,0 +1,3 @@
1
+ import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
+ declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
+ export default tooltipItemPositionGetter;