@mui/x-charts 8.1.0 → 8.3.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/BarChart/BarChart.js +1 -1
- package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/BarChart/BarLabel/index.d.ts +4 -4
- package/BarChart/checkScaleErrors.d.ts +3 -3
- package/BarChart/checkScaleErrors.js +4 -4
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/BarChart/types.d.ts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +20 -2
- package/CHANGELOG.md +233 -7
- package/ChartContainer/ChartContainer.js +1 -1
- package/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/ChartsClipPath/ChartsClipPath.d.ts +8 -0
- package/ChartsClipPath/ChartsClipPath.js +8 -0
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.js +8 -4
- package/ChartsLabel/index.d.ts +4 -4
- package/ChartsLabel/labelClasses.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/index.d.ts +4 -4
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/useAxis.d.ts +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsLocalizationProvider/index.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/index.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsText/index.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/ChartsTooltip/index.d.ts +3 -3
- package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AnimatedLine.d.ts +1 -1
- package/LineChart/AppearingMask.js +1 -2
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/CircleMarkElement.d.ts +10 -0
- package/LineChart/CircleMarkElement.js +5 -15
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkElement.d.ts +10 -0
- package/LineChart/MarkElement.js +15 -15
- package/LineChart/MarkPlot.js +19 -3
- package/LineChart/index.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/PieChart/PieArcLabel.js +3 -4
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/RadarGrid/index.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/RadarChart/index.d.ts +2 -2
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +2 -2
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/SparkLineChart/SparkLineChart.d.ts +19 -0
- package/SparkLineChart/SparkLineChart.js +53 -16
- package/Toolbar/Toolbar.d.ts +5 -0
- package/Toolbar/Toolbar.js +34 -0
- package/Toolbar/ToolbarButton.d.ts +5 -0
- package/Toolbar/ToolbarButton.js +27 -0
- package/Toolbar/index.d.ts +2 -0
- package/Toolbar/index.js +27 -0
- package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/colorPalettes/categorical/blueberryTwilight.js +10 -0
- package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
- package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/colorPalettes/categorical/mangoFusion.js +10 -0
- package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/colorPalettes/categorical/rainbowSurge.js +10 -0
- package/colorPalettes/index.d.ts +14 -1
- package/colorPalettes/index.js +147 -4
- package/colorPalettes/sequential/blue.d.ts +4 -0
- package/colorPalettes/sequential/blue.js +12 -0
- package/colorPalettes/sequential/cyan.d.ts +4 -0
- package/colorPalettes/sequential/cyan.js +12 -0
- package/colorPalettes/sequential/green.d.ts +4 -0
- package/colorPalettes/sequential/green.js +12 -0
- package/colorPalettes/sequential/orange.d.ts +4 -0
- package/colorPalettes/sequential/orange.js +12 -0
- package/colorPalettes/sequential/pink.d.ts +4 -0
- package/colorPalettes/sequential/pink.js +12 -0
- package/colorPalettes/sequential/purple.d.ts +4 -0
- package/colorPalettes/sequential/purple.js +12 -0
- package/colorPalettes/sequential/red.d.ts +4 -0
- package/colorPalettes/sequential/red.js +12 -0
- package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/colorPalettes/sequential/strawberrySky.js +10 -0
- package/colorPalettes/sequential/yellow.d.ts +4 -0
- package/colorPalettes/sequential/yellow.js +12 -0
- package/colorPalettes/types.d.ts +4 -0
- package/colorPalettes/types.js +5 -0
- package/context/ChartProvider/ChartContext.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/context/ChartProvider/useChartContext.js +1 -1
- package/context/index.d.ts +1 -1
- package/esm/BarChart/BarChart.js +1 -1
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/esm/BarChart/BarLabel/index.d.ts +4 -4
- package/esm/BarChart/checkScaleErrors.d.ts +3 -3
- package/esm/BarChart/checkScaleErrors.js +4 -4
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.js +20 -2
- package/esm/ChartContainer/ChartContainer.js +1 -1
- package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/esm/ChartsClipPath/ChartsClipPath.d.ts +8 -0
- package/esm/ChartsClipPath/ChartsClipPath.js +8 -0
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
- package/esm/ChartsLabel/index.d.ts +4 -4
- package/esm/ChartsLabel/labelClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/index.d.ts +4 -4
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/useAxis.d.ts +2 -2
- package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/index.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/esm/ChartsText/index.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/esm/ChartsTooltip/index.d.ts +3 -3
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/esm/LineChart/AnimatedArea.d.ts +1 -1
- package/esm/LineChart/AnimatedLine.d.ts +1 -1
- package/esm/LineChart/AppearingMask.js +1 -2
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/CircleMarkElement.d.ts +10 -0
- package/esm/LineChart/CircleMarkElement.js +5 -15
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkElement.d.ts +10 -0
- package/esm/LineChart/MarkElement.js +15 -15
- package/esm/LineChart/MarkPlot.js +20 -4
- package/esm/LineChart/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/useLineChartProps.d.ts +2 -2
- package/esm/PieChart/PieArcLabel.js +3 -4
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/esm/RadarChart/index.d.ts +2 -2
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
- package/esm/ScatterChart/ScatterChart.js +1 -1
- package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/esm/SparkLineChart/SparkLineChart.d.ts +19 -0
- package/esm/SparkLineChart/SparkLineChart.js +53 -16
- package/esm/Toolbar/Toolbar.d.ts +5 -0
- package/esm/Toolbar/Toolbar.js +27 -0
- package/esm/Toolbar/ToolbarButton.d.ts +5 -0
- package/esm/Toolbar/ToolbarButton.js +20 -0
- package/esm/Toolbar/index.d.ts +2 -0
- package/esm/Toolbar/index.js +2 -0
- package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
- package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
- package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
- package/esm/colorPalettes/index.d.ts +14 -1
- package/esm/colorPalettes/index.js +20 -1
- package/esm/colorPalettes/sequential/blue.d.ts +4 -0
- package/esm/colorPalettes/sequential/blue.js +5 -0
- package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
- package/esm/colorPalettes/sequential/cyan.js +5 -0
- package/esm/colorPalettes/sequential/green.d.ts +4 -0
- package/esm/colorPalettes/sequential/green.js +5 -0
- package/esm/colorPalettes/sequential/orange.d.ts +4 -0
- package/esm/colorPalettes/sequential/orange.js +5 -0
- package/esm/colorPalettes/sequential/pink.d.ts +4 -0
- package/esm/colorPalettes/sequential/pink.js +5 -0
- package/esm/colorPalettes/sequential/purple.d.ts +4 -0
- package/esm/colorPalettes/sequential/purple.js +5 -0
- package/esm/colorPalettes/sequential/red.d.ts +4 -0
- package/esm/colorPalettes/sequential/red.js +5 -0
- package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
- package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
- package/esm/colorPalettes/sequential/yellow.js +5 -0
- package/esm/colorPalettes/types.d.ts +4 -0
- package/esm/colorPalettes/types.js +1 -0
- package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/esm/context/ChartProvider/useChartContext.js +1 -1
- package/esm/context/index.d.ts +1 -1
- package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +11 -2
- package/esm/hooks/animation/useAnimatePieArcLabel.js +4 -4
- package/esm/hooks/useAxis.d.ts +6 -6
- package/esm/hooks/useChartsLocalization.d.ts +1 -1
- package/esm/hooks/useChartsLocalization.js +1 -1
- package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/esm/hooks/useLegend.d.ts +1 -1
- package/esm/hooks/useSeries.d.ts +1 -1
- package/esm/hooks/useSvgRef.js +1 -1
- package/esm/hooks/useZAxis.d.ts +3 -3
- package/esm/index.d.ts +2 -1
- package/esm/index.js +3 -2
- package/esm/internals/constants.d.ts +4 -0
- package/esm/internals/constants.js +5 -0
- package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/esm/internals/createSeriesSelectorOfType.js +1 -1
- package/esm/internals/createSvgIcon.d.ts +3 -0
- package/esm/internals/createSvgIcon.js +2 -0
- package/esm/internals/defaultizeMargin.d.ts +1 -1
- package/esm/internals/geometry.js +1 -1
- package/esm/internals/getPercentageValue.js +1 -1
- package/esm/internals/index.d.ts +4 -1
- package/esm/internals/index.js +4 -1
- package/esm/internals/material/index.d.ts +4 -0
- package/esm/internals/material/index.js +7 -0
- package/esm/internals/plugins/allPlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
- package/esm/internals/plugins/corePlugins/corePlugins.js +1 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +177 -142
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +6 -7
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +22 -10
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +5 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/esm/internals/plugins/models/chart.d.ts +3 -3
- package/esm/internals/plugins/models/helpers.d.ts +1 -2
- package/esm/internals/plugins/models/plugin.d.ts +2 -32
- package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/esm/internals/stackSeries.d.ts +1 -1
- package/esm/internals/store/useCharts.d.ts +2 -2
- package/esm/internals/store/useCharts.js +11 -12
- package/esm/internals/store/useStore.js +1 -1
- package/esm/locales/enUS.d.ts +2 -0
- package/esm/locales/enUS.js +3 -1
- package/esm/locales/frFR.d.ts +2 -0
- package/esm/locales/frFR.js +2 -0
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/utils/chartsLocaleTextApi.d.ts +8 -0
- package/esm/locales/utils/getChartsLocalization.d.ts +2 -0
- package/esm/models/axis.d.ts +22 -3
- package/esm/models/axis.js +12 -0
- package/esm/models/index.d.ts +4 -3
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +2 -2
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/models/slots/chartsBaseSlotProps.d.ts +13 -0
- package/esm/models/slots/chartsBaseSlotProps.js +1 -0
- package/esm/models/slots/chartsBaseSlots.d.ts +5 -0
- package/esm/models/slots/chartsBaseSlots.js +1 -0
- package/esm/models/slots/chartsIconSlots.d.ts +1 -0
- package/esm/models/slots/chartsIconSlots.js +1 -0
- package/esm/models/slots/index.d.ts +3 -0
- package/esm/models/slots/index.js +3 -0
- package/esm/themeAugmentation/components.js +1 -0
- package/esm/themeAugmentation/index.d.ts +3 -3
- package/esm/themeAugmentation/overrides.d.ts +3 -12
- package/esm/themeAugmentation/overrides.js +2 -0
- package/esm/themeAugmentation/props.d.ts +0 -7
- package/esm/themeAugmentation/props.js +2 -0
- package/hooks/animation/useAnimateArea.d.ts +1 -1
- package/hooks/animation/useAnimateBar.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateLine.d.ts +1 -1
- package/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/hooks/animation/useAnimatePieArcLabel.d.ts +11 -2
- package/hooks/animation/useAnimatePieArcLabel.js +4 -4
- package/hooks/useAxis.d.ts +6 -6
- package/hooks/useChartsLocalization.d.ts +1 -1
- package/hooks/useChartsLocalization.js +1 -1
- package/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/hooks/useLegend.d.ts +1 -1
- package/hooks/useSeries.d.ts +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useZAxis.d.ts +3 -3
- package/index.d.ts +2 -1
- package/index.js +12 -1
- package/internals/constants.d.ts +4 -0
- package/internals/constants.js +11 -0
- package/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/internals/createSeriesSelectorOfType.js +1 -1
- package/internals/createSvgIcon.d.ts +3 -0
- package/internals/createSvgIcon.js +8 -0
- package/internals/defaultizeMargin.d.ts +1 -1
- package/internals/geometry.js +1 -1
- package/internals/getPercentageValue.js +1 -1
- package/internals/index.d.ts +4 -1
- package/internals/index.js +36 -0
- package/internals/material/index.d.ts +4 -0
- package/internals/material/index.js +14 -0
- package/internals/plugins/allPlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
- package/internals/plugins/corePlugins/corePlugins.js +1 -1
- package/internals/plugins/corePlugins/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +177 -142
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +6 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +27 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +5 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
- package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/internals/plugins/models/chart.d.ts +3 -3
- package/internals/plugins/models/helpers.d.ts +1 -2
- package/internals/plugins/models/plugin.d.ts +2 -32
- package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/internals/stackSeries.d.ts +1 -1
- package/internals/store/useCharts.d.ts +2 -2
- package/internals/store/useCharts.js +11 -12
- package/internals/store/useStore.js +1 -1
- package/locales/enUS.d.ts +2 -0
- package/locales/enUS.js +3 -1
- package/locales/frFR.d.ts +2 -0
- package/locales/frFR.js +2 -0
- package/locales/index.d.ts +1 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +8 -0
- package/locales/utils/getChartsLocalization.d.ts +2 -0
- package/models/axis.d.ts +22 -3
- package/models/axis.js +12 -0
- package/models/index.d.ts +4 -3
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +2 -2
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/slots/chartsBaseSlotProps.d.ts +13 -0
- package/models/slots/chartsBaseSlotProps.js +5 -0
- package/models/slots/chartsBaseSlots.d.ts +5 -0
- package/models/slots/chartsBaseSlots.js +5 -0
- package/models/slots/chartsIconSlots.d.ts +1 -0
- package/models/slots/chartsIconSlots.js +5 -0
- package/models/slots/index.d.ts +3 -0
- package/models/slots/index.js +38 -0
- package/package.json +5 -5
- package/themeAugmentation/components.js +5 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/overrides.d.ts +3 -12
- package/themeAugmentation/overrides.js +5 -0
- package/themeAugmentation/props.d.ts +0 -7
- package/themeAugmentation/props.js +5 -0
- package/colorPalettes/colorPalettes.d.ts +0 -16
- package/colorPalettes/colorPalettes.js +0 -22
- package/esm/colorPalettes/colorPalettes.d.ts +0 -16
- package/esm/colorPalettes/colorPalettes.js +0 -12
- package/esm/internals/store/useChartModels.d.ts +0 -7
- package/esm/internals/store/useChartModels.js +0 -64
- package/internals/store/useChartModels.d.ts +0 -7
- package/internals/store/useChartModels.js +0 -73
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.selectorChartPropsSize = exports.selectorChartDrawingArea = exports.selectorChartDimensionsState = exports.selectorChartContainerSize = void 0;
|
|
6
|
+
exports.selectorChartPropsSize = exports.selectorChartMargin = exports.selectorChartDrawingArea = exports.selectorChartDimensionsState = exports.selectorChartContainerSize = void 0;
|
|
7
7
|
var _selectors = require("../../utils/selectors");
|
|
8
8
|
var _useChartAxisSize = require("../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors");
|
|
9
9
|
const selectorChartDimensionsState = state => state.dimensions;
|
|
10
10
|
exports.selectorChartDimensionsState = selectorChartDimensionsState;
|
|
11
|
-
const selectorChartMargin = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.margin);
|
|
11
|
+
const selectorChartMargin = exports.selectorChartMargin = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.margin);
|
|
12
12
|
const selectorChartWidth = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.width);
|
|
13
13
|
const selectorChartHeight = (0, _selectors.createSelector)(selectorChartDimensionsState, dimensionsState => dimensionsState.height);
|
|
14
14
|
const selectorChartTopMargin = (0, _selectors.createSelector)(selectorChartMargin, margin => margin.top);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartPluginSignature } from "../../models/index.js";
|
|
2
|
-
import type { UseChartCartesianAxisSignature } from
|
|
2
|
+
import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
|
|
3
3
|
export interface ChartMargin {
|
|
4
4
|
/**
|
|
5
5
|
* The gap between the left border of the SVG and the drawing area.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useChartId } from "./useChartId.js";
|
|
2
|
-
export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from
|
|
2
|
+
export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from "./useChartId.types.js";
|
|
3
3
|
export * from "./useChartId.selectors.js";
|
|
@@ -5,8 +5,8 @@ import { UseChartIdSignature } from "./useChartId.types.js";
|
|
|
5
5
|
* @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
|
|
6
6
|
* @returns {string} The id attribute of the chart.
|
|
7
7
|
*/
|
|
8
|
-
export declare const selectorChartId: ((state: import("./useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
9
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
8
|
+
export declare const selectorChartId: ((state: import("./useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
9
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
10
10
|
}) => string | undefined) & {
|
|
11
11
|
clearCache: () => void;
|
|
12
12
|
resultsCount: () => number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useChartSeries } from "./useChartSeries.js";
|
|
2
|
-
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from
|
|
2
|
+
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from "./useChartSeries.types.js";
|
|
3
3
|
export * from "./useChartSeries.selectors.js";
|
|
@@ -33,7 +33,7 @@ const preprocessSeries = ({
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
if (seriesGroups[seriesData.type]?.series[id] !== undefined) {
|
|
36
|
-
throw new Error(`MUI X: series' id "${id}" is not unique.`);
|
|
36
|
+
throw new Error(`MUI X Charts: series' id "${id}" is not unique.`);
|
|
37
37
|
}
|
|
38
38
|
seriesGroups[seriesData.type].series[id] = seriesWithDefaultValues;
|
|
39
39
|
seriesGroups[seriesData.type].seriesOrder.push(id);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
2
2
|
import { UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
3
3
|
export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
|
|
4
|
-
export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("
|
|
5
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
6
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
4
|
+
export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
5
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
6
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
7
7
|
clearCache: () => void;
|
|
8
8
|
resultsCount: () => number;
|
|
9
9
|
resetResultsCount: () => void;
|
|
10
10
|
} & {
|
|
11
11
|
resultFunc: (resultFuncArgs_0: {
|
|
12
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
13
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
14
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
12
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
13
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
14
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
15
15
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
16
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
17
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
18
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
16
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
17
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
18
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
19
19
|
clearCache: () => void;
|
|
20
20
|
resultsCount: () => number;
|
|
21
21
|
resetResultsCount: () => void;
|
|
22
22
|
};
|
|
23
|
-
lastResult: () => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
23
|
+
lastResult: () => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
24
24
|
dependencies: [ChartRootSelector<UseChartSeriesSignature>];
|
|
25
25
|
recomputations: () => number;
|
|
26
26
|
resetRecomputations: () => void;
|
|
@@ -30,26 +30,26 @@ export declare const selectorChartSeriesProcessed: ((state: import("../useChartI
|
|
|
30
30
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
31
31
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
32
32
|
};
|
|
33
|
-
export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("
|
|
34
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
35
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
33
|
+
export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
34
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
35
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
36
36
|
clearCache: () => void;
|
|
37
37
|
resultsCount: () => number;
|
|
38
38
|
resetResultsCount: () => void;
|
|
39
39
|
} & {
|
|
40
40
|
resultFunc: (resultFuncArgs_0: {
|
|
41
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
42
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
43
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
41
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
42
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
43
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
44
44
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
45
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
46
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
47
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
45
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
46
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
47
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
48
48
|
clearCache: () => void;
|
|
49
49
|
resultsCount: () => number;
|
|
50
50
|
resetResultsCount: () => void;
|
|
51
51
|
};
|
|
52
|
-
lastResult: () => import("../../models").ChartSeriesConfig<keyof import("
|
|
52
|
+
lastResult: () => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
53
53
|
dependencies: [ChartRootSelector<UseChartSeriesSignature>];
|
|
54
54
|
recomputations: () => number;
|
|
55
55
|
resetRecomputations: () => void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChartsXAxisProps, ChartsAxisProps, ChartsYAxisProps, AxisId } from "../../../../models/axis.js";
|
|
1
|
+
import { ChartsXAxisProps, ChartsAxisProps, ChartsYAxisProps, AxisId, DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
|
|
3
2
|
import { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
4
|
-
import type { ChartDrawingArea } from
|
|
3
|
+
import type { ChartDrawingArea } from "../../../../hooks/index.js";
|
|
5
4
|
import { ChartSeriesConfig } from "../../models/seriesConfig/index.js";
|
|
6
|
-
import {
|
|
5
|
+
import { ComputedAxisConfig, DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
7
6
|
import { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
8
7
|
import { GetZoomAxisFilters, ZoomData } from "./zoom.types.js";
|
|
9
8
|
export type ComputeResult<T extends ChartsAxisProps> = {
|
|
10
|
-
axis:
|
|
9
|
+
axis: ComputedAxisConfig<T>;
|
|
11
10
|
axisIds: string[];
|
|
12
11
|
};
|
|
13
12
|
type ComputeCommonParams<T extends ChartSeriesType = ChartSeriesType> = {
|
|
@@ -19,11 +18,11 @@ type ComputeCommonParams<T extends ChartSeriesType = ChartSeriesType> = {
|
|
|
19
18
|
getFilters?: GetZoomAxisFilters;
|
|
20
19
|
};
|
|
21
20
|
export declare function computeAxisValue<T extends ChartSeriesType>(options: ComputeCommonParams<T> & {
|
|
22
|
-
axis?:
|
|
21
|
+
axis?: DefaultedYAxis[];
|
|
23
22
|
axisDirection: 'y';
|
|
24
23
|
}): ComputeResult<ChartsYAxisProps>;
|
|
25
24
|
export declare function computeAxisValue<T extends ChartSeriesType>(options: ComputeCommonParams<T> & {
|
|
26
|
-
axis?:
|
|
25
|
+
axis?: DefaultedXAxis[];
|
|
27
26
|
axisDirection: 'x';
|
|
28
27
|
}): ComputeResult<ChartsXAxisProps>;
|
|
29
28
|
export {};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ZoomOptions } from "./zoom.types.js";
|
|
2
|
+
import { XAxis, YAxis } from "../../../../models/index.js";
|
|
3
|
+
import { DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
|
|
4
4
|
import { DatasetType } from "../../../../models/seriesType/config.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type InXAxis = XAxis & {
|
|
6
|
+
zoom?: boolean | ZoomOptions;
|
|
7
|
+
};
|
|
8
|
+
export declare function defaultizeXAxis(inAxes: readonly InXAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedXAxis[];
|
|
9
|
+
type InYAxis = YAxis & {
|
|
10
|
+
zoom?: boolean | ZoomOptions;
|
|
11
|
+
};
|
|
12
|
+
export declare function defaultizeYAxis(inAxes: readonly InYAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedYAxis[];
|
|
13
|
+
export {};
|
|
@@ -7,15 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.defaultizeXAxis = defaultizeXAxis;
|
|
8
8
|
exports.defaultizeYAxis = defaultizeYAxis;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _constants = require("
|
|
11
|
-
|
|
10
|
+
var _constants = require("../../../constants");
|
|
11
|
+
var _defaultizeZoom = require("./defaultizeZoom");
|
|
12
|
+
var _constants2 = require("../../../../constants");
|
|
13
|
+
function defaultizeXAxis(inAxes, dataset) {
|
|
12
14
|
const offsets = {
|
|
13
15
|
top: 0,
|
|
14
16
|
bottom: 0,
|
|
15
17
|
none: 0
|
|
16
18
|
};
|
|
17
|
-
const inputAxes =
|
|
18
|
-
id:
|
|
19
|
+
const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
|
|
20
|
+
id: _constants2.DEFAULT_X_AXIS_KEY,
|
|
19
21
|
scaleType: 'linear'
|
|
20
22
|
}];
|
|
21
23
|
const parsedAxes = inputAxes.map((axisConfig, index) => {
|
|
@@ -24,18 +26,23 @@ function defaultizeXAxis(inAxis, dataset) {
|
|
|
24
26
|
// The first x-axis is defaultized to the bottom
|
|
25
27
|
const defaultPosition = index === 0 ? 'bottom' : 'none';
|
|
26
28
|
const position = axisConfig.position ?? defaultPosition;
|
|
27
|
-
const defaultHeight =
|
|
29
|
+
const defaultHeight = _constants2.DEFAULT_AXIS_SIZE_HEIGHT + (axisConfig.label ? _constants2.AXIS_LABEL_DEFAULT_HEIGHT : 0);
|
|
30
|
+
const id = axisConfig.id ?? `defaultized-x-axis-${index}`;
|
|
28
31
|
const sharedConfig = (0, _extends2.default)({
|
|
29
|
-
id: `defaultized-x-axis-${index}`,
|
|
30
32
|
offset: offsets[position]
|
|
31
33
|
}, axisConfig, {
|
|
34
|
+
id,
|
|
32
35
|
position,
|
|
33
|
-
height: axisConfig.height ?? defaultHeight
|
|
36
|
+
height: axisConfig.height ?? defaultHeight,
|
|
37
|
+
zoom: (0, _defaultizeZoom.defaultizeZoom)(axisConfig.zoom, id, 'x')
|
|
34
38
|
});
|
|
35
39
|
|
|
36
40
|
// Increment the offset for the next axis
|
|
37
41
|
if (position !== 'none') {
|
|
38
42
|
offsets[position] += sharedConfig.height;
|
|
43
|
+
if (sharedConfig.zoom?.slider.enabled) {
|
|
44
|
+
offsets[position] += _constants.ZOOM_SLIDER_SIZE;
|
|
45
|
+
}
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
// If `dataKey` is NOT provided
|
|
@@ -43,7 +50,7 @@ function defaultizeXAxis(inAxis, dataset) {
|
|
|
43
50
|
return sharedConfig;
|
|
44
51
|
}
|
|
45
52
|
if (dataset === undefined) {
|
|
46
|
-
throw new Error(`MUI X: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
53
|
+
throw new Error(`MUI X Charts: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
// If `dataKey` is provided
|
|
@@ -53,14 +60,14 @@ function defaultizeXAxis(inAxis, dataset) {
|
|
|
53
60
|
});
|
|
54
61
|
return parsedAxes;
|
|
55
62
|
}
|
|
56
|
-
function defaultizeYAxis(
|
|
63
|
+
function defaultizeYAxis(inAxes, dataset) {
|
|
57
64
|
const offsets = {
|
|
58
65
|
right: 0,
|
|
59
66
|
left: 0,
|
|
60
67
|
none: 0
|
|
61
68
|
};
|
|
62
|
-
const inputAxes =
|
|
63
|
-
id:
|
|
69
|
+
const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
|
|
70
|
+
id: _constants2.DEFAULT_Y_AXIS_KEY,
|
|
64
71
|
scaleType: 'linear'
|
|
65
72
|
}];
|
|
66
73
|
const parsedAxes = inputAxes.map((axisConfig, index) => {
|
|
@@ -69,18 +76,23 @@ function defaultizeYAxis(inAxis, dataset) {
|
|
|
69
76
|
// The first y-axis is defaultized to the left
|
|
70
77
|
const defaultPosition = index === 0 ? 'left' : 'none';
|
|
71
78
|
const position = axisConfig.position ?? defaultPosition;
|
|
72
|
-
const defaultWidth =
|
|
79
|
+
const defaultWidth = _constants2.DEFAULT_AXIS_SIZE_WIDTH + (axisConfig.label ? _constants2.AXIS_LABEL_DEFAULT_HEIGHT : 0);
|
|
80
|
+
const id = axisConfig.id ?? `defaultized-y-axis-${index}`;
|
|
73
81
|
const sharedConfig = (0, _extends2.default)({
|
|
74
|
-
id: `defaultized-y-axis-${index}`,
|
|
75
82
|
offset: offsets[position]
|
|
76
83
|
}, axisConfig, {
|
|
84
|
+
id,
|
|
77
85
|
position,
|
|
78
|
-
width: axisConfig.width ?? defaultWidth
|
|
86
|
+
width: axisConfig.width ?? defaultWidth,
|
|
87
|
+
zoom: (0, _defaultizeZoom.defaultizeZoom)(axisConfig.zoom, id, 'y')
|
|
79
88
|
});
|
|
80
89
|
|
|
81
90
|
// Increment the offset for the next axis
|
|
82
91
|
if (position !== 'none') {
|
|
83
92
|
offsets[position] += sharedConfig.width;
|
|
93
|
+
if (sharedConfig.zoom?.slider.enabled) {
|
|
94
|
+
offsets[position] += _constants.ZOOM_SLIDER_SIZE;
|
|
95
|
+
}
|
|
84
96
|
}
|
|
85
97
|
|
|
86
98
|
// If `dataKey` is NOT provided
|
|
@@ -88,7 +100,7 @@ function defaultizeYAxis(inAxis, dataset) {
|
|
|
88
100
|
return sharedConfig;
|
|
89
101
|
}
|
|
90
102
|
if (dataset === undefined) {
|
|
91
|
-
throw new Error(`MUI X: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
103
|
+
throw new Error(`MUI X Charts: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
92
104
|
}
|
|
93
105
|
|
|
94
106
|
// If `dataKey` is provided
|
|
@@ -13,7 +13,10 @@ const defaultZoomOptions = {
|
|
|
13
13
|
minSpan: 10,
|
|
14
14
|
maxSpan: 100,
|
|
15
15
|
panning: true,
|
|
16
|
-
filterMode: 'keep'
|
|
16
|
+
filterMode: 'keep',
|
|
17
|
+
slider: {
|
|
18
|
+
enabled: false
|
|
19
|
+
}
|
|
17
20
|
};
|
|
18
21
|
const defaultizeZoom = (zoom, axisId, axisDirection) => {
|
|
19
22
|
if (!zoom) {
|
|
@@ -28,6 +31,8 @@ const defaultizeZoom = (zoom, axisId, axisDirection) => {
|
|
|
28
31
|
return (0, _extends2.default)({
|
|
29
32
|
axisId,
|
|
30
33
|
axisDirection
|
|
31
|
-
}, defaultZoomOptions, zoom
|
|
34
|
+
}, defaultZoomOptions, zoom, {
|
|
35
|
+
slider: (0, _extends2.default)({}, defaultZoomOptions.slider, zoom.slider)
|
|
36
|
+
});
|
|
32
37
|
};
|
|
33
38
|
exports.defaultizeZoom = defaultizeZoom;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedAxis } from "../../../../models/axis.js";
|
|
2
2
|
/**
|
|
3
3
|
* For a pointer coordinate, this function returns the dataIndex associated.
|
|
4
4
|
* Returns `-1` if no dataIndex matches.
|
|
5
5
|
*/
|
|
6
|
-
export declare function getAxisIndex(axisConfig:
|
|
6
|
+
export declare function getAxisIndex(axisConfig: ComputedAxis, pointerValue: number): number;
|
|
7
7
|
/**
|
|
8
8
|
* For a pointer coordinate, this function returns the value associated.
|
|
9
9
|
* Returns `null` if the coordinate has no value associated.
|
|
10
10
|
*/
|
|
11
|
-
export declare function getAxisValue(axisConfig:
|
|
11
|
+
export declare function getAxisValue(axisConfig: ComputedAxis, pointerValue: number, dataIndex: number): number | Date | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useChartCartesianAxis } from "./useChartCartesianAxis.js";
|
|
2
|
-
export type * from
|
|
2
|
+
export type * from "./useChartCartesianAxis.types.js";
|
|
3
3
|
export * from "./useChartCartesianAxisRendering.selectors.js";
|
|
4
4
|
export * from "./useChartCartesianAxisLayout.selectors.js";
|
|
5
5
|
export * from "./useChartCartesianInteraction.selectors.js";
|