@mui/x-charts-pro 8.0.0-alpha.8 → 8.0.0-beta.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.ts +4 -4
- package/BarChartPro/BarChartPro.js +242 -287
- package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/BarChartPro/BarChartPro.plugins.js +9 -0
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +2566 -687
- package/ChartContainerPro/ChartContainerPro.d.ts +12 -12
- package/ChartContainerPro/ChartContainerPro.js +185 -188
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +6 -5
- package/ChartContainerPro/useChartContainerProProps.js +28 -19
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/ChartDataProviderPro/ChartDataProviderPro.js +112 -0
- package/ChartDataProviderPro/index.d.ts +2 -0
- package/ChartDataProviderPro/index.js +17 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.js +21 -0
- package/FunnelChart/FunnelChart.d.ts +37 -0
- package/FunnelChart/FunnelChart.js +218 -0
- package/FunnelChart/FunnelPlot.d.ts +16 -0
- package/FunnelChart/FunnelPlot.js +191 -0
- package/FunnelChart/FunnelSection.d.ts +15 -0
- package/FunnelChart/FunnelSection.js +62 -0
- package/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/FunnelChart/funnel.types.d.ts +124 -0
- package/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/FunnelChart/funnelSectionClasses.js +28 -0
- package/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/FunnelChart/funnelStepCurve.js +74 -0
- package/FunnelChart/index.d.ts +7 -0
- package/FunnelChart/index.js +59 -0
- package/FunnelChart/labelUtils.d.ts +42 -0
- package/FunnelChart/labelUtils.js +174 -0
- package/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/FunnelChart/seriesConfig/extremums.js +50 -0
- package/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/FunnelChart/seriesConfig/getColor.js +10 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
- package/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/FunnelChart/seriesConfig/index.js +22 -0
- package/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/FunnelChart/seriesConfig/legend.js +31 -0
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/FunnelChart/seriesConfig/seriesProcessor.js +96 -0
- package/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/FunnelChart/seriesConfig/tooltip.js +36 -0
- package/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/FunnelChart/useFunnelChartProps.js +168 -0
- package/Heatmap/Heatmap.d.ts +45 -45
- package/Heatmap/Heatmap.js +236 -244
- package/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/Heatmap/Heatmap.plugins.js +8 -0
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +43 -36
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +101 -89
- package/Heatmap/heatmapClasses.d.ts +7 -7
- package/Heatmap/heatmapClasses.js +15 -7
- package/Heatmap/index.d.ts +4 -4
- package/Heatmap/index.js +47 -4
- package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
- package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/Heatmap/seriesConfig/index.d.ts +2 -0
- package/Heatmap/seriesConfig/index.js +21 -0
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/Heatmap/seriesConfig/tooltip.js +31 -0
- package/LineChartPro/LineChartPro.d.ts +4 -4
- package/LineChartPro/LineChartPro.js +244 -353
- package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/LineChartPro/LineChartPro.plugins.js +9 -0
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/README.md +1 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +246 -238
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +18 -0
- package/esm/BarChartPro/BarChartPro.js +404 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
- package/esm/BarChartPro/index.d.ts +1 -0
- package/esm/BarChartPro/index.js +1 -0
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
- package/esm/ChartContainerPro/index.d.ts +2 -0
- package/esm/ChartContainerPro/index.js +2 -0
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
- package/esm/ChartDataProviderPro/index.d.ts +2 -0
- package/esm/ChartDataProviderPro/index.js +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/esm/FunnelChart/FunnelChart.d.ts +37 -0
- package/esm/FunnelChart/FunnelChart.js +212 -0
- package/esm/FunnelChart/FunnelPlot.d.ts +16 -0
- package/esm/FunnelChart/FunnelPlot.js +184 -0
- package/esm/FunnelChart/FunnelSection.d.ts +15 -0
- package/esm/FunnelChart/FunnelSection.js +56 -0
- package/esm/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/esm/FunnelChart/funnel.types.d.ts +124 -0
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/esm/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/esm/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/esm/FunnelChart/funnelSectionClasses.js +20 -0
- package/esm/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/esm/FunnelChart/funnelSlots.types.js +1 -0
- package/esm/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/esm/FunnelChart/funnelStepCurve.js +67 -0
- package/esm/FunnelChart/index.d.ts +7 -0
- package/esm/FunnelChart/index.js +5 -0
- package/esm/FunnelChart/labelUtils.d.ts +42 -0
- package/esm/FunnelChart/labelUtils.js +166 -0
- package/esm/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/extremums.js +42 -0
- package/esm/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getColor.js +4 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/esm/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/esm/FunnelChart/seriesConfig/index.js +15 -0
- package/esm/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/legend.js +25 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/esm/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/esm/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/esm/FunnelChart/useFunnelChartProps.js +161 -0
- package/esm/Heatmap/Heatmap.d.ts +57 -0
- package/esm/Heatmap/Heatmap.js +387 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/esm/Heatmap/Heatmap.plugins.js +2 -0
- package/esm/Heatmap/HeatmapItem.d.ts +49 -0
- package/esm/Heatmap/HeatmapItem.js +106 -0
- package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
- package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
- package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/esm/Heatmap/HeatmapTooltip.js +280 -0
- package/esm/Heatmap/heatmapClasses.d.ts +11 -0
- package/esm/Heatmap/heatmapClasses.js +14 -0
- package/esm/Heatmap/index.d.ts +4 -0
- package/esm/Heatmap/index.js +4 -0
- package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/index.js +14 -0
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/tooltip.js +25 -0
- package/esm/LineChartPro/LineChartPro.d.ts +17 -0
- package/esm/LineChartPro/LineChartPro.js +401 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
- package/esm/LineChartPro/index.d.ts +1 -0
- package/esm/LineChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/esm/ScatterChartPro/index.d.ts +1 -0
- package/esm/ScatterChartPro/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useFunnelSeries.d.ts +33 -0
- package/esm/hooks/useFunnelSeries.js +42 -0
- package/esm/hooks/useHeatmapSeries.d.ts +33 -0
- package/esm/hooks/useHeatmapSeries.js +42 -0
- package/esm/hooks/zoom/index.d.ts +1 -0
- package/esm/hooks/zoom/index.js +1 -0
- package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.js +45 -0
- package/esm/internals/plugins/allPlugins.d.ts +8 -0
- package/esm/internals/plugins/allPlugins.js +6 -0
- package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/esm/internals/plugins/useChartProZoom/index.js +3 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -75
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.js +1 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/seriesType/heatmap.d.ts +28 -0
- package/esm/models/seriesType/heatmap.js +1 -0
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +23 -0
- package/esm/themeAugmentation/index.d.ts +4 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +11 -0
- package/esm/themeAugmentation/props.d.ts +20 -0
- package/esm/typeOverloads/index.d.ts +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +33 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- package/hooks/useFunnelSeries.d.ts +33 -0
- package/hooks/useFunnelSeries.js +48 -0
- package/hooks/useHeatmapSeries.d.ts +33 -0
- package/hooks/useHeatmapSeries.js +48 -0
- package/hooks/zoom/index.d.ts +1 -1
- package/hooks/zoom/index.js +16 -1
- package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
- package/hooks/zoom/useIsZoomInteracting.js +10 -5
- package/index.d.ts +12 -7
- package/index.js +369 -34
- package/internals/plugins/allPlugins.d.ts +7 -9
- package/internals/plugins/allPlugins.js +10 -3
- package/internals/plugins/useChartProZoom/index.d.ts +3 -3
- package/internals/plugins/useChartProZoom/index.js +38 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -68
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +165 -111
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -6
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -43
- package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/models/index.d.ts +1 -1
- package/models/index.js +16 -2
- package/models/seriesType/heatmap.d.ts +18 -19
- package/models/seriesType/heatmap.js +5 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/index.js +16 -1
- package/modern/BarChartPro/BarChartPro.d.ts +18 -0
- package/modern/BarChartPro/BarChartPro.js +39 -90
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/modern/ChartContainerPro/ChartContainerPro.js +12 -21
- package/modern/ChartContainerPro/index.d.ts +2 -0
- package/modern/ChartContainerPro/index.js +1 -0
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/modern/ChartContainerPro/useChartContainerProProps.js +15 -13
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +2 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/modern/FunnelChart/FunnelChart.d.ts +37 -0
- package/modern/FunnelChart/FunnelChart.js +212 -0
- package/modern/FunnelChart/FunnelPlot.d.ts +16 -0
- package/modern/FunnelChart/FunnelPlot.js +184 -0
- package/modern/FunnelChart/FunnelSection.d.ts +15 -0
- package/modern/FunnelChart/FunnelSection.js +56 -0
- package/modern/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/modern/FunnelChart/categoryAxis.types.js +1 -0
- package/modern/FunnelChart/funnel.types.d.ts +124 -0
- package/modern/FunnelChart/funnel.types.js +1 -0
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/modern/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/modern/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/modern/FunnelChart/funnelSectionClasses.js +20 -0
- package/modern/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/modern/FunnelChart/funnelSlots.types.js +1 -0
- package/modern/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/modern/FunnelChart/funnelStepCurve.js +67 -0
- package/modern/FunnelChart/index.d.ts +7 -0
- package/modern/FunnelChart/index.js +5 -0
- package/modern/FunnelChart/labelUtils.d.ts +42 -0
- package/modern/FunnelChart/labelUtils.js +166 -0
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/extremums.js +42 -0
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getColor.js +4 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/modern/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/modern/FunnelChart/seriesConfig/index.js +15 -0
- package/modern/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/legend.js +25 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/modern/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/modern/FunnelChart/useFunnelChartProps.js +161 -0
- package/modern/Heatmap/Heatmap.d.ts +57 -0
- package/modern/Heatmap/Heatmap.js +47 -61
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/Heatmap.plugins.js +2 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- package/modern/Heatmap/HeatmapItem.js +7 -7
- package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/modern/Heatmap/HeatmapTooltip.js +10 -4
- package/modern/Heatmap/heatmapClasses.d.ts +11 -0
- package/modern/Heatmap/index.d.ts +4 -0
- package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/index.js +14 -0
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/tooltip.js +25 -0
- package/modern/LineChartPro/LineChartPro.d.ts +17 -0
- package/modern/LineChartPro/LineChartPro.js +40 -155
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +44 -42
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/modern/ScatterChartPro/index.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useFunnelSeries.d.ts +33 -0
- package/modern/hooks/useFunnelSeries.js +42 -0
- package/modern/hooks/useHeatmapSeries.d.ts +33 -0
- package/modern/hooks/useHeatmapSeries.js +42 -0
- package/modern/hooks/zoom/index.d.ts +1 -0
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/modern/index.d.ts +34 -0
- package/modern/index.js +8 -4
- package/modern/internals/plugins/allPlugins.d.ts +8 -0
- package/modern/internals/plugins/allPlugins.js +3 -2
- package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -39
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.d.ts +2 -0
- package/modern/models/seriesType/heatmap.d.ts +28 -0
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +23 -0
- package/modern/themeAugmentation/index.d.ts +4 -0
- package/modern/themeAugmentation/overrides.d.ts +11 -0
- package/modern/themeAugmentation/props.d.ts +20 -0
- package/modern/typeOverloads/index.d.ts +1 -0
- package/modern/typeOverloads/modules.d.ts +33 -0
- package/package.json +44 -11
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +5 -7
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/index.js +6 -1
- package/typeOverloads/modules.d.ts +32 -24
- package/typeOverloads/modules.js +5 -1
- package/BarChartPro/package.json +0 -6
- package/ChartContainerPro/package.json +0 -6
- package/Heatmap/formatter.d.ts +0 -3
- package/Heatmap/package.json +0 -6
- package/Heatmap/plugin.d.ts +0 -2
- package/Heatmap/plugin.js +0 -9
- package/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -11
- package/hooks/useSeries.js +0 -16
- package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
- package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
- package/models/package.json +0 -6
- package/modern/Heatmap/plugin.js +0 -9
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -461
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -305
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/Heatmap/Heatmap.js +0 -407
- package/node/Heatmap/HeatmapItem.js +0 -113
- package/node/Heatmap/HeatmapTooltip.js +0 -280
- package/node/Heatmap/heatmapClasses.js +0 -22
- package/node/Heatmap/index.js +0 -47
- package/node/Heatmap/plugin.js +0 -16
- package/node/LineChartPro/LineChartPro.js +0 -522
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -399
- package/node/ScatterChartPro/index.js +0 -16
- package/node/hooks/index.js +0 -27
- package/node/hooks/useSeries.js +0 -21
- package/node/hooks/zoom/index.js +0 -16
- package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
- package/node/index.js +0 -332
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
- package/node/internals/plugins/useChartProZoom/index.js +0 -38
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -13
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/internals/plugins/useChartProZoom/useChartProZoom.types.js → FunnelChart/categoryAxis.types.js} +0 -0
- /package/{node/internals/plugins/useChartProZoom/zoom.types.js → FunnelChart/funnel.types.js} +0 -0
- /package/{node/models/seriesType/heatmap.js → FunnelChart/funnelPlotSlots.types.js} +0 -0
- /package/{node/typeOverloads/modules.js → FunnelChart/funnelSlots.types.js} +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/categoryAxis.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/funnel.types.js} +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Helper to get the range (in percents of a reference range) corresponding to a given scale.
|
|
4
|
+
* @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
|
|
5
|
+
* @param scaleRatio {number} The target scale ratio.
|
|
6
|
+
* @returns The range to display.
|
|
7
|
+
*/
|
|
8
|
+
export declare const zoomAtPoint: (centerRatio: number, scaleRatio: number, currentZoomData: ZoomData, options: DefaultizedZoomOptions) => number[];
|
|
9
|
+
/**
|
|
10
|
+
* Checks if the new span is valid.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isSpanValid(minRange: number, maxRange: number, isZoomIn: boolean, option: DefaultizedZoomOptions): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Get the scale ratio and if it's a zoom in or out from a wheel event.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getWheelScaleRatio(event: WheelEvent, step: number): {
|
|
17
|
+
scaleRatio: number;
|
|
18
|
+
isZoomIn: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Get the scale ratio and if it's a zoom in or out from a pinch gesture.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPinchScaleRatio(curDiff: number, prevDiff: number, step: number): {
|
|
24
|
+
scaleRatio: number;
|
|
25
|
+
isZoomIn: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function getDiff(eventCache: PointerEvent[]): number;
|
|
28
|
+
/**
|
|
29
|
+
* Get the ratio of the point in the horizontal center of the area.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getHorizontalCenterRatio(point: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
}, area: {
|
|
35
|
+
left: number;
|
|
36
|
+
width: number;
|
|
37
|
+
}): number;
|
|
38
|
+
export declare function preventDefault(event: TouchEvent): void;
|
|
39
|
+
export declare function getVerticalCenterRatio(point: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
}, area: {
|
|
43
|
+
top: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}): number;
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDiff = getDiff;
|
|
7
|
-
exports.getHorizontalCenterRatio = getHorizontalCenterRatio;
|
|
8
|
-
exports.getPinchScaleRatio = getPinchScaleRatio;
|
|
9
|
-
exports.getVerticalCenterRatio = getVerticalCenterRatio;
|
|
10
|
-
exports.getWheelScaleRatio = getWheelScaleRatio;
|
|
11
|
-
exports.isSpanValid = isSpanValid;
|
|
12
|
-
exports.preventDefault = preventDefault;
|
|
13
|
-
exports.zoomAtPoint = void 0;
|
|
14
1
|
/**
|
|
15
2
|
* Helper to get the range (in percents of a reference range) corresponding to a given scale.
|
|
16
3
|
* @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
|
|
17
4
|
* @param scaleRatio {number} The target scale ratio.
|
|
18
5
|
* @returns The range to display.
|
|
19
6
|
*/
|
|
20
|
-
const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
7
|
+
export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
21
8
|
const MIN_RANGE = options.minStart;
|
|
22
9
|
const MAX_RANGE = options.maxEnd;
|
|
23
10
|
const MIN_ALLOWED_SPAN = options.minSpan;
|
|
@@ -49,8 +36,7 @@ const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
|
49
36
|
/**
|
|
50
37
|
* Checks if the new span is valid.
|
|
51
38
|
*/
|
|
52
|
-
|
|
53
|
-
function isSpanValid(minRange, maxRange, isZoomIn, option) {
|
|
39
|
+
export function isSpanValid(minRange, maxRange, isZoomIn, option) {
|
|
54
40
|
const newSpanPercent = maxRange - minRange;
|
|
55
41
|
if (isZoomIn && newSpanPercent < option.minSpan || !isZoomIn && newSpanPercent > option.maxSpan) {
|
|
56
42
|
return false;
|
|
@@ -77,7 +63,7 @@ function getMultiplier(event) {
|
|
|
77
63
|
/**
|
|
78
64
|
* Get the scale ratio and if it's a zoom in or out from a wheel event.
|
|
79
65
|
*/
|
|
80
|
-
function getWheelScaleRatio(event, step) {
|
|
66
|
+
export function getWheelScaleRatio(event, step) {
|
|
81
67
|
const deltaY = -event.deltaY;
|
|
82
68
|
const multiplier = getMultiplier(event);
|
|
83
69
|
const scaledStep = step * multiplier * deltaY / 1000;
|
|
@@ -93,7 +79,7 @@ function getWheelScaleRatio(event, step) {
|
|
|
93
79
|
/**
|
|
94
80
|
* Get the scale ratio and if it's a zoom in or out from a pinch gesture.
|
|
95
81
|
*/
|
|
96
|
-
function getPinchScaleRatio(curDiff, prevDiff, step) {
|
|
82
|
+
export function getPinchScaleRatio(curDiff, prevDiff, step) {
|
|
97
83
|
const scaledStep = step / 1000;
|
|
98
84
|
let scaleRatio = 0;
|
|
99
85
|
let isZoomIn = false;
|
|
@@ -113,7 +99,7 @@ function getPinchScaleRatio(curDiff, prevDiff, step) {
|
|
|
113
99
|
isZoomIn
|
|
114
100
|
};
|
|
115
101
|
}
|
|
116
|
-
function getDiff(eventCache) {
|
|
102
|
+
export function getDiff(eventCache) {
|
|
117
103
|
const [firstEvent, secondEvent] = eventCache;
|
|
118
104
|
return Math.hypot(firstEvent.pageX - secondEvent.pageX, firstEvent.pageY - secondEvent.pageY);
|
|
119
105
|
}
|
|
@@ -121,17 +107,17 @@ function getDiff(eventCache) {
|
|
|
121
107
|
/**
|
|
122
108
|
* Get the ratio of the point in the horizontal center of the area.
|
|
123
109
|
*/
|
|
124
|
-
function getHorizontalCenterRatio(point, area) {
|
|
110
|
+
export function getHorizontalCenterRatio(point, area) {
|
|
125
111
|
const {
|
|
126
112
|
left,
|
|
127
113
|
width
|
|
128
114
|
} = area;
|
|
129
115
|
return (point.x - left) / width;
|
|
130
116
|
}
|
|
131
|
-
function preventDefault(event) {
|
|
117
|
+
export function preventDefault(event) {
|
|
132
118
|
event.preventDefault();
|
|
133
119
|
}
|
|
134
|
-
function getVerticalCenterRatio(point, area) {
|
|
120
|
+
export function getVerticalCenterRatio(point, area) {
|
|
135
121
|
const {
|
|
136
122
|
top,
|
|
137
123
|
height
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getReleaseInfo: () => any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
|
+
export const getReleaseInfo = () => {
|
|
3
|
+
const releaseInfo = "MTc0MjI0ODgwMDAwMA==";
|
|
4
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5
|
+
// A simple hack to set the value in the test environment (has no build step).
|
|
6
|
+
// eslint-disable-next-line no-useless-concat
|
|
7
|
+
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
8
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
9
|
+
return ponyfillGlobal.__MUI_RELEASE_INFO__;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return releaseInfo;
|
|
13
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
+
import { CommonDefaultizedProps, CommonSeriesType, CartesianSeriesType } from '@mui/x-charts/internals';
|
|
3
|
+
export type HeatmapValueType = readonly [number, number, number];
|
|
4
|
+
export interface HeatmapSeriesType extends Omit<CommonSeriesType<HeatmapValueType>, 'color'>, CartesianSeriesType {
|
|
5
|
+
type: 'heatmap';
|
|
6
|
+
/**
|
|
7
|
+
* Data associated to each bar.
|
|
8
|
+
*/
|
|
9
|
+
data?: readonly HeatmapValueType[];
|
|
10
|
+
/**
|
|
11
|
+
* The key used to retrieve data from the dataset.
|
|
12
|
+
*/
|
|
13
|
+
dataKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The label to display on the tooltip or the legend. It can be a string or a function.
|
|
16
|
+
*/
|
|
17
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* An object that allows to identify a single bar.
|
|
21
|
+
* Used for item interaction
|
|
22
|
+
*/
|
|
23
|
+
export type HeatmapItemIdentifier = {
|
|
24
|
+
type: 'heatmap';
|
|
25
|
+
seriesId: DefaultizedHeatmapSeriesType['id'];
|
|
26
|
+
dataIndex: number;
|
|
27
|
+
};
|
|
28
|
+
export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./heatmap.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./heatmap.js";
|
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","sideEffects":false}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
|
|
2
|
+
export interface ChartsProComponents<Theme = unknown> {
|
|
3
|
+
// BarChartPro components
|
|
4
|
+
MuiBarChartPro?: {
|
|
5
|
+
defaultProps?: ComponentsProps['MuiBarChartPro'];
|
|
6
|
+
};
|
|
7
|
+
// LineChartPro components
|
|
8
|
+
MuiLineChartPro?: {
|
|
9
|
+
defaultProps?: ComponentsProps['MuiLineChartPro'];
|
|
10
|
+
};
|
|
11
|
+
// Heatmap components
|
|
12
|
+
MuiHeatmap?: {
|
|
13
|
+
defaultProps?: ComponentsProps['MuiHeatmap'];
|
|
14
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiHeatmap'];
|
|
15
|
+
};
|
|
16
|
+
// ScatterChartPro components
|
|
17
|
+
MuiScatterChartPro?: {
|
|
18
|
+
defaultProps?: ComponentsProps['MuiScatterChartPro'];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare module '@mui/material/styles' {
|
|
22
|
+
interface Components<Theme = unknown> extends ChartsProComponents<Theme> {}
|
|
23
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HeatmapClassKey } from "../Heatmap/index.js";
|
|
2
|
+
export interface ChartsProComponentNameToClassKey {
|
|
3
|
+
// Heatmap components
|
|
4
|
+
MuiHeatmap: HeatmapClassKey;
|
|
5
|
+
}
|
|
6
|
+
declare module '@mui/material/styles' {
|
|
7
|
+
interface ComponentNameToClassKey extends ChartsProComponentNameToClassKey {}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// disable automatic export
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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";
|
|
5
|
+
export interface ChartsProComponentsPropsList {
|
|
6
|
+
// BarChartPro components
|
|
7
|
+
MuiBarChartPro: BarChartProProps;
|
|
8
|
+
// LineChartPro components
|
|
9
|
+
MuiLineChartPro: LineChartProProps;
|
|
10
|
+
// Heatmap components
|
|
11
|
+
MuiHeatmap: HeatmapProps;
|
|
12
|
+
// ScatterChartPro components
|
|
13
|
+
MuiScatterChartPro: ScatterChartProProps;
|
|
14
|
+
}
|
|
15
|
+
declare module '@mui/material/styles' {
|
|
16
|
+
interface ComponentsPropsList extends ChartsProComponentsPropsList {}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// disable automatic export
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {} from "./modules.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {} from "./modules.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
+
import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
|
|
3
|
+
import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
|
|
4
|
+
import { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
|
|
5
|
+
declare module '@mui/x-charts/internals' {
|
|
6
|
+
interface ChartsSeriesConfig {
|
|
7
|
+
heatmap: {
|
|
8
|
+
seriesInput: DefaultizedProps<HeatmapSeriesType, 'id'>;
|
|
9
|
+
series: DefaultizedHeatmapSeriesType;
|
|
10
|
+
seriesProp: HeatmapSeriesType;
|
|
11
|
+
itemIdentifier: HeatmapItemIdentifier;
|
|
12
|
+
valueType: HeatmapValueType;
|
|
13
|
+
axisType: 'cartesian';
|
|
14
|
+
};
|
|
15
|
+
funnel: {
|
|
16
|
+
seriesInput: Omit<DefaultizedProps<FunnelSeriesType, 'id'>, 'data'> & {
|
|
17
|
+
data: MakeRequired<FunnelValueType, 'color'>[];
|
|
18
|
+
};
|
|
19
|
+
series: DefaultizedFunnelSeriesType;
|
|
20
|
+
seriesProp: FunnelSeriesType;
|
|
21
|
+
itemIdentifier: FunnelItemIdentifier;
|
|
22
|
+
valueType: MakeRequired<FunnelValueType, 'id' | 'color'>;
|
|
23
|
+
axisType: 'cartesian';
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface DefaultizedZoomOptions extends Required<ZoomOptions> {
|
|
27
|
+
axisId: AxisId;
|
|
28
|
+
axisDirection: 'x' | 'y';
|
|
29
|
+
}
|
|
30
|
+
interface AxisConfigExtension {
|
|
31
|
+
zoom?: boolean | ZoomOptions;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/hooks/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useHeatmapSeries
|
|
2
|
-
export * from
|
|
1
|
+
export { useHeatmapSeries } from "./useHeatmapSeries.js";
|
|
2
|
+
export * from "./zoom/index.js";
|
package/hooks/index.js
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
useHeatmapSeries: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "useHeatmapSeries", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _useHeatmapSeries.useHeatmapSeries;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var _useHeatmapSeries = require("./useHeatmapSeries");
|
|
16
|
+
var _zoom = require("./zoom");
|
|
17
|
+
Object.keys(_zoom).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
|
+
if (key in exports && exports[key] === _zoom[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _zoom[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
|
+
export type UseFunnelSeriesReturnValue = ChartSeriesDefaultized<'funnel'>;
|
|
3
|
+
export type UseFunnelSeriesContextReturnValue = ProcessedSeries['funnel'];
|
|
4
|
+
/**
|
|
5
|
+
* Get access to the internal state of funnel series.
|
|
6
|
+
*
|
|
7
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
8
|
+
* @returns {UseFunnelSeriesReturnValue} the funnel series
|
|
9
|
+
*/
|
|
10
|
+
export declare function useFunnelSeries(seriesId: SeriesId): UseFunnelSeriesReturnValue | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Get access to the internal state of funnel series.
|
|
13
|
+
*
|
|
14
|
+
* When called without arguments, it returns all funnel series.
|
|
15
|
+
*
|
|
16
|
+
* @returns {UseFunnelSeriesReturnValue[]} the funnel series
|
|
17
|
+
*/
|
|
18
|
+
export declare function useFunnelSeries(): UseFunnelSeriesReturnValue[];
|
|
19
|
+
/**
|
|
20
|
+
* Get access to the internal state of funnel series.
|
|
21
|
+
*
|
|
22
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
23
|
+
* @returns {UseFunnelSeriesReturnValue[]} the funnel series
|
|
24
|
+
*/
|
|
25
|
+
export declare function useFunnelSeries(seriesIds: SeriesId[]): UseFunnelSeriesReturnValue[];
|
|
26
|
+
/**
|
|
27
|
+
* Get access to the internal state of funnel series.
|
|
28
|
+
* The returned object contains:
|
|
29
|
+
* - series: a mapping from ids to series attributes.
|
|
30
|
+
* - seriesOrder: the array of series ids.
|
|
31
|
+
* @returns the funnel series
|
|
32
|
+
*/
|
|
33
|
+
export declare function useFunnelSeriesContext(): UseFunnelSeriesContextReturnValue;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useFunnelSeries = useFunnelSeries;
|
|
8
|
+
exports.useFunnelSeriesContext = useFunnelSeriesContext;
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
const useSelectorSeries = (0, _internals.createSeriesSelectorsOfType)('funnel');
|
|
11
|
+
const useSelectorSeriesContext = (0, _internals.createAllSeriesSelectorOfType)('funnel');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Get access to the internal state of funnel series.
|
|
15
|
+
*
|
|
16
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
17
|
+
* @returns {UseFunnelSeriesReturnValue} the funnel series
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get access to the internal state of funnel series.
|
|
22
|
+
*
|
|
23
|
+
* When called without arguments, it returns all funnel series.
|
|
24
|
+
*
|
|
25
|
+
* @returns {UseFunnelSeriesReturnValue[]} the funnel series
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get access to the internal state of funnel series.
|
|
30
|
+
*
|
|
31
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
32
|
+
* @returns {UseFunnelSeriesReturnValue[]} the funnel series
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
function useFunnelSeries(seriesIds) {
|
|
36
|
+
return useSelectorSeries(seriesIds);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get access to the internal state of funnel series.
|
|
41
|
+
* The returned object contains:
|
|
42
|
+
* - series: a mapping from ids to series attributes.
|
|
43
|
+
* - seriesOrder: the array of series ids.
|
|
44
|
+
* @returns the funnel series
|
|
45
|
+
*/
|
|
46
|
+
function useFunnelSeriesContext() {
|
|
47
|
+
return useSelectorSeriesContext();
|
|
48
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
|
+
export type UseHeatmapSeriesReturnValue = ChartSeriesDefaultized<'heatmap'>;
|
|
3
|
+
export type UseHeatmapSeriesContextReturnValue = ProcessedSeries['heatmap'];
|
|
4
|
+
/**
|
|
5
|
+
* Get access to the internal state of heatmap series.
|
|
6
|
+
*
|
|
7
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
8
|
+
* @returns {UseHeatmapSeriesReturnValue} the heatmap series
|
|
9
|
+
*/
|
|
10
|
+
export declare function useHeatmapSeries(seriesId: SeriesId): UseHeatmapSeriesReturnValue | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Get access to the internal state of heatmap series.
|
|
13
|
+
*
|
|
14
|
+
* When called without arguments, it returns all heatmap series.
|
|
15
|
+
*
|
|
16
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
17
|
+
*/
|
|
18
|
+
export declare function useHeatmapSeries(): UseHeatmapSeriesReturnValue[];
|
|
19
|
+
/**
|
|
20
|
+
* Get access to the internal state of heatmap series.
|
|
21
|
+
*
|
|
22
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
23
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
24
|
+
*/
|
|
25
|
+
export declare function useHeatmapSeries(seriesIds: SeriesId[]): UseHeatmapSeriesReturnValue[];
|
|
26
|
+
/**
|
|
27
|
+
* Get access to the internal state of heatmap series.
|
|
28
|
+
* The returned object contains:
|
|
29
|
+
* - series: a mapping from ids to series attributes.
|
|
30
|
+
* - seriesOrder: the array of series ids.
|
|
31
|
+
* @returns the heatmap series
|
|
32
|
+
*/
|
|
33
|
+
export declare function useHeatmapSeriesContext(): UseHeatmapSeriesContextReturnValue;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useHeatmapSeries = useHeatmapSeries;
|
|
8
|
+
exports.useHeatmapSeriesContext = useHeatmapSeriesContext;
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
const useSelectorSeries = (0, _internals.createSeriesSelectorsOfType)('heatmap');
|
|
11
|
+
const useSelectorSeriesContext = (0, _internals.createAllSeriesSelectorOfType)('heatmap');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Get access to the internal state of heatmap series.
|
|
15
|
+
*
|
|
16
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
17
|
+
* @returns {UseHeatmapSeriesReturnValue} the heatmap series
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get access to the internal state of heatmap series.
|
|
22
|
+
*
|
|
23
|
+
* When called without arguments, it returns all heatmap series.
|
|
24
|
+
*
|
|
25
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get access to the internal state of heatmap series.
|
|
30
|
+
*
|
|
31
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
32
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
function useHeatmapSeries(seriesIds) {
|
|
36
|
+
return useSelectorSeries(seriesIds);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get access to the internal state of heatmap series.
|
|
41
|
+
* The returned object contains:
|
|
42
|
+
* - series: a mapping from ids to series attributes.
|
|
43
|
+
* - seriesOrder: the array of series ids.
|
|
44
|
+
* @returns the heatmap series
|
|
45
|
+
*/
|
|
46
|
+
function useHeatmapSeriesContext() {
|
|
47
|
+
return useSelectorSeriesContext();
|
|
48
|
+
}
|
package/hooks/zoom/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./useIsZoomInteracting.js";
|
package/hooks/zoom/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _useIsZoomInteracting = require("./useIsZoomInteracting");
|
|
7
|
+
Object.keys(_useIsZoomInteracting).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _useIsZoomInteracting[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _useIsZoomInteracting[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
'use client';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useIsZoomInteracting = useIsZoomInteracting;
|
|
8
|
+
var _internals = require("@mui/x-charts/internals");
|
|
9
|
+
var _useChartProZoom = require("../../internals/plugins/useChartProZoom");
|
|
5
10
|
/**
|
|
6
11
|
* Get access to the zoom state.
|
|
7
12
|
*
|
|
8
13
|
* @returns {boolean} Inform the zoom is interacting.
|
|
9
14
|
*/
|
|
10
|
-
|
|
11
|
-
const store = useStore();
|
|
12
|
-
const isInteracting = useSelector(store, selectorChartZoomIsInteracting);
|
|
15
|
+
function useIsZoomInteracting() {
|
|
16
|
+
const store = (0, _internals.useStore)();
|
|
17
|
+
const isInteracting = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartZoomIsInteracting);
|
|
13
18
|
return isInteracting;
|
|
14
19
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./typeOverloads/modules.js";
|
|
1
2
|
export * from '@mui/x-charts/constants';
|
|
2
3
|
export * from '@mui/x-charts/context';
|
|
3
4
|
export * from '@mui/x-charts/hooks';
|
|
@@ -13,17 +14,21 @@ export * from '@mui/x-charts/ChartsText';
|
|
|
13
14
|
export * from '@mui/x-charts/ChartsTooltip';
|
|
14
15
|
export * from '@mui/x-charts/ChartsLegend';
|
|
15
16
|
export * from '@mui/x-charts/ChartsAxisHighlight';
|
|
16
|
-
export * from '@mui/x-charts/ChartsVoronoiHandler';
|
|
17
|
-
export * from '@mui/x-charts/ChartsOnAxisClickHandler';
|
|
18
17
|
export * from '@mui/x-charts/BarChart';
|
|
19
18
|
export * from '@mui/x-charts/LineChart';
|
|
20
19
|
export * from '@mui/x-charts/PieChart';
|
|
21
20
|
export * from '@mui/x-charts/ScatterChart';
|
|
22
21
|
export * from '@mui/x-charts/SparkLineChart';
|
|
23
22
|
export * from '@mui/x-charts/Gauge';
|
|
23
|
+
export * from '@mui/x-charts/RadarChart';
|
|
24
24
|
export * from '@mui/x-charts/ChartsSurface';
|
|
25
|
-
export * from '
|
|
26
|
-
export * from '
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
25
|
+
export * from '@mui/x-charts/ChartDataProvider';
|
|
26
|
+
export * from '@mui/x-charts/ChartsLabel';
|
|
27
|
+
export * from "./hooks/index.js";
|
|
28
|
+
export * from "./Heatmap/index.js";
|
|
29
|
+
export * from "./ChartContainerPro/index.js";
|
|
30
|
+
export * from "./ChartDataProviderPro/index.js";
|
|
31
|
+
export * from "./ScatterChartPro/index.js";
|
|
32
|
+
export * from "./BarChartPro/index.js";
|
|
33
|
+
export * from "./LineChartPro/index.js";
|
|
34
|
+
export * from "./FunnelChart/index.js";
|