@mui/x-charts-pro 8.16.0 → 8.17.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/BarChartPro/BarChartPro.js +1 -0
- package/CHANGELOG.md +108 -1
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
- package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/FunnelChart/FunnelChart.js +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/funnel.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.js +2 -2
- package/Heatmap/Heatmap.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -1
- package/Heatmap/HeatmapPlot.d.ts +1 -2
- package/Heatmap/HeatmapPlot.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/index.js +2 -2
- package/SankeyChart/SankeyChart.js +1 -1
- package/SankeyChart/SankeyLinkElement.js +2 -2
- package/SankeyChart/SankeyNodeElement.js +2 -2
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
- package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/esm/BarChartPro/BarChartPro.js +1 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
- package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.js +1 -1
- package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
- package/esm/FunnelChart/funnel.types.d.ts +1 -1
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/index.js +1 -1
- package/esm/Heatmap/Heatmap.js +1 -1
- package/esm/Heatmap/HeatmapItem.d.ts +1 -1
- package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
- package/esm/Heatmap/HeatmapPlot.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
- package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/index.js +1 -1
- package/esm/SankeyChart/SankeyChart.js +1 -1
- package/esm/SankeyChart/SankeyLinkElement.js +2 -2
- package/esm/SankeyChart/SankeyNodeElement.js +2 -2
- package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/esm/SankeyChart/seriesConfig/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/esm/internals/material/components/BaseMenuItem.js +0 -1
- package/esm/internals/material/components/BasePopper.d.ts +1 -2
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/esm/models/seriesType/heatmap.d.ts +1 -1
- package/index.js +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/internals/material/components/BaseMenuItem.js +0 -2
- package/internals/material/components/BasePopper.d.ts +1 -2
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/models/seriesType/heatmap.d.ts +1 -1
- package/package.json +5 -5
package/Heatmap/HeatmapPlot.js
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapPlot = HeatmapPlot;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _hooks = require("@mui/x-charts/hooks");
|
|
13
11
|
var _useHeatmapSeries = require("../hooks/useHeatmapSeries");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapTooltipProps } from "./HeatmapTooltip.types.js";
|
|
3
|
-
declare function HeatmapTooltip(props: HeatmapTooltipProps):
|
|
2
|
+
declare function HeatmapTooltip(props: HeatmapTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare namespace HeatmapTooltip {
|
|
5
4
|
var propTypes: any;
|
|
6
5
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapTooltip = HeatmapTooltip;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
14
12
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapTooltipProps } from "./HeatmapTooltip.types.js";
|
|
3
2
|
export interface HeatmapTooltipContentProps extends Pick<HeatmapTooltipProps, 'classes'> {}
|
|
4
|
-
export declare function HeatmapTooltipContent(props: HeatmapTooltipContentProps):
|
|
3
|
+
export declare function HeatmapTooltipContent(props: HeatmapTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
export declare namespace HeatmapTooltipContent {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapTooltipContent = HeatmapTooltipContent;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const heatmapSeriesConfig: ChartSeriesTypeConfig<'heatmap'>;
|
|
@@ -4,14 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.heatmapSeriesConfig = void 0;
|
|
8
8
|
var _extremums = require("./extremums");
|
|
9
9
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
10
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
12
12
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
13
13
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
14
|
-
const
|
|
14
|
+
const heatmapSeriesConfig = exports.heatmapSeriesConfig = {
|
|
15
15
|
seriesProcessor: _seriesProcessor.default,
|
|
16
16
|
colorProcessor: _getColor.default,
|
|
17
17
|
legendGetter: () => [],
|
|
@@ -23,7 +23,7 @@ var _seriesConfig = require("./seriesConfig");
|
|
|
23
23
|
var _SankeyTooltip = require("./SankeyTooltip");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const seriesConfig = {
|
|
26
|
-
sankey: _seriesConfig.
|
|
26
|
+
sankey: _seriesConfig.sankeySeriesConfig
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Sankey Chart component
|
|
@@ -33,8 +33,8 @@ const SankeyLinkElement = exports.SankeyLinkElement = /*#__PURE__*/React.forward
|
|
|
33
33
|
sourceId: link.source.id,
|
|
34
34
|
link
|
|
35
35
|
};
|
|
36
|
-
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsLinkHighlighted,
|
|
37
|
-
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded,
|
|
36
|
+
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsLinkHighlighted, link);
|
|
37
|
+
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
|
|
38
38
|
|
|
39
39
|
// Add interaction props for tooltips
|
|
40
40
|
const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
|
|
@@ -46,8 +46,8 @@ const SankeyNodeElement = exports.SankeyNodeElement = /*#__PURE__*/React.forward
|
|
|
46
46
|
nodeId: node.id,
|
|
47
47
|
node
|
|
48
48
|
};
|
|
49
|
-
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsNodeHighlighted,
|
|
50
|
-
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded,
|
|
49
|
+
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsNodeHighlighted, node.id);
|
|
50
|
+
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
|
|
51
51
|
|
|
52
52
|
// Add interaction props for tooltips
|
|
53
53
|
const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
|
|
@@ -22,7 +22,7 @@ export interface SankeyPlotProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* Renders a Sankey diagram plot.
|
|
24
24
|
*/
|
|
25
|
-
declare function SankeyPlot(props: SankeyPlotProps):
|
|
25
|
+
declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
26
|
declare namespace SankeyPlot {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
3
|
-
declare function SankeyTooltip(props: SankeyTooltipProps):
|
|
2
|
+
declare function SankeyTooltip(props: SankeyTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare namespace SankeyTooltip {
|
|
5
4
|
var propTypes: any;
|
|
6
5
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.SankeyTooltip = SankeyTooltip;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
14
12
|
var _SankeyTooltipContent = require("./SankeyTooltipContent");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
3
2
|
export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
|
|
4
|
-
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps):
|
|
3
|
+
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
export declare namespace SankeyTooltipContent {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.SankeyTooltipContent = SankeyTooltipContent;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -26,18 +26,16 @@ const useSankeyHighlight = ({
|
|
|
26
26
|
defaultValue: null
|
|
27
27
|
});
|
|
28
28
|
(0, _useEnhancedEffect.default)(() => {
|
|
29
|
-
store.
|
|
30
|
-
highlight
|
|
29
|
+
if (store.state.highlight.item !== params.highlightedItem) {
|
|
30
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
31
31
|
item: params.highlightedItem
|
|
32
|
-
})
|
|
33
|
-
}
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
34
|
}, [store, params.highlightedItem]);
|
|
35
35
|
const clearHighlight = (0, _useEventCallback.default)(() => {
|
|
36
36
|
params.onHighlightChange?.(null);
|
|
37
|
-
store.
|
|
38
|
-
|
|
39
|
-
item: null
|
|
40
|
-
}
|
|
37
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
38
|
+
item: null
|
|
41
39
|
}));
|
|
42
40
|
});
|
|
43
41
|
const setHighlight = (0, _useEventCallback.default)(newItem => {
|
|
@@ -46,10 +44,8 @@ const useSankeyHighlight = ({
|
|
|
46
44
|
return;
|
|
47
45
|
}
|
|
48
46
|
params.onHighlightChange?.(newItem);
|
|
49
|
-
store.
|
|
50
|
-
|
|
51
|
-
item: newItem
|
|
52
|
-
}
|
|
47
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
48
|
+
item: newItem
|
|
53
49
|
}));
|
|
54
50
|
});
|
|
55
51
|
return {
|
|
@@ -1,63 +1,57 @@
|
|
|
1
|
-
import type { SankeyLayoutLink,
|
|
1
|
+
import type { SankeyLayoutLink, SankeyNodeId } from "../sankey.types.js";
|
|
2
2
|
import type { SankeyLinkFade, SankeyLinkHighlight, SankeyNodeFade, SankeyNodeHighlight } from "../sankey.highlight.types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Get the node highlight configuration from the Sankey series.
|
|
5
5
|
* Defaults to 'nodes' if not specified.
|
|
6
6
|
*/
|
|
7
|
-
export declare const selectorNodeHighlightConfig:
|
|
7
|
+
export declare const selectorNodeHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
8
8
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
9
|
-
}
|
|
10
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
11
|
-
}, SankeyNodeHighlight, any[]>;
|
|
9
|
+
}) => SankeyNodeHighlight;
|
|
12
10
|
/**
|
|
13
11
|
* Get the node fade configuration from the Sankey series.
|
|
14
12
|
* Defaults to 'none' if not specified.
|
|
15
13
|
*/
|
|
16
|
-
export declare const selectorNodeFadeConfig:
|
|
17
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
|
-
} & {
|
|
14
|
+
export declare const selectorNodeFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
19
15
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
20
|
-
}
|
|
16
|
+
}) => SankeyNodeFade;
|
|
21
17
|
/**
|
|
22
18
|
* Get the link highlight configuration from the Sankey series.
|
|
23
19
|
* Defaults to 'links' if not specified.
|
|
24
20
|
*/
|
|
25
|
-
export declare const selectorLinkHighlightConfig:
|
|
21
|
+
export declare const selectorLinkHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
26
22
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
27
|
-
}
|
|
28
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
29
|
-
}, SankeyLinkHighlight, any[]>;
|
|
23
|
+
}) => SankeyLinkHighlight;
|
|
30
24
|
/**
|
|
31
25
|
* Get the link fade configuration from the Sankey series.
|
|
32
26
|
* Defaults to 'none' if not specified.
|
|
33
27
|
*/
|
|
34
|
-
export declare const selectorLinkFadeConfig:
|
|
35
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
36
|
-
} & {
|
|
28
|
+
export declare const selectorLinkFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
37
29
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
38
|
-
}
|
|
30
|
+
}) => SankeyLinkFade;
|
|
39
31
|
/**
|
|
40
32
|
* Get the currently highlighted item in the Sankey chart.
|
|
41
33
|
* @param {UseSankeyHighlightSignature['state']} state The state of the chart.
|
|
42
34
|
* @returns {SankeyItemIdentifier | null} The highlighted item identifier or null.
|
|
43
35
|
*/
|
|
44
|
-
export declare const selectorSankeyHighlightedItem:
|
|
45
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
46
|
-
}, import("../index.js").SankeyItemIdentifier | null, []>;
|
|
36
|
+
export declare const selectorSankeyHighlightedItem: (args_0: import("./useSankeyHighlight.types.js").UseSankeyHighlightState) => import("../index.js").SankeyItemIdentifier | null;
|
|
47
37
|
/**
|
|
48
38
|
* Determines if a specific node should be highlighted.
|
|
49
39
|
* A node is highlighted if:
|
|
50
40
|
* - It's the highlighted node (unless highlight mode is 'none')
|
|
51
41
|
* - It's connected to a highlighted link (based on linkOptions.highlight)
|
|
52
42
|
*/
|
|
53
|
-
export declare const selectorIsNodeHighlighted: import("
|
|
43
|
+
export declare const selectorIsNodeHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
44
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
45
|
+
}, nodeId: SankeyNodeId) => boolean;
|
|
54
46
|
/**
|
|
55
47
|
* Selector that determines if a specific link should be highlighted.
|
|
56
48
|
* A link is highlighted if:
|
|
57
49
|
* - It's the highlighted link (unless highlight mode is 'none')
|
|
58
50
|
* - It's connected to a highlighted node (based on nodeOptions.highlight)
|
|
59
51
|
*/
|
|
60
|
-
export declare const selectorIsLinkHighlighted: import("
|
|
52
|
+
export declare const selectorIsLinkHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
53
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
54
|
+
}, link: SankeyLayoutLink) => boolean;
|
|
61
55
|
/**
|
|
62
56
|
* Selector that determines if an item should be faded.
|
|
63
57
|
* An item is faded if:
|
|
@@ -65,4 +59,6 @@ export declare const selectorIsLinkHighlighted: import("reselect").Selector<any,
|
|
|
65
59
|
* - This item is not highlighted
|
|
66
60
|
* - The fade mode is 'global' for the highlighted element type
|
|
67
61
|
*/
|
|
68
|
-
export declare const selectorIsSankeyItemFaded: import("
|
|
62
|
+
export declare const selectorIsSankeyItemFaded: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
63
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
64
|
+
}, isHighlighted: boolean) => boolean;
|
|
@@ -49,7 +49,7 @@ const selectorSankeyHighlightedItem = exports.selectorSankeyHighlightedItem = (0
|
|
|
49
49
|
* - It's the highlighted node (unless highlight mode is 'none')
|
|
50
50
|
* - It's connected to a highlighted link (based on linkOptions.highlight)
|
|
51
51
|
*/
|
|
52
|
-
const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig
|
|
52
|
+
const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, nodeId) => {
|
|
53
53
|
if (!highlightedItem) {
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
@@ -84,7 +84,7 @@ const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _inter
|
|
|
84
84
|
* - It's the highlighted link (unless highlight mode is 'none')
|
|
85
85
|
* - It's connected to a highlighted node (based on nodeOptions.highlight)
|
|
86
86
|
*/
|
|
87
|
-
const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig
|
|
87
|
+
const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, link) => {
|
|
88
88
|
if (!highlightedItem) {
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
@@ -117,7 +117,7 @@ const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _inter
|
|
|
117
117
|
* - This item is not highlighted
|
|
118
118
|
* - The fade mode is 'global' for the highlighted element type
|
|
119
119
|
*/
|
|
120
|
-
const selectorIsSankeyItemFaded = exports.selectorIsSankeyItemFaded = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig
|
|
120
|
+
const selectorIsSankeyItemFaded = exports.selectorIsSankeyItemFaded = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig], (highlightedItem, nodeFade, linkFade, isHighlighted) => {
|
|
121
121
|
if (!highlightedItem || isHighlighted) {
|
|
122
122
|
return false;
|
|
123
123
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const sankeySeriesConfig: ChartSeriesTypeConfig<'sankey'>;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.sankeySeriesConfig = void 0;
|
|
7
7
|
var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues");
|
|
8
8
|
var _tooltipGetter = require("./tooltipGetter");
|
|
9
9
|
// Simple passthrough functions for sankey chart
|
|
10
10
|
const seriesProcessor = series => series;
|
|
11
11
|
const colorProcessor = series => series;
|
|
12
12
|
const legendGetter = () => [];
|
|
13
|
-
const
|
|
13
|
+
const sankeySeriesConfig = exports.sankeySeriesConfig = {
|
|
14
14
|
seriesProcessor,
|
|
15
15
|
colorProcessor,
|
|
16
16
|
legendGetter,
|
|
@@ -108,6 +108,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
108
108
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
109
109
|
}),
|
|
110
110
|
/**
|
|
111
|
+
* @deprecated Use `barLabel` in the chart series instead.
|
|
111
112
|
* If provided, the function will be used to format the label of the bar.
|
|
112
113
|
* It can be set to 'value' to display the current value.
|
|
113
114
|
* @param {BarItem} item The item to format.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
|
|
3
2
|
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
3
|
import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
|
|
@@ -40,7 +39,7 @@ export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSer
|
|
|
40
39
|
* </ChartDataProviderPro>
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
43
|
-
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>):
|
|
42
|
+
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
|
|
44
43
|
declare namespace ChartDataProviderPro {
|
|
45
44
|
var propTypes: any;
|
|
46
45
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { Watermark } from '@mui/x-license/Watermark';
|
|
7
6
|
import { ChartProvider, ChartsSlotsProvider } from '@mui/x-charts/internals';
|
|
@@ -11,7 +10,7 @@ import { defaultSlotsMaterial } from "../internals/material/index.js";
|
|
|
11
10
|
import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
|
|
12
11
|
import { useChartDataProviderProProps } from "./useChartDataProviderProProps.js";
|
|
13
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const releaseInfo = "
|
|
13
|
+
const releaseInfo = "MTc2MjMwMDgwMDAwMA==";
|
|
15
14
|
const packageIdentifier = 'x-charts-pro';
|
|
16
15
|
/**
|
|
17
16
|
* Orchestrates the data providers for the chart components and hooks.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartZoomSliderProps {
|
|
4
3
|
/**
|
|
@@ -17,5 +16,5 @@ interface ChartZoomSliderProps {
|
|
|
17
16
|
export declare function ChartAxisZoomSlider({
|
|
18
17
|
axisDirection,
|
|
19
18
|
axisId
|
|
20
|
-
}: ChartZoomSliderProps):
|
|
19
|
+
}: ChartZoomSliderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
20
|
export {};
|
|
@@ -19,8 +19,8 @@ export function ChartAxisZoomSlider({
|
|
|
19
19
|
}) {
|
|
20
20
|
const store = useStore();
|
|
21
21
|
const drawingArea = useDrawingArea();
|
|
22
|
-
const zoomData = useSelector(store, selectorChartAxisZoomData,
|
|
23
|
-
const zoomOptions = useSelector(store, selectorChartAxisZoomOptionsLookup,
|
|
22
|
+
const zoomData = useSelector(store, selectorChartAxisZoomData, axisId);
|
|
23
|
+
const zoomOptions = useSelector(store, selectorChartAxisZoomOptionsLookup, axisId);
|
|
24
24
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
25
25
|
const {
|
|
26
26
|
xAxis
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxisId, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface ChartAxisZoomSliderActiveTrackProps {
|
|
4
3
|
axisId: AxisId;
|
|
5
4
|
axisDirection: 'x' | 'y';
|
|
@@ -23,4 +22,4 @@ export declare function ChartAxisZoomSliderActiveTrack({
|
|
|
23
22
|
showTooltip,
|
|
24
23
|
onPointerEnter,
|
|
25
24
|
onPointerLeave
|
|
26
|
-
}: ChartAxisZoomSliderActiveTrackProps):
|
|
25
|
+
}: ChartAxisZoomSliderActiveTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,7 +49,7 @@ export function ChartAxisZoomSliderActiveTrack({
|
|
|
49
49
|
svgRef
|
|
50
50
|
} = useChartContext();
|
|
51
51
|
const store = useStore();
|
|
52
|
-
const axis = useSelector(store, selectorChartAxis,
|
|
52
|
+
const axis = useSelector(store, selectorChartAxis, axisId);
|
|
53
53
|
const drawingArea = useDrawingArea();
|
|
54
54
|
const activePreviewRectRef = React.useRef(null);
|
|
55
55
|
const [startThumbEl, setStartThumbEl] = React.useState(null);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -14,5 +13,5 @@ export declare function ChartAxisZoomSliderPreview({
|
|
|
14
13
|
axisDirection,
|
|
15
14
|
reverse,
|
|
16
15
|
...props
|
|
17
|
-
}: ChartAxisZoomSliderPreviewProps):
|
|
16
|
+
}: ChartAxisZoomSliderPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -42,8 +42,8 @@ function PreviewRectangles(props) {
|
|
|
42
42
|
axisDirection
|
|
43
43
|
} = props;
|
|
44
44
|
const store = useStore();
|
|
45
|
-
const zoomData = useSelector(store, selectorChartAxisZoomData,
|
|
46
|
-
const zoomOptions = useSelector(store, selectorChartAxisZoomOptionsLookup,
|
|
45
|
+
const zoomData = useSelector(store, selectorChartAxisZoomData, axisId);
|
|
46
|
+
const zoomOptions = useSelector(store, selectorChartAxisZoomOptionsLookup, axisId);
|
|
47
47
|
const id = useId();
|
|
48
48
|
if (!zoomData) {
|
|
49
49
|
return null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewContentProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -7,5 +6,5 @@ interface ChartAxisZoomSliderPreviewContentProps {
|
|
|
7
6
|
height: number;
|
|
8
7
|
width: number;
|
|
9
8
|
}
|
|
10
|
-
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps):
|
|
9
|
+
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface AreaPreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function AreaPreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: AreaPreviewPlotProps):
|
|
7
|
+
}: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewAreaElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -47,7 +47,7 @@ function PreviewAreaElement(_ref) {
|
|
|
47
47
|
}
|
|
48
48
|
function useAreaPreviewData(axisId) {
|
|
49
49
|
const store = useStore();
|
|
50
|
-
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis,
|
|
51
|
-
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis,
|
|
50
|
+
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
|
|
51
|
+
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
|
|
52
52
|
return useAreaPlotData(xAxes, yAxes);
|
|
53
53
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -6,5 +5,5 @@ interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
|
6
5
|
height: number;
|
|
7
6
|
width: number;
|
|
8
7
|
}
|
|
9
|
-
export declare function BarPreviewPlot(props: BarPreviewPlotProps):
|
|
8
|
+
export declare function BarPreviewPlot(props: BarPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis, useBarPlotData, useSelector, useStore } from '@mui/x-charts/internals';
|
|
3
2
|
import { BarElement } from '@mui/x-charts/BarChart';
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -49,7 +48,7 @@ export function BarPreviewPlot(props) {
|
|
|
49
48
|
}
|
|
50
49
|
function useBarPreviewData(axisId, drawingArea) {
|
|
51
50
|
const store = useStore();
|
|
52
|
-
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis,
|
|
53
|
-
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis,
|
|
51
|
+
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
|
|
52
|
+
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
|
|
54
53
|
return useBarPlotData(drawingArea, xAxes, yAxes);
|
|
55
54
|
}
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface LinePreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function LinePreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: LinePreviewPlotProps):
|
|
7
|
+
}: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewLineElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -45,7 +45,7 @@ function PreviewLineElement(_ref) {
|
|
|
45
45
|
}
|
|
46
46
|
function useLinePreviewData(axisId) {
|
|
47
47
|
const store = useStore();
|
|
48
|
-
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis,
|
|
49
|
-
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis,
|
|
48
|
+
const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
|
|
49
|
+
const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
|
|
50
50
|
return useLinePlotData(xAxes, yAxes);
|
|
51
51
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface ScatterPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -12,5 +11,5 @@ export declare function ScatterPreviewPlot({
|
|
|
12
11
|
y,
|
|
13
12
|
height,
|
|
14
13
|
width
|
|
15
|
-
}: ScatterPreviewPlotProps):
|
|
14
|
+
}: ScatterPreviewPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
15
|
export {};
|