@mui/x-charts-premium 9.5.0 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/BarChartPremium/BarChartPremium.js +5 -3
  2. package/BarChartPremium/BarChartPremium.mjs +5 -3
  3. package/BarChartPremium/BarPlotPremium.js +1 -1
  4. package/BarChartPremium/BarPlotPremium.mjs +1 -1
  5. package/BarChartPremium/RangeBar/RangeBarPlot.js +2 -2
  6. package/BarChartPremium/RangeBar/RangeBarPlot.mjs +2 -2
  7. package/BarChartPremium/RangeBar/seriesConfig/getColor.js +2 -5
  8. package/BarChartPremium/RangeBar/seriesConfig/getColor.mjs +2 -5
  9. package/CHANGELOG.md +151 -0
  10. package/CandlestickChart/CandlestickChart.js +1 -1
  11. package/CandlestickChart/CandlestickChart.mjs +1 -1
  12. package/CandlestickChart/seriesConfig/getColor.js +2 -5
  13. package/CandlestickChart/seriesConfig/getColor.mjs +2 -5
  14. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +7 -3
  15. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +7 -3
  16. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +11 -3
  17. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +11 -3
  18. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +1 -1
  19. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +1 -1
  20. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +11 -3
  21. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +11 -3
  22. package/ChartsRenderer/ChartsRenderer.js +1 -1
  23. package/ChartsRenderer/ChartsRenderer.mjs +1 -1
  24. package/HeatmapPremium/HeatmapPremium.js +5 -3
  25. package/HeatmapPremium/HeatmapPremium.mjs +5 -3
  26. package/Map/GeoDataPlot.js +1 -1
  27. package/Map/GeoDataPlot.mjs +1 -1
  28. package/Map/MapShape.d.mts +3 -0
  29. package/Map/MapShape.d.ts +3 -0
  30. package/Map/MapShape.js +10 -1
  31. package/Map/MapShape.mjs +9 -0
  32. package/Map/MapShapePlot.d.mts +5 -1
  33. package/Map/MapShapePlot.d.ts +5 -1
  34. package/Map/MapShapePlot.js +27 -3
  35. package/Map/MapShapePlot.mjs +28 -4
  36. package/Map/index.d.mts +3 -1
  37. package/Map/index.d.ts +3 -1
  38. package/Map/seriesConfig/getColor.js +4 -9
  39. package/Map/seriesConfig/getColor.mjs +4 -9
  40. package/Map/seriesConfig/index.js +2 -0
  41. package/Map/seriesConfig/index.mjs +2 -0
  42. package/Map/seriesConfig/tooltip.js +5 -1
  43. package/Map/seriesConfig/tooltip.mjs +5 -1
  44. package/Map/seriesConfig/tooltipPosition.d.mts +3 -0
  45. package/Map/seriesConfig/tooltipPosition.d.ts +3 -0
  46. package/Map/seriesConfig/tooltipPosition.js +64 -0
  47. package/Map/seriesConfig/tooltipPosition.mjs +58 -0
  48. package/RadialBarChart/RadialBarChart.js +1 -1
  49. package/RadialBarChart/RadialBarChart.mjs +1 -1
  50. package/RadialBarChart/RadialBarPlot.js +1 -1
  51. package/RadialBarChart/RadialBarPlot.mjs +1 -1
  52. package/RadialLineChart/RadialAreaPlot.d.mts +5 -1
  53. package/RadialLineChart/RadialAreaPlot.d.ts +5 -1
  54. package/RadialLineChart/RadialAreaPlot.js +10 -1
  55. package/RadialLineChart/RadialAreaPlot.mjs +11 -2
  56. package/RadialLineChart/RadialLineChart.js +1 -1
  57. package/RadialLineChart/RadialLineChart.mjs +1 -1
  58. package/RadialLineChart/RadialLineHighlightElement.d.mts +3 -0
  59. package/RadialLineChart/RadialLineHighlightElement.d.ts +3 -0
  60. package/RadialLineChart/RadialLineHighlightElement.js +10 -1
  61. package/RadialLineChart/RadialLineHighlightElement.mjs +9 -0
  62. package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -0
  63. package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -0
  64. package/RadialLineChart/RadialLineHighlightPlot.js +18 -1
  65. package/RadialLineChart/RadialLineHighlightPlot.mjs +17 -0
  66. package/RadialLineChart/RadialLinePlot.d.mts +5 -1
  67. package/RadialLineChart/RadialLinePlot.d.ts +5 -1
  68. package/RadialLineChart/RadialLinePlot.js +10 -1
  69. package/RadialLineChart/RadialLinePlot.mjs +11 -2
  70. package/RadialLineChart/RadialMarkPlot.d.mts +5 -1
  71. package/RadialLineChart/RadialMarkPlot.d.ts +5 -1
  72. package/RadialLineChart/RadialMarkPlot.js +10 -1
  73. package/RadialLineChart/RadialMarkPlot.mjs +11 -2
  74. package/ScatterChartPremium/ScatterChartPremium.js +5 -3
  75. package/ScatterChartPremium/ScatterChartPremium.mjs +5 -3
  76. package/ScatterChartPremium/ScatterPlotPremium.d.mts +19 -3
  77. package/ScatterChartPremium/ScatterPlotPremium.d.ts +19 -3
  78. package/ScatterChartPremium/ScatterPlotPremium.js +34 -1
  79. package/ScatterChartPremium/ScatterPlotPremium.mjs +36 -2
  80. package/ScatterChartPremium/index.d.mts +1 -1
  81. package/ScatterChartPremium/index.d.ts +1 -1
  82. package/context/ChartPremiumApi.d.mts +4 -1
  83. package/context/ChartPremiumApi.d.ts +4 -1
  84. package/hooks/useGeoData.js +1 -1
  85. package/hooks/useGeoData.mjs +2 -2
  86. package/index.js +1 -1
  87. package/index.mjs +1 -1
  88. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +1 -1
  89. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +1 -1
  90. package/internals/plugins/useGeoProjection/useGeoProjection.js +32 -3
  91. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +32 -3
  92. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +12 -34
  93. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +12 -34
  94. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +8 -129
  95. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +8 -128
  96. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +2 -55
  97. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +2 -55
  98. package/package.json +9 -6
@@ -1,55 +1,2 @@
1
- import { type ChartPluginSignature } from '@mui/x-charts/internals';
2
- import { type GeoProjection, type ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
3
- export type D3NamedProjection = 'azimuthalEqualArea' | 'azimuthalEquidistant' | 'gnomonic' | 'orthographic' | 'stereographic' | 'conicConformal' | 'conicEqualArea' | 'conicEquidistant' | 'albers' | 'albersUsa' | 'equirectangular' | 'mercator' | 'transverseMercator' | 'equalEarth' | 'naturalEarth1';
4
- /**
5
- * A d3-geo projection accepted by `useGeoProjection`.
6
- *
7
- * Either a built-in projection name (e.g. `'mercator'`, `'naturalEarth1'`)
8
- * or a `GeoProjection` instance returned by a d3-geo factory.
9
- */
10
- export type GeoProjectionInput = D3NamedProjection | GeoProjection;
11
- export interface UseGeoProjectionParameters {
12
- /**
13
- * The GeoJSON `FeatureCollection` whose features will be rendered on the map.
14
- */
15
- geoData?: ExtendedFeatureCollection;
16
- /**
17
- * The d3-geo projection used to map geographic coordinates to SVG coordinates.
18
- * Accepts a d3-geo projection name (e.g. `'mercator'`, `'naturalEarth1'`)
19
- * or a custom `GeoProjection` instance.
20
- */
21
- projection?: GeoProjectionInput;
22
- /**
23
- * The center of the projection, specified as a `[longitude, latitude]` pair in degrees.
24
- */
25
- translate?: [number, number];
26
- /**
27
- * The rotation of the projection, specified as a `[longitude, latitude]` pair in degrees.
28
- */
29
- rotate?: [number, number];
30
- /**
31
- * The scale of the projection.
32
- * Id not provided the scale will default to fit the entire geoData in the drawing area.
33
- */
34
- scale?: number;
35
- }
36
- export type UseGeoProjectionDefaultizedParameters = UseGeoProjectionParameters;
37
- export interface UseGeoProjectionState {
38
- geoProjection: {
39
- geoData: ExtendedFeatureCollection | null;
40
- projection: GeoProjectionInput | null;
41
- translate: [number, number] | null;
42
- rotate: [number, number] | null;
43
- scale: number | null;
44
- /**
45
- * The two standard parallels used by conic projections, if applicable.
46
- * Used for projection 'conicConformal', 'conicEqualArea', 'conicEquidistant'.
47
- */
48
- parallels?: [number, number] | null;
49
- };
50
- }
51
- export type UseGeoProjectionSignature = ChartPluginSignature<{
52
- params: UseGeoProjectionParameters;
53
- defaultizedParams: UseGeoProjectionDefaultizedParameters;
54
- state: UseGeoProjectionState;
55
- }>;
1
+ import { type useGeoProjectionTypes } from '@mui/x-charts/internals';
2
+ export type UseGeoProjectionSignature = useGeoProjectionTypes.UseGeoProjectionSignature;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-premium",
3
- "version": "9.5.0",
3
+ "version": "9.6.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Premium plan edition of the MUI X Charts components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -28,14 +28,14 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.29.7",
31
- "@mui/utils": "9.0.1",
31
+ "@mui/utils": "^9.0.1",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
+ "@mui/x-charts": "^9.6.0",
35
+ "@mui/x-license": "^9.6.0",
36
+ "@mui/x-internals": "^9.6.0",
34
37
  "@mui/x-charts-vendor": "^9.4.0",
35
- "@mui/x-charts-pro": "^9.5.0",
36
- "@mui/x-license": "^9.4.0",
37
- "@mui/x-internals": "^9.1.0",
38
- "@mui/x-charts": "^9.5.0"
38
+ "@mui/x-charts-pro": "^9.6.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@emotion/react": "^11.9.0",
@@ -1071,6 +1071,9 @@
1071
1071
  }
1072
1072
  }
1073
1073
  },
1074
+ "imports": {
1075
+ "#formatErrorMessage": "@mui/x-internals/formatErrorMessage"
1076
+ },
1074
1077
  "main": "./index.js",
1075
1078
  "types": "./index.d.ts"
1076
1079
  }