@mui/x-charts-pro 9.5.0 → 9.7.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 +5 -5
- package/BarChartPro/BarChartPro.d.ts +5 -5
- package/BarChartPro/BarChartPro.js +5 -3
- package/BarChartPro/BarChartPro.mjs +5 -3
- package/BarChartPro/BarChartPro.plugins.d.mts +3 -3
- package/BarChartPro/BarChartPro.plugins.d.ts +3 -3
- package/CHANGELOG.md +261 -0
- package/ChartZoomSlider/index.d.mts +2 -1
- package/ChartZoomSlider/index.d.ts +2 -1
- package/ChartZoomSlider/index.mjs +0 -1
- package/ChartsContainerPro/ChartsContainerPro.d.mts +4 -4
- package/ChartsContainerPro/ChartsContainerPro.d.ts +4 -4
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +4 -4
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +4 -4
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +7 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +7 -3
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.mts +3 -3
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.mjs +1 -1
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.mts +3 -3
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.mjs +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.d.mts +5 -5
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +5 -5
- package/ChartsToolbarPro/ChartsToolbarPro.js +3 -2
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +3 -2
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.mts +3 -3
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.ts +3 -3
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.mjs +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.mts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.mts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +1 -1
- package/ChartsToolbarPro/Toolbar.types.d.mts +1 -1
- package/ChartsToolbarPro/Toolbar.types.d.ts +1 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.mts +1 -1
- package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +1 -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/previews/AreaPreviewPlot.d.mts +2 -2
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.mjs +1 -2
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/PreviewPlot.types.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.mts +1 -1
- package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.ts +1 -1
- package/ChartsZoomSlider/internals/zoom-utils.d.mts +2 -2
- package/ChartsZoomSlider/internals/zoom-utils.d.ts +2 -2
- package/FunnelChart/FunnelChart.d.mts +9 -9
- package/FunnelChart/FunnelChart.d.ts +9 -9
- package/FunnelChart/FunnelChart.js +1 -1
- package/FunnelChart/FunnelChart.mjs +1 -1
- package/FunnelChart/FunnelChart.plugins.d.mts +3 -3
- package/FunnelChart/FunnelChart.plugins.d.ts +3 -3
- package/FunnelChart/FunnelPlot.d.mts +2 -2
- package/FunnelChart/FunnelPlot.d.ts +2 -2
- package/FunnelChart/FunnelPlot.js +5 -1
- package/FunnelChart/FunnelPlot.mjs +5 -1
- package/FunnelChart/FunnelSection.d.mts +2 -2
- package/FunnelChart/FunnelSection.d.ts +2 -2
- package/FunnelChart/FunnelSectionLabel.d.mts +2 -2
- package/FunnelChart/FunnelSectionLabel.d.ts +2 -2
- package/FunnelChart/categoryAxis.types.d.mts +2 -2
- package/FunnelChart/categoryAxis.types.d.ts +2 -2
- package/FunnelChart/coordinateMapper.d.mts +2 -2
- package/FunnelChart/coordinateMapper.d.ts +2 -2
- package/FunnelChart/curves/borderRadiusPolygon.d.mts +1 -1
- package/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
- package/FunnelChart/curves/bump.d.mts +1 -1
- package/FunnelChart/curves/bump.d.ts +1 -1
- package/FunnelChart/curves/curve.types.d.mts +1 -1
- package/FunnelChart/curves/curve.types.d.ts +1 -1
- package/FunnelChart/curves/getFunnelCurve.d.mts +1 -1
- package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
- package/FunnelChart/curves/linear.d.mts +1 -1
- package/FunnelChart/curves/linear.d.ts +1 -1
- package/FunnelChart/curves/pyramid.d.mts +1 -1
- package/FunnelChart/curves/pyramid.d.ts +1 -1
- package/FunnelChart/curves/step-pyramid.d.mts +1 -1
- package/FunnelChart/curves/step-pyramid.d.ts +1 -1
- package/FunnelChart/curves/step.d.mts +1 -1
- package/FunnelChart/curves/step.d.ts +1 -1
- package/FunnelChart/funnel.types.d.mts +5 -5
- package/FunnelChart/funnel.types.d.ts +5 -5
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts +4 -4
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.mts +2 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.mts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.mts +2 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
- package/FunnelChart/funnelClasses.d.mts +1 -1
- package/FunnelChart/funnelClasses.d.ts +1 -1
- package/FunnelChart/funnelPlotSlots.types.d.mts +1 -1
- package/FunnelChart/funnelPlotSlots.types.d.ts +1 -1
- package/FunnelChart/funnelSlots.types.d.mts +6 -6
- package/FunnelChart/funnelSlots.types.d.ts +6 -6
- package/FunnelChart/labelUtils.d.mts +2 -2
- package/FunnelChart/labelUtils.d.ts +2 -2
- package/FunnelChart/seriesConfig/descriptionGetter.d.mts +1 -1
- package/FunnelChart/seriesConfig/descriptionGetter.d.ts +1 -1
- package/FunnelChart/seriesConfig/extremums.d.mts +1 -1
- package/FunnelChart/seriesConfig/extremums.d.ts +1 -1
- package/FunnelChart/seriesConfig/getColor.d.mts +1 -1
- package/FunnelChart/seriesConfig/getColor.d.ts +1 -1
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.d.mts +1 -1
- package/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/FunnelChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
- package/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
- package/FunnelChart/seriesConfig/legend.d.mts +1 -1
- package/FunnelChart/seriesConfig/legend.d.ts +1 -1
- package/FunnelChart/seriesConfig/seriesProcessor.d.mts +1 -1
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/FunnelChart/seriesConfig/tooltip.d.mts +1 -1
- package/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
- package/FunnelChart/seriesConfig/tooltipPosition.d.mts +1 -1
- package/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/FunnelChart/useFunnelChartProps.d.mts +7 -7
- package/FunnelChart/useFunnelChartProps.d.ts +7 -7
- package/Heatmap/Heatmap.d.mts +12 -12
- package/Heatmap/Heatmap.d.ts +12 -12
- package/Heatmap/Heatmap.js +5 -3
- package/Heatmap/Heatmap.mjs +5 -3
- package/Heatmap/Heatmap.plugins.d.mts +3 -3
- package/Heatmap/Heatmap.plugins.d.ts +3 -3
- package/Heatmap/Heatmap.types.d.mts +1 -1
- package/Heatmap/Heatmap.types.d.ts +1 -1
- package/Heatmap/HeatmapCell.js +1 -1
- package/Heatmap/HeatmapCell.mjs +1 -1
- package/Heatmap/HeatmapItem.d.mts +2 -2
- package/Heatmap/HeatmapItem.d.ts +2 -2
- package/Heatmap/HeatmapPlot.d.mts +1 -1
- package/Heatmap/HeatmapPlot.d.ts +1 -1
- package/Heatmap/HeatmapPlot.js +1 -1
- package/Heatmap/HeatmapPlot.mjs +1 -1
- package/Heatmap/HeatmapSVGPlot.d.mts +1 -1
- package/Heatmap/HeatmapSVGPlot.d.ts +1 -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.js +5 -25
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.mjs +5 -25
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +1 -1
- package/Heatmap/seriesConfig/extremums.d.mts +1 -1
- package/Heatmap/seriesConfig/extremums.d.ts +1 -1
- package/Heatmap/seriesConfig/getColor.d.mts +1 -1
- package/Heatmap/seriesConfig/getColor.d.ts +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/Heatmap/seriesConfig/identifierSerializer.d.mts +1 -1
- package/Heatmap/seriesConfig/identifierSerializer.d.ts +1 -1
- package/Heatmap/seriesConfig/index.d.mts +1 -1
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/seriesProcessor.d.mts +1 -1
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
- package/Heatmap/seriesConfig/tooltip.d.mts +1 -1
- package/Heatmap/seriesConfig/tooltip.d.ts +1 -1
- package/Heatmap/seriesConfig/tooltipPosition.d.mts +1 -1
- package/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
- package/Heatmap/useHeatmapProps.d.mts +7 -7
- package/Heatmap/useHeatmapProps.d.ts +7 -7
- package/LineChartPro/LineChartPro.d.mts +5 -5
- package/LineChartPro/LineChartPro.d.ts +5 -5
- package/LineChartPro/LineChartPro.js +5 -3
- package/LineChartPro/LineChartPro.mjs +5 -3
- package/LineChartPro/LineChartPro.plugins.d.mts +3 -3
- package/LineChartPro/LineChartPro.plugins.d.ts +3 -3
- package/PieChartPro/PieChartPro.d.mts +5 -5
- package/PieChartPro/PieChartPro.d.ts +5 -5
- package/PieChartPro/PieChartPro.js +1 -1
- package/PieChartPro/PieChartPro.mjs +1 -1
- package/PieChartPro/PieChartPro.plugins.d.mts +2 -2
- package/PieChartPro/PieChartPro.plugins.d.ts +2 -2
- package/RadarChartPro/RadarChartPro.d.mts +4 -4
- package/RadarChartPro/RadarChartPro.d.ts +4 -4
- package/RadarChartPro/RadarChartPro.js +1 -1
- package/RadarChartPro/RadarChartPro.mjs +1 -1
- package/RadarChartPro/RadarChartPro.plugins.d.mts +1 -1
- package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/SankeyChart/SankeyChart.d.mts +2 -2
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +1 -1
- package/SankeyChart/SankeyChart.mjs +1 -1
- package/SankeyChart/SankeyChart.plugins.d.mts +2 -2
- package/SankeyChart/SankeyChart.plugins.d.ts +2 -2
- package/SankeyChart/SankeyDataProvider.d.mts +4 -1
- package/SankeyChart/SankeyDataProvider.d.ts +4 -1
- package/SankeyChart/SankeyDataProvider.js +170 -1
- package/SankeyChart/SankeyDataProvider.mjs +169 -0
- package/SankeyChart/SankeyLinkLabel.d.mts +1 -1
- package/SankeyChart/SankeyLinkLabel.d.ts +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +4 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +4 -1
- package/SankeyChart/SankeyLinkLabelPlot.js +12 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +11 -0
- package/SankeyChart/SankeyLinkPlot.d.mts +4 -1
- package/SankeyChart/SankeyLinkPlot.d.ts +4 -1
- package/SankeyChart/SankeyLinkPlot.js +18 -1
- package/SankeyChart/SankeyLinkPlot.mjs +17 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +4 -1
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +4 -1
- package/SankeyChart/SankeyNodeLabelPlot.js +12 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +11 -0
- package/SankeyChart/SankeyNodePlot.d.mts +4 -1
- package/SankeyChart/SankeyNodePlot.d.ts +4 -1
- package/SankeyChart/SankeyNodePlot.js +18 -1
- package/SankeyChart/SankeyNodePlot.mjs +17 -0
- package/SankeyChart/SankeyPlot.d.mts +2 -2
- package/SankeyChart/SankeyPlot.d.ts +2 -2
- package/SankeyChart/SankeyPlot.js +5 -1
- package/SankeyChart/SankeyPlot.mjs +5 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +8 -28
- package/SankeyChart/SankeyTooltip/SankeyTooltip.mjs +8 -28
- package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.mjs +1 -1
- package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.mts +1 -1
- package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +1 -1
- package/SankeyChart/sankeySlots.types.d.mts +4 -4
- package/SankeyChart/sankeySlots.types.d.ts +4 -4
- package/SankeyChart/seriesConfig/identifierSerializer.d.mts +1 -1
- package/SankeyChart/seriesConfig/identifierSerializer.d.ts +1 -1
- package/SankeyChart/useSankeyChartProps.d.mts +1 -1
- package/SankeyChart/useSankeyChartProps.d.ts +1 -1
- package/SankeyChart/useSankeyChartProps.mjs +0 -1
- package/ScatterChartPro/ScatterChartPro.d.mts +6 -6
- package/ScatterChartPro/ScatterChartPro.d.ts +6 -6
- package/ScatterChartPro/ScatterChartPro.js +5 -3
- package/ScatterChartPro/ScatterChartPro.mjs +5 -3
- package/ScatterChartPro/ScatterChartPro.plugins.d.mts +3 -3
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +3 -3
- package/context/ChartProApi.d.mts +10 -10
- package/context/ChartProApi.d.ts +10 -10
- package/context/useChartProApiContext.d.mts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/hooks/useChartProApiRef.d.mts +3 -3
- package/hooks/useChartProApiRef.d.ts +3 -3
- package/hooks/useFunnelSeries.d.mts +1 -1
- package/hooks/useFunnelSeries.d.ts +1 -1
- package/hooks/useHeatmapSeries.d.mts +1 -1
- package/hooks/useHeatmapSeries.d.ts +1 -1
- package/hooks/useSankeySeries.d.mts +2 -2
- package/hooks/useSankeySeries.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/ChartsWatermark.d.mts +1 -1
- package/internals/ChartsWatermark.d.ts +1 -1
- 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 +1 -1
- package/internals/material/components/BasePopper.d.ts +1 -1
- package/internals/material/index.d.mts +2 -2
- package/internals/material/index.d.ts +2 -2
- package/internals/plugins/allPlugins.d.mts +3 -3
- package/internals/plugins/allPlugins.d.ts +3 -3
- package/internals/plugins/useChartProExport/exportImage.d.mts +1 -1
- package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
- package/internals/plugins/useChartProExport/print.d.mts +1 -1
- package/internals/plugins/useChartProExport/print.d.ts +1 -1
- package/internals/plugins/useChartProExport/useChartProExport.d.mts +2 -2
- package/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
- package/internals/plugins/useChartProExport/useChartProExport.types.d.mts +1 -1
- package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/calculateZoom.d.mts +1 -1
- package/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +10 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +10 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.js +49 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +42 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.mts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.d.mts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +2 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.mjs +2 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.mts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.mts +3 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +3 -3
- package/internals/plugins/zoomGestures/useDragGesture.d.mts +2 -2
- package/internals/plugins/zoomGestures/useDragGesture.d.ts +2 -2
- package/internals/plugins/zoomGestures/useWheelGesture.d.mts +2 -2
- package/internals/plugins/zoomGestures/useWheelGesture.d.ts +2 -2
- package/internals/plugins/zoomGestures/useWheelGesture.js +1 -1
- package/internals/plugins/zoomGestures/useWheelGesture.mjs +1 -1
- package/internals/slots/chartBaseSlotProps.d.mts +1 -1
- package/internals/slots/chartBaseSlotProps.d.ts +1 -1
- package/internals/slots/chartsBaseSlots.d.mts +2 -2
- package/internals/slots/chartsBaseSlots.d.ts +2 -2
- package/internals/slots/chartsIconSlots.d.mts +1 -1
- package/internals/slots/chartsIconSlots.d.ts +1 -1
- package/models/seriesType/heatmap.d.mts +2 -2
- package/models/seriesType/heatmap.d.ts +2 -2
- package/package.json +9 -6
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +1 -1
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +1 -1
- package/themeAugmentation/components.d.mts +1 -1
- package/themeAugmentation/components.d.ts +1 -1
- package/themeAugmentation/overrides.d.mts +1 -1
- package/themeAugmentation/overrides.d.ts +1 -1
- package/themeAugmentation/props.d.mts +8 -8
- package/themeAugmentation/props.d.ts +8 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.mjs";
|
|
2
2
|
export declare function BasePopper(props: ChartBasePopperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
1
|
import type * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.mjs";
|
|
3
|
+
import type { ChartsIconSlotsPro } from "../slots/chartsIconSlots.mjs";
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature, UseChartVisibilityManagerSignature, UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature } from "./useChartProExport/index.mjs";
|
|
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
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<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature, UseChartVisibilityManagerSignature, UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature } from "./useChartProExport/index.js";
|
|
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
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<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartImageExportOptions } from "./useChartProExport.types.mjs";
|
|
2
2
|
export declare const getDrawDocument: () => Promise<typeof import("rasterizehtml").drawDocument>;
|
|
3
3
|
export declare function exportImage(element: Element, svg: HTMLElement | SVGElement, params?: ChartImageExportOptions): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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: Element, svg: HTMLElement | SVGElement, params?: ChartImageExportOptions): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature } from "./useChartProExport.types.mjs";
|
|
3
3
|
export declare const useChartProExport: ChartPlugin<UseChartProExportSignature>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 {
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
3
3
|
export declare const usePanOnDrag: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
3
3
|
export declare const usePanOnDrag: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
3
3
|
export declare const usePanOnPressAndDrag: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
3
3
|
export declare const usePanOnPressAndDrag: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
4
4
|
export declare const usePanOnWheel: ({
|
|
5
5
|
store,
|
|
6
6
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, 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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Registers the gestures required by the zoom feature.
|
|
5
|
+
* They are registered here instead of in the core interaction listener plugin
|
|
6
|
+
* so their implementations are only bundled with the zoom plugin.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useRegisterZoomGestures: ({
|
|
9
|
+
instance
|
|
10
|
+
}: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Registers the gestures required by the zoom feature.
|
|
5
|
+
* They are registered here instead of in the core interaction listener plugin
|
|
6
|
+
* so their implementations are only bundled with the zoom plugin.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useRegisterZoomGestures: ({
|
|
9
|
+
instance
|
|
10
|
+
}: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useRegisterZoomGestures = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _core = require("@mui/x-internal-gestures/core");
|
|
11
|
+
/**
|
|
12
|
+
* Registers the gestures required by the zoom feature.
|
|
13
|
+
* They are registered here instead of in the core interaction listener plugin
|
|
14
|
+
* so their implementations are only bundled with the zoom plugin.
|
|
15
|
+
*/
|
|
16
|
+
const useRegisterZoomGestures = ({
|
|
17
|
+
instance
|
|
18
|
+
}) => {
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
return instance.registerGestures([new _core.PanGesture({
|
|
21
|
+
name: 'zoomPan',
|
|
22
|
+
threshold: 0,
|
|
23
|
+
preventIf: ['zoomTapAndDrag', 'zoomPressAndDrag']
|
|
24
|
+
}), new _core.PinchGesture({
|
|
25
|
+
name: 'zoomPinch',
|
|
26
|
+
threshold: 5
|
|
27
|
+
}), new _core.TurnWheelGesture({
|
|
28
|
+
name: 'zoomTurnWheel',
|
|
29
|
+
sensitivity: 0.01,
|
|
30
|
+
initialDelta: 1,
|
|
31
|
+
passive: false
|
|
32
|
+
}), new _core.TurnWheelGesture({
|
|
33
|
+
name: 'panTurnWheel',
|
|
34
|
+
sensitivity: 0.5,
|
|
35
|
+
passive: false
|
|
36
|
+
}), new _core.TapAndDragGesture({
|
|
37
|
+
name: 'zoomTapAndDrag',
|
|
38
|
+
dragThreshold: 10
|
|
39
|
+
}), new _core.PressAndDragGesture({
|
|
40
|
+
name: 'zoomPressAndDrag',
|
|
41
|
+
dragThreshold: 10,
|
|
42
|
+
preventIf: ['zoomPinch']
|
|
43
|
+
}), new _core.TapGesture({
|
|
44
|
+
name: 'zoomDoubleTapReset',
|
|
45
|
+
taps: 2
|
|
46
|
+
})]);
|
|
47
|
+
}, [instance]);
|
|
48
|
+
};
|
|
49
|
+
exports.useRegisterZoomGestures = useRegisterZoomGestures;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { PanGesture, PinchGesture, PressAndDragGesture, TapAndDragGesture, TapGesture, TurnWheelGesture } from '@mui/x-internal-gestures/core';
|
|
5
|
+
/**
|
|
6
|
+
* Registers the gestures required by the zoom feature.
|
|
7
|
+
* They are registered here instead of in the core interaction listener plugin
|
|
8
|
+
* so their implementations are only bundled with the zoom plugin.
|
|
9
|
+
*/
|
|
10
|
+
export const useRegisterZoomGestures = ({
|
|
11
|
+
instance
|
|
12
|
+
}) => {
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
return instance.registerGestures([new PanGesture({
|
|
15
|
+
name: 'zoomPan',
|
|
16
|
+
threshold: 0,
|
|
17
|
+
preventIf: ['zoomTapAndDrag', 'zoomPressAndDrag']
|
|
18
|
+
}), new PinchGesture({
|
|
19
|
+
name: 'zoomPinch',
|
|
20
|
+
threshold: 5
|
|
21
|
+
}), new TurnWheelGesture({
|
|
22
|
+
name: 'zoomTurnWheel',
|
|
23
|
+
sensitivity: 0.01,
|
|
24
|
+
initialDelta: 1,
|
|
25
|
+
passive: false
|
|
26
|
+
}), new TurnWheelGesture({
|
|
27
|
+
name: 'panTurnWheel',
|
|
28
|
+
sensitivity: 0.5,
|
|
29
|
+
passive: false
|
|
30
|
+
}), new TapAndDragGesture({
|
|
31
|
+
name: 'zoomTapAndDrag',
|
|
32
|
+
dragThreshold: 10
|
|
33
|
+
}), new PressAndDragGesture({
|
|
34
|
+
name: 'zoomPressAndDrag',
|
|
35
|
+
dragThreshold: 10,
|
|
36
|
+
preventIf: ['zoomPinch']
|
|
37
|
+
}), new TapGesture({
|
|
38
|
+
name: 'zoomDoubleTapReset',
|
|
39
|
+
taps: 2
|
|
40
|
+
})]);
|
|
41
|
+
}, [instance]);
|
|
42
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DefaultizedZoomOptions, 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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DefaultizedZoomOptions, 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 {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
4
4
|
export declare const useZoomOnBrush: ({
|
|
5
5
|
store,
|
|
6
6
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, 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,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
4
4
|
export declare const useZoomOnDoubleTapReset: ({
|
|
5
5
|
store,
|
|
6
6
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, 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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
3
3
|
export declare const useZoomOnPinch: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
3
3
|
export declare const useZoomOnPinch: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
3
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
4
4
|
export declare const useZoomOnTapAndDrag: ({
|
|
5
5
|
store,
|
|
6
6
|
instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ChartPlugin, 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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
3
3
|
export declare const useZoomOnWheel: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
3
3
|
export declare const useZoomOnWheel: ({
|
|
4
4
|
store,
|
|
5
5
|
instance
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartPlugin } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
|
|
3
3
|
export declare const useChartProZoom: ChartPlugin<UseChartProZoomSignature>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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>;
|
|
@@ -27,6 +27,7 @@ var _useZoomOnBrush = require("./gestureHooks/useZoomOnBrush");
|
|
|
27
27
|
var _useZoomOnDoubleTapReset = require("./gestureHooks/useZoomOnDoubleTapReset");
|
|
28
28
|
var _initializeZoomInteractionConfig = require("./initializeZoomInteractionConfig");
|
|
29
29
|
var _initializeZoomData = require("./initializeZoomData");
|
|
30
|
+
var _useRegisterZoomGestures = require("./gestureHooks/useRegisterZoomGestures");
|
|
30
31
|
/**
|
|
31
32
|
* Type guard for `initialZoom` entries provided as a range value.
|
|
32
33
|
*/
|
|
@@ -193,6 +194,7 @@ const useChartProZoom = pluginData => {
|
|
|
193
194
|
}, [removeIsInteracting]);
|
|
194
195
|
|
|
195
196
|
// Add events
|
|
197
|
+
(0, _useRegisterZoomGestures.useRegisterZoomGestures)(pluginData);
|
|
196
198
|
(0, _usePanOnDrag.usePanOnDrag)(pluginData, setZoomDataCallback);
|
|
197
199
|
(0, _usePanOnPressAndDrag.usePanOnPressAndDrag)(pluginData, setZoomDataCallback);
|
|
198
200
|
(0, _usePanOnWheel.usePanOnWheel)(pluginData, setZoomDataCallback);
|
|
@@ -20,6 +20,7 @@ import { useZoomOnBrush } from "./gestureHooks/useZoomOnBrush.mjs";
|
|
|
20
20
|
import { useZoomOnDoubleTapReset } from "./gestureHooks/useZoomOnDoubleTapReset.mjs";
|
|
21
21
|
import { initializeZoomInteractionConfig } from "./initializeZoomInteractionConfig.mjs";
|
|
22
22
|
import { initializeZoomData } from "./initializeZoomData.mjs";
|
|
23
|
+
import { useRegisterZoomGestures } from "./gestureHooks/useRegisterZoomGestures.mjs";
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* Type guard for `initialZoom` entries provided as a range value.
|
|
@@ -187,6 +188,7 @@ export const useChartProZoom = pluginData => {
|
|
|
187
188
|
}, [removeIsInteracting]);
|
|
188
189
|
|
|
189
190
|
// Add events
|
|
191
|
+
useRegisterZoomGestures(pluginData);
|
|
190
192
|
usePanOnDrag(pluginData, setZoomDataCallback);
|
|
191
193
|
usePanOnPressAndDrag(pluginData, setZoomDataCallback);
|
|
192
194
|
usePanOnWheel(pluginData, setZoomDataCallback);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AxisId, ChartRootSelector } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
|
|
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/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & 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.mjs").UseChartProZoomState & Partial<{}> & {
|
|
5
5
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AxisId, 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/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & 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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId, UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { ZoomInteractionConfig, DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.mjs";
|
|
3
|
+
import type { RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Initializes the zoom of an axis with a range value instead of zoom percentages.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId, UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { ZoomInteractionConfig, DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.js";
|
|
3
|
+
import type { RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initializes the zoom of an axis with a range value instead of zoom percentages.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PanEvent } from '@mui/x-internal-gestures/core';
|
|
2
|
+
import type { ChartPoint, GestureInstance, PanGestureConfig } from "./zoomGestures.types.mjs";
|
|
3
3
|
export interface UseDragGestureOptions {
|
|
4
4
|
/** Whether the gesture is active. */
|
|
5
5
|
enabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PanEvent } from '@mui/x-internal-gestures/core';
|
|
2
|
+
import type { ChartPoint, GestureInstance, PanGestureConfig } from "./zoomGestures.types.js";
|
|
3
3
|
export interface UseDragGestureOptions {
|
|
4
4
|
/** Whether the gesture is active. */
|
|
5
5
|
enabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { KeyboardKey } from '@mui/x-internal-gestures/core';
|
|
2
|
+
import type { ChartPoint, GestureInstance } from "./zoomGestures.types.mjs";
|
|
3
3
|
export interface UseWheelGestureOptions {
|
|
4
4
|
/** Whether the gesture is active. */
|
|
5
5
|
enabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { KeyboardKey } from '@mui/x-internal-gestures/core';
|
|
2
|
+
import type { ChartPoint, GestureInstance } from "./zoomGestures.types.js";
|
|
3
3
|
export interface UseWheelGestureOptions {
|
|
4
4
|
/** Whether the gesture is active. */
|
|
5
5
|
enabled: boolean;
|
|
@@ -42,7 +42,7 @@ function useWheelGesture(instance, options) {
|
|
|
42
42
|
if (element === null || !enabled) {
|
|
43
43
|
return () => {};
|
|
44
44
|
}
|
|
45
|
-
const rafThrottledOnWheel = (0, _rafThrottle.rafThrottle)(onWheelRef.current);
|
|
45
|
+
const rafThrottledOnWheel = (0, _rafThrottle.rafThrottle)((point, event) => onWheelRef.current(point, event));
|
|
46
46
|
const handler = instance.addInteractionListener('zoomTurnWheel', event => {
|
|
47
47
|
const point = (0, _internals.getChartPoint)(element, {
|
|
48
48
|
clientX: event.detail.centroid.x,
|
|
@@ -36,7 +36,7 @@ export function useWheelGesture(instance, options) {
|
|
|
36
36
|
if (element === null || !enabled) {
|
|
37
37
|
return () => {};
|
|
38
38
|
}
|
|
39
|
-
const rafThrottledOnWheel = rafThrottle(onWheelRef.current);
|
|
39
|
+
const rafThrottledOnWheel = rafThrottle((point, event) => onWheelRef.current(point, event));
|
|
40
40
|
const handler = instance.addInteractionListener('zoomTurnWheel', event => {
|
|
41
41
|
const point = getChartPoint(element, {
|
|
42
42
|
clientX: event.detail.centroid.x,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import {
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import {
|
|
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 {
|
|
1
|
+
import type { ChartsBaseSlots } from '@mui/x-charts/models';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import type { ChartBaseDividerProps, ChartBaseMenuItemProps, ChartBaseMenuListProps, ChartBasePopperProps, ChartBaseTooltipProps } from "./chartBaseSlotProps.mjs";
|
|
4
4
|
import type { BaseDividerPropsOverrides, BaseMenuItemPropsOverrides, BaseMenuListPropsOverrides, BasePopperPropsOverrides, BaseTooltipPropsOverrides } from "../../models/chartsSlotsComponentsPropsPro.mjs";
|
|
5
5
|
export interface ChartsBaseSlotsPro extends ChartsBaseSlots {
|
|
6
6
|
baseDivider: React.ComponentType<ChartBaseDividerProps & BaseDividerPropsOverrides>;
|