@mui/x-charts-pro 9.8.0 → 9.10.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.d.mts +9 -1
- package/BarChartPro/BarChartPro.d.ts +9 -1
- package/BarChartPro/BarChartPro.js +14 -3
- package/BarChartPro/BarChartPro.mjs +14 -3
- package/BarChartPro/BarChartPro.plugins.d.mts +2 -1
- package/BarChartPro/BarChartPro.plugins.d.ts +2 -1
- package/BarChartPro/BarChartPro.plugins.js +2 -1
- package/BarChartPro/BarChartPro.plugins.mjs +2 -1
- package/CHANGELOG.md +230 -0
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +6 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +6 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +9 -1
- package/ChartsContainerPro/useChartsContainerProProps.mjs +8 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +1 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +1 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +14 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +14 -3
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.d.mts +2 -1
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -1
- package/ChartsToolbarPro/Toolbar.types.d.mts +2 -1
- package/ChartsToolbarPro/Toolbar.types.d.ts +2 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/ChartsZoomSlider/ChartsZoomSlider.d.mts +2 -1
- package/ChartsZoomSlider/ChartsZoomSlider.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.mts +1 -1
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +2 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.js +16 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs +17 -2
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +2 -1
- package/FunnelChart/FocusedFunnelSection.d.mts +1 -1
- package/FunnelChart/FocusedFunnelSection.d.ts +1 -1
- package/FunnelChart/FunnelPlot.d.mts +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/curves/getFunnelCurve.d.mts +1 -1
- package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
- package/FunnelChart/funnelClasses.d.mts +1 -1
- package/FunnelChart/funnelClasses.d.ts +1 -1
- package/FunnelChart/funnelPlotSlots.types.d.mts +3 -2
- package/FunnelChart/funnelPlotSlots.types.d.ts +3 -2
- package/FunnelChart/labelUtils.d.mts +2 -2
- package/FunnelChart/labelUtils.d.ts +2 -2
- package/FunnelChart/seriesConfig/index.js +2 -2
- package/FunnelChart/seriesConfig/index.mjs +2 -2
- package/FunnelChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/FunnelChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/FunnelChart/seriesConfig/tooltipPosition.js +11 -15
- package/FunnelChart/seriesConfig/tooltipPosition.mjs +11 -15
- package/Heatmap/FocusedHeatmapCell.d.mts +1 -1
- package/Heatmap/FocusedHeatmapCell.d.ts +1 -1
- package/Heatmap/Heatmap.d.mts +2 -1
- package/Heatmap/Heatmap.d.ts +2 -1
- package/Heatmap/HeatmapItem.d.mts +3 -2
- package/Heatmap/HeatmapItem.d.ts +3 -2
- package/Heatmap/HeatmapSVGPlot.d.mts +2 -1
- package/Heatmap/HeatmapSVGPlot.d.ts +2 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +2 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +2 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
- package/Heatmap/seriesConfig/highlight.d.mts +2 -2
- package/Heatmap/seriesConfig/highlight.d.ts +2 -2
- package/Heatmap/seriesConfig/index.js +2 -2
- package/Heatmap/seriesConfig/index.mjs +2 -2
- package/Heatmap/seriesConfig/tooltipPosition.d.mts +2 -3
- package/Heatmap/seriesConfig/tooltipPosition.d.ts +2 -3
- package/Heatmap/seriesConfig/tooltipPosition.js +12 -16
- package/Heatmap/seriesConfig/tooltipPosition.mjs +12 -16
- package/LineChartPro/LineChartPro.d.mts +11 -1
- package/LineChartPro/LineChartPro.d.ts +11 -1
- package/LineChartPro/LineChartPro.js +16 -3
- package/LineChartPro/LineChartPro.mjs +16 -3
- package/LineChartPro/LineChartPro.plugins.d.mts +2 -1
- package/LineChartPro/LineChartPro.plugins.d.ts +2 -1
- package/LineChartPro/LineChartPro.plugins.js +2 -1
- package/LineChartPro/LineChartPro.plugins.mjs +2 -1
- package/SankeyChart/FocusedSankeyLink.d.mts +1 -1
- package/SankeyChart/FocusedSankeyLink.d.ts +1 -1
- package/SankeyChart/FocusedSankeyNode.d.mts +1 -1
- package/SankeyChart/FocusedSankeyNode.d.ts +1 -1
- package/SankeyChart/SankeyDataProvider.d.mts +1 -1
- package/SankeyChart/SankeyDataProvider.d.ts +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +1 -1
- package/SankeyChart/SankeyLinkPlot.d.ts +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +1 -1
- package/SankeyChart/SankeyNodePlot.d.ts +1 -1
- package/SankeyChart/SankeyPlot.d.mts +1 -1
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
- package/SankeyChart/sankeyClasses.d.mts +1 -1
- package/SankeyChart/sankeyClasses.d.ts +1 -1
- package/SankeyChart/seriesConfig/createIsFaded.d.mts +1 -1
- package/SankeyChart/seriesConfig/createIsFaded.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/SankeyChart/seriesConfig/index.mjs +2 -2
- package/SankeyChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/SankeyChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/SankeyChart/seriesConfig/tooltipPosition.js +6 -11
- package/SankeyChart/seriesConfig/tooltipPosition.mjs +5 -10
- package/SankeyChart/utils.d.mts +2 -2
- package/SankeyChart/utils.d.ts +2 -2
- package/ScatterChartPro/ScatterChartPro.d.mts +2 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/ChartsWatermark.d.mts +2 -1
- package/internals/ChartsWatermark.d.ts +2 -1
- package/internals/index.d.mts +2 -0
- package/internals/index.d.ts +2 -0
- package/internals/index.js +30 -0
- package/internals/index.mjs +2 -0
- package/internals/material/components/BaseMenuItem.d.mts +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -1
- package/internals/material/components/BasePopper.d.mts +2 -1
- package/internals/material/components/BasePopper.d.ts +2 -1
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/useChartProSampling/barSampler.d.mts +8 -0
- package/internals/plugins/useChartProSampling/barSampler.d.ts +8 -0
- package/internals/plugins/useChartProSampling/barSampler.js +18 -0
- package/internals/plugins/useChartProSampling/barSampler.mjs +12 -0
- package/internals/plugins/useChartProSampling/index.d.mts +2 -0
- package/internals/plugins/useChartProSampling/index.d.ts +2 -0
- package/internals/plugins/useChartProSampling/index.js +12 -0
- package/internals/plugins/useChartProSampling/index.mjs +1 -0
- package/internals/plugins/useChartProSampling/lineSampler.d.mts +8 -0
- package/internals/plugins/useChartProSampling/lineSampler.d.ts +8 -0
- package/internals/plugins/useChartProSampling/lineSampler.js +47 -0
- package/internals/plugins/useChartProSampling/lineSampler.mjs +41 -0
- package/internals/plugins/useChartProSampling/sampling.d.mts +38 -0
- package/internals/plugins/useChartProSampling/sampling.d.ts +38 -0
- package/internals/plugins/useChartProSampling/sampling.js +175 -0
- package/internals/plugins/useChartProSampling/sampling.line.d.mts +22 -0
- package/internals/plugins/useChartProSampling/sampling.line.d.ts +22 -0
- package/internals/plugins/useChartProSampling/sampling.line.js +172 -0
- package/internals/plugins/useChartProSampling/sampling.line.mjs +164 -0
- package/internals/plugins/useChartProSampling/sampling.mjs +164 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.mts +33 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.ts +33 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.js +5 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.mjs +1 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.d.mts +4 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.d.ts +4 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.js +59 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.mjs +52 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.d.mts +25 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.d.ts +25 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.js +5 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.mjs +1 -0
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.mts +26 -26
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +26 -26
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +4 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +4 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +1 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +1 -1
- package/package.json +6 -6
- package/typeOverloads/modules.d.mts +9 -1
- package/typeOverloads/modules.d.ts +9 -1
|
@@ -15,7 +15,7 @@ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'s
|
|
|
15
15
|
*
|
|
16
16
|
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
17
17
|
*/
|
|
18
|
-
declare function SankeyDataProvider(props: SankeyDataProviderProps):
|
|
18
|
+
declare function SankeyDataProvider(props: SankeyDataProviderProps): React.JSX.Element;
|
|
19
19
|
declare namespace SankeyDataProvider {
|
|
20
20
|
var propTypes: any;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'s
|
|
|
15
15
|
*
|
|
16
16
|
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
17
17
|
*/
|
|
18
|
-
declare function SankeyDataProvider(props: SankeyDataProviderProps):
|
|
18
|
+
declare function SankeyDataProvider(props: SankeyDataProviderProps): React.JSX.Element;
|
|
19
19
|
declare namespace SankeyDataProvider {
|
|
20
20
|
var propTypes: any;
|
|
21
21
|
}
|
|
@@ -5,7 +5,7 @@ export interface SankeyLinkLabelPlotProps {
|
|
|
5
5
|
*/
|
|
6
6
|
classes?: Partial<SankeyClasses>;
|
|
7
7
|
}
|
|
8
|
-
declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react
|
|
8
|
+
declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react").JSX.Element | null;
|
|
9
9
|
declare namespace SankeyLinkLabelPlot {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export interface SankeyLinkLabelPlotProps {
|
|
|
5
5
|
*/
|
|
6
6
|
classes?: Partial<SankeyClasses>;
|
|
7
7
|
}
|
|
8
|
-
declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react
|
|
8
|
+
declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react").JSX.Element | null;
|
|
9
9
|
declare namespace SankeyLinkLabelPlot {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ export interface SankeyLinkPlotProps {
|
|
|
13
13
|
*/
|
|
14
14
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function SankeyLinkPlot(props: SankeyLinkPlotProps):
|
|
16
|
+
declare function SankeyLinkPlot(props: SankeyLinkPlotProps): React.JSX.Element | null;
|
|
17
17
|
declare namespace SankeyLinkPlot {
|
|
18
18
|
var propTypes: any;
|
|
19
19
|
}
|
|
@@ -13,7 +13,7 @@ export interface SankeyLinkPlotProps {
|
|
|
13
13
|
*/
|
|
14
14
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function SankeyLinkPlot(props: SankeyLinkPlotProps):
|
|
16
|
+
declare function SankeyLinkPlot(props: SankeyLinkPlotProps): React.JSX.Element | null;
|
|
17
17
|
declare namespace SankeyLinkPlot {
|
|
18
18
|
var propTypes: any;
|
|
19
19
|
}
|
|
@@ -5,7 +5,7 @@ export interface SankeyNodeLabelPlotProps {
|
|
|
5
5
|
*/
|
|
6
6
|
classes?: Partial<SankeyClasses>;
|
|
7
7
|
}
|
|
8
|
-
declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react
|
|
8
|
+
declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react").JSX.Element | null;
|
|
9
9
|
declare namespace SankeyNodeLabelPlot {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export interface SankeyNodeLabelPlotProps {
|
|
|
5
5
|
*/
|
|
6
6
|
classes?: Partial<SankeyClasses>;
|
|
7
7
|
}
|
|
8
|
-
declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react
|
|
8
|
+
declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react").JSX.Element | null;
|
|
9
9
|
declare namespace SankeyNodeLabelPlot {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ export interface SankeyNodePlotProps {
|
|
|
13
13
|
*/
|
|
14
14
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function SankeyNodePlot(props: SankeyNodePlotProps):
|
|
16
|
+
declare function SankeyNodePlot(props: SankeyNodePlotProps): React.JSX.Element | null;
|
|
17
17
|
declare namespace SankeyNodePlot {
|
|
18
18
|
var propTypes: any;
|
|
19
19
|
}
|
|
@@ -13,7 +13,7 @@ export interface SankeyNodePlotProps {
|
|
|
13
13
|
*/
|
|
14
14
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function SankeyNodePlot(props: SankeyNodePlotProps):
|
|
16
|
+
declare function SankeyNodePlot(props: SankeyNodePlotProps): React.JSX.Element | null;
|
|
17
17
|
declare namespace SankeyNodePlot {
|
|
18
18
|
var propTypes: any;
|
|
19
19
|
}
|
|
@@ -26,7 +26,7 @@ export interface SankeyPlotProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* Renders a Sankey diagram plot.
|
|
28
28
|
*/
|
|
29
|
-
declare function SankeyPlot(props: SankeyPlotProps):
|
|
29
|
+
declare function SankeyPlot(props: SankeyPlotProps): React.JSX.Element | null;
|
|
30
30
|
declare namespace SankeyPlot {
|
|
31
31
|
var propTypes: any;
|
|
32
32
|
}
|
|
@@ -26,7 +26,7 @@ export interface SankeyPlotProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* Renders a Sankey diagram plot.
|
|
28
28
|
*/
|
|
29
|
-
declare function SankeyPlot(props: SankeyPlotProps):
|
|
29
|
+
declare function SankeyPlot(props: SankeyPlotProps): React.JSX.Element | null;
|
|
30
30
|
declare namespace SankeyPlot {
|
|
31
31
|
var propTypes: any;
|
|
32
32
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
|
|
2
|
-
export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps,
|
|
2
|
+
export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
2
|
-
export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps,
|
|
2
|
+
export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
|
|
2
|
-
declare function SankeyTooltip(props: SankeyTooltipProps): import("react
|
|
2
|
+
declare function SankeyTooltip(props: SankeyTooltipProps): import("react").JSX.Element;
|
|
3
3
|
declare namespace SankeyTooltip {
|
|
4
4
|
var propTypes: any;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
2
|
-
declare function SankeyTooltip(props: SankeyTooltipProps): import("react
|
|
2
|
+
declare function SankeyTooltip(props: SankeyTooltipProps): import("react").JSX.Element;
|
|
3
3
|
declare namespace SankeyTooltip {
|
|
4
4
|
var propTypes: any;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
|
|
2
2
|
export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
|
|
3
|
-
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react
|
|
3
|
+
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react").JSX.Element | null;
|
|
4
4
|
export declare namespace SankeyTooltipContent {
|
|
5
5
|
var propTypes: any;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
2
2
|
export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
|
|
3
|
-
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react
|
|
3
|
+
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react").JSX.Element | null;
|
|
4
4
|
export declare namespace SankeyTooltipContent {
|
|
5
5
|
var propTypes: any;
|
|
6
6
|
}
|
|
@@ -23,4 +23,4 @@ export declare function getSankeyUtilityClass(slot: string): string;
|
|
|
23
23
|
export declare const sankeyClasses: SankeyClasses;
|
|
24
24
|
export declare const useUtilityClasses: (options?: {
|
|
25
25
|
classes?: Partial<SankeyClasses>;
|
|
26
|
-
}) => Record<"
|
|
26
|
+
}) => Record<"link" | "linkLabel" | "linkLabels" | "links" | "node" | "nodeLabel" | "nodeLabels" | "nodes" | "root", string>;
|
|
@@ -23,4 +23,4 @@ export declare function getSankeyUtilityClass(slot: string): string;
|
|
|
23
23
|
export declare const sankeyClasses: SankeyClasses;
|
|
24
24
|
export declare const useUtilityClasses: (options?: {
|
|
25
25
|
classes?: Partial<SankeyClasses>;
|
|
26
|
-
}) => Record<"
|
|
26
|
+
}) => Record<"link" | "linkLabel" | "linkLabels" | "links" | "node" | "nodeLabel" | "nodeLabels" | "nodes" | "root", string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
|
|
2
2
|
import type { SankeyHighlightScope } from "../sankey.highlight.types.mjs";
|
|
3
|
-
export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<
|
|
3
|
+
export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<'sankey'> | null) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
|
|
2
2
|
import type { SankeyHighlightScope } from "../sankey.highlight.types.js";
|
|
3
|
-
export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<
|
|
3
|
+
export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<'sankey'> | null) => boolean;
|
|
@@ -8,7 +8,7 @@ exports.sankeySeriesConfig = void 0;
|
|
|
8
8
|
var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues");
|
|
9
9
|
var _tooltipGetter = require("./tooltipGetter");
|
|
10
10
|
var _calculateSankeyLayout = require("../calculateSankeyLayout");
|
|
11
|
-
var _tooltipPosition =
|
|
11
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
12
12
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
13
13
|
var _identifierSerializer = _interopRequireDefault(require("./identifierSerializer"));
|
|
14
14
|
var _identifierCleaner = _interopRequireDefault(require("./identifierCleaner"));
|
|
@@ -35,7 +35,7 @@ const sankeySeriesConfig = exports.sankeySeriesConfig = {
|
|
|
35
35
|
colorProcessor,
|
|
36
36
|
legendGetter,
|
|
37
37
|
tooltipGetter: _tooltipGetter.tooltipGetter,
|
|
38
|
-
|
|
38
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
39
39
|
getSeriesWithDefaultValues: _getSeriesWithDefaultValues.getSeriesWithDefaultValues,
|
|
40
40
|
keyboardFocusHandler: _keyboardFocusHandler.default,
|
|
41
41
|
identifierSerializer: _identifierSerializer.default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.mjs";
|
|
2
2
|
import { tooltipGetter } from "./tooltipGetter.mjs";
|
|
3
3
|
import { calculateSankeyLayout } from "../calculateSankeyLayout.mjs";
|
|
4
|
-
import
|
|
4
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
5
5
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
6
6
|
import identifierSerializer from "./identifierSerializer.mjs";
|
|
7
7
|
import identifierCleaner from "./identifierCleaner.mjs";
|
|
@@ -29,7 +29,7 @@ export const sankeySeriesConfig = {
|
|
|
29
29
|
colorProcessor,
|
|
30
30
|
legendGetter,
|
|
31
31
|
tooltipGetter,
|
|
32
|
-
|
|
32
|
+
selectorTooltipItemPosition,
|
|
33
33
|
getSeriesWithDefaultValues,
|
|
34
34
|
keyboardFocusHandler,
|
|
35
35
|
identifierSerializer,
|
|
@@ -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<'sankey'>;
|
|
@@ -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<'sankey'>;
|
|
@@ -3,15 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
identifier,
|
|
12
|
-
placement
|
|
13
|
-
} = params;
|
|
14
|
-
if (!identifier) {
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
8
|
+
var _internals = require("@mui/x-charts/internals");
|
|
9
|
+
const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesLayout, function selectorTooltipItemPosition(identifier, series, seriesLayout, placement) {
|
|
10
|
+
if (!identifier || identifier.type !== 'sankey') {
|
|
15
11
|
return null;
|
|
16
12
|
}
|
|
17
13
|
const seriesItem = series.sankey?.series[identifier.seriesId];
|
|
@@ -92,5 +88,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
92
88
|
}
|
|
93
89
|
}
|
|
94
90
|
return null;
|
|
95
|
-
};
|
|
96
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
91
|
+
});
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
identifier,
|
|
6
|
-
placement
|
|
7
|
-
} = params;
|
|
8
|
-
if (!identifier) {
|
|
1
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
2
|
+
import { selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartSeriesLayout } from '@mui/x-charts/internals';
|
|
3
|
+
export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartSeriesLayout, function selectorTooltipItemPosition(identifier, series, seriesLayout, placement) {
|
|
4
|
+
if (!identifier || identifier.type !== 'sankey') {
|
|
9
5
|
return null;
|
|
10
6
|
}
|
|
11
7
|
const seriesItem = series.sankey?.series[identifier.seriesId];
|
|
@@ -86,5 +82,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
84
|
return null;
|
|
89
|
-
};
|
|
90
|
-
export default tooltipItemPositionGetter;
|
|
85
|
+
});
|
package/SankeyChart/utils.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sankeyRight } from "./d3Sankey/index.mjs";
|
|
2
2
|
import type { SankeyNodeOptions } from "./sankey.types.mjs";
|
|
3
|
-
export declare const getNodeAlignFunction: (align?: SankeyNodeOptions[
|
|
3
|
+
export declare const getNodeAlignFunction: (align?: SankeyNodeOptions['align']) => typeof sankeyRight;
|
package/SankeyChart/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sankeyRight } from "./d3Sankey/index.js";
|
|
2
2
|
import type { SankeyNodeOptions } from "./sankey.types.js";
|
|
3
|
-
export declare const getNodeAlignFunction: (align?: SankeyNodeOptions[
|
|
3
|
+
export declare const getNodeAlignFunction: (align?: SankeyNodeOptions['align']) => typeof sankeyRight;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
|
|
3
4
|
import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
|
|
4
5
|
import type { TooltipPropsOverrides } from '@mui/x-charts/models';
|
|
@@ -12,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
|
|
|
12
13
|
* Slot props for the tooltip component.
|
|
13
14
|
* @default {}
|
|
14
15
|
*/
|
|
15
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides
|
|
16
|
+
tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
|
|
16
17
|
}
|
|
17
18
|
export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
|
|
18
19
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
|
|
3
4
|
import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
|
|
4
5
|
import type { TooltipPropsOverrides } from '@mui/x-charts/models';
|
|
@@ -12,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
|
|
|
12
13
|
* Slot props for the tooltip component.
|
|
13
14
|
* @default {}
|
|
14
15
|
*/
|
|
15
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides
|
|
16
|
+
tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
|
|
16
17
|
}
|
|
17
18
|
export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
|
|
18
19
|
/**
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { CommercialPackageInfo } from '@mui/x-license/internals';
|
|
2
3
|
interface ChartsWatermarkProps {
|
|
3
4
|
packageInfo: CommercialPackageInfo;
|
|
4
5
|
}
|
|
5
|
-
export declare function ChartsWatermark(props: ChartsWatermarkProps):
|
|
6
|
+
export declare function ChartsWatermark(props: ChartsWatermarkProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { CommercialPackageInfo } from '@mui/x-license/internals';
|
|
2
3
|
interface ChartsWatermarkProps {
|
|
3
4
|
packageInfo: CommercialPackageInfo;
|
|
4
5
|
}
|
|
5
|
-
export declare function ChartsWatermark(props: ChartsWatermarkProps):
|
|
6
|
+
export declare function ChartsWatermark(props: ChartsWatermarkProps): React.JSX.Element;
|
|
6
7
|
export {};
|
package/internals/index.d.mts
CHANGED
|
@@ -3,6 +3,8 @@ export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPr
|
|
|
3
3
|
export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.mjs";
|
|
4
4
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs";
|
|
5
5
|
export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.mjs";
|
|
6
|
+
export { useDragGesture, useWheelGesture, usePinchGesture, type UseDragGestureOptions, type UseWheelGestureOptions, type UsePinchGestureOptions, type GestureInstance, type PanGestureConfig } from "./plugins/zoomGestures/index.mjs";
|
|
7
|
+
export { useRegisterZoomGestures } from "./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs";
|
|
6
8
|
export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.mjs";
|
|
7
9
|
export type { ProPluginsPerSeriesType } from "../context/ChartProApi.mjs";
|
|
8
10
|
export { useHeatmapProps } from "../Heatmap/useHeatmapProps.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPr
|
|
|
3
3
|
export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.js";
|
|
4
4
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.js";
|
|
5
5
|
export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.js";
|
|
6
|
+
export { useDragGesture, useWheelGesture, usePinchGesture, type UseDragGestureOptions, type UseWheelGestureOptions, type UsePinchGestureOptions, type GestureInstance, type PanGestureConfig } from "./plugins/zoomGestures/index.js";
|
|
7
|
+
export { useRegisterZoomGestures } from "./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.js";
|
|
6
8
|
export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.js";
|
|
7
9
|
export type { ProPluginsPerSeriesType } from "../context/ChartProApi.js";
|
|
8
10
|
export { useHeatmapProps } from "../Heatmap/useHeatmapProps.js";
|
package/internals/index.js
CHANGED
|
@@ -6,6 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
useChartsContainerProProps: true,
|
|
8
8
|
seriesPreviewPlotMap: true,
|
|
9
|
+
useDragGesture: true,
|
|
10
|
+
useWheelGesture: true,
|
|
11
|
+
usePinchGesture: true,
|
|
12
|
+
useRegisterZoomGestures: true,
|
|
9
13
|
defaultSeriesConfigPro: true,
|
|
10
14
|
useHeatmapProps: true,
|
|
11
15
|
defaultSlotsMaterial: true,
|
|
@@ -41,14 +45,40 @@ Object.defineProperty(exports, "useChartsContainerProProps", {
|
|
|
41
45
|
return _useChartsContainerProProps.useChartsContainerProProps;
|
|
42
46
|
}
|
|
43
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "useDragGesture", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _zoomGestures.useDragGesture;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
44
54
|
Object.defineProperty(exports, "useHeatmapProps", {
|
|
45
55
|
enumerable: true,
|
|
46
56
|
get: function () {
|
|
47
57
|
return _useHeatmapProps.useHeatmapProps;
|
|
48
58
|
}
|
|
49
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "usePinchGesture", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _zoomGestures.usePinchGesture;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "useRegisterZoomGestures", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _useRegisterZoomGestures.useRegisterZoomGestures;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "useWheelGesture", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _zoomGestures.useWheelGesture;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
50
78
|
var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
|
|
51
79
|
var _seriesPreviewPlotMap = require("../ChartsZoomSlider/internals/seriesPreviewPlotMap");
|
|
80
|
+
var _zoomGestures = require("./plugins/zoomGestures");
|
|
81
|
+
var _useRegisterZoomGestures = require("./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures");
|
|
52
82
|
var _ChartsDataProviderPro = require("../ChartsDataProviderPro/ChartsDataProviderPro");
|
|
53
83
|
var _useHeatmapProps = require("../Heatmap/useHeatmapProps");
|
|
54
84
|
var _material = require("./material");
|
package/internals/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
2
2
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs";
|
|
3
|
+
export { useDragGesture, useWheelGesture, usePinchGesture } from "./plugins/zoomGestures/index.mjs";
|
|
4
|
+
export { useRegisterZoomGestures } from "./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs";
|
|
3
5
|
export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.mjs";
|
|
4
6
|
export { useHeatmapProps } from "../Heatmap/useHeatmapProps.mjs";
|
|
5
7
|
export { defaultSlotsMaterial } from "./material/index.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ChartBaseMenuItemProps } from "../../slots/chartBaseSlotProps.mjs";
|
|
2
|
-
export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react
|
|
2
|
+
export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ChartBaseMenuItemProps } from "../../slots/chartBaseSlotProps.js";
|
|
2
|
-
export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react
|
|
2
|
+
export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.mjs";
|
|
2
|
-
export declare function BasePopper(props: ChartBasePopperProps):
|
|
3
|
+
export declare function BasePopper(props: ChartBasePopperProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
|
|
2
|
-
export declare function BasePopper(props: ChartBasePopperProps):
|
|
3
|
+
export declare function BasePopper(props: ChartBasePopperProps): React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { UseChartProExportSignature } from "./useChartProExport/index.mjs";
|
|
|
3
3
|
import type { UseChartProZoomSignature } from "./useChartProZoom/index.mjs";
|
|
4
4
|
export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
|
|
5
5
|
export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
|
|
6
|
-
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<
|
|
6
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
|
|
7
7
|
export type DefaultPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
|
|
8
8
|
export type DefaultPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<SeriesType>>;
|
|
9
|
-
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<
|
|
9
|
+
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
|
|
@@ -3,7 +3,7 @@ import type { UseChartProExportSignature } from "./useChartProExport/index.js";
|
|
|
3
3
|
import type { UseChartProZoomSignature } from "./useChartProZoom/index.js";
|
|
4
4
|
export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
|
|
5
5
|
export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
|
|
6
|
-
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<
|
|
6
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
|
|
7
7
|
export type DefaultPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
|
|
8
8
|
export type DefaultPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<SeriesType>>;
|
|
9
|
-
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<
|
|
9
|
+
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SamplingStrategy } from '@mui/x-charts/internals';
|
|
2
|
+
import type { SamplingPyramid } from "./sampling.pyramid.types.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Min/max LOD pyramid over the bar's stacked envelope. Uses `min(base, top)`/`max(base, top)` per
|
|
5
|
+
* point rather than base/top directly, so diverging/negative bars (where the stack emits `[0, -5]`,
|
|
6
|
+
* i.e. base > top) keep their full extent instead of being truncated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const barSampler: SamplingStrategy<'bar', SamplingPyramid>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SamplingStrategy } from '@mui/x-charts/internals';
|
|
2
|
+
import type { SamplingPyramid } from "./sampling.pyramid.types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Min/max LOD pyramid over the bar's stacked envelope. Uses `min(base, top)`/`max(base, top)` per
|
|
5
|
+
* point rather than base/top directly, so diverging/negative bars (where the stack emits `[0, -5]`,
|
|
6
|
+
* i.e. base > top) keep their full extent instead of being truncated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const barSampler: SamplingStrategy<'bar', SamplingPyramid>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.barSampler = void 0;
|
|
7
|
+
var _sampling = require("./sampling");
|
|
8
|
+
var _sampling2 = require("./sampling.line");
|
|
9
|
+
/**
|
|
10
|
+
* Min/max LOD pyramid over the bar's stacked envelope. Uses `min(base, top)`/`max(base, top)` per
|
|
11
|
+
* point rather than base/top directly, so diverging/negative bars (where the stack emits `[0, -5]`,
|
|
12
|
+
* i.e. base > top) keep their full extent instead of being truncated.
|
|
13
|
+
*/
|
|
14
|
+
const barSampler = exports.barSampler = {
|
|
15
|
+
build: series => (0, _sampling.buildSamplingPyramid)(Float64Array.from(series.visibleStackedData, point => Math.min(point[0], point[1])), Float64Array.from(series.visibleStackedData, point => Math.max(point[0], point[1]))),
|
|
16
|
+
sample: _sampling2.sample,
|
|
17
|
+
bucketSizeAt: (span, context) => (0, _sampling.getSamplingBucketSize)(span, context.dataLength, context.availableSize, context.minSpan)
|
|
18
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildSamplingPyramid, getSamplingBucketSize } from "./sampling.mjs";
|
|
2
|
+
import { sample } from "./sampling.line.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Min/max LOD pyramid over the bar's stacked envelope. Uses `min(base, top)`/`max(base, top)` per
|
|
5
|
+
* point rather than base/top directly, so diverging/negative bars (where the stack emits `[0, -5]`,
|
|
6
|
+
* i.e. base > top) keep their full extent instead of being truncated.
|
|
7
|
+
*/
|
|
8
|
+
export const barSampler = {
|
|
9
|
+
build: series => buildSamplingPyramid(Float64Array.from(series.visibleStackedData, point => Math.min(point[0], point[1])), Float64Array.from(series.visibleStackedData, point => Math.max(point[0], point[1]))),
|
|
10
|
+
sample,
|
|
11
|
+
bucketSizeAt: (span, context) => getSamplingBucketSize(span, context.dataLength, context.availableSize, context.minSpan)
|
|
12
|
+
};
|