@mui/x-charts-premium 9.8.0 → 9.9.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/BarChartPremium/BarChartPremium.d.mts +1 -1
- package/BarChartPremium/BarChartPremium.d.ts +1 -1
- package/BarChartPremium/BarChartPremium.js +14 -3
- package/BarChartPremium/BarChartPremium.mjs +14 -3
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +2 -1
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +2 -1
- package/BarChartPremium/RangeBar/FocusedRangeBar.d.mts +1 -1
- package/BarChartPremium/RangeBar/FocusedRangeBar.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/index.js +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/index.mjs +2 -2
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +2 -3
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +2 -3
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.js +12 -15
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.mjs +11 -14
- package/CHANGELOG.md +119 -0
- package/CandlestickChart/CandlestickPlot.d.mts +2 -1
- package/CandlestickChart/CandlestickPlot.d.ts +2 -1
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +2 -1
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +2 -1
- package/CandlestickChart/seriesConfig/index.js +2 -2
- package/CandlestickChart/seriesConfig/index.mjs +2 -2
- package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/CandlestickChart/seriesConfig/tooltipPosition.js +10 -14
- package/CandlestickChart/seriesConfig/tooltipPosition.mjs +10 -14
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +1 -1
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +1 -1
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +4 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +4 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +2 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +2 -1
- package/ChartsGeoDataProviderPremium/index.d.mts +2 -1
- package/ChartsGeoDataProviderPremium/index.d.ts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +2 -1
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- package/ChartsRenderer/components/PaletteOption.d.mts +1 -1
- package/ChartsRenderer/components/PaletteOption.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +2 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
- package/Map/FocusedMapShape.d.mts +2 -1
- package/Map/FocusedMapShape.d.ts +2 -1
- package/Map/GeoDataPlot.d.mts +1 -1
- package/Map/GeoDataPlot.d.ts +1 -1
- package/Map/Graticule.d.mts +1 -1
- package/Map/Graticule.d.ts +1 -1
- package/Map/MapImagePlot.d.mts +1 -1
- package/Map/MapImagePlot.d.ts +1 -1
- package/Map/MapShape.d.mts +1 -1
- package/Map/MapShape.d.ts +1 -1
- package/Map/MapShapePlot.d.mts +1 -1
- package/Map/MapShapePlot.d.ts +1 -1
- package/Map/index.d.mts +1 -3
- package/Map/index.d.ts +1 -3
- package/Map/seriesConfig/tooltipPosition.d.mts +1 -1
- package/Map/seriesConfig/tooltipPosition.d.ts +1 -1
- package/Map/seriesConfig/tooltipPosition.js +2 -8
- package/Map/seriesConfig/tooltipPosition.mjs +3 -9
- package/RadialBarChart/RadialBarElement.d.mts +1 -1
- package/RadialBarChart/RadialBarElement.d.ts +1 -1
- package/RadialBarChart/seriesConfig/index.js +2 -2
- package/RadialBarChart/seriesConfig/index.mjs +2 -2
- package/RadialBarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadialBarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadialBarChart/seriesConfig/tooltipPosition.js +4 -6
- package/RadialBarChart/seriesConfig/tooltipPosition.mjs +2 -5
- package/RadialLineChart/RadialArea.d.mts +2 -1
- package/RadialLineChart/RadialArea.d.ts +2 -1
- package/RadialLineChart/RadialAreaPlot.d.mts +1 -1
- package/RadialLineChart/RadialAreaPlot.d.ts +1 -1
- package/RadialLineChart/RadialLine.d.mts +1 -1
- package/RadialLineChart/RadialLine.d.ts +1 -1
- package/RadialLineChart/RadialLineHighlightElement.d.mts +1 -1
- package/RadialLineChart/RadialLineHighlightElement.d.ts +1 -1
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +1 -1
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +1 -1
- package/RadialLineChart/RadialLinePlot.d.mts +1 -1
- package/RadialLineChart/RadialLinePlot.d.ts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.mts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.ts +1 -1
- package/RadialLineChart/seriesConfig/index.js +2 -2
- package/RadialLineChart/seriesConfig/index.mjs +2 -2
- package/RadialLineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadialLineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadialLineChart/seriesConfig/tooltipPosition.js +4 -6
- package/RadialLineChart/seriesConfig/tooltipPosition.mjs +2 -5
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +2 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +2 -1
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.mts +2 -1
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/plugins/useGeoProjection/factories.d.mts +3 -0
- package/internals/plugins/useGeoProjection/factories.d.ts +3 -0
- package/internals/plugins/useGeoProjection/factories.js +29 -0
- package/internals/plugins/useGeoProjection/factories.mjs +23 -0
- package/internals/plugins/useGeoProjection/projection.utils.d.mts +17 -0
- package/internals/plugins/useGeoProjection/projection.utils.d.ts +17 -0
- package/internals/plugins/useGeoProjection/projection.utils.js +67 -0
- package/internals/plugins/useGeoProjection/projection.utils.mjs +59 -0
- package/internals/plugins/useGeoProjection/useGeoProjection.js +7 -40
- package/internals/plugins/useGeoProjection/useGeoProjection.mjs +7 -40
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +47 -11
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +47 -11
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +118 -8
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -8
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +63 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +63 -2
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.mts +11 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.d.ts +11 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.js +65 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/usePanOnDrag.mjs +58 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.mts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.d.ts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.js +62 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnPinch.mjs +56 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.mts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.d.ts +13 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.js +64 -0
- package/internals/plugins/useGeoProjectionZoom/gestureHooks/useZoomOnWheel.mjs +58 -0
- package/internals/plugins/useGeoProjectionZoom/index.d.mts +2 -0
- package/internals/plugins/useGeoProjectionZoom/index.d.ts +2 -0
- package/internals/plugins/useGeoProjectionZoom/index.js +12 -0
- package/internals/plugins/useGeoProjectionZoom/index.mjs +1 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.mts +31 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.d.ts +31 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.js +187 -0
- package/internals/plugins/useGeoProjectionZoom/mapZoom.utils.mjs +177 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.d.mts +23 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.d.ts +23 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.js +190 -0
- package/internals/plugins/useGeoProjectionZoom/rotationMath.mjs +182 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.mts +3 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.d.ts +3 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.js +174 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.mjs +166 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.mts +152 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.d.ts +152 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.js +5 -0
- package/internals/plugins/useGeoProjectionZoom/useGeoProjectionZoom.types.mjs +1 -0
- package/package.json +6 -6
|
@@ -8,7 +8,7 @@ import type { ChartsContainerPremiumProps } from "../ChartsContainerPremium/inde
|
|
|
8
8
|
export type RangeBarSeries = RangeBarSeriesType;
|
|
9
9
|
export interface BarChartPremiumSlots extends BarChartProSlots {}
|
|
10
10
|
export interface BarChartPremiumSlotProps extends BarChartProSlotProps {}
|
|
11
|
-
export interface BarChartPremiumProps extends Omit<BarChartProProps, 'apiRef' | 'slots' | 'slotProps' | 'seriesConfig' | 'plugins' | 'series' | 'renderer'>, Omit<ChartsContainerPremiumProps<'bar', BarChartPremiumPluginSignatures>, 'series' | 'slots' | 'slotProps'>, Pick<BarPlotPremiumProps, 'renderer'> {
|
|
11
|
+
export interface BarChartPremiumProps extends Omit<BarChartProProps, 'apiRef' | 'slots' | 'slotProps' | 'seriesConfig' | 'plugins' | 'series' | 'renderer'>, Omit<ChartsContainerPremiumProps<'bar', BarChartPremiumPluginSignatures>, 'series' | 'slots' | 'slotProps' | 'sampling'>, Pick<BarPlotPremiumProps, 'renderer'> {
|
|
12
12
|
/**
|
|
13
13
|
* Overridable component slots.
|
|
14
14
|
* @default {}
|
|
@@ -8,7 +8,7 @@ import type { ChartsContainerPremiumProps } from "../ChartsContainerPremium/inde
|
|
|
8
8
|
export type RangeBarSeries = RangeBarSeriesType;
|
|
9
9
|
export interface BarChartPremiumSlots extends BarChartProSlots {}
|
|
10
10
|
export interface BarChartPremiumSlotProps extends BarChartProSlotProps {}
|
|
11
|
-
export interface BarChartPremiumProps extends Omit<BarChartProProps, 'apiRef' | 'slots' | 'slotProps' | 'seriesConfig' | 'plugins' | 'series' | 'renderer'>, Omit<ChartsContainerPremiumProps<'bar', BarChartPremiumPluginSignatures>, 'series' | 'slots' | 'slotProps'>, Pick<BarPlotPremiumProps, 'renderer'> {
|
|
11
|
+
export interface BarChartPremiumProps extends Omit<BarChartProProps, 'apiRef' | 'slots' | 'slotProps' | 'seriesConfig' | 'plugins' | 'series' | 'renderer'>, Omit<ChartsContainerPremiumProps<'bar', BarChartPremiumPluginSignatures>, 'series' | 'slots' | 'slotProps' | 'sampling'>, Pick<BarPlotPremiumProps, 'renderer'> {
|
|
12
12
|
/**
|
|
13
13
|
* Overridable component slots.
|
|
14
14
|
* @default {}
|
|
@@ -35,7 +35,7 @@ var _ChartsDataProviderPremium = require("../ChartsDataProviderPremium");
|
|
|
35
35
|
var _RangeBarPlot = require("./RangeBar/RangeBarPlot");
|
|
36
36
|
var _FocusedRangeBar = require("./RangeBar/FocusedRangeBar");
|
|
37
37
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
|
-
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
|
|
38
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar", "sampling"];
|
|
39
39
|
/**
|
|
40
40
|
* Demos:
|
|
41
41
|
*
|
|
@@ -57,7 +57,8 @@ const BarChartPremium = exports.BarChartPremium = /*#__PURE__*/React.forwardRef(
|
|
|
57
57
|
zoomData,
|
|
58
58
|
onZoomChange,
|
|
59
59
|
apiRef,
|
|
60
|
-
showToolbar
|
|
60
|
+
showToolbar,
|
|
61
|
+
sampling
|
|
61
62
|
} = props,
|
|
62
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
63
64
|
const {
|
|
@@ -83,7 +84,10 @@ const BarChartPremium = exports.BarChartPremium = /*#__PURE__*/React.forwardRef(
|
|
|
83
84
|
onZoomChange,
|
|
84
85
|
apiRef,
|
|
85
86
|
plugins: _BarChartPremium2.BAR_CHART_PREMIUM_PLUGINS
|
|
86
|
-
})
|
|
87
|
+
}), {
|
|
88
|
+
seriesType: 'bar',
|
|
89
|
+
method: sampling
|
|
90
|
+
});
|
|
87
91
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
88
92
|
const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
|
|
89
93
|
const renderer = barPlotPremiumProps.renderer;
|
|
@@ -382,6 +386,13 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes /* remove-prop
|
|
|
382
386
|
* @default 'svg-single'
|
|
383
387
|
*/
|
|
384
388
|
renderer: _propTypes.default.oneOf(['svg-batch', 'svg-single', 'webgl']),
|
|
389
|
+
/**
|
|
390
|
+
* Sampling method used to render large datasets when zoomed out.
|
|
391
|
+
* - `'none'`: render every bar (no sampling).
|
|
392
|
+
* - `'minmax'`: keep the min and max per bucket and draw one merged bar.
|
|
393
|
+
* @default 'none'
|
|
394
|
+
*/
|
|
395
|
+
sampling: _propTypes.default.oneOf(['minmax', 'none']),
|
|
385
396
|
/**
|
|
386
397
|
* The series to display in the bar chart.
|
|
387
398
|
* An array of [[BarSeries]] or [[RangeBarSeries]] objects.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
|
|
5
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar", "sampling"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useThemeProps } from '@mui/material/styles';
|
|
@@ -50,7 +50,8 @@ const BarChartPremium = /*#__PURE__*/React.forwardRef(function BarChartPremium(i
|
|
|
50
50
|
zoomData,
|
|
51
51
|
onZoomChange,
|
|
52
52
|
apiRef,
|
|
53
|
-
showToolbar
|
|
53
|
+
showToolbar,
|
|
54
|
+
sampling
|
|
54
55
|
} = props,
|
|
55
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
56
57
|
const {
|
|
@@ -76,7 +77,10 @@ const BarChartPremium = /*#__PURE__*/React.forwardRef(function BarChartPremium(i
|
|
|
76
77
|
onZoomChange,
|
|
77
78
|
apiRef,
|
|
78
79
|
plugins: BAR_CHART_PREMIUM_PLUGINS
|
|
79
|
-
})
|
|
80
|
+
}), {
|
|
81
|
+
seriesType: 'bar',
|
|
82
|
+
method: sampling
|
|
83
|
+
});
|
|
80
84
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
81
85
|
const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
|
|
82
86
|
const renderer = barPlotPremiumProps.renderer;
|
|
@@ -375,6 +379,13 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes /* remove-prop
|
|
|
375
379
|
* @default 'svg-single'
|
|
376
380
|
*/
|
|
377
381
|
renderer: PropTypes.oneOf(['svg-batch', 'svg-single', 'webgl']),
|
|
382
|
+
/**
|
|
383
|
+
* Sampling method used to render large datasets when zoomed out.
|
|
384
|
+
* - `'none'`: render every bar (no sampling).
|
|
385
|
+
* - `'minmax'`: keep the min and max per bucket and draw one merged bar.
|
|
386
|
+
* @default 'none'
|
|
387
|
+
*/
|
|
388
|
+
sampling: PropTypes.oneOf(['minmax', 'none']),
|
|
378
389
|
/**
|
|
379
390
|
* The series to display in the bar chart.
|
|
380
391
|
* An array of [[BarSeries]] or [[RangeBarSeries]] objects.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { BarProps } from '@mui/x-charts/BarChart';
|
|
2
3
|
export interface AnimatedRangeBarElementProps extends BarProps {
|
|
3
4
|
/**
|
|
@@ -5,4 +6,4 @@ export interface AnimatedRangeBarElementProps extends BarProps {
|
|
|
5
6
|
*/
|
|
6
7
|
hidden?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare function AnimatedRangeBarElement(props: AnimatedRangeBarElementProps):
|
|
9
|
+
export declare function AnimatedRangeBarElement(props: AnimatedRangeBarElementProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { BarProps } from '@mui/x-charts/BarChart';
|
|
2
3
|
export interface AnimatedRangeBarElementProps extends BarProps {
|
|
3
4
|
/**
|
|
@@ -5,4 +6,4 @@ export interface AnimatedRangeBarElementProps extends BarProps {
|
|
|
5
6
|
*/
|
|
6
7
|
hidden?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare function AnimatedRangeBarElement(props: AnimatedRangeBarElementProps):
|
|
9
|
+
export declare function AnimatedRangeBarElement(props: AnimatedRangeBarElementProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function FocusedRangeBar(props: React.SVGAttributes<SVGRectElement>):
|
|
2
|
+
export declare function FocusedRangeBar(props: React.SVGAttributes<SVGRectElement>): React.JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function FocusedRangeBar(props: React.SVGAttributes<SVGRectElement>):
|
|
2
|
+
export declare function FocusedRangeBar(props: React.SVGAttributes<SVGRectElement>): React.JSX.Element | null;
|
|
@@ -14,7 +14,7 @@ var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
|
14
14
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
15
15
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
16
16
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
17
|
-
var _tooltipPosition =
|
|
17
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
18
18
|
var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues");
|
|
19
19
|
var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
|
|
20
20
|
var _RangeBarPreviewPlot = require("../../../ChartsZoomSlider/internals/previews/RangeBarPreviewPlot");
|
|
@@ -23,7 +23,7 @@ const rangeBarSeriesConfig = exports.rangeBarSeriesConfig = {
|
|
|
23
23
|
colorProcessor: _getColor.default,
|
|
24
24
|
legendGetter: _legend.default,
|
|
25
25
|
tooltipGetter: _tooltip.default,
|
|
26
|
-
|
|
26
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
27
27
|
axisTooltipGetter: _tooltip.axisTooltipGetter,
|
|
28
28
|
xExtremumGetter: _extrema.getExtremumX,
|
|
29
29
|
yExtremumGetter: _extrema.getExtremumY,
|
|
@@ -6,7 +6,7 @@ import seriesProcessor from "./seriesProcessor.mjs";
|
|
|
6
6
|
import getColor from "./getColor.mjs";
|
|
7
7
|
import legendGetter from "./legend.mjs";
|
|
8
8
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
|
-
import
|
|
9
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
10
10
|
import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.mjs";
|
|
11
11
|
import descriptionGetter from "./descriptionGetter.mjs";
|
|
12
12
|
import { RangeBarPreviewPlot } from "../../../ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.mjs";
|
|
@@ -15,7 +15,7 @@ export const rangeBarSeriesConfig = {
|
|
|
15
15
|
colorProcessor: getColor,
|
|
16
16
|
legendGetter,
|
|
17
17
|
tooltipGetter,
|
|
18
|
-
|
|
18
|
+
selectorTooltipItemPosition,
|
|
19
19
|
axisTooltipGetter,
|
|
20
20
|
xExtremumGetter: getExtremumX,
|
|
21
21
|
yExtremumGetter: getExtremumY,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'rangeBar'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'rangeBar'>;
|
|
@@ -3,29 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
8
|
+
var _internals = require("@mui/x-charts/internals");
|
|
7
9
|
var _createGetRangeBarDimensions = require("../createGetRangeBarDimensions");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
series,
|
|
11
|
-
identifier,
|
|
12
|
-
axesConfig,
|
|
13
|
-
placement
|
|
14
|
-
} = params;
|
|
15
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
10
|
+
const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.selectorChartSeriesProcessed, _internals.selectorChartXAxis, _internals.selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes, placement) {
|
|
11
|
+
if (!identifier || identifier.type !== 'rangeBar' || identifier.dataIndex === undefined) {
|
|
16
12
|
return null;
|
|
17
13
|
}
|
|
18
14
|
const itemSeries = series.rangeBar?.series[identifier.seriesId];
|
|
19
|
-
if (series.rangeBar
|
|
15
|
+
if (!series.rangeBar || !itemSeries) {
|
|
20
16
|
return null;
|
|
21
17
|
}
|
|
22
|
-
|
|
18
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
19
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
20
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
23
21
|
return null;
|
|
24
22
|
}
|
|
25
23
|
const dimensions = (0, _createGetRangeBarDimensions.createGetRangeBarDimensions)({
|
|
26
24
|
verticalLayout: itemSeries.layout === 'vertical',
|
|
27
|
-
xAxisConfig:
|
|
28
|
-
yAxisConfig:
|
|
25
|
+
xAxisConfig: xAxis,
|
|
26
|
+
yAxisConfig: yAxis,
|
|
29
27
|
series: itemSeries,
|
|
30
28
|
numberOfGroups: series.rangeBar.seriesOrder.length
|
|
31
29
|
})(identifier.dataIndex, series.rangeBar.seriesOrder.findIndex(id => id === itemSeries.id));
|
|
@@ -61,5 +59,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
61
59
|
y
|
|
62
60
|
};
|
|
63
61
|
}
|
|
64
|
-
};
|
|
65
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
62
|
+
});
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
2
|
+
import { selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis } from '@mui/x-charts/internals';
|
|
1
3
|
import { createGetRangeBarDimensions } from "../createGetRangeBarDimensions.mjs";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
series,
|
|
5
|
-
identifier,
|
|
6
|
-
axesConfig,
|
|
7
|
-
placement
|
|
8
|
-
} = params;
|
|
9
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
4
|
+
export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes, placement) {
|
|
5
|
+
if (!identifier || identifier.type !== 'rangeBar' || identifier.dataIndex === undefined) {
|
|
10
6
|
return null;
|
|
11
7
|
}
|
|
12
8
|
const itemSeries = series.rangeBar?.series[identifier.seriesId];
|
|
13
|
-
if (series.rangeBar
|
|
9
|
+
if (!series.rangeBar || !itemSeries) {
|
|
14
10
|
return null;
|
|
15
11
|
}
|
|
16
|
-
|
|
12
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
13
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
14
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
17
15
|
return null;
|
|
18
16
|
}
|
|
19
17
|
const dimensions = createGetRangeBarDimensions({
|
|
20
18
|
verticalLayout: itemSeries.layout === 'vertical',
|
|
21
|
-
xAxisConfig:
|
|
22
|
-
yAxisConfig:
|
|
19
|
+
xAxisConfig: xAxis,
|
|
20
|
+
yAxisConfig: yAxis,
|
|
23
21
|
series: itemSeries,
|
|
24
22
|
numberOfGroups: series.rangeBar.seriesOrder.length
|
|
25
23
|
})(identifier.dataIndex, series.rangeBar.seriesOrder.findIndex(id => id === itemSeries.id));
|
|
@@ -55,5 +53,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
55
53
|
y
|
|
56
54
|
};
|
|
57
55
|
}
|
|
58
|
-
};
|
|
59
|
-
export default tooltipItemPositionGetter;
|
|
56
|
+
});
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,124 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.9.0
|
|
4
|
+
|
|
5
|
+
_Jul 9, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 📊 [Data sampling](https://mui.com/x/react-charts/performance/#sampling) for better performance with large bar and line charts
|
|
10
|
+
- 🗺️ [Maps zoom support](https://mui.com/x/react-charts/map/#zoom)
|
|
11
|
+
- ☑️ Support [applying filters on demand](https://mui.com/x/react-data-grid/filtering/customization/#apply-filters-on-demand) in the Data Grid
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
|
|
15
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
16
|
+
@mustafajw07, @sebastianfrey
|
|
17
|
+
|
|
18
|
+
The following team members contributed to this release:
|
|
19
|
+
@aemartos, @alexfauquette, @brijeshb42, @hasdfa, @Janpot, @JCQuintas, @LukasTy, @rita-codes, @sai6855
|
|
20
|
+
|
|
21
|
+
### Data Grid
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid@9.9.0`
|
|
24
|
+
|
|
25
|
+
- [DataGrid] Add `dataSourceKeepPreviousData` prop (#22554) @LukasTy
|
|
26
|
+
- [DataGrid] Add controlled filter panel for applying filters on demand (#23023) @sebastianfrey
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid@9.9.0`.
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-premium@9.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid-pro@9.9.0`.
|
|
35
|
+
|
|
36
|
+
### Date and Time Pickers
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-date-pickers@9.9.0`
|
|
39
|
+
|
|
40
|
+
Internal changes.
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-date-pickers@9.9.0`, plus:
|
|
45
|
+
|
|
46
|
+
- [DateRangeCalendar] Avoid unnecessary month switch when the value is already visible (#22996) @LukasTy
|
|
47
|
+
|
|
48
|
+
### Charts
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-charts@9.9.0`
|
|
51
|
+
|
|
52
|
+
- [charts] Optimize and de-duplicate sampled axis-highlight band lookup (#23052) @JCQuintas
|
|
53
|
+
- [charts] Unify tooltip item position getter and selector into a single selector API (#23041) @alexfauquette
|
|
54
|
+
- [charts] Fix impossible condition in axis text angle warning (#23102) @sai6855
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-charts-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
57
|
+
|
|
58
|
+
Same changes as in `@mui/x-charts@9.9.0`, plus:
|
|
59
|
+
|
|
60
|
+
- [charts-pro] Add data sampling for large bar and line charts (#22830) @JCQuintas
|
|
61
|
+
- [charts-pro] Allow sampling on non-zoomable charts (#23051) @JCQuintas
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-charts-premium@9.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
64
|
+
|
|
65
|
+
#### Breaking changes
|
|
66
|
+
|
|
67
|
+
The API of the `Unstable_ChartsGeoDataProviderPremium` got modified.
|
|
68
|
+
Props `scale`, `rotation`, and `translation` are replaced by props `view` and `initialView`.
|
|
69
|
+
Same behavior can be obtained with `view.zoomLevel`, `view.center`, and `view.translation`.
|
|
70
|
+
See the [zoom view section](https://mui.com/x/react-charts/map/#control) for detailed information
|
|
71
|
+
|
|
72
|
+
Same changes as in `@mui/x-charts-pro@9.9.0`, plus:
|
|
73
|
+
|
|
74
|
+
- [charts-premium] Maps zoom support (#22709) @alexfauquette
|
|
75
|
+
|
|
76
|
+
### Tree View
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-tree-view@9.9.0`
|
|
79
|
+
|
|
80
|
+
Internal changes.
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-tree-view-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-tree-view@9.9.0`.
|
|
85
|
+
|
|
86
|
+
### Scheduler
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-scheduler@9.0.0-beta.5`
|
|
89
|
+
|
|
90
|
+
- [scheduler] Introduce event resource helper utilities (#23022) @mustafajw07
|
|
91
|
+
- [scheduler] Preserve multi-day event continuity across overflow (#22797) @mustafajw07
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.5`.
|
|
96
|
+
|
|
97
|
+
### Codemod
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-codemod@9.9.0`
|
|
100
|
+
|
|
101
|
+
Internal changes.
|
|
102
|
+
|
|
103
|
+
### Docs
|
|
104
|
+
|
|
105
|
+
- [docs] Fix broken social preview image on shared docs links (#23055) @sai6855
|
|
106
|
+
- [docs] Review and clean up react-chat docs demos & gallery; fix actions-bar layout (#22993) @hasdfa
|
|
107
|
+
- [docs] Update the Pickers recommended date library bundle sizes (#23087) @LukasTy
|
|
108
|
+
|
|
109
|
+
### Core
|
|
110
|
+
|
|
111
|
+
- [mcp] Add `@mui/mcp` server and `@mui/x-agent-tools`. See the [README](https://github.com/mui/mui-x/blob/master/packages/mcp/README.md) for setup (#22947) @aemartos
|
|
112
|
+
- [code-infra] Avoid OOM in the Netlify docs build and CircleCI lint step (#23086) @LukasTy
|
|
113
|
+
- [code-infra] Group `@atlaskit/pragmatic-drag-and-drop` renovate updates (#23105) @LukasTy
|
|
114
|
+
- [code-infra] Validate npm publishing through dry run (#23038) @brijeshb42
|
|
115
|
+
- [docs-infra] Enable `webpackBuildWorker` to bound docs build memory (#23100) @Janpot
|
|
116
|
+
|
|
117
|
+
### Miscellaneous
|
|
118
|
+
|
|
119
|
+
- [test] Fix flaky "should render only the pageSize" Data Grid virtualization test (#23090) @LukasTy
|
|
120
|
+
- [test] Track `@mui/x-chat` bundle size via native expand (#23049) @Janpot
|
|
121
|
+
|
|
3
122
|
## 9.8.0
|
|
4
123
|
|
|
5
124
|
_Jul 2, 2026_
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { AxisTooltipContentProps, ItemTooltipContentProps } from '@mui/x-charts/internals';
|
|
2
|
-
export declare function OHLCTooltipContent(props: AxisTooltipContentProps<'ohlc'> | ItemTooltipContentProps<'ohlc'>):
|
|
3
|
+
export declare function OHLCTooltipContent(props: AxisTooltipContentProps<'ohlc'> | ItemTooltipContentProps<'ohlc'>): React.JSX.Element | null;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { AxisTooltipContentProps, ItemTooltipContentProps } from '@mui/x-charts/internals';
|
|
2
|
-
export declare function OHLCTooltipContent(props: AxisTooltipContentProps<'ohlc'> | ItemTooltipContentProps<'ohlc'>):
|
|
3
|
+
export declare function OHLCTooltipContent(props: AxisTooltipContentProps<'ohlc'> | ItemTooltipContentProps<'ohlc'>): React.JSX.Element | null;
|
|
@@ -14,7 +14,7 @@ var _tooltip = _interopRequireWildcard(require("./tooltip"));
|
|
|
14
14
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
15
15
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
16
16
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
17
|
-
var _tooltipPosition =
|
|
17
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
18
18
|
var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues");
|
|
19
19
|
var _OHLCTooltipContent = require("./OHLCTooltipContent");
|
|
20
20
|
var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
|
|
@@ -24,7 +24,7 @@ const ohlcSeriesConfig = exports.ohlcSeriesConfig = {
|
|
|
24
24
|
legendGetter: _legend.default,
|
|
25
25
|
tooltipGetter: _tooltip.default,
|
|
26
26
|
ItemTooltipContent: _OHLCTooltipContent.OHLCTooltipContent,
|
|
27
|
-
|
|
27
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
28
28
|
axisTooltipGetter: _tooltip.axisTooltipGetter,
|
|
29
29
|
AxisTooltipContent: _OHLCTooltipContent.OHLCTooltipContent,
|
|
30
30
|
xExtremumGetter: _extrema.getExtremumX,
|
|
@@ -6,7 +6,7 @@ import tooltipGetter, { axisTooltipGetter } from "./tooltip.mjs";
|
|
|
6
6
|
import seriesProcessor from "./seriesProcessor.mjs";
|
|
7
7
|
import getColor from "./getColor.mjs";
|
|
8
8
|
import legendGetter from "./legend.mjs";
|
|
9
|
-
import
|
|
9
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
10
10
|
import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.mjs";
|
|
11
11
|
import { OHLCTooltipContent } from "./OHLCTooltipContent.mjs";
|
|
12
12
|
import descriptionGetter from "./descriptionGetter.mjs";
|
|
@@ -16,7 +16,7 @@ export const ohlcSeriesConfig = {
|
|
|
16
16
|
legendGetter,
|
|
17
17
|
tooltipGetter,
|
|
18
18
|
ItemTooltipContent: OHLCTooltipContent,
|
|
19
|
-
|
|
19
|
+
selectorTooltipItemPosition,
|
|
20
20
|
axisTooltipGetter,
|
|
21
21
|
AxisTooltipContent: OHLCTooltipContent,
|
|
22
22
|
xExtremumGetter: getExtremumX,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'ohlc'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'ohlc'>;
|
|
@@ -3,31 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
7
8
|
var _internals = require("@mui/x-charts/internals");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
series,
|
|
11
|
-
identifier,
|
|
12
|
-
axesConfig,
|
|
13
|
-
placement
|
|
14
|
-
} = params;
|
|
15
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
9
|
+
const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.selectorChartSeriesProcessed, _internals.selectorChartXAxis, _internals.selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes, placement) {
|
|
10
|
+
if (!identifier || identifier.type !== 'ohlc' || identifier.dataIndex === undefined) {
|
|
16
11
|
return null;
|
|
17
12
|
}
|
|
18
13
|
const itemSeries = series.ohlc?.series[identifier.seriesId];
|
|
19
14
|
if (itemSeries == null) {
|
|
20
15
|
return null;
|
|
21
16
|
}
|
|
22
|
-
|
|
17
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
18
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
19
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
23
20
|
return null;
|
|
24
21
|
}
|
|
25
22
|
const datum = itemSeries.data[identifier.dataIndex];
|
|
26
23
|
if (!datum) {
|
|
27
24
|
return null;
|
|
28
25
|
}
|
|
29
|
-
const xScale =
|
|
30
|
-
const yScale =
|
|
26
|
+
const xScale = xAxis.scale;
|
|
27
|
+
const yScale = yAxis.scale;
|
|
31
28
|
if (!(0, _internals.isBandScale)(xScale) || (0, _internals.isOrdinalScale)(yScale)) {
|
|
32
29
|
return null;
|
|
33
30
|
}
|
|
@@ -59,5 +56,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
59
56
|
y
|
|
60
57
|
};
|
|
61
58
|
}
|
|
62
|
-
};
|
|
63
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
59
|
+
});
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
identifier,
|
|
6
|
-
axesConfig,
|
|
7
|
-
placement
|
|
8
|
-
} = params;
|
|
9
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
1
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
2
|
+
import { isBandScale, isOrdinalScale, selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis } from '@mui/x-charts/internals';
|
|
3
|
+
export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes, placement) {
|
|
4
|
+
if (!identifier || identifier.type !== 'ohlc' || identifier.dataIndex === undefined) {
|
|
10
5
|
return null;
|
|
11
6
|
}
|
|
12
7
|
const itemSeries = series.ohlc?.series[identifier.seriesId];
|
|
13
8
|
if (itemSeries == null) {
|
|
14
9
|
return null;
|
|
15
10
|
}
|
|
16
|
-
|
|
11
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
12
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
13
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
17
14
|
return null;
|
|
18
15
|
}
|
|
19
16
|
const datum = itemSeries.data[identifier.dataIndex];
|
|
20
17
|
if (!datum) {
|
|
21
18
|
return null;
|
|
22
19
|
}
|
|
23
|
-
const xScale =
|
|
24
|
-
const yScale =
|
|
20
|
+
const xScale = xAxis.scale;
|
|
21
|
+
const yScale = yAxis.scale;
|
|
25
22
|
if (!isBandScale(xScale) || isOrdinalScale(yScale)) {
|
|
26
23
|
return null;
|
|
27
24
|
}
|
|
@@ -53,5 +50,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
53
50
|
y
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
|
-
};
|
|
57
|
-
export default tooltipItemPositionGetter;
|
|
53
|
+
});
|
|
@@ -42,7 +42,7 @@ export declare const defaultSeriesConfigPremium: ChartSeriesConfig<'bar' | 'rang
|
|
|
42
42
|
* </ChartsDataProviderPremium>
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function ChartsDataProviderPremium<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderPremiumProps<SeriesType, TSignatures>): import("react
|
|
45
|
+
declare function ChartsDataProviderPremium<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderPremiumProps<SeriesType, TSignatures>): import("react").JSX.Element;
|
|
46
46
|
declare namespace ChartsDataProviderPremium {
|
|
47
47
|
var propTypes: any;
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export declare const defaultSeriesConfigPremium: ChartSeriesConfig<'bar' | 'rang
|
|
|
42
42
|
* </ChartsDataProviderPremium>
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function ChartsDataProviderPremium<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderPremiumProps<SeriesType, TSignatures>): import("react
|
|
45
|
+
declare function ChartsDataProviderPremium<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderPremiumProps<SeriesType, TSignatures>): import("react").JSX.Element;
|
|
46
46
|
declare namespace ChartsDataProviderPremium {
|
|
47
47
|
var propTypes: any;
|
|
48
48
|
}
|
|
@@ -19,8 +19,8 @@ var _useChartsDataProviderPremiumProps = require("./useChartsDataProviderPremium
|
|
|
19
19
|
var _seriesConfig2 = require("../CandlestickChart/seriesConfig");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const packageInfo = {
|
|
22
|
-
releaseDate: "
|
|
23
|
-
version: "9.
|
|
22
|
+
releaseDate: "MTc4MzU1NTIwMDAwMA==",
|
|
23
|
+
version: "9.9.0",
|
|
24
24
|
name: 'x-charts-premium'
|
|
25
25
|
};
|
|
26
26
|
const defaultSeriesConfigPremium = exports.defaultSeriesConfigPremium = (0, _extends2.default)({}, _internals2.defaultSeriesConfigPro, {
|
|
@@ -12,8 +12,8 @@ import { useChartsDataProviderPremiumProps } from "./useChartsDataProviderPremiu
|
|
|
12
12
|
import { ohlcSeriesConfig } from "../CandlestickChart/seriesConfig/index.mjs";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const packageInfo = {
|
|
15
|
-
releaseDate: "
|
|
16
|
-
version: "9.
|
|
15
|
+
releaseDate: "MTc4MzU1NTIwMDAwMA==",
|
|
16
|
+
version: "9.9.0",
|
|
17
17
|
name: 'x-charts-premium'
|
|
18
18
|
};
|
|
19
19
|
export const defaultSeriesConfigPremium = _extends({}, defaultSeriesConfigPro, {
|