@mui/x-charts 8.6.0 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarPlot.js +11 -150
- package/BarChart/useBarPlotData.d.ts +8 -0
- package/BarChart/useBarPlotData.js +146 -0
- package/CHANGELOG.md +104 -1
- package/ChartContainer/ChartContainer.d.ts +1 -21
- package/ChartContainer/ChartContainer.js +0 -8
- package/ChartContainer/index.d.ts +8 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +3 -0
- package/ChartsReferenceLine/ChartsXReferenceLine.js +48 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +3 -0
- package/ChartsReferenceLine/ChartsYReferenceLine.js +48 -1
- package/ChartsReferenceLine/index.d.ts +3 -1
- package/ChartsSurface/ChartsSurface.js +2 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +6 -3
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/utils.js +18 -29
- package/LineChart/AreaPlot.js +5 -115
- package/LineChart/LinePlot.js +5 -99
- package/LineChart/useAreaPlotData.d.ts +12 -0
- package/LineChart/useAreaPlotData.js +125 -0
- package/LineChart/useLinePlotData.d.ts +11 -0
- package/LineChart/useLinePlotData.js +108 -0
- package/ScatterChart/Scatter.js +22 -48
- package/ScatterChart/useScatterPlotData.d.ts +8 -0
- package/ScatterChart/useScatterPlotData.js +33 -0
- package/context/ChartApi.d.ts +22 -0
- package/context/ChartApi.js +5 -0
- package/context/ChartProvider/ChartContext.js +1 -0
- package/context/index.d.ts +2 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/esm/BarChart/BarPlot.js +12 -152
- package/esm/BarChart/useBarPlotData.d.ts +8 -0
- package/esm/BarChart/useBarPlotData.js +139 -0
- package/esm/ChartContainer/ChartContainer.d.ts +1 -21
- package/esm/ChartContainer/ChartContainer.js +0 -8
- package/esm/ChartContainer/index.d.ts +8 -1
- package/esm/ChartContainer/index.js +6 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.d.ts +3 -0
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +47 -0
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.d.ts +3 -0
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +47 -0
- package/esm/ChartsReferenceLine/index.d.ts +3 -1
- package/esm/ChartsReferenceLine/index.js +2 -1
- package/esm/ChartsSurface/ChartsSurface.js +2 -1
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +6 -3
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/esm/ChartsTooltip/utils.js +18 -29
- package/esm/LineChart/AreaPlot.js +5 -115
- package/esm/LineChart/LinePlot.js +5 -99
- package/esm/LineChart/useAreaPlotData.d.ts +12 -0
- package/esm/LineChart/useAreaPlotData.js +118 -0
- package/esm/LineChart/useLinePlotData.d.ts +11 -0
- package/esm/LineChart/useLinePlotData.js +101 -0
- package/esm/ScatterChart/Scatter.js +23 -49
- package/esm/ScatterChart/useScatterPlotData.d.ts +8 -0
- package/esm/ScatterChart/useScatterPlotData.js +26 -0
- package/esm/context/ChartApi.d.ts +22 -0
- package/esm/context/ChartApi.js +1 -0
- package/esm/context/ChartProvider/ChartContext.js +2 -0
- package/esm/context/index.d.ts +2 -1
- package/esm/context/useChartApiContext.d.ts +1 -1
- package/esm/hooks/useInteractionItemProps.d.ts +14 -9
- package/esm/hooks/useInteractionItemProps.js +28 -28
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -2
- package/esm/internals/index.d.ts +5 -0
- package/esm/internals/index.js +5 -0
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +3 -2
- package/esm/internals/plugins/corePlugins/corePlugins.js +2 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +1 -29
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +3 -3
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +0 -6
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.js +2 -0
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/index.d.ts +2 -0
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/index.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +77 -0
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +31 -0
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +44 -33
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +7 -7
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +34 -34
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.js +47 -30
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/esm/internals/store/useCharts.d.ts +1 -1
- package/esm/locales/elGR.d.ts +19 -0
- package/esm/locales/elGR.js +15 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/hooks/useInteractionItemProps.d.ts +14 -9
- package/hooks/useInteractionItemProps.js +29 -28
- package/index.d.ts +2 -1
- package/index.js +37 -11
- package/internals/index.d.ts +5 -0
- package/internals/index.js +44 -0
- package/internals/plugins/corePlugins/corePlugins.d.ts +3 -2
- package/internals/plugins/corePlugins/corePlugins.js +2 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +1 -29
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +0 -6
- package/internals/plugins/corePlugins/useChartId/useChartId.js +1 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/index.d.ts +2 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/index.js +12 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +84 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +31 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +44 -33
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +34 -34
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.js +46 -30
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/locales/elGR.d.ts +19 -0
- package/locales/elGR.js +21 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/package.json +3 -2
|
@@ -5,14 +5,15 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.getInteractionItemProps = getInteractionItemProps;
|
|
8
9
|
exports.useInteractionItemProps = exports.useInteractionAllItemProps = void 0;
|
|
9
10
|
var React = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _ChartProvider = require("../context/ChartProvider");
|
|
11
|
-
|
|
12
|
+
function onPointerDown(event) {
|
|
12
13
|
if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
13
14
|
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
14
15
|
}
|
|
15
|
-
}
|
|
16
|
+
}
|
|
16
17
|
const useInteractionItemProps = (data, skip) => {
|
|
17
18
|
const {
|
|
18
19
|
instance
|
|
@@ -63,33 +64,33 @@ const useInteractionAllItemProps = (data, skip) => {
|
|
|
63
64
|
} = (0, _ChartProvider.useChartContext)();
|
|
64
65
|
const results = React.useMemo(() => {
|
|
65
66
|
return data.map(item => {
|
|
66
|
-
|
|
67
|
-
return {};
|
|
68
|
-
}
|
|
69
|
-
const onPointerEnter = () => {
|
|
70
|
-
if (!item) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
instance.setItemInteraction(item);
|
|
74
|
-
instance.setHighlight({
|
|
75
|
-
seriesId: item.seriesId,
|
|
76
|
-
dataIndex: item.dataIndex
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
const onPointerLeave = () => {
|
|
80
|
-
if (!item) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
instance.removeItemInteraction(item);
|
|
84
|
-
instance.clearHighlight();
|
|
85
|
-
};
|
|
86
|
-
return {
|
|
87
|
-
onPointerEnter,
|
|
88
|
-
onPointerLeave,
|
|
89
|
-
onPointerDown
|
|
90
|
-
};
|
|
67
|
+
return skip ? {} : getInteractionItemProps(instance, item);
|
|
91
68
|
});
|
|
92
69
|
}, [data, instance, skip]);
|
|
93
70
|
return results;
|
|
94
71
|
};
|
|
95
|
-
exports.useInteractionAllItemProps = useInteractionAllItemProps;
|
|
72
|
+
exports.useInteractionAllItemProps = useInteractionAllItemProps;
|
|
73
|
+
function getInteractionItemProps(instance, item) {
|
|
74
|
+
function onPointerEnter() {
|
|
75
|
+
if (!item) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
instance.setItemInteraction(item);
|
|
79
|
+
instance.setHighlight({
|
|
80
|
+
seriesId: item.seriesId,
|
|
81
|
+
dataIndex: item.dataIndex
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function onPointerLeave() {
|
|
85
|
+
if (!item) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
instance.removeItemInteraction(item);
|
|
89
|
+
instance.clearHighlight();
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
onPointerEnter,
|
|
93
|
+
onPointerLeave,
|
|
94
|
+
onPointerDown
|
|
95
|
+
};
|
|
96
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./SparkLineChart/index.js";
|
|
|
23
23
|
export * from "./Gauge/index.js";
|
|
24
24
|
export * from "./RadarChart/index.js";
|
|
25
25
|
export * from "./ChartsSurface/index.js";
|
|
26
|
-
export
|
|
26
|
+
export { ChartContainer } from "./ChartContainer/index.js";
|
|
27
|
+
export type { ChartContainerProps } from "./ChartContainer/index.js";
|
|
27
28
|
export * from "./ChartDataProvider/index.js";
|
|
28
29
|
export * from "./Toolbar/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v8.
|
|
2
|
+
* @mui/x-charts v8.7.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -10,9 +10,19 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", {
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
|
+
var _exportNames = {
|
|
14
|
+
ChartContainer: true
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "ChartContainer", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return _ChartContainer.ChartContainer;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
13
22
|
var _constants = require("./constants");
|
|
14
23
|
Object.keys(_constants).forEach(function (key) {
|
|
15
24
|
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
26
|
if (key in exports && exports[key] === _constants[key]) return;
|
|
17
27
|
Object.defineProperty(exports, key, {
|
|
18
28
|
enumerable: true,
|
|
@@ -24,6 +34,7 @@ Object.keys(_constants).forEach(function (key) {
|
|
|
24
34
|
var _context = require("./context");
|
|
25
35
|
Object.keys(_context).forEach(function (key) {
|
|
26
36
|
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
27
38
|
if (key in exports && exports[key] === _context[key]) return;
|
|
28
39
|
Object.defineProperty(exports, key, {
|
|
29
40
|
enumerable: true,
|
|
@@ -35,6 +46,7 @@ Object.keys(_context).forEach(function (key) {
|
|
|
35
46
|
var _hooks = require("./hooks");
|
|
36
47
|
Object.keys(_hooks).forEach(function (key) {
|
|
37
48
|
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
50
|
if (key in exports && exports[key] === _hooks[key]) return;
|
|
39
51
|
Object.defineProperty(exports, key, {
|
|
40
52
|
enumerable: true,
|
|
@@ -46,6 +58,7 @@ Object.keys(_hooks).forEach(function (key) {
|
|
|
46
58
|
var _colorPalettes = require("./colorPalettes");
|
|
47
59
|
Object.keys(_colorPalettes).forEach(function (key) {
|
|
48
60
|
if (key === "default" || key === "__esModule") return;
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
49
62
|
if (key in exports && exports[key] === _colorPalettes[key]) return;
|
|
50
63
|
Object.defineProperty(exports, key, {
|
|
51
64
|
enumerable: true,
|
|
@@ -57,6 +70,7 @@ Object.keys(_colorPalettes).forEach(function (key) {
|
|
|
57
70
|
var _models = require("./models");
|
|
58
71
|
Object.keys(_models).forEach(function (key) {
|
|
59
72
|
if (key === "default" || key === "__esModule") return;
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
60
74
|
if (key in exports && exports[key] === _models[key]) return;
|
|
61
75
|
Object.defineProperty(exports, key, {
|
|
62
76
|
enumerable: true,
|
|
@@ -68,6 +82,7 @@ Object.keys(_models).forEach(function (key) {
|
|
|
68
82
|
var _ChartsClipPath = require("./ChartsClipPath");
|
|
69
83
|
Object.keys(_ChartsClipPath).forEach(function (key) {
|
|
70
84
|
if (key === "default" || key === "__esModule") return;
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
71
86
|
if (key in exports && exports[key] === _ChartsClipPath[key]) return;
|
|
72
87
|
Object.defineProperty(exports, key, {
|
|
73
88
|
enumerable: true,
|
|
@@ -79,6 +94,7 @@ Object.keys(_ChartsClipPath).forEach(function (key) {
|
|
|
79
94
|
var _ChartsReferenceLine = require("./ChartsReferenceLine");
|
|
80
95
|
Object.keys(_ChartsReferenceLine).forEach(function (key) {
|
|
81
96
|
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
82
98
|
if (key in exports && exports[key] === _ChartsReferenceLine[key]) return;
|
|
83
99
|
Object.defineProperty(exports, key, {
|
|
84
100
|
enumerable: true,
|
|
@@ -90,6 +106,7 @@ Object.keys(_ChartsReferenceLine).forEach(function (key) {
|
|
|
90
106
|
var _ChartsAxis = require("./ChartsAxis");
|
|
91
107
|
Object.keys(_ChartsAxis).forEach(function (key) {
|
|
92
108
|
if (key === "default" || key === "__esModule") return;
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
93
110
|
if (key in exports && exports[key] === _ChartsAxis[key]) return;
|
|
94
111
|
Object.defineProperty(exports, key, {
|
|
95
112
|
enumerable: true,
|
|
@@ -101,6 +118,7 @@ Object.keys(_ChartsAxis).forEach(function (key) {
|
|
|
101
118
|
var _ChartsXAxis = require("./ChartsXAxis");
|
|
102
119
|
Object.keys(_ChartsXAxis).forEach(function (key) {
|
|
103
120
|
if (key === "default" || key === "__esModule") return;
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
104
122
|
if (key in exports && exports[key] === _ChartsXAxis[key]) return;
|
|
105
123
|
Object.defineProperty(exports, key, {
|
|
106
124
|
enumerable: true,
|
|
@@ -112,6 +130,7 @@ Object.keys(_ChartsXAxis).forEach(function (key) {
|
|
|
112
130
|
var _ChartsYAxis = require("./ChartsYAxis");
|
|
113
131
|
Object.keys(_ChartsYAxis).forEach(function (key) {
|
|
114
132
|
if (key === "default" || key === "__esModule") return;
|
|
133
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
115
134
|
if (key in exports && exports[key] === _ChartsYAxis[key]) return;
|
|
116
135
|
Object.defineProperty(exports, key, {
|
|
117
136
|
enumerable: true,
|
|
@@ -123,6 +142,7 @@ Object.keys(_ChartsYAxis).forEach(function (key) {
|
|
|
123
142
|
var _ChartsGrid = require("./ChartsGrid");
|
|
124
143
|
Object.keys(_ChartsGrid).forEach(function (key) {
|
|
125
144
|
if (key === "default" || key === "__esModule") return;
|
|
145
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
126
146
|
if (key in exports && exports[key] === _ChartsGrid[key]) return;
|
|
127
147
|
Object.defineProperty(exports, key, {
|
|
128
148
|
enumerable: true,
|
|
@@ -134,6 +154,7 @@ Object.keys(_ChartsGrid).forEach(function (key) {
|
|
|
134
154
|
var _ChartsText = require("./ChartsText");
|
|
135
155
|
Object.keys(_ChartsText).forEach(function (key) {
|
|
136
156
|
if (key === "default" || key === "__esModule") return;
|
|
157
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
137
158
|
if (key in exports && exports[key] === _ChartsText[key]) return;
|
|
138
159
|
Object.defineProperty(exports, key, {
|
|
139
160
|
enumerable: true,
|
|
@@ -145,6 +166,7 @@ Object.keys(_ChartsText).forEach(function (key) {
|
|
|
145
166
|
var _ChartsTooltip = require("./ChartsTooltip");
|
|
146
167
|
Object.keys(_ChartsTooltip).forEach(function (key) {
|
|
147
168
|
if (key === "default" || key === "__esModule") return;
|
|
169
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
148
170
|
if (key in exports && exports[key] === _ChartsTooltip[key]) return;
|
|
149
171
|
Object.defineProperty(exports, key, {
|
|
150
172
|
enumerable: true,
|
|
@@ -156,6 +178,7 @@ Object.keys(_ChartsTooltip).forEach(function (key) {
|
|
|
156
178
|
var _ChartsLabel = require("./ChartsLabel");
|
|
157
179
|
Object.keys(_ChartsLabel).forEach(function (key) {
|
|
158
180
|
if (key === "default" || key === "__esModule") return;
|
|
181
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
159
182
|
if (key in exports && exports[key] === _ChartsLabel[key]) return;
|
|
160
183
|
Object.defineProperty(exports, key, {
|
|
161
184
|
enumerable: true,
|
|
@@ -167,6 +190,7 @@ Object.keys(_ChartsLabel).forEach(function (key) {
|
|
|
167
190
|
var _ChartsLegend = require("./ChartsLegend");
|
|
168
191
|
Object.keys(_ChartsLegend).forEach(function (key) {
|
|
169
192
|
if (key === "default" || key === "__esModule") return;
|
|
193
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
170
194
|
if (key in exports && exports[key] === _ChartsLegend[key]) return;
|
|
171
195
|
Object.defineProperty(exports, key, {
|
|
172
196
|
enumerable: true,
|
|
@@ -178,6 +202,7 @@ Object.keys(_ChartsLegend).forEach(function (key) {
|
|
|
178
202
|
var _ChartsLocalizationProvider = require("./ChartsLocalizationProvider");
|
|
179
203
|
Object.keys(_ChartsLocalizationProvider).forEach(function (key) {
|
|
180
204
|
if (key === "default" || key === "__esModule") return;
|
|
205
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
181
206
|
if (key in exports && exports[key] === _ChartsLocalizationProvider[key]) return;
|
|
182
207
|
Object.defineProperty(exports, key, {
|
|
183
208
|
enumerable: true,
|
|
@@ -189,6 +214,7 @@ Object.keys(_ChartsLocalizationProvider).forEach(function (key) {
|
|
|
189
214
|
var _ChartsAxisHighlight = require("./ChartsAxisHighlight");
|
|
190
215
|
Object.keys(_ChartsAxisHighlight).forEach(function (key) {
|
|
191
216
|
if (key === "default" || key === "__esModule") return;
|
|
217
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
192
218
|
if (key in exports && exports[key] === _ChartsAxisHighlight[key]) return;
|
|
193
219
|
Object.defineProperty(exports, key, {
|
|
194
220
|
enumerable: true,
|
|
@@ -200,6 +226,7 @@ Object.keys(_ChartsAxisHighlight).forEach(function (key) {
|
|
|
200
226
|
var _BarChart = require("./BarChart");
|
|
201
227
|
Object.keys(_BarChart).forEach(function (key) {
|
|
202
228
|
if (key === "default" || key === "__esModule") return;
|
|
229
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
203
230
|
if (key in exports && exports[key] === _BarChart[key]) return;
|
|
204
231
|
Object.defineProperty(exports, key, {
|
|
205
232
|
enumerable: true,
|
|
@@ -211,6 +238,7 @@ Object.keys(_BarChart).forEach(function (key) {
|
|
|
211
238
|
var _LineChart = require("./LineChart");
|
|
212
239
|
Object.keys(_LineChart).forEach(function (key) {
|
|
213
240
|
if (key === "default" || key === "__esModule") return;
|
|
241
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
214
242
|
if (key in exports && exports[key] === _LineChart[key]) return;
|
|
215
243
|
Object.defineProperty(exports, key, {
|
|
216
244
|
enumerable: true,
|
|
@@ -222,6 +250,7 @@ Object.keys(_LineChart).forEach(function (key) {
|
|
|
222
250
|
var _PieChart = require("./PieChart");
|
|
223
251
|
Object.keys(_PieChart).forEach(function (key) {
|
|
224
252
|
if (key === "default" || key === "__esModule") return;
|
|
253
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
225
254
|
if (key in exports && exports[key] === _PieChart[key]) return;
|
|
226
255
|
Object.defineProperty(exports, key, {
|
|
227
256
|
enumerable: true,
|
|
@@ -233,6 +262,7 @@ Object.keys(_PieChart).forEach(function (key) {
|
|
|
233
262
|
var _ScatterChart = require("./ScatterChart");
|
|
234
263
|
Object.keys(_ScatterChart).forEach(function (key) {
|
|
235
264
|
if (key === "default" || key === "__esModule") return;
|
|
265
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
236
266
|
if (key in exports && exports[key] === _ScatterChart[key]) return;
|
|
237
267
|
Object.defineProperty(exports, key, {
|
|
238
268
|
enumerable: true,
|
|
@@ -244,6 +274,7 @@ Object.keys(_ScatterChart).forEach(function (key) {
|
|
|
244
274
|
var _SparkLineChart = require("./SparkLineChart");
|
|
245
275
|
Object.keys(_SparkLineChart).forEach(function (key) {
|
|
246
276
|
if (key === "default" || key === "__esModule") return;
|
|
277
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
247
278
|
if (key in exports && exports[key] === _SparkLineChart[key]) return;
|
|
248
279
|
Object.defineProperty(exports, key, {
|
|
249
280
|
enumerable: true,
|
|
@@ -255,6 +286,7 @@ Object.keys(_SparkLineChart).forEach(function (key) {
|
|
|
255
286
|
var _Gauge = require("./Gauge");
|
|
256
287
|
Object.keys(_Gauge).forEach(function (key) {
|
|
257
288
|
if (key === "default" || key === "__esModule") return;
|
|
289
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
258
290
|
if (key in exports && exports[key] === _Gauge[key]) return;
|
|
259
291
|
Object.defineProperty(exports, key, {
|
|
260
292
|
enumerable: true,
|
|
@@ -266,6 +298,7 @@ Object.keys(_Gauge).forEach(function (key) {
|
|
|
266
298
|
var _RadarChart = require("./RadarChart");
|
|
267
299
|
Object.keys(_RadarChart).forEach(function (key) {
|
|
268
300
|
if (key === "default" || key === "__esModule") return;
|
|
301
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
269
302
|
if (key in exports && exports[key] === _RadarChart[key]) return;
|
|
270
303
|
Object.defineProperty(exports, key, {
|
|
271
304
|
enumerable: true,
|
|
@@ -277,6 +310,7 @@ Object.keys(_RadarChart).forEach(function (key) {
|
|
|
277
310
|
var _ChartsSurface = require("./ChartsSurface");
|
|
278
311
|
Object.keys(_ChartsSurface).forEach(function (key) {
|
|
279
312
|
if (key === "default" || key === "__esModule") return;
|
|
313
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
280
314
|
if (key in exports && exports[key] === _ChartsSurface[key]) return;
|
|
281
315
|
Object.defineProperty(exports, key, {
|
|
282
316
|
enumerable: true,
|
|
@@ -286,19 +320,10 @@ Object.keys(_ChartsSurface).forEach(function (key) {
|
|
|
286
320
|
});
|
|
287
321
|
});
|
|
288
322
|
var _ChartContainer = require("./ChartContainer");
|
|
289
|
-
Object.keys(_ChartContainer).forEach(function (key) {
|
|
290
|
-
if (key === "default" || key === "__esModule") return;
|
|
291
|
-
if (key in exports && exports[key] === _ChartContainer[key]) return;
|
|
292
|
-
Object.defineProperty(exports, key, {
|
|
293
|
-
enumerable: true,
|
|
294
|
-
get: function () {
|
|
295
|
-
return _ChartContainer[key];
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
});
|
|
299
323
|
var _ChartDataProvider = require("./ChartDataProvider");
|
|
300
324
|
Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
301
325
|
if (key === "default" || key === "__esModule") return;
|
|
326
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
302
327
|
if (key in exports && exports[key] === _ChartDataProvider[key]) return;
|
|
303
328
|
Object.defineProperty(exports, key, {
|
|
304
329
|
enumerable: true,
|
|
@@ -310,6 +335,7 @@ Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
|
310
335
|
var _Toolbar = require("./Toolbar");
|
|
311
336
|
Object.keys(_Toolbar).forEach(function (key) {
|
|
312
337
|
if (key === "default" || key === "__esModule") return;
|
|
338
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
313
339
|
if (key in exports && exports[key] === _Toolbar[key]) return;
|
|
314
340
|
Object.defineProperty(exports, key, {
|
|
315
341
|
enumerable: true,
|
package/internals/index.d.ts
CHANGED
|
@@ -6,8 +6,12 @@ export { useSeries } from "../hooks/useSeries.js";
|
|
|
6
6
|
export { useInteractionItemProps } from "../hooks/useInteractionItemProps.js";
|
|
7
7
|
export { useDrawingArea } from "../hooks/useDrawingArea.js";
|
|
8
8
|
export { useScatterChartProps } from "../ScatterChart/useScatterChartProps.js";
|
|
9
|
+
export { useScatterPlotData } from "../ScatterChart/useScatterPlotData.js";
|
|
9
10
|
export { useLineChartProps } from "../LineChart/useLineChartProps.js";
|
|
11
|
+
export { useAreaPlotData } from "../LineChart/useAreaPlotData.js";
|
|
12
|
+
export { useLinePlotData } from "../LineChart/useLinePlotData.js";
|
|
10
13
|
export { useBarChartProps } from "../BarChart/useBarChartProps.js";
|
|
14
|
+
export { useBarPlotData } from "../BarChart/useBarPlotData.js";
|
|
11
15
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
12
16
|
export * from "../ChartContainer/useChartContainerProps.js";
|
|
13
17
|
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
@@ -15,6 +19,7 @@ export * from "./createSeriesSelectorOfType.js";
|
|
|
15
19
|
export * from "./plugins/corePlugins/useChartId/index.js";
|
|
16
20
|
export * from "./plugins/corePlugins/useChartSeries/index.js";
|
|
17
21
|
export * from "./plugins/corePlugins/useChartDimensions/index.js";
|
|
22
|
+
export * from "./plugins/corePlugins/useChartInteractionListener/index.js";
|
|
18
23
|
export * from "./plugins/featurePlugins/useChartZAxis/index.js";
|
|
19
24
|
export * from "./plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
20
25
|
export * from "./plugins/featurePlugins/useChartPolarAxis/index.js";
|
package/internals/index.js
CHANGED
|
@@ -8,8 +8,12 @@ var _exportNames = {
|
|
|
8
8
|
useInteractionItemProps: true,
|
|
9
9
|
useDrawingArea: true,
|
|
10
10
|
useScatterChartProps: true,
|
|
11
|
+
useScatterPlotData: true,
|
|
11
12
|
useLineChartProps: true,
|
|
13
|
+
useAreaPlotData: true,
|
|
14
|
+
useLinePlotData: true,
|
|
12
15
|
useBarChartProps: true,
|
|
16
|
+
useBarPlotData: true,
|
|
13
17
|
useRadarChartProps: true,
|
|
14
18
|
getCartesianAxisTriggerTooltip: true,
|
|
15
19
|
getCartesianAxisIndex: true,
|
|
@@ -33,12 +37,24 @@ Object.defineProperty(exports, "getCartesianAxisTriggerTooltip", {
|
|
|
33
37
|
return _getAxisTriggerTooltip.getAxisTriggerTooltip;
|
|
34
38
|
}
|
|
35
39
|
});
|
|
40
|
+
Object.defineProperty(exports, "useAreaPlotData", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return _useAreaPlotData.useAreaPlotData;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
36
46
|
Object.defineProperty(exports, "useBarChartProps", {
|
|
37
47
|
enumerable: true,
|
|
38
48
|
get: function () {
|
|
39
49
|
return _useBarChartProps.useBarChartProps;
|
|
40
50
|
}
|
|
41
51
|
});
|
|
52
|
+
Object.defineProperty(exports, "useBarPlotData", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return _useBarPlotData.useBarPlotData;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
42
58
|
Object.defineProperty(exports, "useDrawingArea", {
|
|
43
59
|
enumerable: true,
|
|
44
60
|
get: function () {
|
|
@@ -57,6 +73,12 @@ Object.defineProperty(exports, "useLineChartProps", {
|
|
|
57
73
|
return _useLineChartProps.useLineChartProps;
|
|
58
74
|
}
|
|
59
75
|
});
|
|
76
|
+
Object.defineProperty(exports, "useLinePlotData", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _useLinePlotData.useLinePlotData;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
60
82
|
Object.defineProperty(exports, "useRadarChartProps", {
|
|
61
83
|
enumerable: true,
|
|
62
84
|
get: function () {
|
|
@@ -69,6 +91,12 @@ Object.defineProperty(exports, "useScatterChartProps", {
|
|
|
69
91
|
return _useScatterChartProps.useScatterChartProps;
|
|
70
92
|
}
|
|
71
93
|
});
|
|
94
|
+
Object.defineProperty(exports, "useScatterPlotData", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () {
|
|
97
|
+
return _useScatterPlotData.useScatterPlotData;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
72
100
|
Object.defineProperty(exports, "useSeries", {
|
|
73
101
|
enumerable: true,
|
|
74
102
|
get: function () {
|
|
@@ -127,8 +155,12 @@ var _useSeries = require("../hooks/useSeries");
|
|
|
127
155
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
128
156
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
129
157
|
var _useScatterChartProps = require("../ScatterChart/useScatterChartProps");
|
|
158
|
+
var _useScatterPlotData = require("../ScatterChart/useScatterPlotData");
|
|
130
159
|
var _useLineChartProps = require("../LineChart/useLineChartProps");
|
|
160
|
+
var _useAreaPlotData = require("../LineChart/useAreaPlotData");
|
|
161
|
+
var _useLinePlotData = require("../LineChart/useLinePlotData");
|
|
131
162
|
var _useBarChartProps = require("../BarChart/useBarChartProps");
|
|
163
|
+
var _useBarPlotData = require("../BarChart/useBarPlotData");
|
|
132
164
|
var _useRadarChartProps = require("../RadarChart/useRadarChartProps");
|
|
133
165
|
var _useChartContainerProps = require("../ChartContainer/useChartContainerProps");
|
|
134
166
|
Object.keys(_useChartContainerProps).forEach(function (key) {
|
|
@@ -202,6 +234,18 @@ Object.keys(_useChartDimensions).forEach(function (key) {
|
|
|
202
234
|
}
|
|
203
235
|
});
|
|
204
236
|
});
|
|
237
|
+
var _useChartInteractionListener = require("./plugins/corePlugins/useChartInteractionListener");
|
|
238
|
+
Object.keys(_useChartInteractionListener).forEach(function (key) {
|
|
239
|
+
if (key === "default" || key === "__esModule") return;
|
|
240
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
241
|
+
if (key in exports && exports[key] === _useChartInteractionListener[key]) return;
|
|
242
|
+
Object.defineProperty(exports, key, {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () {
|
|
245
|
+
return _useChartInteractionListener[key];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
});
|
|
205
249
|
var _useChartZAxis = require("./plugins/featurePlugins/useChartZAxis");
|
|
206
250
|
Object.keys(_useChartZAxis).forEach(function (key) {
|
|
207
251
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -2,10 +2,11 @@ import { type UseChartAnimationSignature } from "./useChartAnimation/index.js";
|
|
|
2
2
|
import { type UseChartDimensionsSignature } from "./useChartDimensions/index.js";
|
|
3
3
|
import { type UseChartIdSignature, UseChartIdParameters } from "./useChartId/index.js";
|
|
4
4
|
import { type UseChartSeriesSignature } from "./useChartSeries/index.js";
|
|
5
|
+
import { type UseChartInteractionListenerSignature } from "./useChartInteractionListener/index.js";
|
|
5
6
|
/**
|
|
6
7
|
* Internal plugins that create the tools used by the other plugins.
|
|
7
8
|
* These plugins are used by the Charts components.
|
|
8
9
|
*/
|
|
9
|
-
export declare const CHART_CORE_PLUGINS: readonly [import("../models/index.js").ChartPlugin<UseChartIdSignature>, import("../models/index.js").ChartPlugin<UseChartDimensionsSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesSignature>, import("../models/index.js").ChartPlugin<UseChartAnimationSignature>];
|
|
10
|
-
export type ChartCorePluginSignatures = [UseChartIdSignature, UseChartDimensionsSignature, UseChartSeriesSignature, UseChartAnimationSignature];
|
|
10
|
+
export declare const CHART_CORE_PLUGINS: readonly [import("../models/index.js").ChartPlugin<UseChartIdSignature>, import("../models/index.js").ChartPlugin<UseChartDimensionsSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesSignature>, import("../models/index.js").ChartPlugin<UseChartInteractionListenerSignature>, import("../models/index.js").ChartPlugin<UseChartAnimationSignature>];
|
|
11
|
+
export type ChartCorePluginSignatures = [UseChartIdSignature, UseChartDimensionsSignature, UseChartSeriesSignature, UseChartAnimationSignature, UseChartInteractionListenerSignature];
|
|
11
12
|
export interface ChartCorePluginParameters extends UseChartIdParameters {}
|
|
@@ -8,8 +8,9 @@ var _useChartAnimation = require("./useChartAnimation");
|
|
|
8
8
|
var _useChartDimensions = require("./useChartDimensions");
|
|
9
9
|
var _useChartId = require("./useChartId");
|
|
10
10
|
var _useChartSeries = require("./useChartSeries");
|
|
11
|
+
var _useChartInteractionListener = require("./useChartInteractionListener");
|
|
11
12
|
/**
|
|
12
13
|
* Internal plugins that create the tools used by the other plugins.
|
|
13
14
|
* These plugins are used by the Charts components.
|
|
14
15
|
*/
|
|
15
|
-
const CHART_CORE_PLUGINS = exports.CHART_CORE_PLUGINS = [_useChartId.useChartId, _useChartDimensions.useChartDimensions, _useChartSeries.useChartSeries, _useChartAnimation.useChartAnimation];
|
|
16
|
+
const CHART_CORE_PLUGINS = exports.CHART_CORE_PLUGINS = [_useChartId.useChartId, _useChartDimensions.useChartDimensions, _useChartSeries.useChartSeries, _useChartInteractionListener.useChartInteractionListener, _useChartAnimation.useChartAnimation];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const selectorChartSkipAnimation: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("./useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
1
|
+
export declare const selectorChartSkipAnimation: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("./useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
2
2
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
3
3
|
} & {
|
|
4
4
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -15,7 +15,6 @@ var _useSelector = require("../../../store/useSelector");
|
|
|
15
15
|
var _constants = require("../../../../constants");
|
|
16
16
|
var _useChartDimensions = require("./useChartDimensions.selectors");
|
|
17
17
|
var _defaultizeMargin = require("../../../defaultizeMargin");
|
|
18
|
-
var _getSVGPoint = require("../../../getSVGPoint");
|
|
19
18
|
const MAX_COMPUTE_RUN = 10;
|
|
20
19
|
const useChartDimensions = ({
|
|
21
20
|
params,
|
|
@@ -162,38 +161,11 @@ const useChartDimensions = ({
|
|
|
162
161
|
}
|
|
163
162
|
return isXInside(x) && isYInside(y);
|
|
164
163
|
}, [isXInside, isYInside]);
|
|
165
|
-
const isElementInside = React.useCallback(element => {
|
|
166
|
-
const svgElement = svgRef.current;
|
|
167
|
-
if (!element || !(element instanceof Element) || !svgElement) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
// For element allowed to overflow, wrapping them in <g data-drawing-container /> make them fully part of the drawing area.
|
|
171
|
-
if (element.closest('[data-drawing-container]')) {
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
const rect = element.getBoundingClientRect();
|
|
175
|
-
const {
|
|
176
|
-
x: left,
|
|
177
|
-
y: top
|
|
178
|
-
} = (0, _getSVGPoint.getSVGPoint)(svgElement, {
|
|
179
|
-
clientX: rect.left,
|
|
180
|
-
clientY: rect.top
|
|
181
|
-
});
|
|
182
|
-
const {
|
|
183
|
-
x: right,
|
|
184
|
-
y: bottom
|
|
185
|
-
} = (0, _getSVGPoint.getSVGPoint)(svgElement, {
|
|
186
|
-
clientX: rect.right,
|
|
187
|
-
clientY: rect.bottom
|
|
188
|
-
});
|
|
189
|
-
return isXInside(left) && isXInside(right) && isYInside(top) && isYInside(bottom);
|
|
190
|
-
}, [isXInside, isYInside, svgRef]);
|
|
191
164
|
return {
|
|
192
165
|
instance: {
|
|
193
166
|
isPointInside,
|
|
194
167
|
isXInside,
|
|
195
|
-
isYInside
|
|
196
|
-
isElementInside
|
|
168
|
+
isYInside
|
|
197
169
|
}
|
|
198
170
|
};
|
|
199
171
|
};
|
|
@@ -3,7 +3,7 @@ import type { UseChartDimensionsSignature } from "./useChartDimensions.types.js"
|
|
|
3
3
|
import { ChartState } from "../../models/chart.js";
|
|
4
4
|
export declare const selectorChartDimensionsState: ChartRootSelector<UseChartDimensionsSignature>;
|
|
5
5
|
export declare const selectorChartMargin: (state: ChartState<[UseChartDimensionsSignature]>) => import("./useChartDimensions.types.js").ChartMargin;
|
|
6
|
-
export declare const selectorChartDrawingArea: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./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 selectorChartDrawingArea: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
7
7
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
8
8
|
} & Partial<import("../../../index.js").UseChartCartesianAxisState> & {
|
|
9
9
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -15,7 +15,7 @@ export declare const selectorChartDrawingArea: import("reselect").Selector<impor
|
|
|
15
15
|
top: number;
|
|
16
16
|
bottom: number;
|
|
17
17
|
}, []>;
|
|
18
|
-
export declare const selectorChartPropsSize: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
18
|
+
export declare const selectorChartPropsSize: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
19
19
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
20
20
|
} & {
|
|
21
21
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -23,7 +23,7 @@ export declare const selectorChartPropsSize: import("reselect").Selector<import(
|
|
|
23
23
|
width: number | undefined;
|
|
24
24
|
height: number | undefined;
|
|
25
25
|
}, any[]>;
|
|
26
|
-
export declare const selectorChartContainerSize: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
26
|
+
export declare const selectorChartContainerSize: import("reselect").Selector<import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
27
27
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
28
28
|
} & {
|
|
29
29
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -63,12 +63,6 @@ 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;
|
|
72
66
|
/**
|
|
73
67
|
* Checks if a point is inside the drawing area.
|
|
74
68
|
* @param {number} x The x coordinate of the point.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
|
|
4
4
|
* @returns {string} The id attribute of the chart.
|
|
5
5
|
*/
|
|
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<{}> & {
|
|
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 & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
7
7
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
8
8
|
} & {
|
|
9
9
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useChartInteractionListener } from "./useChartInteractionListener.js";
|
|
2
|
+
export type { UseChartInteractionListenerParameters, UseChartInteractionListenerState, UseChartInteractionListenerInstance, UseChartInteractionListenerSignature, ChartInteraction } from "./useChartInteractionListener.types.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useChartInteractionListener", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useChartInteractionListener.useChartInteractionListener;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useChartInteractionListener = require("./useChartInteractionListener");
|