@mui/x-charts-pro 8.20.0 → 8.21.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 (60) hide show
  1. package/BarChartPro/BarChartPro.js +18 -0
  2. package/CHANGELOG.md +112 -0
  3. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  4. package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +3 -3
  5. package/Heatmap/Heatmap.js +2 -0
  6. package/LineChartPro/LineChartPro.js +18 -0
  7. package/SankeyChart/SankeyPlot.js +12 -16
  8. package/SankeyChart/calculateSankeyLayout.d.ts +2 -3
  9. package/SankeyChart/calculateSankeyLayout.js +3 -2
  10. package/SankeyChart/d3Sankey/align.d.ts +33 -0
  11. package/SankeyChart/d3Sankey/align.js +63 -0
  12. package/SankeyChart/d3Sankey/index.d.ts +4 -0
  13. package/SankeyChart/d3Sankey/index.js +49 -0
  14. package/SankeyChart/d3Sankey/sankey.d.ts +42 -0
  15. package/SankeyChart/d3Sankey/sankey.js +454 -0
  16. package/SankeyChart/d3Sankey/sankey.types.d.ts +344 -0
  17. package/SankeyChart/d3Sankey/sankey.types.js +5 -0
  18. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +22 -0
  19. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.js +37 -0
  20. package/SankeyChart/sankey.types.d.ts +1 -1
  21. package/SankeyChart/seriesConfig/index.js +15 -0
  22. package/SankeyChart/seriesConfig/tooltipPosition.d.ts +3 -0
  23. package/SankeyChart/seriesConfig/tooltipPosition.js +96 -0
  24. package/SankeyChart/utils.d.ts +2 -2
  25. package/SankeyChart/utils.js +1 -1
  26. package/ScatterChartPro/ScatterChartPro.js +18 -0
  27. package/esm/BarChartPro/BarChartPro.js +18 -0
  28. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  29. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +3 -3
  30. package/esm/Heatmap/Heatmap.js +2 -0
  31. package/esm/LineChartPro/LineChartPro.js +18 -0
  32. package/esm/SankeyChart/SankeyPlot.js +14 -18
  33. package/esm/SankeyChart/calculateSankeyLayout.d.ts +2 -3
  34. package/esm/SankeyChart/calculateSankeyLayout.js +3 -2
  35. package/esm/SankeyChart/d3Sankey/align.d.ts +33 -0
  36. package/esm/SankeyChart/d3Sankey/align.js +54 -0
  37. package/esm/SankeyChart/d3Sankey/index.d.ts +4 -0
  38. package/esm/SankeyChart/d3Sankey/index.js +4 -0
  39. package/esm/SankeyChart/d3Sankey/sankey.d.ts +42 -0
  40. package/esm/SankeyChart/d3Sankey/sankey.js +448 -0
  41. package/esm/SankeyChart/d3Sankey/sankey.types.d.ts +344 -0
  42. package/esm/SankeyChart/d3Sankey/sankey.types.js +1 -0
  43. package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +22 -0
  44. package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.js +31 -0
  45. package/esm/SankeyChart/sankey.types.d.ts +1 -1
  46. package/esm/SankeyChart/seriesConfig/index.js +14 -0
  47. package/esm/SankeyChart/seriesConfig/tooltipPosition.d.ts +3 -0
  48. package/esm/SankeyChart/seriesConfig/tooltipPosition.js +90 -0
  49. package/esm/SankeyChart/utils.d.ts +2 -2
  50. package/esm/SankeyChart/utils.js +1 -1
  51. package/esm/ScatterChartPro/ScatterChartPro.js +18 -0
  52. package/esm/hooks/useSankeySeries.d.ts +9 -2
  53. package/esm/hooks/useSankeySeries.js +15 -1
  54. package/esm/index.js +1 -1
  55. package/esm/typeOverloads/modules.d.ts +6 -1
  56. package/hooks/useSankeySeries.d.ts +9 -2
  57. package/hooks/useSankeySeries.js +15 -0
  58. package/index.js +1 -1
  59. package/package.json +5 -5
  60. package/typeOverloads/modules.d.ts +6 -1
@@ -325,6 +325,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
325
325
  tickNumber: PropTypes.number,
326
326
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
327
327
  tickSize: PropTypes.number,
328
+ tickSpacing: PropTypes.number,
328
329
  valueFormatter: PropTypes.func,
329
330
  zoom: PropTypes.oneOfType([PropTypes.shape({
330
331
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -392,6 +393,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
392
393
  tickNumber: PropTypes.number,
393
394
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
394
395
  tickSize: PropTypes.number,
396
+ tickSpacing: PropTypes.number,
395
397
  valueFormatter: PropTypes.func,
396
398
  zoom: PropTypes.oneOfType([PropTypes.shape({
397
399
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -451,6 +453,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
451
453
  tickNumber: PropTypes.number,
452
454
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
453
455
  tickSize: PropTypes.number,
456
+ tickSpacing: PropTypes.number,
454
457
  valueFormatter: PropTypes.func,
455
458
  zoom: PropTypes.oneOfType([PropTypes.shape({
456
459
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -511,6 +514,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
511
514
  tickNumber: PropTypes.number,
512
515
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
513
516
  tickSize: PropTypes.number,
517
+ tickSpacing: PropTypes.number,
514
518
  valueFormatter: PropTypes.func,
515
519
  zoom: PropTypes.oneOfType([PropTypes.shape({
516
520
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -570,6 +574,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
570
574
  tickNumber: PropTypes.number,
571
575
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
572
576
  tickSize: PropTypes.number,
577
+ tickSpacing: PropTypes.number,
573
578
  valueFormatter: PropTypes.func,
574
579
  zoom: PropTypes.oneOfType([PropTypes.shape({
575
580
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -629,6 +634,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
629
634
  tickNumber: PropTypes.number,
630
635
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
631
636
  tickSize: PropTypes.number,
637
+ tickSpacing: PropTypes.number,
632
638
  valueFormatter: PropTypes.func,
633
639
  zoom: PropTypes.oneOfType([PropTypes.shape({
634
640
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -692,6 +698,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
692
698
  tickNumber: PropTypes.number,
693
699
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
694
700
  tickSize: PropTypes.number,
701
+ tickSpacing: PropTypes.number,
695
702
  valueFormatter: PropTypes.func,
696
703
  zoom: PropTypes.oneOfType([PropTypes.shape({
697
704
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -755,6 +762,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
755
762
  tickNumber: PropTypes.number,
756
763
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
757
764
  tickSize: PropTypes.number,
765
+ tickSpacing: PropTypes.number,
758
766
  valueFormatter: PropTypes.func,
759
767
  zoom: PropTypes.oneOfType([PropTypes.shape({
760
768
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -814,6 +822,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
814
822
  tickNumber: PropTypes.number,
815
823
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
816
824
  tickSize: PropTypes.number,
825
+ tickSpacing: PropTypes.number,
817
826
  valueFormatter: PropTypes.func,
818
827
  zoom: PropTypes.oneOfType([PropTypes.shape({
819
828
  filterMode: PropTypes.oneOf(['discard', 'keep']),
@@ -887,6 +896,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
887
896
  tickNumber: PropTypes.number,
888
897
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
889
898
  tickSize: PropTypes.number,
899
+ tickSpacing: PropTypes.number,
890
900
  valueFormatter: PropTypes.func,
891
901
  width: PropTypes.number,
892
902
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -953,6 +963,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
953
963
  tickNumber: PropTypes.number,
954
964
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
955
965
  tickSize: PropTypes.number,
966
+ tickSpacing: PropTypes.number,
956
967
  valueFormatter: PropTypes.func,
957
968
  width: PropTypes.number,
958
969
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1011,6 +1022,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1011
1022
  tickNumber: PropTypes.number,
1012
1023
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1013
1024
  tickSize: PropTypes.number,
1025
+ tickSpacing: PropTypes.number,
1014
1026
  valueFormatter: PropTypes.func,
1015
1027
  width: PropTypes.number,
1016
1028
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1070,6 +1082,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1070
1082
  tickNumber: PropTypes.number,
1071
1083
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1072
1084
  tickSize: PropTypes.number,
1085
+ tickSpacing: PropTypes.number,
1073
1086
  valueFormatter: PropTypes.func,
1074
1087
  width: PropTypes.number,
1075
1088
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1128,6 +1141,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1128
1141
  tickNumber: PropTypes.number,
1129
1142
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1130
1143
  tickSize: PropTypes.number,
1144
+ tickSpacing: PropTypes.number,
1131
1145
  valueFormatter: PropTypes.func,
1132
1146
  width: PropTypes.number,
1133
1147
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1186,6 +1200,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1186
1200
  tickNumber: PropTypes.number,
1187
1201
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1188
1202
  tickSize: PropTypes.number,
1203
+ tickSpacing: PropTypes.number,
1189
1204
  valueFormatter: PropTypes.func,
1190
1205
  width: PropTypes.number,
1191
1206
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1248,6 +1263,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1248
1263
  tickNumber: PropTypes.number,
1249
1264
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1250
1265
  tickSize: PropTypes.number,
1266
+ tickSpacing: PropTypes.number,
1251
1267
  valueFormatter: PropTypes.func,
1252
1268
  width: PropTypes.number,
1253
1269
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1310,6 +1326,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1310
1326
  tickNumber: PropTypes.number,
1311
1327
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1312
1328
  tickSize: PropTypes.number,
1329
+ tickSpacing: PropTypes.number,
1313
1330
  valueFormatter: PropTypes.func,
1314
1331
  width: PropTypes.number,
1315
1332
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1368,6 +1385,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1368
1385
  tickNumber: PropTypes.number,
1369
1386
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1370
1387
  tickSize: PropTypes.number,
1388
+ tickSpacing: PropTypes.number,
1371
1389
  valueFormatter: PropTypes.func,
1372
1390
  width: PropTypes.number,
1373
1391
  zoom: PropTypes.oneOfType([PropTypes.shape({
@@ -1,6 +1,8 @@
1
- import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
1
+ import { ProcessedSeries, SeriesId, ChartSeriesDefaultized, ChartSeriesLayout } from '@mui/x-charts/internals';
2
+ import { SankeyLayout } from "../SankeyChart/index.js";
2
3
  export type UseSankeySeriesReturnValue = ChartSeriesDefaultized<'sankey'>;
3
4
  export type UseSankeySeriesContextReturnValue = ProcessedSeries['sankey'];
5
+ export type UseSankeySeriesLayoutReturnValue = ChartSeriesLayout<'sankey'>;
4
6
  /**
5
7
  * Get access to the internal state of sankey series.
6
8
  *
@@ -30,4 +32,9 @@ export declare function useSankeySeries(seriesIds: SeriesId[]): UseSankeySeriesR
30
32
  * - seriesOrder: the array of series ids.
31
33
  * @returns the sankey series
32
34
  */
33
- export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue;
35
+ export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue;
36
+ /**
37
+ * Get access to the sankey layout.
38
+ * @returns {SankeyLayout | undefined} the sankey layout
39
+ */
40
+ export declare function useSankeyLayout(): SankeyLayout | undefined;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { useSeriesOfType, useAllSeriesOfType } from '@mui/x-charts/internals';
3
+ import { useSeriesOfType, useAllSeriesOfType, useSelector, useStore, selectorChartSeriesLayout } from '@mui/x-charts/internals';
4
4
 
5
5
  /**
6
6
  * Get access to the internal state of sankey series.
@@ -37,4 +37,18 @@ export function useSankeySeries(seriesIds) {
37
37
  */
38
38
  export function useSankeySeriesContext() {
39
39
  return useAllSeriesOfType('sankey');
40
+ }
41
+ /**
42
+ * Get access to the sankey layout.
43
+ * @returns {SankeyLayout | undefined} the sankey layout
44
+ */
45
+ export function useSankeyLayout() {
46
+ const store = useStore();
47
+ const seriesContext = useSankeySeriesContext();
48
+ const seriesId = seriesContext?.seriesOrder?.[0];
49
+ const layout = useSelector(store, selectorChartSeriesLayout);
50
+ if (!seriesId) {
51
+ return undefined;
52
+ }
53
+ return layout?.sankey?.[seriesId]?.sankeyLayout;
40
54
  }
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.20.0
2
+ * @mui/x-charts-pro v8.21.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -2,12 +2,13 @@ import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
2
  import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
3
3
  import { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
4
4
  import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
5
- import { SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
5
+ import { SankeyLayout, SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
6
6
  declare module '@mui/x-charts/internals' {
7
7
  interface ChartsSeriesConfig {
8
8
  heatmap: {
9
9
  seriesInput: DefaultizedProps<HeatmapSeriesType, 'id'>;
10
10
  series: DefaultizedHeatmapSeriesType;
11
+ seriesLayout: {};
11
12
  seriesProp: HeatmapSeriesType;
12
13
  itemIdentifier: HeatmapItemIdentifier;
13
14
  itemIdentifierWithData: HeatmapItemIdentifier;
@@ -19,6 +20,7 @@ declare module '@mui/x-charts/internals' {
19
20
  data: MakeRequired<FunnelValueType, 'color'>[];
20
21
  };
21
22
  series: DefaultizedFunnelSeriesType;
23
+ seriesLayout: {};
22
24
  seriesProp: FunnelSeriesType;
23
25
  itemIdentifier: FunnelItemIdentifier;
24
26
  itemIdentifierWithData: FunnelItemIdentifier;
@@ -28,6 +30,9 @@ declare module '@mui/x-charts/internals' {
28
30
  sankey: {
29
31
  seriesInput: DefaultizedSankeySeriesType;
30
32
  series: DefaultizedSankeySeriesType;
33
+ seriesLayout: {
34
+ sankeyLayout: SankeyLayout;
35
+ };
31
36
  seriesProp: SankeySeriesType;
32
37
  itemIdentifier: SankeyItemIdentifier;
33
38
  itemIdentifierWithData: SankeyItemIdentifierWithData;
@@ -1,6 +1,8 @@
1
- import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
1
+ import { ProcessedSeries, SeriesId, ChartSeriesDefaultized, ChartSeriesLayout } from '@mui/x-charts/internals';
2
+ import { SankeyLayout } from "../SankeyChart/index.js";
2
3
  export type UseSankeySeriesReturnValue = ChartSeriesDefaultized<'sankey'>;
3
4
  export type UseSankeySeriesContextReturnValue = ProcessedSeries['sankey'];
5
+ export type UseSankeySeriesLayoutReturnValue = ChartSeriesLayout<'sankey'>;
4
6
  /**
5
7
  * Get access to the internal state of sankey series.
6
8
  *
@@ -30,4 +32,9 @@ export declare function useSankeySeries(seriesIds: SeriesId[]): UseSankeySeriesR
30
32
  * - seriesOrder: the array of series ids.
31
33
  * @returns the sankey series
32
34
  */
33
- export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue;
35
+ export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue;
36
+ /**
37
+ * Get access to the sankey layout.
38
+ * @returns {SankeyLayout | undefined} the sankey layout
39
+ */
40
+ export declare function useSankeyLayout(): SankeyLayout | undefined;
@@ -4,6 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ exports.useSankeyLayout = useSankeyLayout;
7
8
  exports.useSankeySeries = useSankeySeries;
8
9
  exports.useSankeySeriesContext = useSankeySeriesContext;
9
10
  var _internals = require("@mui/x-charts/internals");
@@ -42,4 +43,18 @@ function useSankeySeries(seriesIds) {
42
43
  */
43
44
  function useSankeySeriesContext() {
44
45
  return (0, _internals.useAllSeriesOfType)('sankey');
46
+ }
47
+ /**
48
+ * Get access to the sankey layout.
49
+ * @returns {SankeyLayout | undefined} the sankey layout
50
+ */
51
+ function useSankeyLayout() {
52
+ const store = (0, _internals.useStore)();
53
+ const seriesContext = useSankeySeriesContext();
54
+ const seriesId = seriesContext?.seriesOrder?.[0];
55
+ const layout = (0, _internals.useSelector)(store, _internals.selectorChartSeriesLayout);
56
+ if (!seriesId) {
57
+ return undefined;
58
+ }
59
+ return layout?.sankey?.[seriesId]?.sankeyLayout;
45
60
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.20.0
2
+ * @mui/x-charts-pro v8.21.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "8.20.0",
3
+ "version": "8.21.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Charts components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -31,11 +31,11 @@
31
31
  "@mui/utils": "^7.3.5",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
- "@mui/x-charts": "8.20.0",
35
- "@mui/x-charts-vendor": "8.19.0",
36
- "@mui/x-internals": "8.19.0",
37
34
  "@mui/x-internal-gestures": "0.3.6",
38
- "@mui/x-license": "8.19.0"
35
+ "@mui/x-charts-vendor": "8.21.0",
36
+ "@mui/x-license": "8.21.0",
37
+ "@mui/x-charts": "8.21.0",
38
+ "@mui/x-internals": "8.21.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@emotion/react": "^11.9.0",
@@ -2,12 +2,13 @@ import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
2
  import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
3
3
  import { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
4
4
  import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
5
- import { SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
5
+ import { SankeyLayout, SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
6
6
  declare module '@mui/x-charts/internals' {
7
7
  interface ChartsSeriesConfig {
8
8
  heatmap: {
9
9
  seriesInput: DefaultizedProps<HeatmapSeriesType, 'id'>;
10
10
  series: DefaultizedHeatmapSeriesType;
11
+ seriesLayout: {};
11
12
  seriesProp: HeatmapSeriesType;
12
13
  itemIdentifier: HeatmapItemIdentifier;
13
14
  itemIdentifierWithData: HeatmapItemIdentifier;
@@ -19,6 +20,7 @@ declare module '@mui/x-charts/internals' {
19
20
  data: MakeRequired<FunnelValueType, 'color'>[];
20
21
  };
21
22
  series: DefaultizedFunnelSeriesType;
23
+ seriesLayout: {};
22
24
  seriesProp: FunnelSeriesType;
23
25
  itemIdentifier: FunnelItemIdentifier;
24
26
  itemIdentifierWithData: FunnelItemIdentifier;
@@ -28,6 +30,9 @@ declare module '@mui/x-charts/internals' {
28
30
  sankey: {
29
31
  seriesInput: DefaultizedSankeySeriesType;
30
32
  series: DefaultizedSankeySeriesType;
33
+ seriesLayout: {
34
+ sankeyLayout: SankeyLayout;
35
+ };
31
36
  seriesProp: SankeySeriesType;
32
37
  itemIdentifier: SankeyItemIdentifier;
33
38
  itemIdentifierWithData: SankeyItemIdentifierWithData;