@mui/x-charts 8.5.1 → 8.5.3

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 (118) hide show
  1. package/CHANGELOG.md +187 -10
  2. package/ChartsGrid/ChartsHorizontalGrid.js +1 -1
  3. package/ChartsGrid/ChartsVerticalGrid.js +1 -1
  4. package/ChartsLegend/ChartsLegend.d.ts +1 -0
  5. package/ChartsLegend/ChartsLegend.js +1 -0
  6. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  7. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  8. package/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  9. package/ChartsLegend/chartsLegendClasses.js +2 -1
  10. package/ChartsSurface/ChartsSurface.d.ts +1 -1
  11. package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  12. package/RadarChart/index.d.ts +1 -1
  13. package/ScatterChart/Scatter.d.ts +2 -0
  14. package/ScatterChart/Scatter.js +9 -1
  15. package/ScatterChart/index.d.ts +3 -1
  16. package/ScatterChart/index.js +16 -1
  17. package/ScatterChart/scatterClasses.d.ts +8 -0
  18. package/ScatterChart/scatterClasses.js +22 -0
  19. package/Toolbar/Toolbar.js +1 -0
  20. package/esm/ChartsGrid/ChartsHorizontalGrid.js +1 -1
  21. package/esm/ChartsGrid/ChartsVerticalGrid.js +1 -1
  22. package/esm/ChartsLegend/ChartsLegend.d.ts +1 -0
  23. package/esm/ChartsLegend/ChartsLegend.js +1 -0
  24. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  25. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  26. package/esm/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  27. package/esm/ChartsLegend/chartsLegendClasses.js +2 -1
  28. package/esm/ChartsSurface/ChartsSurface.d.ts +1 -1
  29. package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  30. package/esm/RadarChart/index.d.ts +1 -1
  31. package/esm/ScatterChart/Scatter.d.ts +2 -0
  32. package/esm/ScatterChart/Scatter.js +9 -1
  33. package/esm/ScatterChart/index.d.ts +3 -1
  34. package/esm/ScatterChart/index.js +2 -1
  35. package/esm/ScatterChart/scatterClasses.d.ts +8 -0
  36. package/esm/ScatterChart/scatterClasses.js +13 -0
  37. package/esm/Toolbar/Toolbar.js +1 -0
  38. package/esm/hooks/useItemHighlighted.js +2 -2
  39. package/esm/index.js +1 -1
  40. package/esm/internals/createSeriesSelectorOfType.js +2 -2
  41. package/esm/internals/defaultValueFormatters.d.ts +6 -0
  42. package/esm/internals/defaultValueFormatters.js +15 -0
  43. package/esm/internals/index.d.ts +5 -0
  44. package/esm/internals/index.js +5 -0
  45. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  46. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  47. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  48. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +10 -10
  49. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  50. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  51. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  52. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  53. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +3 -1
  54. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  55. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  56. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -3
  57. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  58. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  59. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  60. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  61. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  62. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  63. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  64. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  65. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  66. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  67. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  68. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  69. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  70. package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -0
  71. package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +3 -2
  72. package/esm/internals/plugins/utils/selectors.d.ts +18 -6
  73. package/esm/internals/plugins/utils/selectors.js +3 -3
  74. package/esm/internals/store/useSelector.d.ts +2 -2
  75. package/esm/internals/store/useSelector.js +5 -3
  76. package/esm/models/axis.d.ts +3 -2
  77. package/esm/models/index.d.ts +1 -1
  78. package/hooks/useItemHighlighted.js +2 -2
  79. package/index.js +1 -1
  80. package/internals/createSeriesSelectorOfType.js +2 -2
  81. package/internals/defaultValueFormatters.d.ts +6 -0
  82. package/internals/defaultValueFormatters.js +21 -0
  83. package/internals/index.d.ts +5 -0
  84. package/internals/index.js +52 -0
  85. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  86. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  87. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  88. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +11 -10
  89. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  90. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  91. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  92. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  93. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +3 -1
  94. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  95. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  96. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -3
  97. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  98. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  99. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  100. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  101. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  102. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  103. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  104. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  105. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  106. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  107. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  108. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  109. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  110. package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -0
  111. package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +3 -2
  112. package/internals/plugins/utils/selectors.d.ts +18 -6
  113. package/internals/plugins/utils/selectors.js +3 -3
  114. package/internals/store/useSelector.d.ts +2 -2
  115. package/internals/store/useSelector.js +6 -3
  116. package/models/axis.d.ts +3 -2
  117. package/models/index.d.ts +1 -1
  118. package/package.json +4 -4
@@ -9,18 +9,18 @@ var _createIsHighlighted = require("./createIsHighlighted");
9
9
  var _createIsFaded = require("./createIsFaded");
10
10
  const selectHighlight = state => state.highlight;
11
11
  const selectSeries = state => state.series;
12
- const selectorChartsHighlightScopePerSeriesId = exports.selectorChartsHighlightScopePerSeriesId = (0, _selectors.createSelector)(selectSeries, series => {
12
+ const selectorChartsHighlightScopePerSeriesId = exports.selectorChartsHighlightScopePerSeriesId = (0, _selectors.createSelector)([selectSeries], series => {
13
13
  const map = new Map();
14
14
  Object.keys(series.processedSeries).forEach(seriesType => {
15
15
  const seriesData = series.processedSeries[seriesType];
16
- Object.keys(seriesData?.series ?? {}).forEach(seriesId => {
16
+ seriesData?.seriesOrder?.forEach(seriesId => {
17
17
  const seriesItem = seriesData?.series[seriesId];
18
18
  map.set(seriesId, seriesItem?.highlightScope);
19
19
  });
20
20
  });
21
21
  return map;
22
22
  });
23
- const selectorChartsHighlightedItem = exports.selectorChartsHighlightedItem = (0, _selectors.createSelector)(selectHighlight, highlight => highlight.item);
23
+ const selectorChartsHighlightedItem = exports.selectorChartsHighlightedItem = (0, _selectors.createSelector)([selectHighlight], highlight => highlight.item);
24
24
  const selectorChartsHighlightScope = exports.selectorChartsHighlightScope = (0, _selectors.createSelector)([selectorChartsHighlightScopePerSeriesId, selectorChartsHighlightedItem], (seriesIdToHighlightScope, highlightedItem) => {
25
25
  if (!highlightedItem) {
26
26
  return null;
@@ -1,242 +1,30 @@
1
- import { ChartOptionalRootSelector } from "../../utils/selectors.js";
2
- import { UseChartInteractionSignature } from "./useChartInteraction.types.js";
3
- export declare const selectorChartsInteractionIsInitialized: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
1
+ export declare const selectorChartsInteractionIsInitialized: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
4
2
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
- }) => boolean) & {
6
- clearCache: () => void;
7
- resultsCount: () => number;
8
- resetResultsCount: () => void;
9
3
  } & {
10
- resultFunc: (resultFuncArgs_0: {
11
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
12
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
13
- } | undefined) => boolean;
14
- memoizedResultFunc: ((resultFuncArgs_0: {
15
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
16
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
17
- } | undefined) => boolean) & {
18
- clearCache: () => void;
19
- resultsCount: () => number;
20
- resetResultsCount: () => void;
21
- };
22
- lastResult: () => boolean;
23
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
24
- recomputations: () => number;
25
- resetRecomputations: () => void;
26
- dependencyRecomputations: () => number;
27
- resetDependencyRecomputations: () => void;
28
- } & {
29
- memoize: typeof import("reselect").weakMapMemoize;
30
- argsMemoize: typeof import("reselect").weakMapMemoize;
31
- };
32
- export declare const selectorChartsInteractionItem: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
33
4
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
34
- }) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) & {
35
- clearCache: () => void;
36
- resultsCount: () => number;
37
- resetResultsCount: () => void;
38
- } & {
39
- resultFunc: (resultFuncArgs_0: {
40
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
41
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
42
- } | undefined) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null;
43
- memoizedResultFunc: ((resultFuncArgs_0: {
44
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
45
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
46
- } | undefined) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) & {
47
- clearCache: () => void;
48
- resultsCount: () => number;
49
- resetResultsCount: () => void;
50
- };
51
- lastResult: () => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null;
52
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
53
- recomputations: () => number;
54
- resetRecomputations: () => void;
55
- dependencyRecomputations: () => number;
56
- resetDependencyRecomputations: () => void;
57
- } & {
58
- memoize: typeof import("reselect").weakMapMemoize;
59
- argsMemoize: typeof import("reselect").weakMapMemoize;
60
- };
61
- export declare const selectorChartsInteractionPointer: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
5
+ }, boolean, any[]>;
6
+ export declare const selectorChartsInteractionItem: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
62
7
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
63
- }) => import("./useChartInteraction.types.js").Coordinate | null) & {
64
- clearCache: () => void;
65
- resultsCount: () => number;
66
- resetResultsCount: () => void;
67
8
  } & {
68
- resultFunc: (resultFuncArgs_0: {
69
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
70
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
71
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null;
72
- memoizedResultFunc: ((resultFuncArgs_0: {
73
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
74
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
75
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null) & {
76
- clearCache: () => void;
77
- resultsCount: () => number;
78
- resetResultsCount: () => void;
79
- };
80
- lastResult: () => import("./useChartInteraction.types.js").Coordinate | null;
81
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
82
- recomputations: () => number;
83
- resetRecomputations: () => void;
84
- dependencyRecomputations: () => number;
85
- resetDependencyRecomputations: () => void;
86
- } & {
87
- memoize: typeof import("reselect").weakMapMemoize;
88
- argsMemoize: typeof import("reselect").weakMapMemoize;
89
- };
90
- export declare const selectorChartsInteractionPointerX: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
91
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
92
- }) => number | null) & {
93
- clearCache: () => void;
94
- resultsCount: () => number;
95
- resetResultsCount: () => void;
96
- } & {
97
- resultFunc: (resultFuncArgs_0: import("./useChartInteraction.types.js").Coordinate | null) => number | null;
98
- memoizedResultFunc: ((resultFuncArgs_0: import("./useChartInteraction.types.js").Coordinate | null) => number | null) & {
99
- clearCache: () => void;
100
- resultsCount: () => number;
101
- resetResultsCount: () => void;
102
- };
103
- lastResult: () => number | null;
104
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
105
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
106
- }) => import("./useChartInteraction.types.js").Coordinate | null) & {
107
- clearCache: () => void;
108
- resultsCount: () => number;
109
- resetResultsCount: () => void;
110
- } & {
111
- resultFunc: (resultFuncArgs_0: {
112
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
113
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
114
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null;
115
- memoizedResultFunc: ((resultFuncArgs_0: {
116
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
117
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
118
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null) & {
119
- clearCache: () => void;
120
- resultsCount: () => number;
121
- resetResultsCount: () => void;
122
- };
123
- lastResult: () => import("./useChartInteraction.types.js").Coordinate | null;
124
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
125
- recomputations: () => number;
126
- resetRecomputations: () => void;
127
- dependencyRecomputations: () => number;
128
- resetDependencyRecomputations: () => void;
129
- } & {
130
- memoize: typeof import("reselect").weakMapMemoize;
131
- argsMemoize: typeof import("reselect").weakMapMemoize;
132
- }];
133
- recomputations: () => number;
134
- resetRecomputations: () => void;
135
- dependencyRecomputations: () => number;
136
- resetDependencyRecomputations: () => void;
137
- } & {
138
- memoize: typeof import("reselect").weakMapMemoize;
139
- argsMemoize: typeof import("reselect").weakMapMemoize;
140
- };
141
- export declare const selectorChartsInteractionPointerY: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
10
+ }, import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null, any[]>;
11
+ export declare const selectorChartsInteractionPointer: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
142
12
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
143
- }) => number | null) & {
144
- clearCache: () => void;
145
- resultsCount: () => number;
146
- resetResultsCount: () => void;
147
13
  } & {
148
- resultFunc: (resultFuncArgs_0: import("./useChartInteraction.types.js").Coordinate | null) => number | null;
149
- memoizedResultFunc: ((resultFuncArgs_0: import("./useChartInteraction.types.js").Coordinate | null) => number | null) & {
150
- clearCache: () => void;
151
- resultsCount: () => number;
152
- resetResultsCount: () => void;
153
- };
154
- lastResult: () => number | null;
155
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
156
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
157
- }) => import("./useChartInteraction.types.js").Coordinate | null) & {
158
- clearCache: () => void;
159
- resultsCount: () => number;
160
- resetResultsCount: () => void;
161
- } & {
162
- resultFunc: (resultFuncArgs_0: {
163
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
164
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
165
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null;
166
- memoizedResultFunc: ((resultFuncArgs_0: {
167
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
168
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
169
- } | undefined) => import("./useChartInteraction.types.js").Coordinate | null) & {
170
- clearCache: () => void;
171
- resultsCount: () => number;
172
- resetResultsCount: () => void;
173
- };
174
- lastResult: () => import("./useChartInteraction.types.js").Coordinate | null;
175
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
176
- recomputations: () => number;
177
- resetRecomputations: () => void;
178
- dependencyRecomputations: () => number;
179
- resetDependencyRecomputations: () => void;
180
- } & {
181
- memoize: typeof import("reselect").weakMapMemoize;
182
- argsMemoize: typeof import("reselect").weakMapMemoize;
183
- }];
184
- recomputations: () => number;
185
- resetRecomputations: () => void;
186
- dependencyRecomputations: () => number;
187
- resetDependencyRecomputations: () => void;
14
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
15
+ }, import("./useChartInteraction.types.js").Coordinate | null, any[]>;
16
+ export declare const selectorChartsInteractionPointerX: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
17
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
188
18
  } & {
189
- memoize: typeof import("reselect").weakMapMemoize;
190
- argsMemoize: typeof import("reselect").weakMapMemoize;
191
- };
192
- export declare const selectorChartsInteractionItemIsDefined: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
193
19
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
194
- }) => boolean) & {
195
- clearCache: () => void;
196
- resultsCount: () => number;
197
- resetResultsCount: () => void;
20
+ }, number | null, any[]>;
21
+ export declare const selectorChartsInteractionPointerY: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
22
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
198
23
  } & {
199
- resultFunc: (resultFuncArgs_0: import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) => boolean;
200
- memoizedResultFunc: ((resultFuncArgs_0: import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) => boolean) & {
201
- clearCache: () => void;
202
- resultsCount: () => number;
203
- resetResultsCount: () => void;
204
- };
205
- lastResult: () => boolean;
206
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
207
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
208
- }) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) & {
209
- clearCache: () => void;
210
- resultsCount: () => number;
211
- resetResultsCount: () => void;
212
- } & {
213
- resultFunc: (resultFuncArgs_0: {
214
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
215
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
216
- } | undefined) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null;
217
- memoizedResultFunc: ((resultFuncArgs_0: {
218
- item: null | import("../../../index.js").ChartItemIdentifier<import("../../../index.js").ChartSeriesType>;
219
- pointer: import("./useChartInteraction.types.js").Coordinate | null;
220
- } | undefined) => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null) & {
221
- clearCache: () => void;
222
- resultsCount: () => number;
223
- resetResultsCount: () => void;
224
- };
225
- lastResult: () => import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").LineItemIdentifier | import("../../../../index.js").BarItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null;
226
- dependencies: [ChartOptionalRootSelector<UseChartInteractionSignature>];
227
- recomputations: () => number;
228
- resetRecomputations: () => void;
229
- dependencyRecomputations: () => number;
230
- resetDependencyRecomputations: () => void;
231
- } & {
232
- memoize: typeof import("reselect").weakMapMemoize;
233
- argsMemoize: typeof import("reselect").weakMapMemoize;
234
- }];
235
- recomputations: () => number;
236
- resetRecomputations: () => void;
237
- dependencyRecomputations: () => number;
238
- resetDependencyRecomputations: () => void;
24
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
25
+ }, number | null, any[]>;
26
+ export declare const selectorChartsInteractionItemIsDefined: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
27
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
239
28
  } & {
240
- memoize: typeof import("reselect").weakMapMemoize;
241
- argsMemoize: typeof import("reselect").weakMapMemoize;
242
- };
29
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
30
+ }, boolean, any[]>;
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.selectorChartsInteractionPointerY = exports.selectorChartsInteractionPointerX = exports.selectorChartsInteractionPointer = exports.selectorChartsInteractionItemIsDefined = exports.selectorChartsInteractionItem = exports.selectorChartsInteractionIsInitialized = void 0;
7
7
  var _selectors = require("../../utils/selectors");
8
8
  const selectInteraction = state => state.interaction;
9
- const selectorChartsInteractionIsInitialized = exports.selectorChartsInteractionIsInitialized = (0, _selectors.createSelector)(selectInteraction, interaction => interaction !== undefined);
10
- const selectorChartsInteractionItem = exports.selectorChartsInteractionItem = (0, _selectors.createSelector)(selectInteraction, interaction => interaction?.item ?? null);
11
- const selectorChartsInteractionPointer = exports.selectorChartsInteractionPointer = (0, _selectors.createSelector)(selectInteraction, interaction => interaction?.pointer ?? null);
12
- const selectorChartsInteractionPointerX = exports.selectorChartsInteractionPointerX = (0, _selectors.createSelector)(selectorChartsInteractionPointer, pointer => pointer && pointer.x);
13
- const selectorChartsInteractionPointerY = exports.selectorChartsInteractionPointerY = (0, _selectors.createSelector)(selectorChartsInteractionPointer, pointer => pointer && pointer.y);
14
- const selectorChartsInteractionItemIsDefined = exports.selectorChartsInteractionItemIsDefined = (0, _selectors.createSelector)(selectorChartsInteractionItem, item => item !== null);
9
+ const selectorChartsInteractionIsInitialized = exports.selectorChartsInteractionIsInitialized = (0, _selectors.createSelector)([selectInteraction], interaction => interaction !== undefined);
10
+ const selectorChartsInteractionItem = exports.selectorChartsInteractionItem = (0, _selectors.createSelector)([selectInteraction], interaction => interaction?.item ?? null);
11
+ const selectorChartsInteractionPointer = exports.selectorChartsInteractionPointer = (0, _selectors.createSelector)([selectInteraction], interaction => interaction?.pointer ?? null);
12
+ const selectorChartsInteractionPointerX = exports.selectorChartsInteractionPointerX = (0, _selectors.createSelector)([selectorChartsInteractionPointer], pointer => pointer && pointer.x);
13
+ const selectorChartsInteractionPointerY = exports.selectorChartsInteractionPointerY = (0, _selectors.createSelector)([selectorChartsInteractionPointer], pointer => pointer && pointer.y);
14
+ const selectorChartsInteractionItemIsDefined = exports.selectorChartsInteractionItemIsDefined = (0, _selectors.createSelector)([selectorChartsInteractionItem], item => item !== null);