@mui/x-charts 8.5.2 → 8.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 (188) hide show
  1. package/BarChart/AnimatedBarElement.js +3 -1
  2. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -2
  3. package/BarChart/BarLabel/BarLabelPlot.js +33 -25
  4. package/BarChart/BarPlot.js +55 -40
  5. package/BarChart/barClasses.d.ts +12 -0
  6. package/BarChart/barClasses.js +25 -0
  7. package/BarChart/index.d.ts +3 -1
  8. package/BarChart/index.js +23 -1
  9. package/BarChart/types.d.ts +5 -1
  10. package/CHANGELOG.md +203 -11
  11. package/ChartsLegend/ChartsLegend.d.ts +1 -0
  12. package/ChartsLegend/ChartsLegend.js +2 -0
  13. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  14. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  15. package/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  16. package/ChartsLegend/chartsLegendClasses.js +2 -1
  17. package/ChartsSurface/ChartsSurface.d.ts +1 -1
  18. package/ChartsXAxis/ChartsXAxis.js +4 -108
  19. package/ChartsXAxis/getVisibleLabels.d.ts +14 -0
  20. package/ChartsXAxis/getVisibleLabels.js +71 -0
  21. package/ChartsXAxis/shortenLabels.d.ts +4 -0
  22. package/ChartsXAxis/shortenLabels.js +48 -0
  23. package/ChartsYAxis/ChartsYAxis.js +2 -39
  24. package/ChartsYAxis/shortenLabels.d.ts +4 -0
  25. package/ChartsYAxis/shortenLabels.js +46 -0
  26. package/LineChart/AnimatedArea.js +4 -1
  27. package/LineChart/AnimatedLine.js +4 -1
  28. package/LineChart/CircleMarkElement.js +4 -1
  29. package/LineChart/MarkElement.js +4 -1
  30. package/LineChart/MarkPlot.js +1 -0
  31. package/PieChart/PieArc.js +3 -1
  32. package/PieChart/PiePlot.js +6 -0
  33. package/PieChart/index.d.ts +3 -1
  34. package/PieChart/index.js +18 -1
  35. package/PieChart/pieClasses.d.ts +12 -0
  36. package/PieChart/pieClasses.js +24 -0
  37. package/ScatterChart/Scatter.d.ts +2 -0
  38. package/ScatterChart/Scatter.js +9 -1
  39. package/ScatterChart/index.d.ts +3 -1
  40. package/ScatterChart/index.js +16 -1
  41. package/ScatterChart/scatterClasses.d.ts +8 -0
  42. package/ScatterChart/scatterClasses.js +22 -0
  43. package/Toolbar/ToolbarButton.js +2 -0
  44. package/esm/BarChart/AnimatedBarElement.js +3 -1
  45. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +2 -2
  46. package/esm/BarChart/BarLabel/BarLabelPlot.js +33 -25
  47. package/esm/BarChart/BarPlot.js +55 -40
  48. package/esm/BarChart/barClasses.d.ts +12 -0
  49. package/esm/BarChart/barClasses.js +15 -0
  50. package/esm/BarChart/index.d.ts +3 -1
  51. package/esm/BarChart/index.js +2 -1
  52. package/esm/BarChart/types.d.ts +5 -1
  53. package/esm/ChartsLegend/ChartsLegend.d.ts +1 -0
  54. package/esm/ChartsLegend/ChartsLegend.js +2 -0
  55. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  56. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  57. package/esm/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  58. package/esm/ChartsLegend/chartsLegendClasses.js +2 -1
  59. package/esm/ChartsSurface/ChartsSurface.d.ts +1 -1
  60. package/esm/ChartsXAxis/ChartsXAxis.js +2 -106
  61. package/esm/ChartsXAxis/getVisibleLabels.d.ts +14 -0
  62. package/esm/ChartsXAxis/getVisibleLabels.js +67 -0
  63. package/esm/ChartsXAxis/shortenLabels.d.ts +4 -0
  64. package/esm/ChartsXAxis/shortenLabels.js +42 -0
  65. package/esm/ChartsYAxis/ChartsYAxis.js +1 -38
  66. package/esm/ChartsYAxis/shortenLabels.d.ts +4 -0
  67. package/esm/ChartsYAxis/shortenLabels.js +41 -0
  68. package/esm/LineChart/AnimatedArea.js +4 -1
  69. package/esm/LineChart/AnimatedLine.js +4 -1
  70. package/esm/LineChart/CircleMarkElement.js +4 -1
  71. package/esm/LineChart/MarkElement.js +4 -1
  72. package/esm/LineChart/MarkPlot.js +1 -0
  73. package/esm/PieChart/PieArc.js +3 -1
  74. package/esm/PieChart/PiePlot.js +6 -0
  75. package/esm/PieChart/index.d.ts +3 -1
  76. package/esm/PieChart/index.js +2 -1
  77. package/esm/PieChart/pieClasses.d.ts +12 -0
  78. package/esm/PieChart/pieClasses.js +15 -0
  79. package/esm/ScatterChart/Scatter.d.ts +2 -0
  80. package/esm/ScatterChart/Scatter.js +9 -1
  81. package/esm/ScatterChart/index.d.ts +3 -1
  82. package/esm/ScatterChart/index.js +2 -1
  83. package/esm/ScatterChart/scatterClasses.d.ts +8 -0
  84. package/esm/ScatterChart/scatterClasses.js +13 -0
  85. package/esm/Toolbar/ToolbarButton.js +2 -0
  86. package/esm/hooks/useItemHighlighted.js +2 -2
  87. package/esm/index.js +1 -1
  88. package/esm/internals/components/NotRendered.d.ts +9 -0
  89. package/esm/internals/components/NotRendered.js +10 -0
  90. package/esm/internals/createSeriesSelectorOfType.js +2 -2
  91. package/esm/internals/index.d.ts +1 -0
  92. package/esm/internals/index.js +1 -0
  93. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  94. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  95. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +30 -2
  96. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  97. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +10 -10
  98. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +8 -2
  99. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  100. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  101. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  102. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  103. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  104. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  105. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -3
  106. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  107. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  108. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  109. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  110. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  111. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  112. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  113. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +20 -4
  114. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  115. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  116. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  117. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  118. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  119. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  120. package/esm/internals/plugins/utils/selectors.d.ts +18 -6
  121. package/esm/internals/plugins/utils/selectors.js +3 -3
  122. package/esm/internals/store/useSelector.d.ts +2 -2
  123. package/esm/internals/store/useSelector.js +2 -2
  124. package/esm/locales/enUS.d.ts +3 -0
  125. package/esm/locales/enUS.js +8 -2
  126. package/esm/locales/frFR.d.ts +3 -0
  127. package/esm/locales/frFR.js +7 -0
  128. package/esm/locales/ptBR.d.ts +3 -0
  129. package/esm/locales/ptBR.js +7 -1
  130. package/esm/locales/ptPT.d.ts +3 -0
  131. package/esm/locales/ptPT.js +7 -1
  132. package/esm/locales/utils/chartsLocaleTextApi.d.ts +17 -0
  133. package/esm/locales/utils/getChartsLocalization.d.ts +3 -0
  134. package/esm/locales/utils/imageMimeTypes.d.ts +2 -0
  135. package/esm/locales/utils/imageMimeTypes.js +5 -0
  136. package/esm/models/slots/chartsBaseSlotProps.d.ts +4 -0
  137. package/hooks/useItemHighlighted.js +2 -2
  138. package/index.js +1 -1
  139. package/internals/components/NotRendered.d.ts +9 -0
  140. package/internals/components/NotRendered.js +16 -0
  141. package/internals/createSeriesSelectorOfType.js +2 -2
  142. package/internals/index.d.ts +1 -0
  143. package/internals/index.js +12 -0
  144. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  145. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  146. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +30 -2
  147. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  148. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +11 -10
  149. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +8 -2
  150. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  151. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  152. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  153. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  154. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  155. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  156. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -3
  157. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  158. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  159. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  160. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  161. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  162. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  163. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  164. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +20 -4
  165. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  166. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  167. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  168. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  169. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  170. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  171. package/internals/plugins/utils/selectors.d.ts +18 -6
  172. package/internals/plugins/utils/selectors.js +3 -3
  173. package/internals/store/useSelector.d.ts +2 -2
  174. package/internals/store/useSelector.js +2 -2
  175. package/locales/enUS.d.ts +3 -0
  176. package/locales/enUS.js +8 -2
  177. package/locales/frFR.d.ts +3 -0
  178. package/locales/frFR.js +7 -0
  179. package/locales/ptBR.d.ts +3 -0
  180. package/locales/ptBR.js +7 -1
  181. package/locales/ptPT.d.ts +3 -0
  182. package/locales/ptPT.js +7 -1
  183. package/locales/utils/chartsLocaleTextApi.d.ts +17 -0
  184. package/locales/utils/getChartsLocalization.d.ts +3 -0
  185. package/locales/utils/imageMimeTypes.d.ts +2 -0
  186. package/locales/utils/imageMimeTypes.js +11 -0
  187. package/models/slots/chartsBaseSlotProps.d.ts +4 -0
  188. package/package.json +3 -3
@@ -8,14 +8,15 @@ var _selectors = require("../../utils/selectors");
8
8
  var _useChartAxisSize = require("../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors");
9
9
  const selectorChartDimensionsState = state => state.dimensions;
10
10
  exports.selectorChartDimensionsState = selectorChartDimensionsState;
11
- const selectorChartMargin = exports.selectorChartMargin = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.margin);
12
- const selectorChartWidth = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.width);
13
- const selectorChartHeight = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.height);
14
- const selectorChartTopMargin = (0, _selectors.createSelector)(selectorChartMargin, margin => margin.top);
15
- const selectorChartRightMargin = (0, _selectors.createSelector)(selectorChartMargin, margin => margin.right);
16
- const selectorChartBottomMargin = (0, _selectors.createSelector)(selectorChartMargin, margin => margin.bottom);
17
- const selectorChartLeftMargin = (0, _selectors.createSelector)(selectorChartMargin, margin => margin.left);
18
- const selectorChartDrawingArea = exports.selectorChartDrawingArea = (0, _selectors.createSelector)(selectorChartWidth, selectorChartHeight, selectorChartTopMargin, selectorChartRightMargin, selectorChartBottomMargin, selectorChartLeftMargin, _useChartAxisSize.selectorChartTopAxisSize, _useChartAxisSize.selectorChartRightAxisSize, _useChartAxisSize.selectorChartBottomAxisSize, _useChartAxisSize.selectorChartLeftAxisSize, (width, height, marginTop, marginRight, marginBottom, marginLeft, axisSizeTop, axisSizeRight, axisSizeBottom, axisSizeLeft) => ({
11
+ const selectorChartMargin = state => state.dimensions.margin;
12
+ exports.selectorChartMargin = selectorChartMargin;
13
+ const selectorChartWidth = state => state.dimensions.width;
14
+ const selectorChartHeight = state => state.dimensions.height;
15
+ const selectorChartTopMargin = state => state.dimensions.margin.top;
16
+ const selectorChartRightMargin = state => state.dimensions.margin.right;
17
+ const selectorChartBottomMargin = state => state.dimensions.margin.bottom;
18
+ const selectorChartLeftMargin = state => state.dimensions.margin.left;
19
+ const selectorChartDrawingArea = exports.selectorChartDrawingArea = (0, _selectors.createSelector)([selectorChartWidth, selectorChartHeight, selectorChartTopMargin, selectorChartRightMargin, selectorChartBottomMargin, selectorChartLeftMargin, _useChartAxisSize.selectorChartTopAxisSize, _useChartAxisSize.selectorChartRightAxisSize, _useChartAxisSize.selectorChartBottomAxisSize, _useChartAxisSize.selectorChartLeftAxisSize], (width, height, marginTop, marginRight, marginBottom, marginLeft, axisSizeTop, axisSizeRight, axisSizeBottom, axisSizeLeft) => ({
19
20
  width: width - marginLeft - marginRight - axisSizeLeft - axisSizeRight,
20
21
  left: marginLeft + axisSizeLeft,
21
22
  right: marginRight + axisSizeRight,
@@ -23,11 +24,11 @@ const selectorChartDrawingArea = exports.selectorChartDrawingArea = (0, _selecto
23
24
  top: marginTop + axisSizeTop,
24
25
  bottom: marginBottom + axisSizeBottom
25
26
  }));
26
- const selectorChartPropsSize = exports.selectorChartPropsSize = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => ({
27
+ const selectorChartPropsSize = exports.selectorChartPropsSize = (0, _selectors.createSelector)([selectorChartDimensionsState], dimensionsState => ({
27
28
  width: dimensionsState.propsWidth,
28
29
  height: dimensionsState.propsHeight
29
30
  }));
30
- const selectorChartContainerSize = exports.selectorChartContainerSize = (0, _selectors.createSelector)(selectorChartWidth, selectorChartHeight, (width, height) => ({
31
+ const selectorChartContainerSize = exports.selectorChartContainerSize = (0, _selectors.createSelector)([selectorChartWidth, selectorChartHeight], (width, height) => ({
31
32
  width,
32
33
  height
33
34
  }));
@@ -63,14 +63,20 @@ export interface UseChartDimensionsState {
63
63
  };
64
64
  }
65
65
  export interface UseChartDimensionsInstance {
66
+ /**
67
+ * Checks if an element is inside the drawing area.
68
+ * @param {Element | EventTarget | null} element The element to check.
69
+ * @returns {boolean} `true` if the element is inside the drawing area, `false` otherwise.
70
+ */
71
+ isElementInside: (element: Element | EventTarget | null | undefined) => boolean;
66
72
  /**
67
73
  * Checks if a point is inside the drawing area.
68
74
  * @param {number} x The x coordinate of the point.
69
75
  * @param {number} y The y coordinate of the point.
70
- * @param {Element} targetElement The element to check if it is allowed to overflow the drawing area.
76
+ * @param {Element | EventTarget | null} targetElement The element to check if it is allowed to overflow the drawing area.
71
77
  * @returns {boolean} `true` if the point is inside the drawing area, `false` otherwise.
72
78
  */
73
- isPointInside: (x: number, y: number, targetElement?: Element) => boolean;
79
+ isPointInside: (x: number, y: number, targetElement?: Element | EventTarget | null) => boolean;
74
80
  /**
75
81
  * Checks if the x coordinate is inside the drawing area.
76
82
  * @param {number} x The x coordinate of the point.
@@ -1,36 +1,10 @@
1
- import { ChartRootSelector } from "../../utils/selectors.js";
2
- import { UseChartIdSignature } from "./useChartId.types.js";
3
1
  /**
4
2
  * Get the id attribute of the chart.
5
3
  * @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
6
4
  * @returns {string} The id attribute of the chart.
7
5
  */
8
- export declare const selectorChartId: ((state: import("./useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
6
+ export declare const selectorChartId: import("reselect").Selector<import("./useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
9
7
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
10
- }) => string | undefined) & {
11
- clearCache: () => void;
12
- resultsCount: () => number;
13
- resetResultsCount: () => void;
14
8
  } & {
15
- resultFunc: (resultFuncArgs_0: {
16
- chartId: string | undefined;
17
- providedChartId: string | undefined;
18
- }) => string | undefined;
19
- memoizedResultFunc: ((resultFuncArgs_0: {
20
- chartId: string | undefined;
21
- providedChartId: string | undefined;
22
- }) => string | undefined) & {
23
- clearCache: () => void;
24
- resultsCount: () => number;
25
- resetResultsCount: () => void;
26
- };
27
- lastResult: () => string | undefined;
28
- dependencies: [ChartRootSelector<UseChartIdSignature>];
29
- recomputations: () => number;
30
- resetRecomputations: () => void;
31
- dependencyRecomputations: () => number;
32
- resetDependencyRecomputations: () => void;
33
- } & {
34
- memoize: typeof import("reselect").weakMapMemoize;
35
- argsMemoize: typeof import("reselect").weakMapMemoize;
36
- };
9
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
10
+ }, string | undefined, any[]>;
@@ -12,4 +12,4 @@ const selectorChartIdState = state => state.id;
12
12
  * @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
13
13
  * @returns {string} The id attribute of the chart.
14
14
  */
15
- const selectorChartId = exports.selectorChartId = (0, _selectors.createSelector)(selectorChartIdState, idState => idState.chartId);
15
+ const selectorChartId = exports.selectorChartId = (0, _selectors.createSelector)([selectorChartIdState], idState => idState.chartId);
@@ -1,61 +1,13 @@
1
1
  import { ChartRootSelector } from "../../utils/selectors.js";
2
2
  import { UseChartSeriesSignature } from "./useChartSeries.types.js";
3
3
  export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
4
- export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
4
+ export declare const selectorChartSeriesProcessed: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
5
5
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
7
- clearCache: () => void;
8
- resultsCount: () => number;
9
- resetResultsCount: () => void;
10
6
  } & {
11
- resultFunc: (resultFuncArgs_0: {
12
- processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
13
- seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
14
- }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
15
- memoizedResultFunc: ((resultFuncArgs_0: {
16
- processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
17
- seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
18
- }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
19
- clearCache: () => void;
20
- resultsCount: () => number;
21
- resetResultsCount: () => void;
22
- };
23
- lastResult: () => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
24
- dependencies: [ChartRootSelector<UseChartSeriesSignature>];
25
- recomputations: () => number;
26
- resetRecomputations: () => void;
27
- dependencyRecomputations: () => number;
28
- resetDependencyRecomputations: () => void;
29
- } & {
30
- memoize: typeof import("reselect").weakMapMemoize;
31
- argsMemoize: typeof import("reselect").weakMapMemoize;
32
- };
33
- export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
34
7
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
35
- }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
36
- clearCache: () => void;
37
- resultsCount: () => number;
38
- resetResultsCount: () => void;
39
- } & {
40
- resultFunc: (resultFuncArgs_0: {
41
- processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
42
- seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
43
- }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
44
- memoizedResultFunc: ((resultFuncArgs_0: {
45
- processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
46
- seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
47
- }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
48
- clearCache: () => void;
49
- resultsCount: () => number;
50
- resetResultsCount: () => void;
51
- };
52
- lastResult: () => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
53
- dependencies: [ChartRootSelector<UseChartSeriesSignature>];
54
- recomputations: () => number;
55
- resetRecomputations: () => void;
56
- dependencyRecomputations: () => number;
57
- resetDependencyRecomputations: () => void;
8
+ }, import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>, any[]>;
9
+ export declare const selectorChartSeriesConfig: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
10
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
58
11
  } & {
59
- memoize: typeof import("reselect").weakMapMemoize;
60
- argsMemoize: typeof import("reselect").weakMapMemoize;
61
- };
12
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
13
+ }, import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>, any[]>;
@@ -7,5 +7,5 @@ exports.selectorChartSeriesState = exports.selectorChartSeriesProcessed = export
7
7
  var _selectors = require("../../utils/selectors");
8
8
  const selectorChartSeriesState = state => state.series;
9
9
  exports.selectorChartSeriesState = selectorChartSeriesState;
10
- const selectorChartSeriesProcessed = exports.selectorChartSeriesProcessed = (0, _selectors.createSelector)(selectorChartSeriesState, seriesState => seriesState.processedSeries);
11
- const selectorChartSeriesConfig = exports.selectorChartSeriesConfig = (0, _selectors.createSelector)(selectorChartSeriesState, seriesState => seriesState.seriesConfig);
10
+ const selectorChartSeriesProcessed = exports.selectorChartSeriesProcessed = (0, _selectors.createSelector)([selectorChartSeriesState], seriesState => seriesState.processedSeries);
11
+ const selectorChartSeriesConfig = exports.selectorChartSeriesConfig = (0, _selectors.createSelector)([selectorChartSeriesState], seriesState => seriesState.seriesConfig);
@@ -1,216 +1,20 @@
1
- export declare const selectorChartLeftAxisSize: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
1
+ export declare const selectorChartLeftAxisSize: 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
2
2
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
3
- }) => number) & {
4
- clearCache: () => void;
5
- resultsCount: () => number;
6
- resetResultsCount: () => void;
7
3
  } & {
8
- resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
9
- memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
10
- clearCache: () => void;
11
- resultsCount: () => number;
12
- resetResultsCount: () => void;
13
- };
14
- lastResult: () => number;
15
- 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
16
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
17
- }) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
18
- clearCache: () => void;
19
- resultsCount: () => number;
20
- resetResultsCount: () => void;
21
- } & {
22
- resultFunc: (resultFuncArgs_0: {
23
- x: import("../../../index.js").DefaultedXAxis[];
24
- y: import("../../../index.js").DefaultedYAxis[];
25
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
26
- memoizedResultFunc: ((resultFuncArgs_0: {
27
- x: import("../../../index.js").DefaultedXAxis[];
28
- y: import("../../../index.js").DefaultedYAxis[];
29
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
30
- clearCache: () => void;
31
- resultsCount: () => number;
32
- resetResultsCount: () => void;
33
- };
34
- lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
35
- dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
36
- x: import("../../../index.js").DefaultedXAxis[];
37
- y: import("../../../index.js").DefaultedYAxis[];
38
- } | undefined];
39
- recomputations: () => number;
40
- resetRecomputations: () => void;
41
- dependencyRecomputations: () => number;
42
- resetDependencyRecomputations: () => void;
43
- } & {
44
- memoize: typeof import("reselect").weakMapMemoize;
45
- argsMemoize: typeof import("reselect").weakMapMemoize;
46
- }];
47
- recomputations: () => number;
48
- resetRecomputations: () => void;
49
- dependencyRecomputations: () => number;
50
- resetDependencyRecomputations: () => void;
51
- } & {
52
- memoize: typeof import("reselect").weakMapMemoize;
53
- argsMemoize: typeof import("reselect").weakMapMemoize;
54
- };
55
- export declare const selectorChartRightAxisSize: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
56
4
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
57
- }) => number) & {
58
- clearCache: () => void;
59
- resultsCount: () => number;
60
- resetResultsCount: () => void;
61
- } & {
62
- resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
63
- memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
64
- clearCache: () => void;
65
- resultsCount: () => number;
66
- resetResultsCount: () => void;
67
- };
68
- lastResult: () => number;
69
- 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
70
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
71
- }) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
72
- clearCache: () => void;
73
- resultsCount: () => number;
74
- resetResultsCount: () => void;
75
- } & {
76
- resultFunc: (resultFuncArgs_0: {
77
- x: import("../../../index.js").DefaultedXAxis[];
78
- y: import("../../../index.js").DefaultedYAxis[];
79
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
80
- memoizedResultFunc: ((resultFuncArgs_0: {
81
- x: import("../../../index.js").DefaultedXAxis[];
82
- y: import("../../../index.js").DefaultedYAxis[];
83
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
84
- clearCache: () => void;
85
- resultsCount: () => number;
86
- resetResultsCount: () => void;
87
- };
88
- lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
89
- dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
90
- x: import("../../../index.js").DefaultedXAxis[];
91
- y: import("../../../index.js").DefaultedYAxis[];
92
- } | undefined];
93
- recomputations: () => number;
94
- resetRecomputations: () => void;
95
- dependencyRecomputations: () => number;
96
- resetDependencyRecomputations: () => void;
97
- } & {
98
- memoize: typeof import("reselect").weakMapMemoize;
99
- argsMemoize: typeof import("reselect").weakMapMemoize;
100
- }];
101
- recomputations: () => number;
102
- resetRecomputations: () => void;
103
- dependencyRecomputations: () => number;
104
- resetDependencyRecomputations: () => void;
105
- } & {
106
- memoize: typeof import("reselect").weakMapMemoize;
107
- argsMemoize: typeof import("reselect").weakMapMemoize;
108
- };
109
- export declare const selectorChartTopAxisSize: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
5
+ }, number, []>;
6
+ export declare const selectorChartRightAxisSize: 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
110
7
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
111
- }) => number) & {
112
- clearCache: () => void;
113
- resultsCount: () => number;
114
- resetResultsCount: () => void;
115
- } & {
116
- resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
117
- memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
118
- clearCache: () => void;
119
- resultsCount: () => number;
120
- resetResultsCount: () => void;
121
- };
122
- lastResult: () => number;
123
- 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
124
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
125
- }) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
126
- clearCache: () => void;
127
- resultsCount: () => number;
128
- resetResultsCount: () => void;
129
- } & {
130
- resultFunc: (resultFuncArgs_0: {
131
- x: import("../../../index.js").DefaultedXAxis[];
132
- y: import("../../../index.js").DefaultedYAxis[];
133
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
134
- memoizedResultFunc: ((resultFuncArgs_0: {
135
- x: import("../../../index.js").DefaultedXAxis[];
136
- y: import("../../../index.js").DefaultedYAxis[];
137
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
138
- clearCache: () => void;
139
- resultsCount: () => number;
140
- resetResultsCount: () => void;
141
- };
142
- lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
143
- dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
144
- x: import("../../../index.js").DefaultedXAxis[];
145
- y: import("../../../index.js").DefaultedYAxis[];
146
- } | undefined];
147
- recomputations: () => number;
148
- resetRecomputations: () => void;
149
- dependencyRecomputations: () => number;
150
- resetDependencyRecomputations: () => void;
151
- } & {
152
- memoize: typeof import("reselect").weakMapMemoize;
153
- argsMemoize: typeof import("reselect").weakMapMemoize;
154
- }];
155
- recomputations: () => number;
156
- resetRecomputations: () => void;
157
- dependencyRecomputations: () => number;
158
- resetDependencyRecomputations: () => void;
159
8
  } & {
160
- memoize: typeof import("reselect").weakMapMemoize;
161
- argsMemoize: typeof import("reselect").weakMapMemoize;
162
- };
163
- export declare const selectorChartBottomAxisSize: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
164
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
165
- }) => number) & {
166
- clearCache: () => void;
167
- resultsCount: () => number;
168
- resetResultsCount: () => void;
10
+ }, number, []>;
11
+ export declare const selectorChartTopAxisSize: 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
12
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
169
13
  } & {
170
- resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
171
- memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
172
- clearCache: () => void;
173
- resultsCount: () => number;
174
- resetResultsCount: () => void;
175
- };
176
- lastResult: () => number;
177
- 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
178
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
179
- }) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
180
- clearCache: () => void;
181
- resultsCount: () => number;
182
- resetResultsCount: () => void;
183
- } & {
184
- resultFunc: (resultFuncArgs_0: {
185
- x: import("../../../index.js").DefaultedXAxis[];
186
- y: import("../../../index.js").DefaultedYAxis[];
187
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
188
- memoizedResultFunc: ((resultFuncArgs_0: {
189
- x: import("../../../index.js").DefaultedXAxis[];
190
- y: import("../../../index.js").DefaultedYAxis[];
191
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
192
- clearCache: () => void;
193
- resultsCount: () => number;
194
- resetResultsCount: () => void;
195
- };
196
- lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
197
- dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
198
- x: import("../../../index.js").DefaultedXAxis[];
199
- y: import("../../../index.js").DefaultedYAxis[];
200
- } | undefined];
201
- recomputations: () => number;
202
- resetRecomputations: () => void;
203
- dependencyRecomputations: () => number;
204
- resetDependencyRecomputations: () => void;
205
- } & {
206
- memoize: typeof import("reselect").weakMapMemoize;
207
- argsMemoize: typeof import("reselect").weakMapMemoize;
208
- }];
209
- recomputations: () => number;
210
- resetRecomputations: () => void;
211
- dependencyRecomputations: () => number;
212
- resetDependencyRecomputations: () => void;
14
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
15
+ }, number, []>;
16
+ export declare const selectorChartBottomAxisSize: 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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
17
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
213
18
  } & {
214
- memoize: typeof import("reselect").weakMapMemoize;
215
- argsMemoize: typeof import("reselect").weakMapMemoize;
216
- };
19
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
20
+ }, number, []>;
@@ -1,70 +1,11 @@
1
1
  import { UseChartCartesianAxisSignature } from "./useChartCartesianAxis.types.js";
2
+ import { DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
2
3
  import { ChartState } from "../../models/chart.js";
3
4
  export declare const selectorChartCartesianAxisState: (state: ChartState<[], [UseChartCartesianAxisSignature]>) => {
4
- x: import("../../../index.js").DefaultedXAxis[];
5
- y: import("../../../index.js").DefaultedYAxis[];
5
+ x: DefaultedXAxis[];
6
+ y: DefaultedYAxis[];
6
7
  } | undefined;
7
- export declare const selectorChartRawXAxis: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
8
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
9
- }) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
10
- clearCache: () => void;
11
- resultsCount: () => number;
12
- resetResultsCount: () => void;
13
- } & {
14
- resultFunc: (resultFuncArgs_0: {
15
- x: import("../../../index.js").DefaultedXAxis[];
16
- y: import("../../../index.js").DefaultedYAxis[];
17
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
18
- memoizedResultFunc: ((resultFuncArgs_0: {
19
- x: import("../../../index.js").DefaultedXAxis[];
20
- y: import("../../../index.js").DefaultedYAxis[];
21
- } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
22
- clearCache: () => void;
23
- resultsCount: () => number;
24
- resetResultsCount: () => void;
25
- };
26
- lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
27
- dependencies: [(state: ChartState<[], [UseChartCartesianAxisSignature]>) => {
28
- x: import("../../../index.js").DefaultedXAxis[];
29
- y: import("../../../index.js").DefaultedYAxis[];
30
- } | undefined];
31
- recomputations: () => number;
32
- resetRecomputations: () => void;
33
- dependencyRecomputations: () => number;
34
- resetDependencyRecomputations: () => void;
35
- } & {
36
- memoize: typeof import("reselect").weakMapMemoize;
37
- argsMemoize: typeof import("reselect").weakMapMemoize;
38
- };
39
- export declare const selectorChartRawYAxis: ((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("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
40
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
41
- }) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
42
- clearCache: () => void;
43
- resultsCount: () => number;
44
- resetResultsCount: () => void;
45
- } & {
46
- resultFunc: (resultFuncArgs_0: {
47
- x: import("../../../index.js").DefaultedXAxis[];
48
- y: import("../../../index.js").DefaultedYAxis[];
49
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
50
- memoizedResultFunc: ((resultFuncArgs_0: {
51
- x: import("../../../index.js").DefaultedXAxis[];
52
- y: import("../../../index.js").DefaultedYAxis[];
53
- } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
54
- clearCache: () => void;
55
- resultsCount: () => number;
56
- resetResultsCount: () => void;
57
- };
58
- lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
59
- dependencies: [(state: ChartState<[], [UseChartCartesianAxisSignature]>) => {
60
- x: import("../../../index.js").DefaultedXAxis[];
61
- y: import("../../../index.js").DefaultedYAxis[];
62
- } | undefined];
63
- recomputations: () => number;
64
- resetRecomputations: () => void;
65
- dependencyRecomputations: () => number;
66
- resetDependencyRecomputations: () => void;
67
- } & {
68
- memoize: typeof import("reselect").weakMapMemoize;
69
- argsMemoize: typeof import("reselect").weakMapMemoize;
70
- };
8
+ export type SelectorChartRawXAxisType = <State extends ChartState<[], [UseChartCartesianAxisSignature]>>(state: State) => DefaultedXAxis[] | undefined;
9
+ export declare const selectorChartRawXAxis: SelectorChartRawXAxisType;
10
+ export type SelectorChartRawYAxisType = <State extends ChartState<[], [UseChartCartesianAxisSignature]>>(state: State) => DefaultedYAxis[] | undefined;
11
+ export declare const selectorChartRawYAxis: SelectorChartRawYAxisType;
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorChartRawYAxis = exports.selectorChartRawXAxis = exports.selectorChartCartesianAxisState = void 0;
7
- var _selectors = require("../../utils/selectors");
8
7
  const selectorChartCartesianAxisState = state => state.cartesianAxis;
9
8
  exports.selectorChartCartesianAxisState = selectorChartCartesianAxisState;
10
- const selectorChartRawXAxis = exports.selectorChartRawXAxis = (0, _selectors.createSelector)(selectorChartCartesianAxisState, axis => axis?.x);
11
- const selectorChartRawYAxis = exports.selectorChartRawYAxis = (0, _selectors.createSelector)(selectorChartCartesianAxisState, axis => axis?.y);
9
+ const selectorChartRawXAxis = state => state.cartesianAxis?.x;
10
+ exports.selectorChartRawXAxis = selectorChartRawXAxis;
11
+ const selectorChartRawYAxis = state => state.cartesianAxis?.y;
12
+ exports.selectorChartRawYAxis = selectorChartRawYAxis;