@mui/x-charts-pro 8.21.0 → 8.22.1
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.ts +5 -5
- package/BarChartPro/BarChartPro.js +20 -0
- package/BarChartPro/BarChartPro.plugins.d.ts +4 -4
- package/BarChartPro/BarChartPro.plugins.js +1 -1
- package/CHANGELOG.md +238 -1
- package/ChartContainerPro/ChartContainerPro.d.ts +4 -4
- package/ChartContainerPro/useChartContainerProProps.d.ts +4 -4
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +9 -9
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +3 -3
- package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/zoom-utils.d.ts +2 -2
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/Toolbar.types.d.ts +2 -2
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
- package/FunnelChart/FunnelChart.d.ts +9 -9
- package/FunnelChart/FunnelChart.plugins.d.ts +4 -4
- package/FunnelChart/FunnelChart.plugins.js +1 -1
- package/FunnelChart/FunnelPlot.d.ts +2 -2
- package/FunnelChart/FunnelPlot.js +3 -3
- package/FunnelChart/FunnelSection.d.ts +2 -2
- package/FunnelChart/FunnelSectionLabel.d.ts +2 -2
- package/FunnelChart/categoryAxis.types.d.ts +2 -2
- package/FunnelChart/coordinateMapper.d.ts +2 -2
- package/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
- package/FunnelChart/curves/bump.d.ts +1 -1
- package/FunnelChart/curves/curve.types.d.ts +1 -1
- package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
- package/FunnelChart/curves/linear.d.ts +1 -1
- package/FunnelChart/curves/pyramid.d.ts +1 -1
- package/FunnelChart/curves/step-pyramid.d.ts +1 -1
- package/FunnelChart/curves/step.d.ts +1 -1
- package/FunnelChart/funnel.types.d.ts +5 -5
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +2 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
- package/FunnelChart/funnelPlotSlots.types.d.ts +2 -2
- package/FunnelChart/funnelSlots.types.d.ts +6 -6
- package/FunnelChart/labelUtils.d.ts +2 -2
- package/FunnelChart/seriesConfig/extremums.d.ts +1 -1
- package/FunnelChart/seriesConfig/getColor.d.ts +1 -1
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/FunnelChart/seriesConfig/legend.d.ts +1 -1
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
- package/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/FunnelChart/useFunnelChartProps.d.ts +7 -7
- package/Heatmap/Heatmap.d.ts +13 -13
- package/Heatmap/Heatmap.js +10 -0
- package/Heatmap/Heatmap.plugins.d.ts +3 -3
- package/Heatmap/Heatmap.plugins.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +2 -2
- package/Heatmap/HeatmapPlot.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
- package/Heatmap/seriesConfig/extremums.d.ts +1 -1
- package/Heatmap/seriesConfig/getColor.d.ts +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
- package/Heatmap/seriesConfig/tooltip.d.ts +1 -1
- package/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
- package/LineChartPro/LineChartPro.d.ts +5 -5
- package/LineChartPro/LineChartPro.js +20 -0
- package/LineChartPro/LineChartPro.plugins.d.ts +4 -4
- package/LineChartPro/LineChartPro.plugins.js +1 -1
- package/PieChartPro/PieChartPro.d.ts +5 -5
- package/PieChartPro/PieChartPro.plugins.d.ts +3 -3
- package/RadarChartPro/RadarChartPro.d.ts +4 -4
- package/RadarChartPro/RadarChartPro.plugins.d.ts +3 -3
- package/RadarChartPro/RadarChartPro.plugins.js +1 -1
- package/SankeyChart/SankeyChart.d.ts +1 -1
- package/SankeyChart/SankeyChart.plugins.d.ts +3 -3
- package/SankeyChart/SankeyChart.plugins.js +1 -1
- package/SankeyChart/SankeyLinkElement.js +2 -2
- package/SankeyChart/SankeyLinkLabel.d.ts +1 -1
- package/SankeyChart/SankeyNodeElement.d.ts +0 -4
- package/SankeyChart/SankeyNodeElement.js +5 -24
- package/SankeyChart/SankeyNodeLabel.d.ts +12 -0
- package/SankeyChart/SankeyNodeLabel.js +61 -0
- package/SankeyChart/SankeyPlot.js +10 -7
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
- package/SankeyChart/calculateSankeyLayout.d.ts +2 -2
- package/SankeyChart/calculateSankeyLayout.js +12 -33
- package/SankeyChart/d3Sankey/align.d.ts +4 -4
- package/SankeyChart/d3Sankey/sankey.d.ts +3 -3
- package/SankeyChart/d3Sankey/sankey.js +4 -1
- package/SankeyChart/d3Sankey/sankey.types.d.ts +76 -39
- package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +2 -2
- package/SankeyChart/plugins/useSankeyHighlight.d.ts +1 -1
- package/SankeyChart/plugins/useSankeyHighlight.js +1 -1
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +2 -2
- package/SankeyChart/plugins/useSankeyHighlight.types.d.ts +3 -3
- package/SankeyChart/sankey.types.d.ts +32 -24
- package/SankeyChart/sankeyClasses.d.ts +3 -1
- package/SankeyChart/sankeyClasses.js +2 -1
- package/SankeyChart/sankeySlots.types.d.ts +4 -4
- package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +63 -14
- package/SankeyChart/seriesConfig/tooltipGetter.js +5 -2
- package/SankeyChart/utils.d.ts +1 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +6 -6
- package/ScatterChartPro/ScatterChartPro.js +20 -0
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
- package/context/ChartProApi.d.ts +10 -10
- package/context/useChartProApiContext.d.ts +1 -1
- package/esm/BarChartPro/BarChartPro.d.ts +5 -5
- package/esm/BarChartPro/BarChartPro.js +20 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -4
- package/esm/BarChartPro/BarChartPro.plugins.js +2 -2
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +4 -4
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +4 -4
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +3 -3
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +10 -10
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +3 -3
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +3 -3
- package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +3 -3
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +3 -3
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +3 -3
- package/esm/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +3 -3
- package/esm/ChartZoomSlider/internals/zoom-utils.d.ts +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
- package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +3 -3
- package/esm/ChartsToolbarPro/ChartsToolbarPro.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +2 -2
- package/esm/ChartsToolbarPro/Toolbar.types.d.ts +2 -2
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/esm/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.d.ts +9 -9
- package/esm/FunnelChart/FunnelChart.plugins.d.ts +4 -4
- package/esm/FunnelChart/FunnelChart.plugins.js +2 -2
- package/esm/FunnelChart/FunnelPlot.d.ts +2 -2
- package/esm/FunnelChart/FunnelPlot.js +4 -4
- package/esm/FunnelChart/FunnelSection.d.ts +2 -2
- package/esm/FunnelChart/FunnelSectionLabel.d.ts +2 -2
- package/esm/FunnelChart/categoryAxis.types.d.ts +2 -2
- package/esm/FunnelChart/coordinateMapper.d.ts +2 -2
- package/esm/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
- package/esm/FunnelChart/curves/bump.d.ts +1 -1
- package/esm/FunnelChart/curves/curve.types.d.ts +1 -1
- package/esm/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
- package/esm/FunnelChart/curves/linear.d.ts +1 -1
- package/esm/FunnelChart/curves/pyramid.d.ts +1 -1
- package/esm/FunnelChart/curves/step-pyramid.d.ts +1 -1
- package/esm/FunnelChart/curves/step.d.ts +1 -1
- package/esm/FunnelChart/funnel.types.d.ts +5 -5
- package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +3 -3
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +2 -2
- package/esm/FunnelChart/funnelSlots.types.d.ts +6 -6
- package/esm/FunnelChart/labelUtils.d.ts +2 -2
- package/esm/FunnelChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/legend.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/FunnelChart/useFunnelChartProps.d.ts +7 -7
- package/esm/Heatmap/Heatmap.d.ts +13 -13
- package/esm/Heatmap/Heatmap.js +10 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -3
- package/esm/Heatmap/Heatmap.plugins.js +2 -2
- package/esm/Heatmap/HeatmapItem.d.ts +2 -2
- package/esm/Heatmap/HeatmapPlot.d.ts +1 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/extremums.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/getColor.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/LineChartPro/LineChartPro.d.ts +5 -5
- package/esm/LineChartPro/LineChartPro.js +20 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -4
- package/esm/LineChartPro/LineChartPro.plugins.js +2 -2
- package/esm/PieChartPro/PieChartPro.d.ts +5 -5
- package/esm/PieChartPro/PieChartPro.plugins.d.ts +3 -3
- package/esm/RadarChartPro/RadarChartPro.d.ts +4 -4
- package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +3 -3
- package/esm/RadarChartPro/RadarChartPro.plugins.js +2 -2
- package/esm/SankeyChart/SankeyChart.d.ts +1 -1
- package/esm/SankeyChart/SankeyChart.plugins.d.ts +3 -3
- package/esm/SankeyChart/SankeyChart.plugins.js +2 -2
- package/esm/SankeyChart/SankeyLinkElement.js +3 -3
- package/esm/SankeyChart/SankeyLinkLabel.d.ts +1 -1
- package/esm/SankeyChart/SankeyNodeElement.d.ts +0 -4
- package/esm/SankeyChart/SankeyNodeElement.js +7 -26
- package/esm/SankeyChart/SankeyNodeLabel.d.ts +12 -0
- package/esm/SankeyChart/SankeyNodeLabel.js +55 -0
- package/esm/SankeyChart/SankeyPlot.js +10 -7
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
- package/esm/SankeyChart/calculateSankeyLayout.d.ts +2 -2
- package/esm/SankeyChart/calculateSankeyLayout.js +12 -33
- package/esm/SankeyChart/d3Sankey/align.d.ts +4 -4
- package/esm/SankeyChart/d3Sankey/sankey.d.ts +3 -3
- package/esm/SankeyChart/d3Sankey/sankey.js +4 -1
- package/esm/SankeyChart/d3Sankey/sankey.types.d.ts +76 -39
- package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +2 -2
- package/esm/SankeyChart/plugins/useSankeyHighlight.d.ts +1 -1
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +1 -1
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +2 -2
- package/esm/SankeyChart/plugins/useSankeyHighlight.types.d.ts +3 -3
- package/esm/SankeyChart/sankey.types.d.ts +32 -24
- package/esm/SankeyChart/sankeyClasses.d.ts +3 -1
- package/esm/SankeyChart/sankeyClasses.js +2 -1
- package/esm/SankeyChart/sankeySlots.types.d.ts +4 -4
- package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +63 -14
- package/esm/SankeyChart/seriesConfig/tooltipGetter.js +5 -2
- package/esm/SankeyChart/utils.d.ts +1 -1
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +6 -6
- package/esm/ScatterChartPro/ScatterChartPro.js +20 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -4
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
- package/esm/context/ChartProApi.d.ts +10 -10
- package/esm/context/useChartProApiContext.d.ts +1 -1
- package/esm/hooks/useChartProApiRef.d.ts +3 -3
- package/esm/hooks/useFunnelSeries.d.ts +1 -1
- package/esm/hooks/useHeatmapSeries.d.ts +1 -1
- package/esm/hooks/useSankeySeries.d.ts +2 -2
- package/esm/hooks/useSankeySeries.js +3 -2
- package/esm/hooks/zoom/useIsZoomInteracting.js +2 -2
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +2 -0
- package/esm/internals/index.js +1 -0
- package/esm/internals/material/components/BaseMenuItem.d.ts +1 -1
- package/esm/internals/material/components/BasePopper.d.ts +1 -1
- package/esm/internals/material/index.d.ts +3 -3
- package/esm/internals/plugins/allPlugins.d.ts +7 -7
- package/esm/internals/plugins/allPlugins.js +3 -3
- package/esm/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
- package/esm/internals/plugins/useChartProExport/print.d.ts +1 -1
- package/esm/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
- package/esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
- package/esm/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +3 -3
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +4 -4
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +4 -4
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +3 -3
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
- package/esm/internals/slots/chartBaseSlotProps.d.ts +1 -1
- package/esm/internals/slots/chartsBaseSlots.d.ts +3 -3
- package/esm/internals/slots/chartsIconSlots.d.ts +2 -2
- package/esm/models/seriesType/heatmap.d.ts +2 -2
- package/esm/themeAugmentation/components.d.ts +1 -1
- package/esm/themeAugmentation/overrides.d.ts +1 -1
- package/esm/themeAugmentation/props.d.ts +4 -4
- package/esm/typeOverloads/modules.d.ts +7 -7
- package/hooks/useChartProApiRef.d.ts +3 -3
- package/hooks/useFunnelSeries.d.ts +1 -1
- package/hooks/useHeatmapSeries.d.ts +1 -1
- package/hooks/useSankeySeries.d.ts +2 -2
- package/hooks/useSankeySeries.js +2 -1
- package/hooks/zoom/useIsZoomInteracting.js +1 -1
- package/index.js +1 -1
- package/internals/index.d.ts +2 -0
- package/internals/index.js +12 -0
- package/internals/material/components/BaseMenuItem.d.ts +1 -1
- package/internals/material/components/BasePopper.d.ts +1 -1
- package/internals/material/index.d.ts +3 -3
- package/internals/plugins/allPlugins.d.ts +7 -7
- package/internals/plugins/allPlugins.js +2 -2
- package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
- package/internals/plugins/useChartProExport/print.d.ts +1 -1
- package/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
- package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +3 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
- package/internals/slots/chartBaseSlotProps.d.ts +1 -1
- package/internals/slots/chartsBaseSlots.d.ts +3 -3
- package/internals/slots/chartsIconSlots.d.ts +2 -2
- package/models/seriesType/heatmap.d.ts +2 -2
- package/package.json +5 -5
- package/themeAugmentation/components.d.ts +1 -1
- package/themeAugmentation/overrides.d.ts +1 -1
- package/themeAugmentation/props.d.ts +4 -4
- package/typeOverloads/modules.d.ts +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnBrush: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { getSVGPoint, selectorChartDrawingArea, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
5
5
|
import { getHorizontalCenterRatio, getVerticalCenterRatio, isSpanValid } from "./useZoom.utils.js";
|
|
6
6
|
import { selectorZoomInteractionConfig } from "../ZoomInteractionConfig.selectors.js";
|
|
7
7
|
export const useZoomOnBrush = ({
|
|
@@ -9,9 +9,9 @@ export const useZoomOnBrush = ({
|
|
|
9
9
|
instance,
|
|
10
10
|
svgRef
|
|
11
11
|
}, setZoomDataCallback) => {
|
|
12
|
-
const drawingArea =
|
|
13
|
-
const optionsLookup =
|
|
14
|
-
const config =
|
|
12
|
+
const drawingArea = store.use(selectorChartDrawingArea);
|
|
13
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
14
|
+
const config = store.use(selectorZoomInteractionConfig, 'brush');
|
|
15
15
|
const isZoomOnBrushEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
16
16
|
React.useEffect(() => {
|
|
17
17
|
instance.setZoomBrushEnabled(isZoomOnBrushEnabled);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnDoubleTapReset: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
5
5
|
import { selectorZoomInteractionConfig } from "../ZoomInteractionConfig.selectors.js";
|
|
6
6
|
export const useZoomOnDoubleTapReset = ({
|
|
7
7
|
store,
|
|
8
8
|
instance,
|
|
9
9
|
svgRef
|
|
10
10
|
}, setZoomDataCallback) => {
|
|
11
|
-
const optionsLookup =
|
|
12
|
-
const config =
|
|
11
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
12
|
+
const config = store.use(selectorZoomInteractionConfig, 'doubleTapReset');
|
|
13
13
|
const isZoomOnDoubleTapResetEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
14
14
|
React.useEffect(() => {
|
|
15
15
|
if (!isZoomOnDoubleTapResetEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnPinch: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { getSVGPoint, selectorChartDrawingArea, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
5
5
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
6
6
|
import { getHorizontalCenterRatio, getVerticalCenterRatio, isSpanValid, zoomAtPoint } from "./useZoom.utils.js";
|
|
7
7
|
import { selectorZoomInteractionConfig } from "../ZoomInteractionConfig.selectors.js";
|
|
@@ -10,9 +10,9 @@ export const useZoomOnPinch = ({
|
|
|
10
10
|
instance,
|
|
11
11
|
svgRef
|
|
12
12
|
}, setZoomDataCallback) => {
|
|
13
|
-
const drawingArea =
|
|
14
|
-
const optionsLookup =
|
|
15
|
-
const config =
|
|
13
|
+
const drawingArea = store.use(selectorChartDrawingArea);
|
|
14
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
15
|
+
const config = store.use(selectorZoomInteractionConfig, 'pinch');
|
|
16
16
|
const isZoomOnPinchEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
17
17
|
React.useEffect(() => {
|
|
18
18
|
if (!isZoomOnPinchEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnTapAndDrag: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { getSVGPoint, selectorChartDrawingArea, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
5
5
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
6
6
|
import { getHorizontalCenterRatio, getVerticalCenterRatio, isSpanValid, zoomAtPoint } from "./useZoom.utils.js";
|
|
7
7
|
import { selectorZoomInteractionConfig } from "../ZoomInteractionConfig.selectors.js";
|
|
@@ -10,9 +10,9 @@ export const useZoomOnTapAndDrag = ({
|
|
|
10
10
|
instance,
|
|
11
11
|
svgRef
|
|
12
12
|
}, setZoomDataCallback) => {
|
|
13
|
-
const drawingArea =
|
|
14
|
-
const optionsLookup =
|
|
15
|
-
const config =
|
|
13
|
+
const drawingArea = store.use(selectorChartDrawingArea);
|
|
14
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
15
|
+
const config = store.use(selectorZoomInteractionConfig, 'tapAndDrag');
|
|
16
16
|
const isZoomOnTapAndDragEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
17
17
|
React.useEffect(() => {
|
|
18
18
|
if (!isZoomOnTapAndDragEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnWheel: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { getSVGPoint, selectorChartDrawingArea, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
5
5
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
6
6
|
import { getHorizontalCenterRatio, getVerticalCenterRatio, getWheelScaleRatio, isSpanValid, zoomAtPoint } from "./useZoom.utils.js";
|
|
7
7
|
import { selectorZoomInteractionConfig } from "../ZoomInteractionConfig.selectors.js";
|
|
@@ -10,11 +10,11 @@ export const useZoomOnWheel = ({
|
|
|
10
10
|
instance,
|
|
11
11
|
svgRef
|
|
12
12
|
}, setZoomDataCallback) => {
|
|
13
|
-
const drawingArea =
|
|
14
|
-
const optionsLookup =
|
|
13
|
+
const drawingArea = store.use(selectorChartDrawingArea);
|
|
14
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
15
15
|
const startedOutsideRef = React.useRef(false);
|
|
16
16
|
const startedOutsideTimeoutRef = React.useRef(null);
|
|
17
|
-
const config =
|
|
17
|
+
const config = store.use(selectorZoomInteractionConfig, 'wheel');
|
|
18
18
|
const isZoomOnWheelEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
19
19
|
React.useEffect(() => {
|
|
20
20
|
if (!isZoomOnWheelEnabled) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
-
import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
|
|
1
|
+
import { type ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProZoomSignature } from "./useChartProZoom.types.js";
|
|
3
3
|
export declare const useChartProZoom: ChartPlugin<UseChartProZoomSignature>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { selectorChartZoomOptionsLookup, createZoomLookup, selectorChartAxisZoomOptionsLookup } from '@mui/x-charts/internals';
|
|
6
6
|
import debounce from '@mui/utils/debounce';
|
|
7
7
|
import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
8
8
|
import { useEventCallback } from '@mui/material/utils';
|
|
@@ -29,7 +29,7 @@ export const useChartProZoom = pluginData => {
|
|
|
29
29
|
zoomInteractionConfig
|
|
30
30
|
} = params;
|
|
31
31
|
const onZoomChange = useEventCallback(onZoomChangeProp ?? (() => {}));
|
|
32
|
-
const optionsLookup =
|
|
32
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
33
33
|
useEffectAfterFirstRender(() => {
|
|
34
34
|
store.set('zoom', _extends({}, store.state.zoom, {
|
|
35
35
|
zoomInteractionConfig: initializeZoomInteractionConfig(zoomInteractionConfig, optionsLookup)
|
|
@@ -126,7 +126,7 @@ export const useChartProZoom = pluginData => {
|
|
|
126
126
|
useZoomOnDoubleTapReset(pluginData, setZoomDataCallback);
|
|
127
127
|
const zoom = React.useCallback(step => {
|
|
128
128
|
setZoomDataCallback(prev => prev.map(zoomData => {
|
|
129
|
-
const zoomOptions = selectorChartAxisZoomOptionsLookup(store.
|
|
129
|
+
const zoomOptions = selectorChartAxisZoomOptionsLookup(store.state, zoomData.axisId);
|
|
130
130
|
return calculateZoom(zoomData, step, zoomOptions);
|
|
131
131
|
}));
|
|
132
132
|
}, [setZoomDataCallback, store]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AxisId, ChartRootSelector } from '@mui/x-charts/internals';
|
|
2
|
-
import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
|
|
1
|
+
import { type AxisId, type ChartRootSelector } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProZoomSignature } from "./useChartProZoom.types.js";
|
|
3
3
|
export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature, 'zoom'>;
|
|
4
4
|
export declare const selectorChartZoomIsInteracting: (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 & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
|
|
5
5
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId, type UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
-
import { ZoomInteractionConfig, DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.js";
|
|
1
|
+
import { type UseChartSeriesSignature, type ChartPluginSignature, type UseChartCartesianAxisSignature, type UseChartCartesianAxisDefaultizedParameters, type ZoomData, type AxisId, type UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import { type ZoomInteractionConfig, type DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.js";
|
|
3
3
|
export interface UseChartProZoomParameters {
|
|
4
4
|
/**
|
|
5
5
|
* The list of zoom data related to each axis.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import { ChartBaseCommonProps } from '@mui/x-charts/models';
|
|
2
|
+
import { type ChartBaseCommonProps } from '@mui/x-charts/models';
|
|
3
3
|
export type ChartBaseTooltipProps = ChartBaseCommonProps & {
|
|
4
4
|
children: React.ReactElement<any, any>;
|
|
5
5
|
enterDelay?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChartsBaseSlots } from '@mui/x-charts/models';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { ChartBaseDividerProps, ChartBaseMenuItemProps, ChartBaseMenuListProps, ChartBasePopperProps, ChartBaseTooltipProps } from "./chartBaseSlotProps.js";
|
|
1
|
+
import { type ChartsBaseSlots } from '@mui/x-charts/models';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import { type ChartBaseDividerProps, type ChartBaseMenuItemProps, type ChartBaseMenuListProps, type ChartBasePopperProps, type ChartBaseTooltipProps } from "./chartBaseSlotProps.js";
|
|
4
4
|
export interface ChartsBaseSlotsPro extends ChartsBaseSlots {
|
|
5
5
|
baseDivider: React.ComponentType<ChartBaseDividerProps>;
|
|
6
6
|
baseMenuItem: React.ComponentType<ChartBaseMenuItemProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChartBaseIconProps, ChartsIconSlots } from '@mui/x-charts/models';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { type ChartBaseIconProps, type ChartsIconSlots } from '@mui/x-charts/models';
|
|
3
3
|
export interface ChartsIconSlotsPro extends ChartsIconSlots {
|
|
4
4
|
/**
|
|
5
5
|
* Icon displayed on the toolbar's zoom in button.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
-
import { CommonDefaultizedProps, CommonSeriesType, CartesianSeriesType } from '@mui/x-charts/internals';
|
|
1
|
+
import { type DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
+
import { type CommonDefaultizedProps, type CommonSeriesType, type CartesianSeriesType } from '@mui/x-charts/internals';
|
|
3
3
|
export type HeatmapValueType = readonly [number, number, number];
|
|
4
4
|
export interface HeatmapSeriesType extends Omit<CommonSeriesType<HeatmapValueType>, 'color' | 'colorGetter'>, CartesianSeriesType {
|
|
5
5
|
type: 'heatmap';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
|
|
1
|
+
import { type ComponentsProps, type ComponentsOverrides } from '@mui/material/styles';
|
|
2
2
|
export interface ChartsProComponents<Theme = unknown> {
|
|
3
3
|
MuiBarChartPro?: {
|
|
4
4
|
defaultProps?: ComponentsProps['MuiBarChartPro'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScatterChartProProps } from "../ScatterChartPro/index.js";
|
|
2
|
-
import { BarChartProProps } from "../BarChartPro/index.js";
|
|
3
|
-
import { HeatmapProps } from "../Heatmap/Heatmap.js";
|
|
4
|
-
import { LineChartProProps } from "../LineChartPro/index.js";
|
|
1
|
+
import { type ScatterChartProProps } from "../ScatterChartPro/index.js";
|
|
2
|
+
import { type BarChartProProps } from "../BarChartPro/index.js";
|
|
3
|
+
import { type HeatmapProps } from "../Heatmap/Heatmap.js";
|
|
4
|
+
import { type LineChartProProps } from "../LineChartPro/index.js";
|
|
5
5
|
export interface ChartsProComponentsPropsList {
|
|
6
6
|
MuiBarChartPro: BarChartProProps;
|
|
7
7
|
MuiLineChartPro: LineChartProProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
-
import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
|
|
3
|
-
import { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
|
|
4
|
-
import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
|
|
5
|
-
import { SankeyLayout, SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
|
|
1
|
+
import { type DefaultizedProps, type MakeRequired } from '@mui/x-internals/types';
|
|
2
|
+
import { type AxisId, type ZoomOptions } from '@mui/x-charts/internals';
|
|
3
|
+
import { type DefaultizedFunnelSeriesType, type FunnelItemIdentifier, type FunnelSeriesType, type FunnelValueType } from "../FunnelChart/funnel.types.js";
|
|
4
|
+
import { type HeatmapItemIdentifier, type HeatmapSeriesType, type DefaultizedHeatmapSeriesType, type HeatmapValueType } from "../models/seriesType/heatmap.js";
|
|
5
|
+
import { type SankeyLayout, type SankeySeriesType, type DefaultizedSankeySeriesType, type SankeyItemIdentifier, type SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
|
|
6
6
|
declare module '@mui/x-charts/internals' {
|
|
7
7
|
interface ChartsSeriesConfig {
|
|
8
8
|
heatmap: {
|
|
@@ -31,11 +31,11 @@ declare module '@mui/x-charts/internals' {
|
|
|
31
31
|
seriesInput: DefaultizedSankeySeriesType;
|
|
32
32
|
series: DefaultizedSankeySeriesType;
|
|
33
33
|
seriesLayout: {
|
|
34
|
-
sankeyLayout: SankeyLayout
|
|
34
|
+
sankeyLayout: SankeyLayout<true>;
|
|
35
35
|
};
|
|
36
36
|
seriesProp: SankeySeriesType;
|
|
37
37
|
itemIdentifier: SankeyItemIdentifier;
|
|
38
|
-
itemIdentifierWithData: SankeyItemIdentifierWithData
|
|
38
|
+
itemIdentifierWithData: SankeyItemIdentifierWithData<true>;
|
|
39
39
|
valueType: number;
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartAnyPluginSignature } from '@mui/x-charts/internals';
|
|
3
|
-
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
4
|
-
import { ProPluginsPerSeriesType, type ChartProApi } from "../context/ChartProApi.js";
|
|
2
|
+
import { type ChartAnyPluginSignature } from '@mui/x-charts/internals';
|
|
3
|
+
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
4
|
+
import { type ProPluginsPerSeriesType, type ChartProApi } from "../context/ChartProApi.js";
|
|
5
5
|
/**
|
|
6
6
|
* Hook that instantiates a [[ChartProApiRef]].
|
|
7
7
|
* The chart type needs to be given as the generic parameter to narrow down the API to the specific chart type.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
1
|
+
import { type ProcessedSeries, type SeriesId, type ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
2
|
export type UseFunnelSeriesReturnValue = ChartSeriesDefaultized<'funnel'>;
|
|
3
3
|
export type UseFunnelSeriesContextReturnValue = ProcessedSeries['funnel'];
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
1
|
+
import { type ProcessedSeries, type SeriesId, type ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
2
|
export type UseHeatmapSeriesReturnValue = ChartSeriesDefaultized<'heatmap'>;
|
|
3
3
|
export type UseHeatmapSeriesContextReturnValue = ProcessedSeries['heatmap'];
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized, ChartSeriesLayout } from '@mui/x-charts/internals';
|
|
2
|
-
import { SankeyLayout } from "../SankeyChart/index.js";
|
|
1
|
+
import { type ProcessedSeries, type SeriesId, type ChartSeriesDefaultized, type ChartSeriesLayout } from '@mui/x-charts/internals';
|
|
2
|
+
import { type SankeyLayout } from "../SankeyChart/index.js";
|
|
3
3
|
export type UseSankeySeriesReturnValue = ChartSeriesDefaultized<'sankey'>;
|
|
4
4
|
export type UseSankeySeriesContextReturnValue = ProcessedSeries['sankey'];
|
|
5
5
|
export type UseSankeySeriesLayoutReturnValue = ChartSeriesLayout<'sankey'>;
|
package/hooks/useSankeySeries.js
CHANGED
|
@@ -44,6 +44,7 @@ function useSankeySeries(seriesIds) {
|
|
|
44
44
|
function useSankeySeriesContext() {
|
|
45
45
|
return (0, _internals.useAllSeriesOfType)('sankey');
|
|
46
46
|
}
|
|
47
|
+
|
|
47
48
|
/**
|
|
48
49
|
* Get access to the sankey layout.
|
|
49
50
|
* @returns {SankeyLayout | undefined} the sankey layout
|
|
@@ -52,7 +53,7 @@ function useSankeyLayout() {
|
|
|
52
53
|
const store = (0, _internals.useStore)();
|
|
53
54
|
const seriesContext = useSankeySeriesContext();
|
|
54
55
|
const seriesId = seriesContext?.seriesOrder?.[0];
|
|
55
|
-
const layout =
|
|
56
|
+
const layout = store.use(_internals.selectorChartSeriesLayout);
|
|
56
57
|
if (!seriesId) {
|
|
57
58
|
return undefined;
|
|
58
59
|
}
|
|
@@ -14,6 +14,6 @@ var _useChartProZoom = require("../../internals/plugins/useChartProZoom");
|
|
|
14
14
|
*/
|
|
15
15
|
function useIsZoomInteracting() {
|
|
16
16
|
const store = (0, _internals.useStore)();
|
|
17
|
-
const isInteracting =
|
|
17
|
+
const isInteracting = store.use(_useChartProZoom.selectorChartZoomIsInteracting);
|
|
18
18
|
return isInteracting;
|
|
19
19
|
}
|
package/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useChartContainerProProps", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useChartContainerProProps.useChartContainerProProps;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useChartContainerProProps = require("../ChartContainerPro/useChartContainerProProps");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChartBaseMenuItemProps } from "../../slots/chartBaseSlotProps.js";
|
|
1
|
+
import { type ChartBaseMenuItemProps } from "../../slots/chartBaseSlotProps.js";
|
|
2
2
|
export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
|
|
1
|
+
import { type ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
|
|
2
2
|
export declare function BasePopper(props: ChartBasePopperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.js";
|
|
3
|
-
import { ChartsIconSlotsPro } from "../slots/chartsIconSlots.js";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { type ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.js";
|
|
3
|
+
import { type ChartsIconSlotsPro } from "../slots/chartsIconSlots.js";
|
|
4
4
|
export type ChartsSlotsPro = ChartsBaseSlotsPro & ChartsIconSlotsPro;
|
|
5
5
|
export type ChartsSlotPropsPro = { [key in keyof ChartsSlotsPro]: React.ComponentProps<ChartsSlotsPro[key]> };
|
|
6
6
|
export declare const defaultSlotsMaterial: ChartsSlotsPro;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
-
import { UseChartProExportSignature } from "./useChartProExport/index.js";
|
|
3
|
-
import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
|
|
4
|
-
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
1
|
+
import { type ChartSeriesType, type ConvertSignaturesIntoPlugins, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartZAxisSignature, type UseChartHighlightSignature, type UseChartPolarAxisSignature, type UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProExportSignature } from "./useChartProExport/index.js";
|
|
3
|
+
import { type UseChartProZoomSignature } from "./useChartProZoom/index.js";
|
|
4
|
+
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
5
5
|
export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
|
|
6
|
-
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
|
|
7
|
-
export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
6
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
|
|
7
|
+
export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
8
8
|
export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
|
|
9
|
-
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
|
|
9
|
+
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
|
|
@@ -9,5 +9,5 @@ var _useChartProExport = require("./useChartProExport");
|
|
|
9
9
|
var _useChartProZoom = require("./useChartProZoom");
|
|
10
10
|
// This file should be removed after creating all plugins in favor of a file per chart type.
|
|
11
11
|
|
|
12
|
-
const ALL_PLUGINS = exports.ALL_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartPolarAxis, _internals.useChartHighlight, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
|
|
13
|
-
const DEFAULT_PLUGINS = exports.DEFAULT_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
|
|
12
|
+
const ALL_PLUGINS = exports.ALL_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartPolarAxis, _internals.useChartHighlight, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
|
|
13
|
+
const DEFAULT_PLUGINS = exports.DEFAULT_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartImageExportOptions } from "./useChartProExport.types.js";
|
|
1
|
+
import { type ChartImageExportOptions } from "./useChartProExport.types.js";
|
|
2
2
|
export declare const getDrawDocument: () => Promise<typeof import("rasterizehtml").drawDocument>;
|
|
3
3
|
export declare function exportImage(element: HTMLElement | SVGElement, svg: SVGElement, params?: ChartImageExportOptions): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
-
import { UseChartProExportSignature } from "./useChartProExport.types.js";
|
|
1
|
+
import { type ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProExportSignature } from "./useChartProExport.types.js";
|
|
3
3
|
export declare const useChartProExport: ChartPlugin<UseChartProExportSignature>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartPluginSignature } from '@mui/x-charts/internals';
|
|
1
|
+
import { type ChartPluginSignature } from '@mui/x-charts/internals';
|
|
2
2
|
export interface UseChartProExportParameters {}
|
|
3
3
|
export type UseChartProExportDefaultizedParameters = UseChartProExportParameters;
|
|
4
4
|
export interface UseChartProExportState {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const usePanOnDrag: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -16,9 +16,9 @@ const usePanOnDrag = ({
|
|
|
16
16
|
instance,
|
|
17
17
|
svgRef
|
|
18
18
|
}, setZoomDataCallback) => {
|
|
19
|
-
const drawingArea =
|
|
20
|
-
const optionsLookup =
|
|
21
|
-
const config =
|
|
19
|
+
const drawingArea = store.use(_internals.selectorChartDrawingArea);
|
|
20
|
+
const optionsLookup = store.use(_internals.selectorChartZoomOptionsLookup);
|
|
21
|
+
const config = store.use(_ZoomInteractionConfig.selectorPanInteractionConfig, 'drag');
|
|
22
22
|
const isPanOnDragEnabled = Object.values(optionsLookup).some(v => v.panning) && Boolean(config);
|
|
23
23
|
React.useEffect(() => {
|
|
24
24
|
if (!isPanOnDragEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const usePanOnPressAndDrag: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -16,14 +16,14 @@ const usePanOnPressAndDrag = ({
|
|
|
16
16
|
instance,
|
|
17
17
|
svgRef
|
|
18
18
|
}, setZoomDataCallback) => {
|
|
19
|
-
const drawingArea =
|
|
20
|
-
const optionsLookup =
|
|
19
|
+
const drawingArea = store.use(_internals.selectorChartDrawingArea);
|
|
20
|
+
const optionsLookup = store.use(_internals.selectorChartZoomOptionsLookup);
|
|
21
21
|
const isInteracting = React.useRef(false);
|
|
22
22
|
const accumulatedChange = React.useRef({
|
|
23
23
|
x: 0,
|
|
24
24
|
y: 0
|
|
25
25
|
});
|
|
26
|
-
const config =
|
|
26
|
+
const config = store.use(_ZoomInteractionConfig.selectorPanInteractionConfig, 'pressAndDrag');
|
|
27
27
|
const isPanOnPressAndDragEnabled = Object.values(optionsLookup).some(v => v.panning) && Boolean(config);
|
|
28
28
|
React.useEffect(() => {
|
|
29
29
|
if (!isPanOnPressAndDragEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const usePanOnWheel: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|
|
@@ -16,11 +16,11 @@ const usePanOnWheel = ({
|
|
|
16
16
|
instance,
|
|
17
17
|
svgRef
|
|
18
18
|
}, setZoomDataCallback) => {
|
|
19
|
-
const drawingArea =
|
|
20
|
-
const optionsLookup =
|
|
19
|
+
const drawingArea = store.use(_internals.selectorChartDrawingArea);
|
|
20
|
+
const optionsLookup = store.use(_internals.selectorChartZoomOptionsLookup);
|
|
21
21
|
const startedOutsideRef = React.useRef(false);
|
|
22
22
|
const startedOutsideTimeoutRef = React.useRef(null);
|
|
23
|
-
const config =
|
|
23
|
+
const config = store.use(_ZoomInteractionConfig.selectorPanInteractionConfig, 'wheel');
|
|
24
24
|
const isPanOnWheelEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
25
25
|
React.useEffect(() => {
|
|
26
26
|
if (!isPanOnWheelEnabled) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
|
|
1
|
+
import { type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
|
|
2
2
|
/**
|
|
3
3
|
* Helper to get the range (in percents of a reference range) corresponding to a given scale.
|
|
4
4
|
* @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
-
import { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
2
|
+
import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
4
4
|
export declare const useZoomOnBrush: ({
|
|
5
5
|
store,
|
|
6
6
|
instance,
|