@mui/x-charts 9.0.0-alpha.3 → 9.0.0-alpha.4
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/BarChart/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +36 -6
- package/BarChart/BarChart.mjs +36 -6
- package/BarChart/BarElement.js +1 -3
- package/BarChart/BarElement.mjs +1 -3
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +8 -2
- package/BarChart/BarPlot.mjs +8 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +123 -0
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.js +49 -15
- package/ChartsContainer/ChartsContainer.mjs +49 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +81 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +81 -0
- package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +3 -41
- package/LineChart/AreaElement.mjs +3 -41
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +3 -11
- package/LineChart/CircleMarkElement.mjs +4 -12
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +33 -9
- package/LineChart/LineChart.mjs +33 -9
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +3 -41
- package/LineChart/LineElement.mjs +3 -41
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +3 -4
- package/LineChart/MarkElement.mjs +4 -5
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +3 -42
- package/PieChart/PieArc.mjs +3 -42
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +55 -13
- package/ScatterChart/ScatterChart.mjs +55 -13
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +40 -10
- package/SparkLineChart/SparkLineChart.mjs +40 -10
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +87 -115
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.useChartApiContext = useChartApiContext;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _ChartsProvider = require("./ChartsProvider");
|
|
11
11
|
/**
|
|
12
12
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
13
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
13
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
14
14
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
15
15
|
* @example
|
|
16
16
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -18,7 +18,7 @@ var _ChartProvider = require("./ChartProvider");
|
|
|
18
18
|
function useChartApiContext() {
|
|
19
19
|
const {
|
|
20
20
|
publicAPI
|
|
21
|
-
} = (0,
|
|
21
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
22
22
|
const apiRef = React.useRef(publicAPI);
|
|
23
23
|
React.useEffect(() => {
|
|
24
24
|
apiRef.current = publicAPI;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "./ChartsProvider/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
7
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
7
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
8
8
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
9
9
|
* @example
|
|
10
10
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -12,7 +12,7 @@ import { useChartContext } from "./ChartProvider/index.mjs";
|
|
|
12
12
|
export function useChartApiContext() {
|
|
13
13
|
const {
|
|
14
14
|
publicAPI
|
|
15
|
-
} =
|
|
15
|
+
} = useChartsContext();
|
|
16
16
|
const apiRef = React.useRef(publicAPI);
|
|
17
17
|
React.useEffect(() => {
|
|
18
18
|
apiRef.current = publicAPI;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.mjs";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.js";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -10,16 +10,14 @@ var _useAnimate = require("./useAnimate");
|
|
|
10
10
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
11
11
|
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
12
|
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
-
const
|
|
14
|
-
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
13
|
+
const interpolateArcLabelRadius = (0, _d3Interpolate.interpolateNumber)(from.arcLabelRadius, to.arcLabelRadius);
|
|
15
14
|
const interpolatePaddingAngle = (0, _d3Interpolate.interpolateNumber)(from.paddingAngle, to.paddingAngle);
|
|
16
15
|
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
17
16
|
return t => {
|
|
18
17
|
return {
|
|
19
18
|
startAngle: interpolateStartAngle(t),
|
|
20
19
|
endAngle: interpolateEndAngle(t),
|
|
21
|
-
|
|
22
|
-
outerRadius: interpolateOuterRadius(t),
|
|
20
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
23
21
|
paddingAngle: interpolatePaddingAngle(t),
|
|
24
22
|
cornerRadius: interpolateCornerRadius(t)
|
|
25
23
|
};
|
|
@@ -33,16 +31,14 @@ function useAnimatePieArcLabel(props) {
|
|
|
33
31
|
const initialProps = {
|
|
34
32
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
35
33
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
36
|
-
|
|
37
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
34
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
38
35
|
paddingAngle: props.paddingAngle,
|
|
39
36
|
cornerRadius: props.cornerRadius
|
|
40
37
|
};
|
|
41
38
|
return (0, _useAnimate.useAnimate)({
|
|
42
39
|
startAngle: props.startAngle,
|
|
43
40
|
endAngle: props.endAngle,
|
|
44
|
-
|
|
45
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
41
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
46
42
|
paddingAngle: props.paddingAngle,
|
|
47
43
|
cornerRadius: props.cornerRadius
|
|
48
44
|
}, {
|
|
@@ -52,8 +48,8 @@ function useAnimatePieArcLabel(props) {
|
|
|
52
48
|
padAngle: animatedProps.paddingAngle,
|
|
53
49
|
startAngle: animatedProps.startAngle,
|
|
54
50
|
endAngle: animatedProps.endAngle,
|
|
55
|
-
innerRadius: animatedProps.
|
|
56
|
-
outerRadius: animatedProps.
|
|
51
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
52
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
57
53
|
});
|
|
58
54
|
return {
|
|
59
55
|
x,
|
|
@@ -4,16 +4,14 @@ import { useAnimate } from "./useAnimate.mjs";
|
|
|
4
4
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
5
5
|
const interpolateStartAngle = interpolateNumber(from.startAngle, to.startAngle);
|
|
6
6
|
const interpolateEndAngle = interpolateNumber(from.endAngle, to.endAngle);
|
|
7
|
-
const
|
|
8
|
-
const interpolateOuterRadius = interpolateNumber(from.outerRadius, to.outerRadius);
|
|
7
|
+
const interpolateArcLabelRadius = interpolateNumber(from.arcLabelRadius, to.arcLabelRadius);
|
|
9
8
|
const interpolatePaddingAngle = interpolateNumber(from.paddingAngle, to.paddingAngle);
|
|
10
9
|
const interpolateCornerRadius = interpolateNumber(from.cornerRadius, to.cornerRadius);
|
|
11
10
|
return t => {
|
|
12
11
|
return {
|
|
13
12
|
startAngle: interpolateStartAngle(t),
|
|
14
13
|
endAngle: interpolateEndAngle(t),
|
|
15
|
-
|
|
16
|
-
outerRadius: interpolateOuterRadius(t),
|
|
14
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
17
15
|
paddingAngle: interpolatePaddingAngle(t),
|
|
18
16
|
cornerRadius: interpolateCornerRadius(t)
|
|
19
17
|
};
|
|
@@ -27,16 +25,14 @@ export function useAnimatePieArcLabel(props) {
|
|
|
27
25
|
const initialProps = {
|
|
28
26
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
29
27
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
30
|
-
|
|
31
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
28
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
32
29
|
paddingAngle: props.paddingAngle,
|
|
33
30
|
cornerRadius: props.cornerRadius
|
|
34
31
|
};
|
|
35
32
|
return useAnimate({
|
|
36
33
|
startAngle: props.startAngle,
|
|
37
34
|
endAngle: props.endAngle,
|
|
38
|
-
|
|
39
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
35
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
40
36
|
paddingAngle: props.paddingAngle,
|
|
41
37
|
cornerRadius: props.cornerRadius
|
|
42
38
|
}, {
|
|
@@ -46,8 +42,8 @@ export function useAnimatePieArcLabel(props) {
|
|
|
46
42
|
padAngle: animatedProps.paddingAngle,
|
|
47
43
|
startAngle: animatedProps.startAngle,
|
|
48
44
|
endAngle: animatedProps.endAngle,
|
|
49
|
-
innerRadius: animatedProps.
|
|
50
|
-
outerRadius: animatedProps.
|
|
45
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
46
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
51
47
|
});
|
|
52
48
|
return {
|
|
53
49
|
x,
|
package/hooks/useChartRootRef.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartRootRef = useChartRootRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the root chart element.
|
|
11
11
|
* @returns The root chart element ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartRootRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartRootRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the root chart element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartRootRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartRootRef;
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartsLayerContainerRef = useChartsLayerContainerRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the chart surface element.
|
|
11
11
|
* @returns The chart surface ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartsLayerContainerRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartsLayerContainerRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the chart surface element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartsLayerContainerRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartsLayerContainerRef;
|
|
14
14
|
}
|
package/hooks/useDataset.js
CHANGED
|
@@ -13,5 +13,5 @@ var _useChartSeries = require("../internals/plugins/corePlugins/useChartSeries/u
|
|
|
13
13
|
*/
|
|
14
14
|
function useDataset() {
|
|
15
15
|
const store = (0, _useStore.useStore)();
|
|
16
|
-
return store.use(_useChartSeries.
|
|
16
|
+
return store.use(_useChartSeries.selectorChartsDataset);
|
|
17
17
|
}
|
package/hooks/useDataset.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useStore } from "../internals/store/useStore.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { selectorChartsDataset } from "../internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Get access to the dataset used to populate series and axes data.
|
|
7
7
|
* @returns {DatasetType | undefined} The dataset array if provided, otherwise undefined.
|
|
8
8
|
*/
|
|
9
9
|
export function useDataset() {
|
|
10
10
|
const store = useStore();
|
|
11
|
-
return store.use(
|
|
11
|
+
return store.use(selectorChartsDataset);
|
|
12
12
|
}
|
|
@@ -10,7 +10,7 @@ exports.getInteractionItemProps = getInteractionItemProps;
|
|
|
10
10
|
exports.useInteractionItemProps = void 0;
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
13
|
-
var
|
|
13
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
14
14
|
function onPointerDown(event) {
|
|
15
15
|
if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
16
16
|
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
@@ -19,7 +19,7 @@ function onPointerDown(event) {
|
|
|
19
19
|
const useInteractionItemProps = (data, skip) => {
|
|
20
20
|
const {
|
|
21
21
|
instance
|
|
22
|
-
} = (0,
|
|
22
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
23
23
|
const interactionActive = React.useRef(false);
|
|
24
24
|
const onPointerEnter = (0, _useEventCallback.default)(() => {
|
|
25
25
|
interactionActive.current = true;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
5
|
-
import {
|
|
5
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
6
6
|
function onPointerDown(event) {
|
|
7
7
|
if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
8
8
|
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
@@ -11,7 +11,7 @@ function onPointerDown(event) {
|
|
|
11
11
|
export const useInteractionItemProps = (data, skip) => {
|
|
12
12
|
const {
|
|
13
13
|
instance
|
|
14
|
-
} =
|
|
14
|
+
} = useChartsContext();
|
|
15
15
|
const interactionActive = React.useRef(false);
|
|
16
16
|
const onPointerEnter = useEventCallback(() => {
|
|
17
17
|
interactionActive.current = true;
|
package/hooks/useTicks.js
CHANGED
|
@@ -13,7 +13,7 @@ var _scaleGuards = require("../internals/scaleGuards");
|
|
|
13
13
|
var _isInfinity = require("../internals/isInfinity");
|
|
14
14
|
var _timeTicks = require("../utils/timeTicks");
|
|
15
15
|
var _dateHelpers = require("../internals/dateHelpers");
|
|
16
|
-
var
|
|
16
|
+
var _useChartsContext = require("../context/ChartsProvider/useChartsContext");
|
|
17
17
|
const offsetRatio = {
|
|
18
18
|
start: 0,
|
|
19
19
|
extremities: 0,
|
|
@@ -252,7 +252,7 @@ function useTicks(options) {
|
|
|
252
252
|
} = options;
|
|
253
253
|
const {
|
|
254
254
|
instance
|
|
255
|
-
} = (0,
|
|
255
|
+
} = (0, _useChartsContext.useChartsContext)();
|
|
256
256
|
const isInside = direction === 'x' ? instance.isXInside : instance.isYInside;
|
|
257
257
|
return React.useMemo(() => getTicks({
|
|
258
258
|
scale,
|
package/hooks/useTicks.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { isOrdinalScale } from "../internals/scaleGuards.mjs";
|
|
|
5
5
|
import { isInfinity } from "../internals/isInfinity.mjs";
|
|
6
6
|
import { tickFrequencies } from "../utils/timeTicks.mjs";
|
|
7
7
|
import { isDateData } from "../internals/dateHelpers.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { useChartsContext } from "../context/ChartsProvider/useChartsContext.mjs";
|
|
9
9
|
const offsetRatio = {
|
|
10
10
|
start: 0,
|
|
11
11
|
extremities: 0,
|
|
@@ -244,7 +244,7 @@ export function useTicks(options) {
|
|
|
244
244
|
} = options;
|
|
245
245
|
const {
|
|
246
246
|
instance
|
|
247
|
-
} =
|
|
247
|
+
} = useChartsContext();
|
|
248
248
|
const isInside = direction === 'x' ? instance.isXInside : instance.isYInside;
|
|
249
249
|
return React.useMemo(() => getTicks({
|
|
250
250
|
scale,
|
package/index.d.mts
CHANGED
|
@@ -26,10 +26,7 @@ export * from "./RadarChart/index.mjs";
|
|
|
26
26
|
export * from "./ChartsSurface/index.mjs";
|
|
27
27
|
export { ChartsContainer } from "./ChartsContainer/index.mjs";
|
|
28
28
|
export type { ChartsContainerProps, ChartsContainerSlots, ChartsContainerSlotProps } from "./ChartsContainer/index.mjs";
|
|
29
|
-
export { ChartContainer } from "./ChartContainer/index.mjs";
|
|
30
|
-
export type { ChartContainerProps, ChartContainerSlots, ChartContainerSlotProps } from "./ChartContainer/index.mjs";
|
|
31
29
|
export * from "./ChartsDataProvider/index.mjs";
|
|
32
|
-
export * from "./ChartDataProvider/index.mjs";
|
|
33
30
|
export * from "./Toolbar/index.mjs";
|
|
34
31
|
export * from "./ChartsWrapper/index.mjs";
|
|
35
32
|
export * from "./ChartsBrushOverlay/index.mjs";
|
package/index.d.ts
CHANGED
|
@@ -26,10 +26,7 @@ export * from "./RadarChart/index.js";
|
|
|
26
26
|
export * from "./ChartsSurface/index.js";
|
|
27
27
|
export { ChartsContainer } from "./ChartsContainer/index.js";
|
|
28
28
|
export type { ChartsContainerProps, ChartsContainerSlots, ChartsContainerSlotProps } from "./ChartsContainer/index.js";
|
|
29
|
-
export { ChartContainer } from "./ChartContainer/index.js";
|
|
30
|
-
export type { ChartContainerProps, ChartContainerSlots, ChartContainerSlotProps } from "./ChartContainer/index.js";
|
|
31
29
|
export * from "./ChartsDataProvider/index.js";
|
|
32
|
-
export * from "./ChartDataProvider/index.js";
|
|
33
30
|
export * from "./Toolbar/index.js";
|
|
34
31
|
export * from "./ChartsWrapper/index.js";
|
|
35
32
|
export * from "./ChartsBrushOverlay/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v9.0.0-alpha.
|
|
2
|
+
* @mui/x-charts v9.0.0-alpha.4
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -11,15 +11,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
13
|
var _exportNames = {
|
|
14
|
-
ChartsContainer: true
|
|
15
|
-
ChartContainer: true
|
|
14
|
+
ChartsContainer: true
|
|
16
15
|
};
|
|
17
|
-
Object.defineProperty(exports, "ChartContainer", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return _ChartContainer.ChartContainer;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
16
|
Object.defineProperty(exports, "ChartsContainer", {
|
|
24
17
|
enumerable: true,
|
|
25
18
|
get: function () {
|
|
@@ -339,7 +332,6 @@ Object.keys(_ChartsSurface).forEach(function (key) {
|
|
|
339
332
|
});
|
|
340
333
|
});
|
|
341
334
|
var _ChartsContainer = require("./ChartsContainer");
|
|
342
|
-
var _ChartContainer = require("./ChartContainer");
|
|
343
335
|
var _ChartsDataProvider = require("./ChartsDataProvider");
|
|
344
336
|
Object.keys(_ChartsDataProvider).forEach(function (key) {
|
|
345
337
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -352,18 +344,6 @@ Object.keys(_ChartsDataProvider).forEach(function (key) {
|
|
|
352
344
|
}
|
|
353
345
|
});
|
|
354
346
|
});
|
|
355
|
-
var _ChartDataProvider = require("./ChartDataProvider");
|
|
356
|
-
Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
357
|
-
if (key === "default" || key === "__esModule") return;
|
|
358
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
359
|
-
if (key in exports && exports[key] === _ChartDataProvider[key]) return;
|
|
360
|
-
Object.defineProperty(exports, key, {
|
|
361
|
-
enumerable: true,
|
|
362
|
-
get: function () {
|
|
363
|
-
return _ChartDataProvider[key];
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
347
|
var _Toolbar = require("./Toolbar");
|
|
368
348
|
Object.keys(_Toolbar).forEach(function (key) {
|
|
369
349
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v9.0.0-alpha.
|
|
2
|
+
* @mui/x-charts v9.0.0-alpha.4
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -32,9 +32,7 @@ export * from "./Gauge/index.mjs";
|
|
|
32
32
|
export * from "./RadarChart/index.mjs";
|
|
33
33
|
export * from "./ChartsSurface/index.mjs";
|
|
34
34
|
export { ChartsContainer } from "./ChartsContainer/index.mjs";
|
|
35
|
-
export { ChartContainer } from "./ChartContainer/index.mjs";
|
|
36
35
|
export * from "./ChartsDataProvider/index.mjs";
|
|
37
|
-
export * from "./ChartDataProvider/index.mjs";
|
|
38
36
|
export * from "./Toolbar/index.mjs";
|
|
39
37
|
export * from "./ChartsWrapper/index.mjs";
|
|
40
38
|
export * from "./ChartsBrushOverlay/index.mjs";
|
|
@@ -40,7 +40,7 @@ import * as React from 'react';
|
|
|
40
40
|
* @param {Function} options.classesResolver A function that returns the classes for the component. It receives the props, after theme props and defaults have been applied. And the theme object as the second argument.
|
|
41
41
|
* @param InComponent The component to render if the slot is not provided.
|
|
42
42
|
*/
|
|
43
|
-
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction =
|
|
43
|
+
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction = React.ForwardRefExoticComponent<Props & React.RefAttributes<Ref>>>(name: string, slotPropName: string, options: {
|
|
44
44
|
propagateSlots?: boolean;
|
|
45
45
|
defaultProps?: Omit<Partial<Props>, "slots" | "slotProps"> | ((props: Props) => Omit<Partial<Props>, "slots" | "slotProps">);
|
|
46
46
|
omitProps?: Array<keyof Props>;
|
|
@@ -40,7 +40,7 @@ import * as React from 'react';
|
|
|
40
40
|
* @param {Function} options.classesResolver A function that returns the classes for the component. It receives the props, after theme props and defaults have been applied. And the theme object as the second argument.
|
|
41
41
|
* @param InComponent The component to render if the slot is not provided.
|
|
42
42
|
*/
|
|
43
|
-
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction =
|
|
43
|
+
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction = React.ForwardRefExoticComponent<Props & React.RefAttributes<Ref>>>(name: string, slotPropName: string, options: {
|
|
44
44
|
propagateSlots?: boolean;
|
|
45
45
|
defaultProps?: Omit<Partial<Props>, "slots" | "slotProps"> | ((props: Props) => Omit<Partial<Props>, "slots" | "slotProps">);
|
|
46
46
|
omitProps?: Array<keyof Props>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SeriesId
|
|
2
|
-
import type {
|
|
1
|
+
import type { SeriesId } from "../models/index.mjs";
|
|
2
|
+
import type { ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Cleans an identifier by extracting only type, seriesId, and dataIndex properties.
|
|
5
5
|
* This is the common cleaner for most series types (bar, line, pie, scatter, radar, etc.).
|
|
@@ -8,8 +8,8 @@ import type { SeriesTypeWithDataIndex } from "../models/seriesType/config.mjs";
|
|
|
8
8
|
* identifier actually includes `dataIndex`. Series types with different identifier
|
|
9
9
|
* properties (like heatmap's xIndex/yIndex) must provide their own cleaner.
|
|
10
10
|
*/
|
|
11
|
-
export declare const identifierCleanerSeriesIdDataIndex: <
|
|
12
|
-
type:
|
|
11
|
+
export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
12
|
+
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}) =>
|
|
15
|
+
}>(identifier: T) => Pick<T, "type" | "seriesId" | "dataIndex">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SeriesId
|
|
2
|
-
import type {
|
|
1
|
+
import type { SeriesId } from "../models/index.js";
|
|
2
|
+
import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
3
3
|
/**
|
|
4
4
|
* Cleans an identifier by extracting only type, seriesId, and dataIndex properties.
|
|
5
5
|
* This is the common cleaner for most series types (bar, line, pie, scatter, radar, etc.).
|
|
@@ -8,8 +8,8 @@ import type { SeriesTypeWithDataIndex } from "../models/seriesType/config.js";
|
|
|
8
8
|
* identifier actually includes `dataIndex`. Series types with different identifier
|
|
9
9
|
* properties (like heatmap's xIndex/yIndex) must provide their own cleaner.
|
|
10
10
|
*/
|
|
11
|
-
export declare const identifierCleanerSeriesIdDataIndex: <
|
|
12
|
-
type:
|
|
11
|
+
export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
12
|
+
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}) =>
|
|
15
|
+
}>(identifier: T) => Pick<T, "type" | "seriesId" | "dataIndex">;
|
|
@@ -13,7 +13,6 @@ exports.identifierCleanerSeriesIdDataIndex = void 0;
|
|
|
13
13
|
* properties (like heatmap's xIndex/yIndex) must provide their own cleaner.
|
|
14
14
|
*/
|
|
15
15
|
const identifierCleanerSeriesIdDataIndex = identifier => {
|
|
16
|
-
// @ts-expect-error we need to trust the output type here, since SeriesType is generic
|
|
17
16
|
return {
|
|
18
17
|
type: identifier.type,
|
|
19
18
|
seriesId: identifier.seriesId,
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* properties (like heatmap's xIndex/yIndex) must provide their own cleaner.
|
|
8
8
|
*/
|
|
9
9
|
export const identifierCleanerSeriesIdDataIndex = identifier => {
|
|
10
|
-
// @ts-expect-error we need to trust the output type here, since SeriesType is generic
|
|
11
10
|
return {
|
|
12
11
|
type: identifier.type,
|
|
13
12
|
seriesId: identifier.seriesId,
|
package/internals/index.d.mts
CHANGED
|
@@ -16,9 +16,7 @@ export * from "../BarChart/useBarChartProps.mjs";
|
|
|
16
16
|
export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
|
|
17
17
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
|
|
18
18
|
export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
19
|
-
export * from "../ChartContainer/useChartContainerProps.mjs";
|
|
20
19
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
21
|
-
export * from "../ChartDataProvider/useChartDataProviderProps.mjs";
|
|
22
20
|
export * from "./seriesSelectorOfType.mjs";
|
|
23
21
|
export { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
24
22
|
export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs";
|
|
@@ -50,6 +48,7 @@ export * from "../RadarChart/RadarChart.plugins.mjs";
|
|
|
50
48
|
export * from "../PieChart/PieChart.plugins.mjs";
|
|
51
49
|
export * from "./configInit.mjs";
|
|
52
50
|
export * from "./getLabel.mjs";
|
|
51
|
+
export * from "./legendUtils.mjs";
|
|
53
52
|
export * from "./getChartPoint.mjs";
|
|
54
53
|
export * from "./isDefined.mjs";
|
|
55
54
|
export * from "./getScale.mjs";
|
|
@@ -70,9 +69,9 @@ export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
|
|
|
70
69
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
|
|
71
70
|
export { getBandSize } from "./getBandSize.mjs";
|
|
72
71
|
export * from "./plugins/utils/defaultSeriesConfig.mjs";
|
|
72
|
+
export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.mjs";
|
|
73
73
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.mjs";
|
|
74
74
|
export * from "../context/ChartsProvider/index.mjs";
|
|
75
|
-
export * from "../context/ChartProvider/index.mjs";
|
|
76
75
|
export * from "../context/ChartsSlotsContext.mjs";
|
|
77
76
|
export * from "../models/seriesType/config.mjs";
|
|
78
77
|
export * from "../models/seriesType/common.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -16,9 +16,7 @@ export * from "../BarChart/useBarChartProps.js";
|
|
|
16
16
|
export { processBarDataForPlot } from "../BarChart/useBarPlotData.js";
|
|
17
17
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
18
18
|
export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
19
|
-
export * from "../ChartContainer/useChartContainerProps.js";
|
|
20
19
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.js";
|
|
21
|
-
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
22
20
|
export * from "./seriesSelectorOfType.js";
|
|
23
21
|
export { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
24
22
|
export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.js";
|
|
@@ -50,6 +48,7 @@ export * from "../RadarChart/RadarChart.plugins.js";
|
|
|
50
48
|
export * from "../PieChart/PieChart.plugins.js";
|
|
51
49
|
export * from "./configInit.js";
|
|
52
50
|
export * from "./getLabel.js";
|
|
51
|
+
export * from "./legendUtils.js";
|
|
53
52
|
export * from "./getChartPoint.js";
|
|
54
53
|
export * from "./isDefined.js";
|
|
55
54
|
export * from "./getScale.js";
|
|
@@ -70,9 +69,9 @@ export { getSeriesColorFn } from "./getSeriesColorFn.js";
|
|
|
70
69
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
71
70
|
export { getBandSize } from "./getBandSize.js";
|
|
72
71
|
export * from "./plugins/utils/defaultSeriesConfig.js";
|
|
72
|
+
export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.js";
|
|
73
73
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
74
74
|
export * from "../context/ChartsProvider/index.js";
|
|
75
|
-
export * from "../context/ChartProvider/index.js";
|
|
76
75
|
export * from "../context/ChartsSlotsContext.js";
|
|
77
76
|
export * from "../models/seriesType/config.js";
|
|
78
77
|
export * from "../models/seriesType/common.js";
|