@mui/x-charts 9.4.0 → 9.5.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/CHANGELOG.md +100 -0
- package/ChartsRadialAxisHighlight/index.d.mts +6 -1
- package/ChartsRadialAxisHighlight/index.d.ts +6 -1
- package/ChartsRadialAxisHighlight/index.js +9 -2
- package/ChartsRadialAxisHighlight/index.mjs +8 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
- package/ChartsRadialDataProvider/index.d.mts +5 -0
- package/ChartsRadialDataProvider/index.d.ts +5 -0
- package/ChartsRadialDataProvider/index.js +12 -1
- package/ChartsRadialDataProvider/index.mjs +7 -0
- package/ChartsRadialGrid/index.d.mts +6 -1
- package/ChartsRadialGrid/index.d.ts +6 -1
- package/ChartsRadialGrid/index.js +8 -2
- package/ChartsRadialGrid/index.mjs +8 -1
- package/ChartsRadiusAxis/index.d.mts +6 -1
- package/ChartsRadiusAxis/index.d.ts +6 -1
- package/ChartsRadiusAxis/index.js +10 -2
- package/ChartsRadiusAxis/index.mjs +7 -1
- package/ChartsRotationAxis/index.d.mts +6 -1
- package/ChartsRotationAxis/index.d.ts +6 -1
- package/ChartsRotationAxis/index.js +10 -2
- package/ChartsRotationAxis/index.mjs +7 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +11 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaElement.mjs +1 -1
- package/LineChart/CircleMarkElement.js +1 -1
- package/LineChart/CircleMarkElement.mjs +1 -1
- package/LineChart/LineElement.js +1 -1
- package/LineChart/LineElement.mjs +1 -1
- package/LineChart/MarkElement.js +1 -1
- package/LineChart/MarkElement.mjs +1 -1
- package/ScatterChart/ScatterChart.js +7 -3
- package/ScatterChart/ScatterChart.mjs +7 -3
- package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
- package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
- package/ScatterChart/ScatterChart.plugins.js +2 -1
- package/ScatterChart/ScatterChart.plugins.mjs +2 -1
- package/ScatterChart/ScatterPlot.d.mts +4 -2
- package/ScatterChart/ScatterPlot.d.ts +4 -2
- package/ScatterChart/ScatterPlot.js +25 -3
- package/ScatterChart/ScatterPlot.mjs +25 -3
- package/ScatterChart/async/ScatterAsync.d.mts +9 -0
- package/ScatterChart/async/ScatterAsync.d.ts +9 -0
- package/ScatterChart/async/ScatterAsync.js +71 -0
- package/ScatterChart/async/ScatterAsync.mjs +67 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
- package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
- package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
- package/SparkLineChart/SparkLineChart.js +2 -1
- package/SparkLineChart/SparkLineChart.mjs +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/getSeriesColorFn.d.mts +5 -5
- package/internals/getSeriesColorFn.d.ts +5 -5
- package/internals/index.d.mts +1 -0
- package/internals/index.d.ts +1 -0
- package/internals/index.js +12 -0
- package/internals/index.mjs +1 -0
- package/internals/plugins/allPlugins.d.mts +4 -3
- package/internals/plugins/allPlugins.d.ts +4 -3
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/allPlugins.mjs +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
- package/internals/scales/scaleBand.js +70 -43
- package/internals/scales/scaleBand.mjs +71 -44
- package/models/seriesType/bar.d.mts +1 -1
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.mts +4 -4
- package/models/seriesType/common.d.ts +4 -4
- package/models/seriesType/config.d.mts +3 -3
- package/models/seriesType/config.d.ts +3 -3
- package/models/seriesType/line.d.mts +1 -1
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.mts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +1 -1
- package/models/seriesType/scatter.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.5.0
|
|
4
|
+
|
|
5
|
+
_Jun 11, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 🎁 New [`multiSelect` column type for Data Grid Pro](https://mui.com/x/react-data-grid/column-definition/#MultiSelectColumn)
|
|
10
|
+
- 🚀 New [renderer="svg-progressive"](https://mui.com/x/react-charts/scatter/#progressive-renderer) paints scatter points in batched frames so large datasets render smoothly without blocking the main thread.
|
|
11
|
+
- 🐞 Bugfixes
|
|
12
|
+
- 📚 Documentation improvements
|
|
13
|
+
|
|
14
|
+
Special thanks go out to community members @mustafajw07 and @Anexus5919 for their valuable contribution.
|
|
15
|
+
|
|
16
|
+
The following team members contributed to this release:
|
|
17
|
+
@alexfauquette, @JCQuintas, @rita-codes, @rluzists1, @sai6855, @siriwatknp, @arminmeh, @brijeshb42
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@9.5.0`
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Restrict warning messages to non-production environments in various components (#22461) @sai6855
|
|
24
|
+
- [DataGrid] Prevent React state update before mount (#22374) @arminmeh
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@9.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@9.5.0`, plus:
|
|
29
|
+
|
|
30
|
+
- [DataGridPro] Add new `multiSelect` column type (#21157) @siriwatknp
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-premium@9.5.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid-pro@9.5.0`.
|
|
35
|
+
|
|
36
|
+
### Date and Time Pickers
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-date-pickers@9.5.0`
|
|
39
|
+
|
|
40
|
+
- [pickers] Fix missing export of `th-TH` (#22703) @alexfauquette
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers-pro@9.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-date-pickers@9.5.0`.
|
|
45
|
+
|
|
46
|
+
### Charts
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-charts@9.5.0`
|
|
49
|
+
|
|
50
|
+
- [charts] Add `FocusedBar` component to `BarScatterComposition` demo (#22704) @sai6855
|
|
51
|
+
- [charts] Add dedicated Bubble Chart documentation page (#22688) @mustafajw07
|
|
52
|
+
- [charts] Add progressive scatter renderer (#22518) @JCQuintas
|
|
53
|
+
- [charts] Avoid full axis pipeline rebuild on resize (#22695) @JCQuintas
|
|
54
|
+
- [charts] Document focus indicator in composition page (#22712) @JCQuintas
|
|
55
|
+
- [charts] Fix `ChartsTooltip` `container` and `disablePortal` props being ignored (#22690) @JCQuintas
|
|
56
|
+
- [charts] Make ordinal scales O(1) to copy and re-range (#22691) @JCQuintas
|
|
57
|
+
- [charts] Stabilize WebGL bar rendering at sub-pixel widths (#22678) @JCQuintas
|
|
58
|
+
- [charts] Use the series config to define value types (#22693) @sai6855
|
|
59
|
+
- [charts] Decouple interaction hook from the cartesian zoom (#22708) @alexfauquette
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts-pro@9.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-charts@9.5.0`, plus:
|
|
64
|
+
|
|
65
|
+
- [charts-pro] Add missing focus highlight (#22689) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-premium@9.5.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts-pro@9.5.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-premium] Set `Heatmap` WebGL render as stable (#22665) @alexfauquette
|
|
72
|
+
- [charts-premium] Stabilize candlestick charts (#22666) @alexfauquette
|
|
73
|
+
- [charts-premium] Stabilize the radial charts (#22655) @alexfauquette
|
|
74
|
+
|
|
75
|
+
### Scheduler
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-scheduler@9.0.0-beta.1`
|
|
78
|
+
|
|
79
|
+
Internal changes.
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
82
|
+
|
|
83
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.1`, plus:
|
|
84
|
+
|
|
85
|
+
- [scheduler] Remove dead CSS variable writes in `EventTimelinePremiumContent` (#22720) @rita-codes
|
|
86
|
+
- [scheduler] Show scope dialog when deleting a recurring event (#22552) @Anexus5919
|
|
87
|
+
|
|
88
|
+
### Core
|
|
89
|
+
|
|
90
|
+
- [docs-infra] Fix immutable cache headers for `/\_next/static` assets (#22747) @brijeshb42
|
|
91
|
+
- [docs-infra] Prefix `/\_next/static` cache header rule with `/x` basePath (#22748) @brijeshb42
|
|
92
|
+
- [code-infra] Update dependencies to resolve Dependabot security alerts (#22714) @Janpot
|
|
93
|
+
|
|
94
|
+
### Docs
|
|
95
|
+
|
|
96
|
+
- [docs] Fix broken links checker crashing on 404 known-targets fetch (#22707) @sai6855
|
|
97
|
+
- [docs] Fix country data (#22716) @alexfauquette
|
|
98
|
+
|
|
99
|
+
### Miscellaneous
|
|
100
|
+
|
|
101
|
+
- [legal] Update EULA links in docs (#22717) @rluzists1
|
|
102
|
+
|
|
3
103
|
## 9.4.0
|
|
4
104
|
|
|
5
105
|
<!-- generated comparing v9.3.0..master -->
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialAxisHighlight: typeof ChartsRadialAxisHighlight;
|
|
2
7
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
3
8
|
export type { ChartsRadialAxisHighlightClasses, ChartsRadialAxisHighlightClassKey } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
4
9
|
export * from "./ChartsRadialAxisHighlight.types.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.js";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialAxisHighlight: typeof ChartsRadialAxisHighlight;
|
|
2
7
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.js";
|
|
3
8
|
export type { ChartsRadialAxisHighlightClasses, ChartsRadialAxisHighlightClassKey } from "./chartsRadialAxisHighlightClasses.js";
|
|
4
9
|
export * from "./ChartsRadialAxisHighlight.types.js";
|
|
@@ -5,14 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Unstable_ChartsRadialAxisHighlight: true,
|
|
8
|
+
ChartsRadialAxisHighlight: true,
|
|
8
9
|
chartsRadialAxisHighlightClasses: true
|
|
9
10
|
};
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
+
Object.defineProperty(exports, "ChartsRadialAxisHighlight", {
|
|
11
12
|
enumerable: true,
|
|
12
13
|
get: function () {
|
|
13
14
|
return _ChartsRadialAxisHighlight.ChartsRadialAxisHighlight;
|
|
14
15
|
}
|
|
15
16
|
});
|
|
17
|
+
exports.Unstable_ChartsRadialAxisHighlight = void 0;
|
|
16
18
|
Object.defineProperty(exports, "chartsRadialAxisHighlightClasses", {
|
|
17
19
|
enumerable: true,
|
|
18
20
|
get: function () {
|
|
@@ -44,4 +46,9 @@ Object.keys(_ChartsRadialAxisHighlightPath).forEach(function (key) {
|
|
|
44
46
|
return _ChartsRadialAxisHighlightPath[key];
|
|
45
47
|
}
|
|
46
48
|
});
|
|
47
|
-
});
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
52
|
+
*/
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
|
+
const Unstable_ChartsRadialAxisHighlight = exports.Unstable_ChartsRadialAxisHighlight = _ChartsRadialAxisHighlight.ChartsRadialAxisHighlight;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const Unstable_ChartsRadialAxisHighlight = ChartsRadialAxisHighlight;
|
|
2
9
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
3
10
|
export * from "./ChartsRadialAxisHighlight.types.mjs";
|
|
4
11
|
export * from "./ChartsRadialAxisHighlightPath.mjs";
|
|
@@ -35,4 +35,4 @@ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesTyp
|
|
|
35
35
|
declare namespace ChartsRadialDataProvider {
|
|
36
36
|
var propTypes: any;
|
|
37
37
|
}
|
|
38
|
-
export { ChartsRadialDataProvider
|
|
38
|
+
export { ChartsRadialDataProvider };
|
|
@@ -35,4 +35,4 @@ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesTyp
|
|
|
35
35
|
declare namespace ChartsRadialDataProvider {
|
|
36
36
|
var propTypes: any;
|
|
37
37
|
}
|
|
38
|
-
export { ChartsRadialDataProvider
|
|
38
|
+
export { ChartsRadialDataProvider };
|
|
@@ -6,7 +6,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.ChartsRadialDataProvider = ChartsRadialDataProvider;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_ChartsRadialDataProvider: typeof ChartsRadialDataProvider;
|
|
1
6
|
export * from "./ChartsRadialDataProvider.mjs";
|
|
2
7
|
export * from "./ChartsRadialDataProvider.plugins.mjs";
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_ChartsRadialDataProvider: typeof ChartsRadialDataProvider;
|
|
1
6
|
export * from "./ChartsRadialDataProvider.js";
|
|
2
7
|
export * from "./ChartsRadialDataProvider.plugins.js";
|
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Unstable_ChartsRadialDataProvider: true
|
|
8
|
+
};
|
|
9
|
+
exports.Unstable_ChartsRadialDataProvider = void 0;
|
|
6
10
|
var _ChartsRadialDataProvider = require("./ChartsRadialDataProvider");
|
|
7
11
|
Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
8
12
|
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
9
14
|
if (key in exports && exports[key] === _ChartsRadialDataProvider[key]) return;
|
|
10
15
|
Object.defineProperty(exports, key, {
|
|
11
16
|
enumerable: true,
|
|
@@ -17,6 +22,7 @@ Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
|
17
22
|
var _ChartsRadialDataProvider2 = require("./ChartsRadialDataProvider.plugins");
|
|
18
23
|
Object.keys(_ChartsRadialDataProvider2).forEach(function (key) {
|
|
19
24
|
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
26
|
if (key in exports && exports[key] === _ChartsRadialDataProvider2[key]) return;
|
|
21
27
|
Object.defineProperty(exports, key, {
|
|
22
28
|
enumerable: true,
|
|
@@ -24,4 +30,9 @@ Object.keys(_ChartsRadialDataProvider2).forEach(function (key) {
|
|
|
24
30
|
return _ChartsRadialDataProvider2[key];
|
|
25
31
|
}
|
|
26
32
|
});
|
|
27
|
-
});
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
36
|
+
*/
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
38
|
+
const Unstable_ChartsRadialDataProvider = exports.Unstable_ChartsRadialDataProvider = _ChartsRadialDataProvider.ChartsRadialDataProvider;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.mjs";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRadialDataProvider = ChartsRadialDataProvider;
|
|
1
8
|
export * from "./ChartsRadialDataProvider.mjs";
|
|
2
9
|
export * from "./ChartsRadialDataProvider.plugins.mjs";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
2
|
+
export { type ChartsRadialGridProps, ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialGrid: typeof ChartsRadialGrid;
|
|
2
7
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.mjs";
|
|
3
8
|
export type { ChartsRadialGridClasses, ChartsRadialGridClassKey } from "./chartsRadialGridClasses.mjs";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.js";
|
|
2
|
+
export { type ChartsRadialGridProps, ChartsRadialGrid } from "./ChartsRadialGrid.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialGrid: typeof ChartsRadialGrid;
|
|
2
7
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.js";
|
|
3
8
|
export type { ChartsRadialGridClasses, ChartsRadialGridClassKey } from "./chartsRadialGridClasses.js";
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ChartsRadialGrid", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRadialGrid.ChartsRadialGrid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRadialGrid = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialGridClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,9 @@ Object.defineProperty(exports, "chartsRadialGridClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRadialGrid = require("./ChartsRadialGrid");
|
|
19
|
-
var _chartsRadialGridClasses = require("./chartsRadialGridClasses");
|
|
20
|
+
var _chartsRadialGridClasses = require("./chartsRadialGridClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRadialGrid = exports.Unstable_ChartsRadialGrid = _ChartsRadialGrid.ChartsRadialGrid;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
2
|
+
export { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const Unstable_ChartsRadialGrid = ChartsRadialGrid;
|
|
2
9
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadiusAxis: typeof ChartsRadiusAxis;
|
|
2
7
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.mjs";
|
|
3
8
|
export type { ChartsRadialAxisClasses, ChartsRadialAxisClassKey } from "./chartsRadiusAxisClasses.mjs";
|
|
4
9
|
export { type ChartsRadiusAxisProps } from "../models/axis.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.js";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadiusAxis: typeof ChartsRadiusAxis;
|
|
2
7
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.js";
|
|
3
8
|
export type { ChartsRadialAxisClasses, ChartsRadialAxisClassKey } from "./chartsRadiusAxisClasses.js";
|
|
4
9
|
export { type ChartsRadiusAxisProps } from "../models/axis.js";
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ChartsRadiusAxis", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRadiusAxis.ChartsRadiusAxis;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRadiusAxis = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,11 @@ Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRadiusAxis = require("./ChartsRadiusAxis");
|
|
19
|
-
var _chartsRadiusAxisClasses = require("./chartsRadiusAxisClasses");
|
|
20
|
+
var _chartsRadiusAxisClasses = require("./chartsRadiusAxisClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRadiusAxis = exports.Unstable_ChartsRadiusAxis = _ChartsRadiusAxis.ChartsRadiusAxis;
|
|
26
|
+
|
|
27
|
+
// Re-export types
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRadiusAxis = ChartsRadiusAxis;
|
|
2
8
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.mjs";
|
|
3
9
|
|
|
4
10
|
// Re-export types
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRotationAxis: typeof ChartsRotationAxis;
|
|
2
7
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./chartsRotationAxisClasses.mjs";
|
|
3
8
|
export { type ChartsRotationAxisProps } from "../models/axis.mjs";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.js";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRotationAxis: typeof ChartsRotationAxis;
|
|
2
7
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./chartsRotationAxisClasses.js";
|
|
3
8
|
export { type ChartsRotationAxisProps } from "../models/axis.js";
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ChartsRotationAxis", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRotationAxis.ChartsRotationAxis;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRotationAxis = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,11 @@ Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRotationAxis = require("./ChartsRotationAxis");
|
|
19
|
-
var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
|
|
20
|
+
var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRotationAxis = exports.Unstable_ChartsRotationAxis = _ChartsRotationAxis.ChartsRotationAxis;
|
|
26
|
+
|
|
27
|
+
// Re-export types
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRotationAxis = ChartsRotationAxis;
|
|
2
8
|
export { chartsRadialAxisClasses } from "./chartsRotationAxisClasses.mjs";
|
|
3
9
|
|
|
4
10
|
// Re-export types
|
|
@@ -16,6 +16,7 @@ var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
|
16
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
17
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
18
18
|
var _useLazyRef = _interopRequireDefault(require("@mui/utils/useLazyRef"));
|
|
19
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
19
20
|
var _styles = require("@mui/material/styles");
|
|
20
21
|
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
21
22
|
var _NoSsr = _interopRequireDefault(require("@mui/material/NoSsr"));
|
|
@@ -109,7 +110,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
const chartsLayerContainerRef = (0, _hooks.useChartsLayerContainerRef)();
|
|
112
|
-
const
|
|
113
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
113
114
|
const classes = (0, _chartsTooltipClasses.useUtilityClasses)(propClasses);
|
|
114
115
|
const pointerType = store.use(_useChartInteraction.selectorChartsPointerType);
|
|
115
116
|
const isFineMainPointer = (0, _utils.useIsFineMainPointer)();
|
|
@@ -154,6 +155,12 @@ function ChartsTooltipContainer(inProps) {
|
|
|
154
155
|
pointerUpdate.clear();
|
|
155
156
|
};
|
|
156
157
|
}, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
|
|
158
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
159
|
+
if (!isTooltipNodeAnchored) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
popperRef.current?.update();
|
|
163
|
+
}, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
|
|
157
164
|
const pointerAnchorEl = React.useMemo(() => ({
|
|
158
165
|
getBoundingClientRect: () => ({
|
|
159
166
|
x: positionRef.current.x,
|
|
@@ -198,7 +205,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
198
205
|
}
|
|
199
206
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
200
207
|
children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
201
|
-
ref:
|
|
208
|
+
ref: setAnchorEl,
|
|
202
209
|
style: {
|
|
203
210
|
position: 'absolute',
|
|
204
211
|
display: 'hidden',
|
|
@@ -219,9 +226,9 @@ function ChartsTooltipContainer(inProps) {
|
|
|
219
226
|
open: isOpen,
|
|
220
227
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
221
228
|
popperRef: popperRef,
|
|
222
|
-
anchorEl: itemPosition ?
|
|
229
|
+
anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
|
|
223
230
|
modifiers: modifiers,
|
|
224
|
-
container: chartsLayerContainerRef.current,
|
|
231
|
+
container: other.container ?? chartsLayerContainerRef.current,
|
|
225
232
|
popperOptions: (0, _extends2.default)({}, other.popperOptions, {
|
|
226
233
|
strategy: 'fixed'
|
|
227
234
|
})
|
|
@@ -9,6 +9,7 @@ import * as ReactDOM from 'react-dom';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
11
11
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
12
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
12
13
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
13
14
|
import Popper from '@mui/material/Popper';
|
|
14
15
|
import NoSsr from '@mui/material/NoSsr';
|
|
@@ -102,7 +103,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
const chartsLayerContainerRef = useChartsLayerContainerRef();
|
|
105
|
-
const
|
|
106
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
106
107
|
const classes = useUtilityClasses(propClasses);
|
|
107
108
|
const pointerType = store.use(selectorChartsPointerType);
|
|
108
109
|
const isFineMainPointer = useIsFineMainPointer();
|
|
@@ -147,6 +148,12 @@ function ChartsTooltipContainer(inProps) {
|
|
|
147
148
|
pointerUpdate.clear();
|
|
148
149
|
};
|
|
149
150
|
}, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
|
|
151
|
+
useEnhancedEffect(() => {
|
|
152
|
+
if (!isTooltipNodeAnchored) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
popperRef.current?.update();
|
|
156
|
+
}, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
|
|
150
157
|
const pointerAnchorEl = React.useMemo(() => ({
|
|
151
158
|
getBoundingClientRect: () => ({
|
|
152
159
|
x: positionRef.current.x,
|
|
@@ -191,7 +198,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
191
198
|
}
|
|
192
199
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
193
200
|
children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx("div", {
|
|
194
|
-
ref:
|
|
201
|
+
ref: setAnchorEl,
|
|
195
202
|
style: {
|
|
196
203
|
position: 'absolute',
|
|
197
204
|
display: 'hidden',
|
|
@@ -212,9 +219,9 @@ function ChartsTooltipContainer(inProps) {
|
|
|
212
219
|
open: isOpen,
|
|
213
220
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
214
221
|
popperRef: popperRef,
|
|
215
|
-
anchorEl: itemPosition ?
|
|
222
|
+
anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
|
|
216
223
|
modifiers: modifiers,
|
|
217
|
-
container: chartsLayerContainerRef.current,
|
|
224
|
+
container: other.container ?? chartsLayerContainerRef.current,
|
|
218
225
|
popperOptions: _extends({}, other.popperOptions, {
|
|
219
226
|
strategy: 'fixed'
|
|
220
227
|
})
|
package/LineChart/AreaElement.js
CHANGED
|
@@ -42,7 +42,7 @@ function AreaElement(props) {
|
|
|
42
42
|
} = props,
|
|
43
43
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
44
44
|
const store = (0, _useStore.useStore)();
|
|
45
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
45
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
46
46
|
const identifier = React.useMemo(() => ({
|
|
47
47
|
type: 'line',
|
|
48
48
|
seriesId
|
|
@@ -35,7 +35,7 @@ function AreaElement(props) {
|
|
|
35
35
|
} = props,
|
|
36
36
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
37
37
|
const store = useStore();
|
|
38
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
38
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
39
39
|
const identifier = React.useMemo(() => ({
|
|
40
40
|
type: 'line',
|
|
41
41
|
seriesId
|
|
@@ -61,7 +61,7 @@ function CircleMarkElement(props) {
|
|
|
61
61
|
} = props,
|
|
62
62
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
63
63
|
const store = (0, _useStore.useStore)();
|
|
64
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
64
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
65
65
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
66
66
|
type: 'line',
|
|
67
67
|
seriesId,
|
|
@@ -54,7 +54,7 @@ function CircleMarkElement(props) {
|
|
|
54
54
|
} = props,
|
|
55
55
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
56
56
|
const store = useStore();
|
|
57
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
57
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
58
58
|
const interactionProps = useInteractionItemProps({
|
|
59
59
|
type: 'line',
|
|
60
60
|
seriesId,
|
package/LineChart/LineElement.js
CHANGED
|
@@ -43,7 +43,7 @@ function LineElement(props) {
|
|
|
43
43
|
} = props,
|
|
44
44
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
45
45
|
const store = (0, _useStore.useStore)();
|
|
46
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
46
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
47
47
|
const identifier = React.useMemo(() => ({
|
|
48
48
|
type: 'line',
|
|
49
49
|
seriesId
|
|
@@ -36,7 +36,7 @@ function LineElement(props) {
|
|
|
36
36
|
} = props,
|
|
37
37
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
38
|
const store = useStore();
|
|
39
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
39
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
40
40
|
const identifier = React.useMemo(() => ({
|
|
41
41
|
type: 'line',
|
|
42
42
|
seriesId
|
package/LineChart/MarkElement.js
CHANGED
|
@@ -62,7 +62,7 @@ function MarkElement(props) {
|
|
|
62
62
|
} = props,
|
|
63
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
64
64
|
const store = (0, _useStore.useStore)();
|
|
65
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
65
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
66
66
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
67
67
|
type: 'line',
|
|
68
68
|
seriesId,
|