@mui/x-charts 8.0.0-beta.2 → 8.0.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/AnimatedBarElement.d.ts +38 -8
- package/BarChart/AnimatedBarElement.js +5 -5
- package/BarChart/BarChart.js +659 -6
- package/BarChart/BarClipPath.d.ts +19 -1
- package/BarChart/BarClipPath.js +83 -17
- package/BarChart/BarElement.d.ts +9 -20
- package/BarChart/BarElement.js +29 -26
- package/BarChart/BarLabel/BarLabel.d.ts +27 -854
- package/BarChart/BarLabel/BarLabel.js +32 -5
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -0
- package/BarChart/BarLabel/BarLabelItem.d.ts +24 -0
- package/BarChart/BarLabel/BarLabelItem.js +18 -6
- package/BarChart/BarLabel/BarLabelPlot.js +16 -46
- package/BarChart/BarLabel/barLabelClasses.d.ts +8 -1
- package/BarChart/BarLabel/barLabelClasses.js +4 -3
- package/BarChart/BarPlot.js +42 -63
- package/BarChart/barElementClasses.d.ts +26 -0
- package/BarChart/barElementClasses.js +29 -0
- package/BarChart/getRadius.d.ts +1 -1
- package/BarChart/index.d.ts +2 -1
- package/BarChart/index.js +11 -0
- package/BarChart/seriesConfig/getColor.js +6 -0
- package/BarChart/seriesConfig/index.js +3 -1
- package/BarChart/seriesConfig/tooltip.d.ts +2 -1
- package/BarChart/seriesConfig/tooltip.js +14 -1
- package/BarChart/types.d.ts +2 -2
- package/CHANGELOG.md +423 -96
- package/ChartContainer/ChartContainer.js +1014 -23
- package/ChartDataProvider/ChartDataProvider.d.ts +1 -4
- package/ChartDataProvider/ChartDataProvider.js +18 -16
- package/ChartDataProvider/useChartDataProviderProps.d.ts +1 -3
- package/ChartDataProvider/useChartDataProviderProps.js +4 -8
- package/ChartsLabel/ChartsLabelMark.js +0 -4
- package/ChartsLabel/index.d.ts +1 -0
- package/ChartsLabel/index.js +7 -0
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +48 -64
- package/ChartsTooltip/ChartsItemTooltipContent.js +54 -10
- package/ChartsTooltip/ChartsTooltip.js +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +7 -8
- package/ChartsTooltip/ChartsTooltipTable.d.ts +3 -1
- package/ChartsTooltip/ChartsTooltipTable.js +24 -9
- package/ChartsTooltip/chartsTooltipClasses.d.ts +4 -4
- package/ChartsTooltip/chartsTooltipClasses.js +2 -2
- package/ChartsTooltip/index.d.ts +4 -1
- package/ChartsTooltip/index.js +22 -7
- package/ChartsTooltip/useAxesTooltip.d.ts +7 -0
- package/ChartsTooltip/useAxesTooltip.js +18 -0
- package/ChartsTooltip/useAxisTooltip.d.ts +29 -7
- package/ChartsTooltip/useAxisTooltip.js +125 -36
- package/ChartsTooltip/useItemTooltip.d.ts +15 -11
- package/ChartsTooltip/useItemTooltip.js +52 -5
- package/ChartsXAxis/ChartsXAxis.js +5 -2
- package/ChartsYAxis/ChartsYAxis.js +69 -17
- package/Gauge/Gauge.js +10 -3
- package/Gauge/GaugeContainer.js +5 -0
- package/Gauge/GaugeValueArc.d.ts +7 -1
- package/Gauge/GaugeValueArc.js +60 -10
- package/Gauge/gaugeClasses.d.ts +1 -2
- package/Gauge/gaugeClasses.js +2 -3
- package/LineChart/AnimatedArea.js +5 -22
- package/LineChart/AnimatedLine.d.ts +1 -4
- package/LineChart/AnimatedLine.js +10 -25
- package/LineChart/AppearingMask.d.ts +5 -0
- package/LineChart/AppearingMask.js +25 -18
- package/LineChart/AreaElement.d.ts +5 -0
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/CircleMarkElement.js +16 -22
- package/LineChart/LineChart.js +659 -6
- package/LineChart/LineElement.d.ts +5 -0
- package/LineChart/LineElement.js +1 -1
- package/LineChart/LineHighlightPlot.js +2 -3
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkElement.js +16 -27
- package/LineChart/MarkPlot.js +2 -3
- package/LineChart/markElementClasses.d.ts +8 -0
- package/LineChart/markElementClasses.js +4 -3
- package/LineChart/seriesConfig/getColor.js +6 -0
- package/LineChart/seriesConfig/index.js +3 -1
- package/LineChart/seriesConfig/tooltip.d.ts +2 -1
- package/LineChart/seriesConfig/tooltip.js +8 -1
- package/PieChart/PieArc.d.ts +24 -11
- package/PieChart/PieArc.js +38 -25
- package/PieChart/PieArcLabel.d.ts +27 -13
- package/PieChart/PieArcLabel.js +52 -48
- package/PieChart/PieArcLabelPlot.js +16 -34
- package/PieChart/PieArcPlot.js +21 -34
- package/PieChart/PiePlot.js +2 -2
- package/PieChart/seriesConfig/tooltip.js +3 -0
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -8
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +53 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -2
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +1 -1
- package/RadarChart/RadarChart.d.ts +6 -4
- package/RadarChart/RadarChart.js +10 -13
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.js +11 -7
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +6 -0
- package/RadarChart/RadarGrid/CircularRadarStripes.js +38 -0
- package/RadarChart/RadarGrid/RadarGrid.js +52 -12
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +26 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.js +11 -7
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +6 -0
- package/RadarChart/RadarGrid/SharpRadarStripes.js +44 -0
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +12 -0
- package/RadarChart/RadarGrid/radarGridClasses.js +25 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +16 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +54 -7
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +16 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +59 -10
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +21 -24
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +1 -2
- package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/index.js +14 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +6 -2
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +3 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -1
- package/RadarChart/seriesConfig/index.js +3 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +2 -1
- package/RadarChart/seriesConfig/tooltip.js +25 -10
- package/RadarChart/useRadarChartProps.d.ts +0 -2
- package/RadarChart/useRadarChartProps.js +4 -7
- package/ScatterChart/Scatter.d.ts +2 -1
- package/ScatterChart/ScatterChart.js +659 -6
- package/ScatterChart/seriesConfig/getColor.js +9 -0
- package/SparkLineChart/SparkLineChart.d.ts +3 -4
- package/SparkLineChart/SparkLineChart.js +659 -6
- package/colorPalettes/colorPalettes.js +2 -2
- package/constants/index.d.ts +1 -1
- package/constants/index.js +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +1 -2
- package/esm/BarChart/AnimatedBarElement.d.ts +38 -8
- package/esm/BarChart/AnimatedBarElement.js +5 -5
- package/esm/BarChart/BarChart.js +659 -6
- package/esm/BarChart/BarClipPath.d.ts +19 -1
- package/esm/BarChart/BarClipPath.js +83 -17
- package/esm/BarChart/BarElement.d.ts +9 -20
- package/esm/BarChart/BarElement.js +28 -23
- package/esm/BarChart/BarLabel/BarLabel.d.ts +27 -854
- package/esm/BarChart/BarLabel/BarLabel.js +32 -5
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +2 -0
- package/esm/BarChart/BarLabel/BarLabelItem.d.ts +24 -0
- package/esm/BarChart/BarLabel/BarLabelItem.js +18 -6
- package/esm/BarChart/BarLabel/BarLabelPlot.js +16 -46
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +8 -1
- package/esm/BarChart/BarLabel/barLabelClasses.js +4 -3
- package/esm/BarChart/BarPlot.js +41 -62
- package/esm/BarChart/barElementClasses.d.ts +26 -0
- package/{modern/LineChart/markElementClasses.js → esm/BarChart/barElementClasses.js} +7 -7
- package/esm/BarChart/getRadius.d.ts +1 -1
- package/esm/BarChart/index.d.ts +2 -1
- package/esm/BarChart/index.js +2 -1
- package/esm/BarChart/seriesConfig/getColor.js +6 -0
- package/esm/BarChart/seriesConfig/index.js +2 -1
- package/esm/BarChart/seriesConfig/tooltip.d.ts +2 -1
- package/esm/BarChart/seriesConfig/tooltip.js +12 -0
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/ChartContainer/ChartContainer.js +1014 -23
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +1 -4
- package/esm/ChartDataProvider/ChartDataProvider.js +18 -16
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +1 -3
- package/esm/ChartDataProvider/useChartDataProviderProps.js +4 -8
- package/esm/ChartsLabel/ChartsLabelMark.js +0 -4
- package/esm/ChartsLabel/index.d.ts +1 -0
- package/esm/ChartsLabel/index.js +1 -0
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +48 -64
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +55 -11
- package/esm/ChartsTooltip/ChartsTooltip.js +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +8 -9
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +3 -1
- package/esm/ChartsTooltip/ChartsTooltipTable.js +23 -9
- package/esm/ChartsTooltip/chartsTooltipClasses.d.ts +4 -4
- package/esm/ChartsTooltip/chartsTooltipClasses.js +2 -2
- package/esm/ChartsTooltip/index.d.ts +4 -1
- package/esm/ChartsTooltip/index.js +2 -1
- package/esm/ChartsTooltip/useAxesTooltip.d.ts +7 -0
- package/esm/ChartsTooltip/useAxesTooltip.js +12 -0
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +29 -7
- package/esm/ChartsTooltip/useAxisTooltip.js +127 -38
- package/esm/ChartsTooltip/useItemTooltip.d.ts +15 -11
- package/esm/ChartsTooltip/useItemTooltip.js +49 -5
- package/esm/ChartsXAxis/ChartsXAxis.js +5 -2
- package/esm/ChartsYAxis/ChartsYAxis.js +69 -17
- package/esm/Gauge/Gauge.js +10 -3
- package/esm/Gauge/GaugeContainer.js +5 -0
- package/esm/Gauge/GaugeValueArc.d.ts +7 -1
- package/esm/Gauge/GaugeValueArc.js +61 -10
- package/esm/Gauge/gaugeClasses.d.ts +1 -2
- package/esm/Gauge/gaugeClasses.js +1 -2
- package/esm/LineChart/AnimatedArea.js +5 -22
- package/esm/LineChart/AnimatedLine.d.ts +1 -4
- package/esm/LineChart/AnimatedLine.js +9 -24
- package/esm/LineChart/AppearingMask.d.ts +5 -0
- package/esm/LineChart/AppearingMask.js +23 -18
- package/esm/LineChart/AreaElement.d.ts +5 -0
- package/esm/LineChart/AreaElement.js +1 -1
- package/esm/LineChart/AreaPlot.js +1 -1
- package/esm/LineChart/CircleMarkElement.js +19 -25
- package/esm/LineChart/LineChart.js +659 -6
- package/esm/LineChart/LineElement.d.ts +5 -0
- package/esm/LineChart/LineElement.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +3 -4
- package/esm/LineChart/LinePlot.js +1 -1
- package/esm/LineChart/MarkElement.js +17 -28
- package/esm/LineChart/MarkPlot.js +1 -2
- package/esm/LineChart/markElementClasses.d.ts +8 -0
- package/esm/LineChart/markElementClasses.js +4 -3
- package/esm/LineChart/seriesConfig/getColor.js +6 -0
- package/esm/LineChart/seriesConfig/index.js +2 -1
- package/esm/LineChart/seriesConfig/tooltip.d.ts +2 -1
- package/esm/LineChart/seriesConfig/tooltip.js +6 -0
- package/esm/PieChart/PieArc.d.ts +24 -11
- package/esm/PieChart/PieArc.js +37 -24
- package/esm/PieChart/PieArcLabel.d.ts +27 -13
- package/esm/PieChart/PieArcLabel.js +51 -47
- package/esm/PieChart/PieArcLabelPlot.js +16 -34
- package/esm/PieChart/PieArcPlot.js +21 -34
- package/esm/PieChart/PiePlot.js +1 -1
- package/esm/PieChart/seriesConfig/tooltip.js +3 -0
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -8
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +53 -15
- package/esm/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -2
- package/esm/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +1 -1
- package/esm/RadarChart/RadarChart.d.ts +6 -4
- package/esm/RadarChart/RadarChart.js +11 -14
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -1
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.js +1 -1
- package/esm/RadarChart/RadarGrid/CircularRadarGrid.js +11 -7
- package/esm/RadarChart/RadarGrid/CircularRadarStripes.d.ts +6 -0
- package/esm/RadarChart/RadarGrid/CircularRadarStripes.js +31 -0
- package/esm/RadarChart/RadarGrid/RadarGrid.js +53 -13
- package/esm/RadarChart/RadarGrid/RadarGrid.types.d.ts +26 -1
- package/esm/RadarChart/RadarGrid/SharpRadarGrid.js +11 -7
- package/esm/RadarChart/RadarGrid/SharpRadarStripes.d.ts +6 -0
- package/esm/RadarChart/RadarGrid/SharpRadarStripes.js +37 -0
- package/esm/RadarChart/RadarGrid/radarGridClasses.d.ts +12 -0
- package/esm/RadarChart/RadarGrid/radarGridClasses.js +15 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +16 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +53 -7
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +16 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +58 -10
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +21 -24
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +1 -2
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/esm/RadarChart/RadarSeriesPlot/index.js +2 -2
- package/esm/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +6 -2
- package/esm/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +3 -1
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -1
- package/esm/RadarChart/seriesConfig/index.js +2 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +2 -1
- package/esm/RadarChart/seriesConfig/tooltip.js +23 -9
- package/esm/RadarChart/useRadarChartProps.d.ts +0 -2
- package/esm/RadarChart/useRadarChartProps.js +4 -7
- package/esm/ScatterChart/Scatter.d.ts +2 -1
- package/esm/ScatterChart/ScatterChart.js +659 -6
- package/esm/ScatterChart/seriesConfig/getColor.js +9 -0
- package/esm/SparkLineChart/SparkLineChart.d.ts +3 -4
- package/esm/SparkLineChart/SparkLineChart.js +659 -6
- package/esm/colorPalettes/colorPalettes.js +2 -2
- package/esm/constants/index.d.ts +1 -1
- package/esm/constants/index.js +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +1 -2
- package/esm/hooks/animation/index.d.ts +7 -0
- package/esm/hooks/animation/index.js +7 -0
- package/esm/hooks/animation/useAnimate.d.ts +83 -0
- package/esm/hooks/animation/useAnimate.js +47 -0
- package/esm/hooks/animation/useAnimateArea.d.ts +15 -0
- package/esm/hooks/animation/useAnimateArea.js +24 -0
- package/esm/hooks/animation/useAnimateBar.d.ts +17 -0
- package/esm/hooks/animation/useAnimateBar.js +50 -0
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +19 -0
- package/esm/hooks/animation/useAnimateBarLabel.js +53 -0
- package/esm/hooks/animation/useAnimateGaugeValueArc.d.ts +19 -0
- package/esm/hooks/animation/useAnimateGaugeValueArc.js +54 -0
- package/esm/hooks/animation/useAnimateLine.d.ts +14 -0
- package/esm/hooks/animation/useAnimateLine.js +23 -0
- package/esm/hooks/animation/useAnimatePieArc.d.ts +15 -0
- package/esm/hooks/animation/useAnimatePieArc.js +62 -0
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +15 -0
- package/esm/hooks/animation/useAnimatePieArcLabel.js +68 -0
- package/esm/hooks/index.d.ts +2 -1
- package/esm/hooks/index.js +2 -1
- package/esm/hooks/useAxisSystem.d.ts +8 -0
- package/esm/hooks/useAxisSystem.js +26 -0
- package/esm/hooks/useInteractionItemProps.js +11 -0
- package/esm/hooks/useIsHydrated.js +1 -1
- package/{context/AnimationProvider → esm/hooks}/useSkipAnimation.d.ts +2 -2
- package/esm/hooks/useSkipAnimation.js +16 -0
- package/esm/index.js +1 -1
- package/esm/internals/animation/Transition.d.ts +37 -0
- package/esm/internals/animation/Transition.js +83 -0
- package/esm/internals/animation/animation.d.ts +4 -0
- package/esm/internals/animation/animation.js +4 -0
- package/esm/internals/animation/useAnimateInternal.d.ts +21 -0
- package/esm/internals/animation/useAnimateInternal.js +76 -0
- package/esm/internals/domUtils.js +11 -6
- package/esm/internals/index.d.ts +0 -2
- package/esm/internals/index.js +0 -2
- package/esm/internals/isCartesian.d.ts +2 -7
- package/esm/internals/isCartesian.js +0 -3
- package/esm/internals/isPolar.d.ts +2 -7
- package/esm/internals/isPolar.js +0 -3
- package/esm/internals/plugins/allPlugins.d.ts +1 -6
- package/esm/internals/plugins/allPlugins.js +0 -2
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.js +2 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.js +2 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +88 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +31 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +3 -0
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +39 -0
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +23 -23
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -5
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +9 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js +21 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +8 -8
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -9
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +127 -151
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +9 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +55 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +10 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -23
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +9 -9
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +9 -3
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +6 -0
- package/{modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.js → esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js} +0 -12
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.js +21 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +106 -130
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +3 -22
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +7 -3669
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +65 -9
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +0 -1
- package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +10 -1
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +0 -4
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +3 -1
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +72 -7
- package/esm/internals/shallowEqual.d.ts +8 -0
- package/esm/internals/shallowEqual.js +31 -0
- package/esm/internals/store/useCharts.d.ts +1 -1
- package/esm/internals/store/useSelector.js +1 -4
- package/esm/models/axis.d.ts +23 -3
- package/esm/models/axis.js +4 -0
- package/esm/models/index.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +1 -2
- package/esm/models/seriesType/index.d.ts +21 -1
- package/esm/models/seriesType/index.js +24 -0
- package/esm/models/seriesType/radar.d.ts +6 -2
- package/esm/themeAugmentation/overrides.d.ts +1 -1
- package/hooks/animation/index.d.ts +7 -0
- package/hooks/animation/index.js +82 -0
- package/hooks/animation/useAnimate.d.ts +83 -0
- package/hooks/animation/useAnimate.js +54 -0
- package/hooks/animation/useAnimateArea.d.ts +15 -0
- package/hooks/animation/useAnimateArea.js +30 -0
- package/hooks/animation/useAnimateBar.d.ts +17 -0
- package/hooks/animation/useAnimateBar.js +56 -0
- package/hooks/animation/useAnimateBarLabel.d.ts +19 -0
- package/hooks/animation/useAnimateBarLabel.js +59 -0
- package/hooks/animation/useAnimateGaugeValueArc.d.ts +19 -0
- package/hooks/animation/useAnimateGaugeValueArc.js +60 -0
- package/hooks/animation/useAnimateLine.d.ts +14 -0
- package/hooks/animation/useAnimateLine.js +29 -0
- package/hooks/animation/useAnimatePieArc.d.ts +15 -0
- package/hooks/animation/useAnimatePieArc.js +68 -0
- package/hooks/animation/useAnimatePieArcLabel.d.ts +15 -0
- package/hooks/animation/useAnimatePieArcLabel.js +74 -0
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +13 -1
- package/hooks/useAxisSystem.d.ts +8 -0
- package/hooks/useAxisSystem.js +30 -0
- package/hooks/useInteractionItemProps.js +11 -0
- package/hooks/useIsHydrated.js +1 -1
- package/{esm/context/AnimationProvider → hooks}/useSkipAnimation.d.ts +2 -2
- package/hooks/useSkipAnimation.js +20 -0
- package/index.js +1 -1
- package/internals/animation/Transition.d.ts +37 -0
- package/internals/animation/Transition.js +89 -0
- package/internals/animation/animation.d.ts +4 -0
- package/internals/animation/animation.js +11 -0
- package/internals/animation/useAnimateInternal.d.ts +21 -0
- package/internals/animation/useAnimateInternal.js +82 -0
- package/internals/domUtils.js +11 -6
- package/internals/index.d.ts +0 -2
- package/internals/index.js +0 -12
- package/internals/isCartesian.d.ts +2 -7
- package/internals/isCartesian.js +0 -4
- package/internals/isPolar.d.ts +2 -7
- package/internals/isPolar.js +0 -4
- package/internals/plugins/allPlugins.d.ts +1 -6
- package/internals/plugins/allPlugins.js +1 -3
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.js +2 -1
- package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartAnimation/index.js +27 -0
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +96 -0
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +31 -0
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +9 -0
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +39 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +23 -23
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -5
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +9 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js +28 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +8 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +127 -151
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +9 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +56 -27
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +10 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -23
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +9 -9
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +9 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +6 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/{getAxisValue.js → getAxisIndex.js} +0 -13
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.js +28 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +106 -130
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +3 -22
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +7 -3669
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +66 -10
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +0 -1
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +10 -1
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +0 -4
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +3 -1
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +72 -7
- package/internals/shallowEqual.d.ts +8 -0
- package/internals/shallowEqual.js +37 -0
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useSelector.js +1 -5
- package/models/axis.d.ts +23 -3
- package/models/axis.js +4 -0
- package/models/index.d.ts +1 -1
- package/models/seriesType/common.d.ts +1 -2
- package/models/seriesType/index.d.ts +21 -1
- package/models/seriesType/index.js +24 -0
- package/models/seriesType/radar.d.ts +6 -2
- package/package.json +9 -18
- package/themeAugmentation/overrides.d.ts +1 -1
- package/PieChart/dataTransform/transition.d.ts +0 -4
- package/PieChart/dataTransform/transition.js +0 -145
- package/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.d.ts +0 -13
- package/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.js +0 -54
- package/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.d.ts +0 -13
- package/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.js +0 -57
- package/context/AnimationProvider/Animation.types.d.ts +0 -15
- package/context/AnimationProvider/AnimationContext.d.ts +0 -4
- package/context/AnimationProvider/AnimationContext.js +0 -17
- package/context/AnimationProvider/AnimationProvider.d.ts +0 -4
- package/context/AnimationProvider/AnimationProvider.js +0 -60
- package/context/AnimationProvider/index.d.ts +0 -4
- package/context/AnimationProvider/index.js +0 -49
- package/context/AnimationProvider/useSkipAnimation.js +0 -25
- package/context/context.types.d.ts +0 -4
- package/context/context.types.js +0 -5
- package/esm/PieChart/dataTransform/transition.d.ts +0 -4
- package/esm/PieChart/dataTransform/transition.js +0 -137
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.d.ts +0 -13
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.js +0 -47
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.d.ts +0 -13
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.js +0 -50
- package/esm/context/AnimationProvider/Animation.types.d.ts +0 -15
- package/esm/context/AnimationProvider/AnimationContext.d.ts +0 -4
- package/esm/context/AnimationProvider/AnimationContext.js +0 -10
- package/esm/context/AnimationProvider/AnimationProvider.d.ts +0 -4
- package/esm/context/AnimationProvider/AnimationProvider.js +0 -55
- package/esm/context/AnimationProvider/index.d.ts +0 -4
- package/esm/context/AnimationProvider/index.js +0 -4
- package/esm/context/AnimationProvider/useSkipAnimation.js +0 -20
- package/esm/context/context.types.d.ts +0 -4
- package/esm/context/context.types.js +0 -1
- package/esm/hooks/getValueToPositionMapper.d.ts +0 -8
- package/esm/hooks/getValueToPositionMapper.js +0 -15
- package/esm/hooks/useAxisEvents.d.ts +0 -0
- package/esm/hooks/useAxisEvents.js +0 -0
- package/esm/internals/notNull.d.ts +0 -1
- package/esm/internals/notNull.js +0 -3
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +0 -11
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.js +0 -38
- package/esm/internals/plugins/featurePlugins/useChartZAxis/utils.d.ts +0 -0
- package/esm/internals/plugins/featurePlugins/useChartZAxis/utils.js +0 -0
- package/esm/internals/useStringInterpolator.d.ts +0 -1
- package/esm/internals/useStringInterpolator.js +0 -21
- package/hooks/getValueToPositionMapper.d.ts +0 -8
- package/hooks/getValueToPositionMapper.js +0 -20
- package/hooks/useAxisEvents.d.ts +0 -0
- package/hooks/useAxisEvents.js +0 -1
- package/internals/notNull.d.ts +0 -1
- package/internals/notNull.js +0 -9
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +0 -11
- package/internals/plugins/featurePlugins/useChartZAxis/utils.d.ts +0 -0
- package/internals/plugins/featurePlugins/useChartZAxis/utils.js +0 -1
- package/internals/useStringInterpolator.d.ts +0 -1
- package/internals/useStringInterpolator.js +0 -30
- package/modern/BarChart/AnimatedBarElement.d.ts +0 -12
- package/modern/BarChart/AnimatedBarElement.js +0 -19
- package/modern/BarChart/BarChart.d.ts +0 -66
- package/modern/BarChart/BarChart.js +0 -321
- package/modern/BarChart/BarChart.plugins.d.ts +0 -7
- package/modern/BarChart/BarChart.plugins.js +0 -5
- package/modern/BarChart/BarClipPath.d.ts +0 -14
- package/modern/BarChart/BarClipPath.js +0 -42
- package/modern/BarChart/BarElement.d.ts +0 -50
- package/modern/BarChart/BarElement.js +0 -101
- package/modern/BarChart/BarLabel/BarLabel.d.ts +0 -861
- package/modern/BarChart/BarLabel/BarLabel.js +0 -53
- package/modern/BarChart/BarLabel/BarLabel.types.d.ts +0 -39
- package/modern/BarChart/BarLabel/BarLabel.types.js +0 -1
- package/modern/BarChart/BarLabel/BarLabelItem.d.ts +0 -54
- package/modern/BarChart/BarLabel/BarLabelItem.js +0 -119
- package/modern/BarChart/BarLabel/BarLabelPlot.d.ts +0 -13
- package/modern/BarChart/BarLabel/BarLabelPlot.js +0 -75
- package/modern/BarChart/BarLabel/barLabelClasses.d.ts +0 -13
- package/modern/BarChart/BarLabel/barLabelClasses.js +0 -19
- package/modern/BarChart/BarLabel/getBarLabel.d.ts +0 -10
- package/modern/BarChart/BarLabel/getBarLabel.js +0 -24
- package/modern/BarChart/BarLabel/index.d.ts +0 -6
- package/modern/BarChart/BarLabel/index.js +0 -2
- package/modern/BarChart/BarPlot.d.ts +0 -49
- package/modern/BarChart/BarPlot.js +0 -327
- package/modern/BarChart/checkScaleErrors.d.ts +0 -10
- package/modern/BarChart/checkScaleErrors.js +0 -33
- package/modern/BarChart/getRadius.d.ts +0 -20
- package/modern/BarChart/getRadius.js +0 -30
- package/modern/BarChart/index.d.ts +0 -4
- package/modern/BarChart/index.js +0 -4
- package/modern/BarChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/BarChart/seriesConfig/extremums.js +0 -75
- package/modern/BarChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/BarChart/seriesConfig/getColor.js +0 -28
- package/modern/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/BarChart/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/BarChart/seriesConfig/index.d.ts +0 -2
- package/modern/BarChart/seriesConfig/index.js +0 -15
- package/modern/BarChart/seriesConfig/legend.d.ts +0 -3
- package/modern/BarChart/seriesConfig/legend.js +0 -22
- package/modern/BarChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/BarChart/seriesConfig/seriesProcessor.js +0 -73
- package/modern/BarChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/BarChart/seriesConfig/tooltip.js +0 -25
- package/modern/BarChart/types.d.ts +0 -23
- package/modern/BarChart/types.js +0 -1
- package/modern/BarChart/useBarChartProps.d.ts +0 -34
- package/modern/BarChart/useBarChartProps.js +0 -136
- package/modern/ChartContainer/ChartContainer.d.ts +0 -35
- package/modern/ChartContainer/ChartContainer.js +0 -396
- package/modern/ChartContainer/index.d.ts +0 -1
- package/modern/ChartContainer/index.js +0 -1
- package/modern/ChartContainer/useChartContainerProps.d.ts +0 -15
- package/modern/ChartContainer/useChartContainerProps.js +0 -71
- package/modern/ChartDataProvider/ChartDataProvider.d.ts +0 -41
- package/modern/ChartDataProvider/ChartDataProvider.js +0 -98
- package/modern/ChartDataProvider/index.d.ts +0 -1
- package/modern/ChartDataProvider/index.js +0 -1
- package/modern/ChartDataProvider/useChartDataProviderProps.d.ts +0 -11
- package/modern/ChartDataProvider/useChartDataProviderProps.js +0 -31
- package/modern/ChartsAxis/ChartsAxis.d.ts +0 -28
- package/modern/ChartsAxis/ChartsAxis.js +0 -69
- package/modern/ChartsAxis/axisClasses.d.ts +0 -33
- package/modern/ChartsAxis/axisClasses.js +0 -6
- package/modern/ChartsAxis/index.d.ts +0 -2
- package/modern/ChartsAxis/index.js +0 -2
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +0 -16
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +0 -50
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.types.d.ts +0 -5
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.types.js +0 -1
- package/modern/ChartsAxisHighlight/ChartsAxisHighlightPath.d.ts +0 -6
- package/modern/ChartsAxisHighlight/ChartsAxisHighlightPath.js +0 -34
- package/modern/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +0 -10
- package/modern/ChartsAxisHighlight/ChartsXAxisHighlight.js +0 -53
- package/modern/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +0 -10
- package/modern/ChartsAxisHighlight/ChartsYAxisHighlight.js +0 -53
- package/modern/ChartsAxisHighlight/chartsAxisHighlightClasses.d.ts +0 -7
- package/modern/ChartsAxisHighlight/chartsAxisHighlightClasses.js +0 -6
- package/modern/ChartsAxisHighlight/index.d.ts +0 -4
- package/modern/ChartsAxisHighlight/index.js +0 -4
- package/modern/ChartsClipPath/ChartsClipPath.d.ts +0 -20
- package/modern/ChartsClipPath/ChartsClipPath.js +0 -53
- package/modern/ChartsClipPath/index.d.ts +0 -1
- package/modern/ChartsClipPath/index.js +0 -1
- package/modern/ChartsGrid/ChartsGrid.d.ts +0 -30
- package/modern/ChartsGrid/ChartsGrid.js +0 -91
- package/modern/ChartsGrid/ChartsHorizontalGrid.d.ts +0 -14
- package/modern/ChartsGrid/ChartsHorizontalGrid.js +0 -37
- package/modern/ChartsGrid/ChartsVerticalGrid.d.ts +0 -14
- package/modern/ChartsGrid/ChartsVerticalGrid.js +0 -37
- package/modern/ChartsGrid/chartsGridClasses.d.ts +0 -13
- package/modern/ChartsGrid/chartsGridClasses.js +0 -6
- package/modern/ChartsGrid/index.d.ts +0 -2
- package/modern/ChartsGrid/index.js +0 -2
- package/modern/ChartsGrid/styledComponents.d.ts +0 -2
- package/modern/ChartsGrid/styledComponents.js +0 -22
- package/modern/ChartsLabel/ChartsLabel.d.ts +0 -18
- package/modern/ChartsLabel/ChartsLabel.js +0 -43
- package/modern/ChartsLabel/ChartsLabelGradient.d.ts +0 -41
- package/modern/ChartsLabel/ChartsLabelGradient.js +0 -135
- package/modern/ChartsLabel/ChartsLabelMark.d.ts +0 -31
- package/modern/ChartsLabel/ChartsLabelMark.js +0 -124
- package/modern/ChartsLabel/index.d.ts +0 -7
- package/modern/ChartsLabel/index.js +0 -3
- package/modern/ChartsLabel/labelClasses.d.ts +0 -8
- package/modern/ChartsLabel/labelClasses.js +0 -13
- package/modern/ChartsLabel/labelGradientClasses.d.ts +0 -16
- package/modern/ChartsLabel/labelGradientClasses.js +0 -18
- package/modern/ChartsLabel/labelMarkClasses.d.ts +0 -18
- package/modern/ChartsLabel/labelMarkClasses.js +0 -18
- package/modern/ChartsLegend/ChartsLegend.d.ts +0 -27
- package/modern/ChartsLegend/ChartsLegend.js +0 -138
- package/modern/ChartsLegend/ContinuousColorLegend.d.ts +0 -56
- package/modern/ChartsLegend/ContinuousColorLegend.js +0 -271
- package/modern/ChartsLegend/PiecewiseColorLegend.d.ts +0 -42
- package/modern/ChartsLegend/PiecewiseColorLegend.js +0 -267
- package/modern/ChartsLegend/chartsLegend.types.d.ts +0 -26
- package/modern/ChartsLegend/chartsLegend.types.js +0 -1
- package/modern/ChartsLegend/chartsLegendClasses.d.ts +0 -18
- package/modern/ChartsLegend/chartsLegendClasses.js +0 -20
- package/modern/ChartsLegend/colorLegend.types.d.ts +0 -13
- package/modern/ChartsLegend/colorLegend.types.js +0 -1
- package/modern/ChartsLegend/continuousColorLegendClasses.d.ts +0 -26
- package/modern/ChartsLegend/continuousColorLegendClasses.js +0 -23
- package/modern/ChartsLegend/direction.d.ts +0 -1
- package/modern/ChartsLegend/direction.js +0 -1
- package/modern/ChartsLegend/index.d.ts +0 -16
- package/modern/ChartsLegend/index.js +0 -12
- package/modern/ChartsLegend/legend.types.d.ts +0 -9
- package/modern/ChartsLegend/legend.types.js +0 -1
- package/modern/ChartsLegend/legendContext.types.d.ts +0 -55
- package/modern/ChartsLegend/legendContext.types.js +0 -1
- package/modern/ChartsLegend/onClickContextBuilder.d.ts +0 -2
- package/modern/ChartsLegend/onClickContextBuilder.js +0 -7
- package/modern/ChartsLegend/piecewiseColorDefaultLabelFormatter.d.ts +0 -2
- package/modern/ChartsLegend/piecewiseColorDefaultLabelFormatter.js +0 -9
- package/modern/ChartsLegend/piecewiseColorLegend.types.d.ts +0 -26
- package/modern/ChartsLegend/piecewiseColorLegend.types.js +0 -1
- package/modern/ChartsLegend/piecewiseColorLegendClasses.d.ts +0 -28
- package/modern/ChartsLegend/piecewiseColorLegendClasses.js +0 -23
- package/modern/ChartsLegend/useAxis.d.ts +0 -10
- package/modern/ChartsLegend/useAxis.js +0 -42
- package/modern/ChartsOverlay/ChartsLoadingOverlay.d.ts +0 -3
- package/modern/ChartsOverlay/ChartsLoadingOverlay.js +0 -36
- package/modern/ChartsOverlay/ChartsNoDataOverlay.d.ts +0 -3
- package/modern/ChartsOverlay/ChartsNoDataOverlay.js +0 -36
- package/modern/ChartsOverlay/ChartsOverlay.d.ts +0 -45
- package/modern/ChartsOverlay/ChartsOverlay.js +0 -33
- package/modern/ChartsOverlay/index.d.ts +0 -4
- package/modern/ChartsOverlay/index.js +0 -3
- package/modern/ChartsReferenceLine/ChartsReferenceLine.d.ts +0 -10
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +0 -76
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.d.ts +0 -13
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +0 -102
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.d.ts +0 -13
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +0 -102
- package/modern/ChartsReferenceLine/chartsReferenceLineClasses.d.ts +0 -15
- package/modern/ChartsReferenceLine/chartsReferenceLineClasses.js +0 -6
- package/modern/ChartsReferenceLine/common.d.ts +0 -41
- package/modern/ChartsReferenceLine/common.js +0 -20
- package/modern/ChartsReferenceLine/index.d.ts +0 -2
- package/modern/ChartsReferenceLine/index.js +0 -2
- package/modern/ChartsSurface/ChartsSurface.d.ts +0 -25
- package/modern/ChartsSurface/ChartsSurface.js +0 -100
- package/modern/ChartsSurface/index.d.ts +0 -1
- package/modern/ChartsSurface/index.js +0 -1
- package/modern/ChartsText/ChartsText.d.ts +0 -17
- package/modern/ChartsText/ChartsText.js +0 -89
- package/modern/ChartsText/defaultTextPlacement.d.ts +0 -9
- package/modern/ChartsText/defaultTextPlacement.js +0 -34
- package/modern/ChartsText/index.d.ts +0 -3
- package/modern/ChartsText/index.js +0 -1
- package/modern/ChartsTooltip/ChartTooltip.types.d.ts +0 -15
- package/modern/ChartsTooltip/ChartTooltip.types.js +0 -1
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.d.ts +0 -15
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +0 -96
- package/modern/ChartsTooltip/ChartsItemTooltipContent.d.ts +0 -15
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +0 -65
- package/modern/ChartsTooltip/ChartsTooltip.d.ts +0 -17
- package/modern/ChartsTooltip/ChartsTooltip.js +0 -199
- package/modern/ChartsTooltip/ChartsTooltipContainer.d.ts +0 -33
- package/modern/ChartsTooltip/ChartsTooltipContainer.js +0 -296
- package/modern/ChartsTooltip/ChartsTooltipTable.d.ts +0 -16
- package/modern/ChartsTooltip/ChartsTooltipTable.js +0 -85
- package/modern/ChartsTooltip/chartsTooltipClasses.d.ts +0 -26
- package/modern/ChartsTooltip/chartsTooltipClasses.js +0 -22
- package/modern/ChartsTooltip/index.d.ts +0 -11
- package/modern/ChartsTooltip/index.js +0 -10
- package/modern/ChartsTooltip/useAxisTooltip.d.ts +0 -20
- package/modern/ChartsTooltip/useAxisTooltip.js +0 -88
- package/modern/ChartsTooltip/useItemTooltip.d.ts +0 -12
- package/modern/ChartsTooltip/useItemTooltip.js +0 -40
- package/modern/ChartsTooltip/utils.d.ts +0 -16
- package/modern/ChartsTooltip/utils.js +0 -84
- package/modern/ChartsXAxis/ChartsXAxis.d.ts +0 -16
- package/modern/ChartsXAxis/ChartsXAxis.js +0 -457
- package/modern/ChartsXAxis/index.d.ts +0 -1
- package/modern/ChartsXAxis/index.js +0 -1
- package/modern/ChartsYAxis/ChartsYAxis.d.ts +0 -16
- package/modern/ChartsYAxis/ChartsYAxis.js +0 -327
- package/modern/ChartsYAxis/index.d.ts +0 -1
- package/modern/ChartsYAxis/index.js +0 -1
- package/modern/Gauge/Gauge.d.ts +0 -10
- package/modern/Gauge/Gauge.js +0 -144
- package/modern/Gauge/GaugeContainer.d.ts +0 -10
- package/modern/Gauge/GaugeContainer.js +0 -174
- package/modern/Gauge/GaugeProvider.d.ts +0 -117
- package/modern/Gauge/GaugeProvider.js +0 -91
- package/modern/Gauge/GaugeReferenceArc.d.ts +0 -2
- package/modern/Gauge/GaugeReferenceArc.js +0 -37
- package/modern/Gauge/GaugeValueArc.d.ts +0 -2
- package/modern/Gauge/GaugeValueArc.js +0 -44
- package/modern/Gauge/GaugeValueText.d.ts +0 -15
- package/modern/Gauge/GaugeValueText.js +0 -71
- package/modern/Gauge/gaugeClasses.d.ts +0 -14
- package/modern/Gauge/gaugeClasses.js +0 -7
- package/modern/Gauge/index.d.ts +0 -7
- package/modern/Gauge/index.js +0 -7
- package/modern/Gauge/utils.d.ts +0 -24
- package/modern/Gauge/utils.js +0 -66
- package/modern/LineChart/AnimatedArea.d.ts +0 -26
- package/modern/LineChart/AnimatedArea.js +0 -78
- package/modern/LineChart/AnimatedLine.d.ts +0 -26
- package/modern/LineChart/AnimatedLine.js +0 -78
- package/modern/LineChart/AppearingMask.d.ts +0 -12
- package/modern/LineChart/AppearingMask.js +0 -43
- package/modern/LineChart/AreaElement.d.ts +0 -61
- package/modern/LineChart/AreaElement.js +0 -111
- package/modern/LineChart/AreaPlot.d.ts +0 -29
- package/modern/LineChart/AreaPlot.js +0 -215
- package/modern/LineChart/CircleMarkElement.d.ts +0 -30
- package/modern/LineChart/CircleMarkElement.js +0 -111
- package/modern/LineChart/LineChart.d.ts +0 -82
- package/modern/LineChart/LineChart.js +0 -321
- package/modern/LineChart/LineChart.plugins.d.ts +0 -7
- package/modern/LineChart/LineChart.plugins.js +0 -5
- package/modern/LineChart/LineElement.d.ts +0 -61
- package/modern/LineChart/LineElement.js +0 -111
- package/modern/LineChart/LineHighlightElement.d.ts +0 -36
- package/modern/LineChart/LineHighlightElement.js +0 -79
- package/modern/LineChart/LineHighlightPlot.d.ts +0 -36
- package/modern/LineChart/LineHighlightPlot.js +0 -122
- package/modern/LineChart/LinePlot.d.ts +0 -28
- package/modern/LineChart/LinePlot.js +0 -199
- package/modern/LineChart/MarkElement.d.ts +0 -32
- package/modern/LineChart/MarkElement.js +0 -124
- package/modern/LineChart/MarkPlot.d.ts +0 -42
- package/modern/LineChart/MarkPlot.js +0 -181
- package/modern/LineChart/index.d.ts +0 -13
- package/modern/LineChart/index.js +0 -12
- package/modern/LineChart/markElementClasses.d.ts +0 -20
- package/modern/LineChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/LineChart/seriesConfig/extremums.js +0 -57
- package/modern/LineChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/LineChart/seriesConfig/getColor.js +0 -26
- package/modern/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/LineChart/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/LineChart/seriesConfig/index.d.ts +0 -2
- package/modern/LineChart/seriesConfig/index.js +0 -15
- package/modern/LineChart/seriesConfig/legend.d.ts +0 -3
- package/modern/LineChart/seriesConfig/legend.js +0 -22
- package/modern/LineChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/LineChart/seriesConfig/seriesProcessor.js +0 -77
- package/modern/LineChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/LineChart/seriesConfig/tooltip.js +0 -25
- package/modern/LineChart/useLineChartProps.d.ts +0 -40
- package/modern/LineChart/useLineChartProps.js +0 -140
- package/modern/PieChart/PieArc.d.ts +0 -36
- package/modern/PieChart/PieArc.js +0 -108
- package/modern/PieChart/PieArcLabel.d.ts +0 -37
- package/modern/PieChart/PieArcLabel.js +0 -113
- package/modern/PieChart/PieArcLabelPlot.d.ts +0 -36
- package/modern/PieChart/PieArcLabelPlot.js +0 -197
- package/modern/PieChart/PieArcPlot.d.ts +0 -43
- package/modern/PieChart/PieArcPlot.js +0 -170
- package/modern/PieChart/PieChart.d.ts +0 -49
- package/modern/PieChart/PieChart.js +0 -201
- package/modern/PieChart/PieChart.plugins.d.ts +0 -5
- package/modern/PieChart/PieChart.plugins.js +0 -3
- package/modern/PieChart/PiePlot.d.ts +0 -32
- package/modern/PieChart/PiePlot.js +0 -163
- package/modern/PieChart/dataTransform/transition.d.ts +0 -4
- package/modern/PieChart/dataTransform/transition.js +0 -137
- package/modern/PieChart/dataTransform/useTransformData.d.ts +0 -16
- package/modern/PieChart/dataTransform/useTransformData.js +0 -50
- package/modern/PieChart/getPieCoordinates.d.ts +0 -7
- package/modern/PieChart/getPieCoordinates.js +0 -19
- package/modern/PieChart/index.d.ts +0 -7
- package/modern/PieChart/index.js +0 -7
- package/modern/PieChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/PieChart/seriesConfig/getColor.js +0 -6
- package/modern/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/PieChart/seriesConfig/getSeriesWithDefaultValues.js +0 -11
- package/modern/PieChart/seriesConfig/index.d.ts +0 -2
- package/modern/PieChart/seriesConfig/index.js +0 -12
- package/modern/PieChart/seriesConfig/legend.d.ts +0 -3
- package/modern/PieChart/seriesConfig/legend.js +0 -25
- package/modern/PieChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/PieChart/seriesConfig/seriesProcessor.js +0 -49
- package/modern/PieChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/PieChart/seriesConfig/tooltip.js +0 -29
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +0 -20
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +0 -42
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.d.ts +0 -13
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisPointsHighlight.js +0 -47
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.d.ts +0 -13
- package/modern/RadarChart/RadarAxisHighlight/RadarAxisSliceHighlight.js +0 -50
- package/modern/RadarChart/RadarAxisHighlight/index.d.ts +0 -1
- package/modern/RadarChart/RadarAxisHighlight/index.js +0 -1
- package/modern/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -13
- package/modern/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -6
- package/modern/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.d.ts +0 -62
- package/modern/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +0 -96
- package/modern/RadarChart/RadarChart.d.ts +0 -25
- package/modern/RadarChart/RadarChart.js +0 -177
- package/modern/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +0 -30
- package/modern/RadarChart/RadarDataProvider/RadarDataProvider.js +0 -192
- package/modern/RadarChart/RadarDataProvider/index.d.ts +0 -1
- package/modern/RadarChart/RadarDataProvider/index.js +0 -1
- package/modern/RadarChart/RadarDataProvider/radar.types.d.ts +0 -43
- package/modern/RadarChart/RadarDataProvider/radar.types.js +0 -1
- package/modern/RadarChart/RadarGrid/CircularRadarGrid.d.ts +0 -6
- package/modern/RadarChart/RadarGrid/CircularRadarGrid.js +0 -36
- package/modern/RadarChart/RadarGrid/RadarGrid.d.ts +0 -7
- package/modern/RadarChart/RadarGrid/RadarGrid.js +0 -49
- package/modern/RadarChart/RadarGrid/RadarGrid.types.d.ts +0 -24
- package/modern/RadarChart/RadarGrid/RadarGrid.types.js +0 -1
- package/modern/RadarChart/RadarGrid/SharpRadarGrid.d.ts +0 -6
- package/modern/RadarChart/RadarGrid/SharpRadarGrid.js +0 -36
- package/modern/RadarChart/RadarGrid/index.d.ts +0 -2
- package/modern/RadarChart/RadarGrid/index.js +0 -2
- package/modern/RadarChart/RadarGrid/useRadarGridData.d.ts +0 -11
- package/modern/RadarChart/RadarGrid/useRadarGridData.js +0 -38
- package/modern/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +0 -3
- package/modern/RadarChart/RadarMetricLabels/RadarMetricLabels.js +0 -35
- package/modern/RadarChart/RadarMetricLabels/index.d.ts +0 -1
- package/modern/RadarChart/RadarMetricLabels/index.js +0 -1
- package/modern/RadarChart/RadarMetricLabels/useRadarMetricData.d.ts +0 -8
- package/modern/RadarChart/RadarMetricLabels/useRadarMetricData.js +0 -35
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +0 -7
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +0 -39
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +0 -7
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +0 -38
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +0 -7
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +0 -68
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +0 -18
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.js +0 -1
- package/modern/RadarChart/RadarSeriesPlot/getAreaPath.d.ts +0 -4
- package/modern/RadarChart/RadarSeriesPlot/getAreaPath.js +0 -3
- package/modern/RadarChart/RadarSeriesPlot/index.d.ts +0 -6
- package/modern/RadarChart/RadarSeriesPlot/index.js +0 -4
- package/modern/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -12
- package/modern/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -15
- package/modern/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +0 -27
- package/modern/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +0 -62
- package/modern/RadarChart/index.d.ts +0 -8
- package/modern/RadarChart/index.js +0 -6
- package/modern/RadarChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/extremums.js +0 -18
- package/modern/RadarChart/seriesConfig/formatter.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/formatter.js +0 -12
- package/modern/RadarChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/getColor.js +0 -4
- package/modern/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/RadarChart/seriesConfig/index.d.ts +0 -2
- package/modern/RadarChart/seriesConfig/index.js +0 -15
- package/modern/RadarChart/seriesConfig/legend.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/legend.js +0 -22
- package/modern/RadarChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/RadarChart/seriesConfig/tooltip.js +0 -25
- package/modern/RadarChart/useRadarChartProps.d.ts +0 -26
- package/modern/RadarChart/useRadarChartProps.js +0 -77
- package/modern/ScatterChart/Scatter.d.ts +0 -36
- package/modern/ScatterChart/Scatter.js +0 -134
- package/modern/ScatterChart/ScatterChart.d.ts +0 -70
- package/modern/ScatterChart/ScatterChart.js +0 -337
- package/modern/ScatterChart/ScatterChart.plugins.d.ts +0 -8
- package/modern/ScatterChart/ScatterChart.plugins.js +0 -6
- package/modern/ScatterChart/ScatterMarker.d.ts +0 -46
- package/modern/ScatterChart/ScatterMarker.js +0 -70
- package/modern/ScatterChart/ScatterMarker.types.d.ts +0 -24
- package/modern/ScatterChart/ScatterMarker.types.js +0 -1
- package/modern/ScatterChart/ScatterPlot.d.ts +0 -35
- package/modern/ScatterChart/ScatterPlot.js +0 -99
- package/modern/ScatterChart/index.d.ts +0 -5
- package/modern/ScatterChart/index.js +0 -5
- package/modern/ScatterChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/extremums.js +0 -55
- package/modern/ScatterChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/getColor.js +0 -43
- package/modern/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/ScatterChart/seriesConfig/index.d.ts +0 -2
- package/modern/ScatterChart/seriesConfig/index.js +0 -15
- package/modern/ScatterChart/seriesConfig/legend.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/legend.js +0 -22
- package/modern/ScatterChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/seriesProcessor.js +0 -33
- package/modern/ScatterChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/ScatterChart/seriesConfig/tooltip.js +0 -25
- package/modern/ScatterChart/useScatterChartProps.d.ts +0 -29
- package/modern/ScatterChart/useScatterChartProps.js +0 -102
- package/modern/SparkLineChart/SparkLineChart.d.ts +0 -101
- package/modern/SparkLineChart/SparkLineChart.js +0 -374
- package/modern/SparkLineChart/index.d.ts +0 -1
- package/modern/SparkLineChart/index.js +0 -1
- package/modern/colorPalettes/colorPalettes.d.ts +0 -16
- package/modern/colorPalettes/colorPalettes.js +0 -12
- package/modern/colorPalettes/index.d.ts +0 -1
- package/modern/colorPalettes/index.js +0 -1
- package/modern/constants/index.d.ts +0 -13
- package/modern/constants/index.js +0 -15
- package/modern/context/AnimationProvider/Animation.types.d.ts +0 -15
- package/modern/context/AnimationProvider/Animation.types.js +0 -1
- package/modern/context/AnimationProvider/AnimationContext.d.ts +0 -4
- package/modern/context/AnimationProvider/AnimationContext.js +0 -10
- package/modern/context/AnimationProvider/AnimationProvider.d.ts +0 -4
- package/modern/context/AnimationProvider/AnimationProvider.js +0 -55
- package/modern/context/AnimationProvider/index.d.ts +0 -4
- package/modern/context/AnimationProvider/index.js +0 -4
- package/modern/context/AnimationProvider/useSkipAnimation.d.ts +0 -6
- package/modern/context/AnimationProvider/useSkipAnimation.js +0 -20
- package/modern/context/ChartProvider/ChartContext.d.ts +0 -6
- package/modern/context/ChartProvider/ChartContext.js +0 -8
- package/modern/context/ChartProvider/ChartProvider.d.ts +0 -8
- package/modern/context/ChartProvider/ChartProvider.js +0 -40
- package/modern/context/ChartProvider/ChartProvider.types.d.ts +0 -39
- package/modern/context/ChartProvider/ChartProvider.types.js +0 -1
- package/modern/context/ChartProvider/index.d.ts +0 -3
- package/modern/context/ChartProvider/index.js +0 -3
- package/modern/context/ChartProvider/useChartContext.d.ts +0 -3
- package/modern/context/ChartProvider/useChartContext.js +0 -11
- package/modern/context/context.types.d.ts +0 -4
- package/modern/context/context.types.js +0 -1
- package/modern/context/index.d.ts +0 -1
- package/modern/context/index.js +0 -1
- package/modern/hooks/getValueToPositionMapper.d.ts +0 -8
- package/modern/hooks/getValueToPositionMapper.js +0 -15
- package/modern/hooks/index.d.ts +0 -16
- package/modern/hooks/index.js +0 -16
- package/modern/hooks/useAxis.d.ts +0 -51
- package/modern/hooks/useAxis.js +0 -119
- package/modern/hooks/useAxisEvents.d.ts +0 -0
- package/modern/hooks/useAxisEvents.js +0 -0
- package/modern/hooks/useBarSeries.d.ts +0 -36
- package/modern/hooks/useBarSeries.js +0 -43
- package/modern/hooks/useChartGradientId.d.ts +0 -31
- package/modern/hooks/useChartGradientId.js +0 -47
- package/modern/hooks/useChartId.d.ts +0 -5
- package/modern/hooks/useChartId.js +0 -14
- package/modern/hooks/useColorScale.d.ts +0 -22
- package/modern/hooks/useColorScale.js +0 -37
- package/modern/hooks/useDrawingArea.d.ts +0 -16
- package/modern/hooks/useDrawingArea.js +0 -16
- package/modern/hooks/useInteractionItemProps.d.ts +0 -16
- package/modern/hooks/useInteractionItemProps.js +0 -76
- package/modern/hooks/useIsHydrated.d.ts +0 -4
- package/modern/hooks/useIsHydrated.js +0 -14
- package/modern/hooks/useItemHighlighted.d.ts +0 -23
- package/modern/hooks/useItemHighlighted.js +0 -23
- package/modern/hooks/useItemHighlightedGetter.d.ts +0 -12
- package/modern/hooks/useItemHighlightedGetter.js +0 -23
- package/modern/hooks/useLegend.d.ts +0 -13
- package/modern/hooks/useLegend.js +0 -30
- package/modern/hooks/useLineSeries.d.ts +0 -36
- package/modern/hooks/useLineSeries.js +0 -43
- package/modern/hooks/useMounted.d.ts +0 -1
- package/modern/hooks/useMounted.js +0 -18
- package/modern/hooks/usePieSeries.d.ts +0 -35
- package/modern/hooks/usePieSeries.js +0 -42
- package/modern/hooks/useRadarSeries.d.ts +0 -35
- package/modern/hooks/useRadarSeries.js +0 -42
- package/modern/hooks/useScale.d.ts +0 -24
- package/modern/hooks/useScale.js +0 -47
- package/modern/hooks/useScatterSeries.d.ts +0 -35
- package/modern/hooks/useScatterSeries.js +0 -42
- package/modern/hooks/useSeries.d.ts +0 -7
- package/modern/hooks/useSeries.js +0 -15
- package/modern/hooks/useSvgRef.d.ts +0 -6
- package/modern/hooks/useSvgRef.js +0 -15
- package/modern/hooks/useTicks.d.ts +0 -59
- package/modern/hooks/useTicks.js +0 -91
- package/modern/hooks/useZAxis.d.ts +0 -7
- package/modern/hooks/useZAxis.js +0 -27
- package/modern/index.d.ts +0 -26
- package/modern/index.js +0 -33
- package/modern/internals/angleConversion.d.ts +0 -2
- package/modern/internals/angleConversion.js +0 -12
- package/modern/internals/clampAngle.d.ts +0 -6
- package/modern/internals/clampAngle.js +0 -11
- package/modern/internals/cleanId.d.ts +0 -4
- package/modern/internals/cleanId.js +0 -6
- package/modern/internals/colorScale.d.ts +0 -5
- package/modern/internals/colorScale.js +0 -16
- package/modern/internals/components/AxisSharedComponents.d.ts +0 -1
- package/modern/internals/components/AxisSharedComponents.js +0 -26
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +0 -2
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +0 -133
- package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +0 -19
- package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +0 -56
- package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +0 -13
- package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.js +0 -61
- package/modern/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +0 -12
- package/modern/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +0 -46
- package/modern/internals/components/ChartsAxesGradients/index.d.ts +0 -1
- package/modern/internals/components/ChartsAxesGradients/index.js +0 -1
- package/modern/internals/components/ChartsWrapper/ChartsWrapper.d.ts +0 -18
- package/modern/internals/components/ChartsWrapper/ChartsWrapper.js +0 -66
- package/modern/internals/components/ChartsWrapper/index.d.ts +0 -1
- package/modern/internals/components/ChartsWrapper/index.js +0 -1
- package/modern/internals/configInit.d.ts +0 -16
- package/modern/internals/configInit.js +0 -38
- package/modern/internals/consumeSlots.d.ts +0 -48
- package/modern/internals/consumeSlots.js +0 -97
- package/modern/internals/consumeThemeProps.d.ts +0 -50
- package/modern/internals/consumeThemeProps.js +0 -70
- package/modern/internals/createSeriesSelectorOfType.d.ts +0 -4
- package/modern/internals/createSeriesSelectorOfType.js +0 -43
- package/modern/internals/defaultizeMargin.d.ts +0 -3
- package/modern/internals/defaultizeMargin.js +0 -15
- package/modern/internals/defaultizeValueFormatter.d.ts +0 -6
- package/modern/internals/defaultizeValueFormatter.js +0 -10
- package/modern/internals/degToRad.d.ts +0 -2
- package/modern/internals/degToRad.js +0 -4
- package/modern/internals/domUtils.d.ts +0 -18
- package/modern/internals/domUtils.js +0 -129
- package/modern/internals/ellipsize.d.ts +0 -20
- package/modern/internals/ellipsize.js +0 -53
- package/modern/internals/geometry.d.ts +0 -9
- package/modern/internals/geometry.js +0 -35
- package/modern/internals/getCurve.d.ts +0 -2
- package/modern/internals/getCurve.js +0 -27
- package/modern/internals/getGraphemeCount.d.ts +0 -4
- package/modern/internals/getGraphemeCount.js +0 -19
- package/modern/internals/getLabel.d.ts +0 -1
- package/modern/internals/getLabel.js +0 -3
- package/modern/internals/getPercentageValue.d.ts +0 -7
- package/modern/internals/getPercentageValue.js +0 -28
- package/modern/internals/getSVGPoint.d.ts +0 -6
- package/modern/internals/getSVGPoint.js +0 -11
- package/modern/internals/getScale.d.ts +0 -2
- package/modern/internals/getScale.js +0 -17
- package/modern/internals/getSymbol.d.ts +0 -2
- package/modern/internals/getSymbol.js +0 -21
- package/modern/internals/getWordsByLines.d.ts +0 -33
- package/modern/internals/getWordsByLines.js +0 -14
- package/modern/internals/index.d.ts +0 -49
- package/modern/internals/index.js +0 -63
- package/modern/internals/invertTextAnchor.d.ts +0 -2
- package/modern/internals/invertTextAnchor.js +0 -10
- package/modern/internals/isBandScale.d.ts +0 -5
- package/modern/internals/isBandScale.js +0 -3
- package/modern/internals/isCartesian.d.ts +0 -7
- package/modern/internals/isCartesian.js +0 -7
- package/modern/internals/isDefined.d.ts +0 -1
- package/modern/internals/isDefined.js +0 -3
- package/modern/internals/isInfinity.d.ts +0 -1
- package/modern/internals/isInfinity.js +0 -3
- package/modern/internals/isPolar.d.ts +0 -7
- package/modern/internals/isPolar.js +0 -7
- package/modern/internals/notNull.d.ts +0 -1
- package/modern/internals/notNull.js +0 -3
- package/modern/internals/plugins/allPlugins.d.ts +0 -14
- package/modern/internals/plugins/allPlugins.js +0 -10
- package/modern/internals/plugins/corePlugins/corePlugins.d.ts +0 -9
- package/modern/internals/plugins/corePlugins/corePlugins.js +0 -9
- package/modern/internals/plugins/corePlugins/index.d.ts +0 -2
- package/modern/internals/plugins/corePlugins/index.js +0 -1
- package/modern/internals/plugins/corePlugins/useChartDimensions/index.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartDimensions/index.js +0 -2
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +0 -196
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +0 -708
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +0 -26
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +0 -90
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.js +0 -1
- package/modern/internals/plugins/corePlugins/useChartId/index.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartId/index.js +0 -2
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.js +0 -32
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +0 -36
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +0 -9
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.types.d.ts +0 -20
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.types.js +0 -1
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.utils.d.ts +0 -1
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.utils.js +0 -5
- package/modern/internals/plugins/corePlugins/useChartSeries/index.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartSeries/index.js +0 -2
- package/modern/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +0 -23
- package/modern/internals/plugins/corePlugins/useChartSeries/processSeries.js +0 -44
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +0 -3
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +0 -71
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +0 -61
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +0 -4
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +0 -51
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.js +0 -1
- package/modern/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +0 -8
- package/modern/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +0 -21
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +0 -29
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +0 -135
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +0 -22
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +0 -63
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +0 -4
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +0 -13
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +0 -6
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +0 -92
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +0 -4
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +0 -25
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.d.ts +0 -6
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.js +0 -22
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +0 -11
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +0 -65
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +0 -8
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +0 -7
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +0 -216
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +0 -6
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +0 -170
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +0 -75
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +0 -70
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +0 -4
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +0 -3106
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +0 -89
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +0 -1
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +0 -41
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.d.ts +0 -10
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.js +0 -19
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.d.ts +0 -10
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.js +0 -19
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +0 -68
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.js +0 -12
- package/modern/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.js +0 -12
- package/modern/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +0 -20
- package/modern/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +0 -4
- package/modern/internals/plugins/featurePlugins/useChartHighlight/index.js +0 -2
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +0 -44
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +0 -634
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +0 -31
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.d.ts +0 -71
- package/modern/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartInteraction/index.js +0 -2
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +0 -67
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +0 -242
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +0 -8
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +0 -43
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +0 -27
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +0 -128
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +0 -12
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +0 -8
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +0 -5
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +0 -24
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +0 -5
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.js +0 -21
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +0 -11
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/index.js +0 -2
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +0 -164
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +0 -2056
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +0 -30
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +0 -85
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +0 -3669
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +0 -22
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/index.js +0 -2
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.js +0 -231
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +0 -29
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +0 -3
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.types.d.ts +0 -54
- package/modern/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartZAxis/index.js +0 -2
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.d.ts +0 -3
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +0 -86
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +0 -45
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +0 -3
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +0 -38
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.js +0 -1
- package/modern/internals/plugins/featurePlugins/useChartZAxis/utils.d.ts +0 -0
- package/modern/internals/plugins/featurePlugins/useChartZAxis/utils.js +0 -0
- package/modern/internals/plugins/models/chart.d.ts +0 -14
- package/modern/internals/plugins/models/chart.js +0 -1
- package/modern/internals/plugins/models/helpers.d.ts +0 -7
- package/modern/internals/plugins/models/helpers.js +0 -1
- package/modern/internals/plugins/models/index.d.ts +0 -4
- package/modern/internals/plugins/models/index.js +0 -4
- package/modern/internals/plugins/models/plugin.d.ts +0 -171
- package/modern/internals/plugins/models/plugin.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +0 -22
- package/modern/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +0 -5
- package/modern/internals/plugins/models/seriesConfig/colorProcessor.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
- package/modern/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/index.d.ts +0 -8
- package/modern/internals/plugins/models/seriesConfig/index.js +0 -8
- package/modern/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
- package/modern/internals/plugins/models/seriesConfig/legendGetter.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +0 -16
- package/modern/internals/plugins/models/seriesConfig/polarExtremumGetter.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +0 -22
- package/modern/internals/plugins/models/seriesConfig/seriesConfig.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +0 -16
- package/modern/internals/plugins/models/seriesConfig/seriesProcessor.types.js +0 -1
- package/modern/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +0 -7
- package/modern/internals/plugins/models/seriesConfig/tooltipGetter.types.js +0 -1
- package/modern/internals/plugins/utils/ChartStore.d.ts +0 -13
- package/modern/internals/plugins/utils/ChartStore.js +0 -24
- package/modern/internals/plugins/utils/selectors.d.ts +0 -10
- package/modern/internals/plugins/utils/selectors.js +0 -37
- package/modern/internals/sliceUntil.d.ts +0 -4
- package/modern/internals/sliceUntil.js +0 -22
- package/modern/internals/stackSeries.d.ts +0 -25
- package/modern/internals/stackSeries.js +0 -94
- package/modern/internals/store/extractPluginParamsFromProps.d.ts +0 -13
- package/modern/internals/store/extractPluginParamsFromProps.js +0 -28
- package/modern/internals/store/useChartModels.d.ts +0 -7
- package/modern/internals/store/useChartModels.js +0 -64
- package/modern/internals/store/useCharts.d.ts +0 -25
- package/modern/internals/store/useCharts.js +0 -85
- package/modern/internals/store/useCharts.types.d.ts +0 -5
- package/modern/internals/store/useCharts.types.js +0 -1
- package/modern/internals/store/useSelector.d.ts +0 -4
- package/modern/internals/store/useSelector.js +0 -9
- package/modern/internals/store/useStore.d.ts +0 -5
- package/modern/internals/store/useStore.js +0 -9
- package/modern/internals/ts-generic.d.ts +0 -3
- package/modern/internals/ts-generic.js +0 -1
- package/modern/internals/useStringInterpolator.d.ts +0 -1
- package/modern/internals/useStringInterpolator.js +0 -21
- package/modern/models/axis.d.ts +0 -388
- package/modern/models/axis.js +0 -19
- package/modern/models/colorMapping.d.ts +0 -46
- package/modern/models/colorMapping.js +0 -1
- package/modern/models/curve.d.ts +0 -6
- package/modern/models/curve.js +0 -1
- package/modern/models/index.d.ts +0 -6
- package/modern/models/index.js +0 -5
- package/modern/models/position.d.ts +0 -10
- package/modern/models/position.js +0 -1
- package/modern/models/seriesType/bar.d.ts +0 -38
- package/modern/models/seriesType/bar.js +0 -1
- package/modern/models/seriesType/common.d.ts +0 -60
- package/modern/models/seriesType/common.js +0 -1
- package/modern/models/seriesType/config.d.ts +0 -91
- package/modern/models/seriesType/config.js +0 -1
- package/modern/models/seriesType/index.d.ts +0 -16
- package/modern/models/seriesType/index.js +0 -17
- package/modern/models/seriesType/line.d.ts +0 -104
- package/modern/models/seriesType/line.js +0 -1
- package/modern/models/seriesType/pie.d.ts +0 -166
- package/modern/models/seriesType/pie.js +0 -1
- package/modern/models/seriesType/radar.d.ts +0 -24
- package/modern/models/seriesType/radar.js +0 -1
- package/modern/models/seriesType/scatter.d.ts +0 -63
- package/modern/models/seriesType/scatter.js +0 -1
- package/modern/models/stacking.d.ts +0 -2
- package/modern/models/stacking.js +0 -1
- package/modern/models/z-axis.d.ts +0 -22
- package/modern/models/z-axis.js +0 -1
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/components.d.ts +0 -62
- package/modern/themeAugmentation/index.d.ts +0 -3
- package/modern/themeAugmentation/index.js +0 -0
- package/modern/themeAugmentation/overrides.d.ts +0 -34
- package/modern/themeAugmentation/props.d.ts +0 -34
- package/tsconfig.build.tsbuildinfo +0 -1
- /package/esm/{context/AnimationProvider/Animation.types.js → internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.js} +0 -0
- /package/{context/AnimationProvider/Animation.types.js → internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.js} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface UseAnimateParams<Props extends {}, Elem extends Element, T extends {} = Props> {
|
|
3
|
+
/**
|
|
4
|
+
* Function that returns the interpolation function for animating props.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} lastProps Props to animate from, i.e., props when the animation was last stopped. If this is the first
|
|
7
|
+
* animation, this value be `initialProps`.
|
|
8
|
+
* @param {object} newProps Props to animate to.
|
|
9
|
+
*
|
|
10
|
+
* @returns {function} Interpolation function that takes a time value between 0 and 1 and returns the interpolated
|
|
11
|
+
* props at time t. This function is called on every frame of the animation.
|
|
12
|
+
*/
|
|
13
|
+
createInterpolator: (lastProps: Props, newProps: Props) => (t: number) => Props;
|
|
14
|
+
/**
|
|
15
|
+
* Transforms the interpolated props to be passed to `applyProps`, which usually means transforming them to element
|
|
16
|
+
* attributes, e.g., transforming an array of points into a `d` attribute for a path.
|
|
17
|
+
*
|
|
18
|
+
* @param {object} props The interpolated props.
|
|
19
|
+
*
|
|
20
|
+
* @returns {object} The transformed props.
|
|
21
|
+
*/
|
|
22
|
+
transformProps: (props: Props) => T;
|
|
23
|
+
/**
|
|
24
|
+
* Applies the transformed props to the element. Usually this will be a call to `element.setAttribute("x", x)` or
|
|
25
|
+
* to `element.style.width = width` so that updating the element does not go through the React lifecycle (i.e., not
|
|
26
|
+
* causing a re-render), with the objective of improving performance.
|
|
27
|
+
*
|
|
28
|
+
* This function is called on every frame of the animation.
|
|
29
|
+
* @param {Element} element The element to apply the props to.
|
|
30
|
+
* @param {object} props The transformed props to apply to the element.
|
|
31
|
+
*/
|
|
32
|
+
applyProps: (element: Elem, props: T) => void;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, the animation will be skipped and the final props will be applied immediately.
|
|
35
|
+
*/
|
|
36
|
+
skip?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Initial props to animate from. If not provided, defaults to the props passed as the first argument of `useAnimate`.
|
|
39
|
+
*/
|
|
40
|
+
initialProps?: Props;
|
|
41
|
+
/**
|
|
42
|
+
* Optional ref to merge with the ref returned from this hook.
|
|
43
|
+
*/
|
|
44
|
+
ref?: React.Ref<Elem>;
|
|
45
|
+
}
|
|
46
|
+
export type UseAnimateReturn<Elem extends Element, T extends {}> = Omit<T, 'ref'> & {
|
|
47
|
+
/**
|
|
48
|
+
* Ref to be passed to the element to animate.
|
|
49
|
+
*/
|
|
50
|
+
ref: React.Ref<Elem>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Hook to customize the animation of an element.
|
|
54
|
+
* Animates a ref from `initialProps` to `props`.
|
|
55
|
+
*
|
|
56
|
+
* @param {object} props The props to animate to.
|
|
57
|
+
*
|
|
58
|
+
* @returns an object containing a ref that should be passed to the element to animate and the transformed props.
|
|
59
|
+
* If `skip` is true, the transformed props are the `props` to animate to; if it is false, the transformed props are the
|
|
60
|
+
* `initialProps`.
|
|
61
|
+
*
|
|
62
|
+
* The animated props are only accessible in `applyProps`. The props returned from this hook are not animated.
|
|
63
|
+
*
|
|
64
|
+
* When an animation starts, an interpolator is created using `createInterpolator`.
|
|
65
|
+
* On every animation frame:
|
|
66
|
+
* 1. The interpolator is called to get the interpolated props;
|
|
67
|
+
* 2. `transformProps` is called to transform the interpolated props;
|
|
68
|
+
* 3. `applyProps` is called to apply the transformed props to the element.
|
|
69
|
+
*
|
|
70
|
+
* If `props` change while an animation is progress, the animation will continue towards the new `props`.
|
|
71
|
+
*
|
|
72
|
+
* The animation can be skipped by setting `skip` to true. If a transition is in progress, it will immediately end
|
|
73
|
+
* and `applyProps` be called with the final value. If there isn't a transition in progress, a new one won't be
|
|
74
|
+
* started and `applyProps` will not be called.
|
|
75
|
+
* */
|
|
76
|
+
export declare function useAnimate<Props extends {}, Elem extends Element, T extends {} = Props>(props: Props, {
|
|
77
|
+
createInterpolator,
|
|
78
|
+
transformProps,
|
|
79
|
+
applyProps,
|
|
80
|
+
skip,
|
|
81
|
+
initialProps,
|
|
82
|
+
ref
|
|
83
|
+
}: UseAnimateParams<Props, Elem, T>): UseAnimateReturn<Elem, T>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useAnimate = useAnimate;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
10
|
+
var _useAnimateInternal = require("../../internals/animation/useAnimateInternal");
|
|
11
|
+
/**
|
|
12
|
+
* Hook to customize the animation of an element.
|
|
13
|
+
* Animates a ref from `initialProps` to `props`.
|
|
14
|
+
*
|
|
15
|
+
* @param {object} props The props to animate to.
|
|
16
|
+
*
|
|
17
|
+
* @returns an object containing a ref that should be passed to the element to animate and the transformed props.
|
|
18
|
+
* If `skip` is true, the transformed props are the `props` to animate to; if it is false, the transformed props are the
|
|
19
|
+
* `initialProps`.
|
|
20
|
+
*
|
|
21
|
+
* The animated props are only accessible in `applyProps`. The props returned from this hook are not animated.
|
|
22
|
+
*
|
|
23
|
+
* When an animation starts, an interpolator is created using `createInterpolator`.
|
|
24
|
+
* On every animation frame:
|
|
25
|
+
* 1. The interpolator is called to get the interpolated props;
|
|
26
|
+
* 2. `transformProps` is called to transform the interpolated props;
|
|
27
|
+
* 3. `applyProps` is called to apply the transformed props to the element.
|
|
28
|
+
*
|
|
29
|
+
* If `props` change while an animation is progress, the animation will continue towards the new `props`.
|
|
30
|
+
*
|
|
31
|
+
* The animation can be skipped by setting `skip` to true. If a transition is in progress, it will immediately end
|
|
32
|
+
* and `applyProps` be called with the final value. If there isn't a transition in progress, a new one won't be
|
|
33
|
+
* started and `applyProps` will not be called.
|
|
34
|
+
* */
|
|
35
|
+
function useAnimate(props, {
|
|
36
|
+
createInterpolator,
|
|
37
|
+
transformProps,
|
|
38
|
+
applyProps,
|
|
39
|
+
skip,
|
|
40
|
+
initialProps = props,
|
|
41
|
+
ref
|
|
42
|
+
}) {
|
|
43
|
+
const transform = transformProps ?? (p => p);
|
|
44
|
+
const animateRef = (0, _useAnimateInternal.useAnimateInternal)(props, {
|
|
45
|
+
initialProps,
|
|
46
|
+
createInterpolator,
|
|
47
|
+
applyProps: (element, animatedProps) => applyProps(element, transform(animatedProps)),
|
|
48
|
+
skip
|
|
49
|
+
});
|
|
50
|
+
const usedProps = skip ? props : initialProps;
|
|
51
|
+
return (0, _extends2.default)({}, transformProps(usedProps), {
|
|
52
|
+
ref: (0, _useForkRef.default)(animateRef, ref)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AnimatedAreaProps } from '../../LineChart';
|
|
3
|
+
type UseAnimateAreaParams = Pick<AnimatedAreaProps, 'd' | 'skipAnimation'> & {
|
|
4
|
+
ref?: React.Ref<SVGPathElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimatedAreaReturn = {
|
|
7
|
+
ref: React.Ref<SVGPathElement>;
|
|
8
|
+
d: string;
|
|
9
|
+
};
|
|
10
|
+
/** Animates an area of a line chart using a `path` element.
|
|
11
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
12
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAnimateArea(props: UseAnimateAreaParams): UseAnimatedAreaReturn;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimateArea = useAnimateArea;
|
|
7
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
8
|
+
var _useAnimate = require("./useAnimate");
|
|
9
|
+
/** Animates an area of a line chart using a `path` element.
|
|
10
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
11
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
12
|
+
*/
|
|
13
|
+
function useAnimateArea(props) {
|
|
14
|
+
return (0, _useAnimate.useAnimate)({
|
|
15
|
+
d: props.d
|
|
16
|
+
}, {
|
|
17
|
+
createInterpolator: (lastProps, newProps) => {
|
|
18
|
+
const interpolate = (0, _d3Interpolate.interpolateString)(lastProps.d, newProps.d);
|
|
19
|
+
return t => ({
|
|
20
|
+
d: interpolate(t)
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
applyProps: (element, {
|
|
24
|
+
d
|
|
25
|
+
}) => element.setAttribute('d', d),
|
|
26
|
+
transformProps: p => p,
|
|
27
|
+
skip: props.skipAnimation,
|
|
28
|
+
ref: props.ref
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BarProps } from '../../BarChart/AnimatedBarElement';
|
|
3
|
+
type UseAnimateBarParams = Pick<BarProps, 'x' | 'y' | 'xOrigin' | 'yOrigin' | 'width' | 'height' | 'skipAnimation' | 'layout'> & {
|
|
4
|
+
ref?: React.Ref<SVGRectElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimateBarReturnValue = {
|
|
7
|
+
ref: React.Ref<SVGRectElement>;
|
|
8
|
+
} & Pick<BarProps, 'x' | 'y' | 'width' | 'height'>;
|
|
9
|
+
/**
|
|
10
|
+
* Animates a bar from the start of the axis (x-axis for vertical layout, y-axis for horizontal layout) to its
|
|
11
|
+
* final position.
|
|
12
|
+
*
|
|
13
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
14
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useAnimateBar(props: UseAnimateBarParams): UseAnimateBarReturnValue;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimateBar = useAnimateBar;
|
|
7
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
8
|
+
var _useAnimate = require("./useAnimate");
|
|
9
|
+
function barPropsInterpolator(from, to) {
|
|
10
|
+
const interpolateX = (0, _d3Interpolate.interpolateNumber)(from.x, to.x);
|
|
11
|
+
const interpolateY = (0, _d3Interpolate.interpolateNumber)(from.y, to.y);
|
|
12
|
+
const interpolateWidth = (0, _d3Interpolate.interpolateNumber)(from.width, to.width);
|
|
13
|
+
const interpolateHeight = (0, _d3Interpolate.interpolateNumber)(from.height, to.height);
|
|
14
|
+
return t => {
|
|
15
|
+
return {
|
|
16
|
+
x: interpolateX(t),
|
|
17
|
+
y: interpolateY(t),
|
|
18
|
+
width: interpolateWidth(t),
|
|
19
|
+
height: interpolateHeight(t)
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Animates a bar from the start of the axis (x-axis for vertical layout, y-axis for horizontal layout) to its
|
|
26
|
+
* final position.
|
|
27
|
+
*
|
|
28
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
29
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
30
|
+
*/
|
|
31
|
+
function useAnimateBar(props) {
|
|
32
|
+
const initialProps = {
|
|
33
|
+
x: props.layout === 'vertical' ? props.x : props.xOrigin,
|
|
34
|
+
y: props.layout === 'vertical' ? props.yOrigin : props.y,
|
|
35
|
+
width: props.layout === 'vertical' ? props.width : 0,
|
|
36
|
+
height: props.layout === 'vertical' ? 0 : props.height
|
|
37
|
+
};
|
|
38
|
+
return (0, _useAnimate.useAnimate)({
|
|
39
|
+
x: props.x,
|
|
40
|
+
y: props.y,
|
|
41
|
+
width: props.width,
|
|
42
|
+
height: props.height
|
|
43
|
+
}, {
|
|
44
|
+
createInterpolator: barPropsInterpolator,
|
|
45
|
+
applyProps(element, animatedProps) {
|
|
46
|
+
element.setAttribute('x', animatedProps.x.toString());
|
|
47
|
+
element.setAttribute('y', animatedProps.y.toString());
|
|
48
|
+
element.setAttribute('width', animatedProps.width.toString());
|
|
49
|
+
element.setAttribute('height', animatedProps.height.toString());
|
|
50
|
+
},
|
|
51
|
+
transformProps: p => p,
|
|
52
|
+
initialProps,
|
|
53
|
+
skip: props.skipAnimation,
|
|
54
|
+
ref: props.ref
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BarLabelProps } from '../../BarChart';
|
|
3
|
+
type UseAnimateBarLabelParams = Pick<BarLabelProps, 'xOrigin' | 'yOrigin' | 'x' | 'y' | 'width' | 'height' | 'layout' | 'skipAnimation'> & {
|
|
4
|
+
ref?: React.Ref<SVGTextElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimateBarLabelReturn = {
|
|
7
|
+
ref: React.Ref<SVGTextElement>;
|
|
8
|
+
} & Pick<BarLabelProps, 'x' | 'y' | 'width' | 'height'>;
|
|
9
|
+
/**
|
|
10
|
+
* Animates a bar label from the start of the axis (x-axis for vertical layout, y-axis for horizontal layout) to the
|
|
11
|
+
* center of the bar it belongs to.
|
|
12
|
+
* The label is horizontally centered within the bar when the layout is vertical, and vertically centered for laid out
|
|
13
|
+
* horizontally.
|
|
14
|
+
*
|
|
15
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
16
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useAnimateBarLabel(props: UseAnimateBarLabelParams): UseAnimateBarLabelReturn;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimateBarLabel = useAnimateBarLabel;
|
|
7
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
8
|
+
var _useAnimate = require("./useAnimate");
|
|
9
|
+
function barLabelPropsInterpolator(from, to) {
|
|
10
|
+
const interpolateX = (0, _d3Interpolate.interpolateNumber)(from.x, to.x);
|
|
11
|
+
const interpolateY = (0, _d3Interpolate.interpolateNumber)(from.y, to.y);
|
|
12
|
+
const interpolateWidth = (0, _d3Interpolate.interpolateNumber)(from.width, to.width);
|
|
13
|
+
const interpolateHeight = (0, _d3Interpolate.interpolateNumber)(from.height, to.height);
|
|
14
|
+
return t => {
|
|
15
|
+
return {
|
|
16
|
+
x: interpolateX(t),
|
|
17
|
+
y: interpolateY(t),
|
|
18
|
+
width: interpolateWidth(t),
|
|
19
|
+
height: interpolateHeight(t)
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Animates a bar label from the start of the axis (x-axis for vertical layout, y-axis for horizontal layout) to the
|
|
26
|
+
* center of the bar it belongs to.
|
|
27
|
+
* The label is horizontally centered within the bar when the layout is vertical, and vertically centered for laid out
|
|
28
|
+
* horizontally.
|
|
29
|
+
*
|
|
30
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
31
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called.
|
|
32
|
+
*/
|
|
33
|
+
function useAnimateBarLabel(props) {
|
|
34
|
+
const initialProps = {
|
|
35
|
+
x: props.layout === 'vertical' ? props.x + props.width / 2 : props.xOrigin,
|
|
36
|
+
y: props.layout === 'vertical' ? props.yOrigin : props.y + props.height / 2,
|
|
37
|
+
width: props.width,
|
|
38
|
+
height: props.height
|
|
39
|
+
};
|
|
40
|
+
const currentProps = {
|
|
41
|
+
x: props.x + props.width / 2,
|
|
42
|
+
y: props.y + props.height / 2,
|
|
43
|
+
width: props.width,
|
|
44
|
+
height: props.height
|
|
45
|
+
};
|
|
46
|
+
return (0, _useAnimate.useAnimate)(currentProps, {
|
|
47
|
+
createInterpolator: barLabelPropsInterpolator,
|
|
48
|
+
transformProps: p => p,
|
|
49
|
+
applyProps(element, animatedProps) {
|
|
50
|
+
element.setAttribute('x', animatedProps.x.toString());
|
|
51
|
+
element.setAttribute('y', animatedProps.y.toString());
|
|
52
|
+
element.setAttribute('width', animatedProps.width.toString());
|
|
53
|
+
element.setAttribute('height', animatedProps.height.toString());
|
|
54
|
+
},
|
|
55
|
+
initialProps,
|
|
56
|
+
skip: props.skipAnimation,
|
|
57
|
+
ref: props.ref
|
|
58
|
+
});
|
|
59
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface UseAnimateGaugeValueArcParams {
|
|
3
|
+
ref?: React.Ref<SVGPathElement>;
|
|
4
|
+
startAngle: number;
|
|
5
|
+
endAngle: number;
|
|
6
|
+
cornerRadius: number;
|
|
7
|
+
innerRadius: number;
|
|
8
|
+
outerRadius: number;
|
|
9
|
+
skipAnimation: boolean;
|
|
10
|
+
}
|
|
11
|
+
type UseAnimateGaugeValueArcReturnValue = {
|
|
12
|
+
ref: React.Ref<SVGPathElement>;
|
|
13
|
+
d: string;
|
|
14
|
+
};
|
|
15
|
+
/** Animates a arc of a gauge chart by increasing the `endAngle` from the start angle to the end angle.
|
|
16
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
17
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
18
|
+
export declare function useAnimateGaugeValueArc(props: UseAnimateGaugeValueArcParams): UseAnimateGaugeValueArcReturnValue;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimateGaugeValueArc = useAnimateGaugeValueArc;
|
|
7
|
+
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
8
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
9
|
+
var _useAnimate = require("./useAnimate");
|
|
10
|
+
function gaugeValueArcPropsInterpolator(from, to) {
|
|
11
|
+
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
|
+
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
+
const interpolateInnerRadius = (0, _d3Interpolate.interpolateNumber)(from.innerRadius, to.innerRadius);
|
|
14
|
+
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
15
|
+
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
16
|
+
return t => {
|
|
17
|
+
return {
|
|
18
|
+
startAngle: interpolateStartAngle(t),
|
|
19
|
+
endAngle: interpolateEndAngle(t),
|
|
20
|
+
innerRadius: interpolateInnerRadius(t),
|
|
21
|
+
outerRadius: interpolateOuterRadius(t),
|
|
22
|
+
cornerRadius: interpolateCornerRadius(t)
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Animates a arc of a gauge chart by increasing the `endAngle` from the start angle to the end angle.
|
|
28
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
29
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
30
|
+
function useAnimateGaugeValueArc(props) {
|
|
31
|
+
return (0, _useAnimate.useAnimate)({
|
|
32
|
+
startAngle: props.startAngle,
|
|
33
|
+
endAngle: props.endAngle,
|
|
34
|
+
innerRadius: props.innerRadius,
|
|
35
|
+
outerRadius: props.outerRadius,
|
|
36
|
+
cornerRadius: props.cornerRadius
|
|
37
|
+
}, {
|
|
38
|
+
createInterpolator: gaugeValueArcPropsInterpolator,
|
|
39
|
+
transformProps: p => ({
|
|
40
|
+
d: (0, _d3Shape.arc)().cornerRadius(p.cornerRadius)({
|
|
41
|
+
innerRadius: p.innerRadius,
|
|
42
|
+
outerRadius: p.outerRadius,
|
|
43
|
+
startAngle: p.startAngle,
|
|
44
|
+
endAngle: p.endAngle
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
applyProps(element, p) {
|
|
48
|
+
element.setAttribute('d', p.d);
|
|
49
|
+
},
|
|
50
|
+
initialProps: {
|
|
51
|
+
startAngle: props.startAngle,
|
|
52
|
+
endAngle: props.startAngle,
|
|
53
|
+
innerRadius: props.innerRadius,
|
|
54
|
+
outerRadius: props.outerRadius,
|
|
55
|
+
cornerRadius: props.cornerRadius
|
|
56
|
+
},
|
|
57
|
+
skip: props.skipAnimation,
|
|
58
|
+
ref: props.ref
|
|
59
|
+
});
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AnimatedLineProps } from '../../LineChart';
|
|
3
|
+
type UseAnimateLineParams = Pick<AnimatedLineProps, 'd' | 'skipAnimation'> & {
|
|
4
|
+
ref?: React.Ref<SVGPathElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimatedReturnValue = {
|
|
7
|
+
ref: React.Ref<SVGPathElement>;
|
|
8
|
+
d: string;
|
|
9
|
+
};
|
|
10
|
+
/** Animates a line of a line chart using a `path` element.
|
|
11
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
12
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
13
|
+
export declare function useAnimateLine(props: UseAnimateLineParams): UseAnimatedReturnValue;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimateLine = useAnimateLine;
|
|
7
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
8
|
+
var _useAnimate = require("./useAnimate");
|
|
9
|
+
/** Animates a line of a line chart using a `path` element.
|
|
10
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
11
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
12
|
+
function useAnimateLine(props) {
|
|
13
|
+
return (0, _useAnimate.useAnimate)({
|
|
14
|
+
d: props.d
|
|
15
|
+
}, {
|
|
16
|
+
createInterpolator: (lastProps, newProps) => {
|
|
17
|
+
const interpolate = (0, _d3Interpolate.interpolateString)(lastProps.d, newProps.d);
|
|
18
|
+
return t => ({
|
|
19
|
+
d: interpolate(t)
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
applyProps: (element, {
|
|
23
|
+
d
|
|
24
|
+
}) => element.setAttribute('d', d),
|
|
25
|
+
skip: props.skipAnimation,
|
|
26
|
+
transformProps: p => p,
|
|
27
|
+
ref: props.ref
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PieArcProps } from '../../PieChart';
|
|
3
|
+
type UseAnimatePieArcParams = Pick<PieArcProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
|
|
4
|
+
ref?: React.Ref<SVGPathElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimatePieArcReturnValue = {
|
|
7
|
+
ref: React.Ref<SVGPathElement>;
|
|
8
|
+
d: string;
|
|
9
|
+
visibility: 'hidden' | 'visible';
|
|
10
|
+
};
|
|
11
|
+
/** Animates a slice of a pie chart by increasing the start and end angles from the middle angle to their final values.
|
|
12
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
13
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
14
|
+
export declare function useAnimatePieArc(props: UseAnimatePieArcParams): UseAnimatePieArcReturnValue;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimatePieArc = useAnimatePieArc;
|
|
7
|
+
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
8
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
9
|
+
var _useAnimate = require("./useAnimate");
|
|
10
|
+
function pieArcPropsInterpolator(from, to) {
|
|
11
|
+
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
|
+
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
+
const interpolateInnerRadius = (0, _d3Interpolate.interpolateNumber)(from.innerRadius, to.innerRadius);
|
|
14
|
+
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
15
|
+
const interpolatePaddingAngle = (0, _d3Interpolate.interpolateNumber)(from.paddingAngle, to.paddingAngle);
|
|
16
|
+
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
17
|
+
return t => {
|
|
18
|
+
return {
|
|
19
|
+
startAngle: interpolateStartAngle(t),
|
|
20
|
+
endAngle: interpolateEndAngle(t),
|
|
21
|
+
innerRadius: interpolateInnerRadius(t),
|
|
22
|
+
outerRadius: interpolateOuterRadius(t),
|
|
23
|
+
paddingAngle: interpolatePaddingAngle(t),
|
|
24
|
+
cornerRadius: interpolateCornerRadius(t)
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Animates a slice of a pie chart by increasing the start and end angles from the middle angle to their final values.
|
|
30
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
31
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
32
|
+
function useAnimatePieArc(props) {
|
|
33
|
+
const initialProps = {
|
|
34
|
+
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
35
|
+
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
36
|
+
innerRadius: props.innerRadius,
|
|
37
|
+
outerRadius: props.outerRadius,
|
|
38
|
+
paddingAngle: props.paddingAngle,
|
|
39
|
+
cornerRadius: props.cornerRadius
|
|
40
|
+
};
|
|
41
|
+
return (0, _useAnimate.useAnimate)({
|
|
42
|
+
startAngle: props.startAngle,
|
|
43
|
+
endAngle: props.endAngle,
|
|
44
|
+
innerRadius: props.innerRadius,
|
|
45
|
+
outerRadius: props.outerRadius,
|
|
46
|
+
paddingAngle: props.paddingAngle,
|
|
47
|
+
cornerRadius: props.cornerRadius
|
|
48
|
+
}, {
|
|
49
|
+
createInterpolator: pieArcPropsInterpolator,
|
|
50
|
+
transformProps: p => ({
|
|
51
|
+
d: (0, _d3Shape.arc)().cornerRadius(p.cornerRadius)({
|
|
52
|
+
padAngle: p.paddingAngle,
|
|
53
|
+
innerRadius: p.innerRadius,
|
|
54
|
+
outerRadius: p.outerRadius,
|
|
55
|
+
startAngle: p.startAngle,
|
|
56
|
+
endAngle: p.endAngle
|
|
57
|
+
}),
|
|
58
|
+
visibility: p.startAngle === p.endAngle ? 'hidden' : 'visible'
|
|
59
|
+
}),
|
|
60
|
+
applyProps(element, p) {
|
|
61
|
+
element.setAttribute('d', p.d);
|
|
62
|
+
element.setAttribute('visibility', p.visibility);
|
|
63
|
+
},
|
|
64
|
+
initialProps,
|
|
65
|
+
skip: props.skipAnimation,
|
|
66
|
+
ref: props.ref
|
|
67
|
+
});
|
|
68
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PieArcLabelProps } from '../../PieChart';
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
|
|
4
|
+
ref?: React.Ref<SVGTextElement>;
|
|
5
|
+
};
|
|
6
|
+
type UseAnimatePieArcLabelReturn = {
|
|
7
|
+
ref: React.Ref<SVGTextElement>;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
/** Animates the label of pie slice from its middle point to the centroid of the slice.
|
|
12
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
13
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
14
|
+
export declare function useAnimatePieArcLabel(props: UseAnimatePieArcLabelParams): UseAnimatePieArcLabelReturn;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAnimatePieArcLabel = useAnimatePieArcLabel;
|
|
7
|
+
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
8
|
+
var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
|
|
9
|
+
var _useAnimate = require("./useAnimate");
|
|
10
|
+
function pieArcLabelPropsInterpolator(from, to) {
|
|
11
|
+
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
|
+
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
+
const interpolateInnerRadius = (0, _d3Interpolate.interpolateNumber)(from.innerRadius, to.innerRadius);
|
|
14
|
+
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
15
|
+
const interpolatePaddingAngle = (0, _d3Interpolate.interpolateNumber)(from.paddingAngle, to.paddingAngle);
|
|
16
|
+
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
17
|
+
return t => {
|
|
18
|
+
return {
|
|
19
|
+
startAngle: interpolateStartAngle(t),
|
|
20
|
+
endAngle: interpolateEndAngle(t),
|
|
21
|
+
innerRadius: interpolateInnerRadius(t),
|
|
22
|
+
outerRadius: interpolateOuterRadius(t),
|
|
23
|
+
paddingAngle: interpolatePaddingAngle(t),
|
|
24
|
+
cornerRadius: interpolateCornerRadius(t)
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Animates the label of pie slice from its middle point to the centroid of the slice.
|
|
30
|
+
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
|
|
31
|
+
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
|
|
32
|
+
function useAnimatePieArcLabel(props) {
|
|
33
|
+
const initialProps = {
|
|
34
|
+
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
35
|
+
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
36
|
+
innerRadius: props.innerRadius,
|
|
37
|
+
outerRadius: props.outerRadius,
|
|
38
|
+
paddingAngle: props.paddingAngle,
|
|
39
|
+
cornerRadius: props.cornerRadius
|
|
40
|
+
};
|
|
41
|
+
return (0, _useAnimate.useAnimate)({
|
|
42
|
+
startAngle: props.startAngle,
|
|
43
|
+
endAngle: props.endAngle,
|
|
44
|
+
innerRadius: props.innerRadius,
|
|
45
|
+
outerRadius: props.outerRadius,
|
|
46
|
+
paddingAngle: props.paddingAngle,
|
|
47
|
+
cornerRadius: props.cornerRadius
|
|
48
|
+
}, {
|
|
49
|
+
createInterpolator: pieArcLabelPropsInterpolator,
|
|
50
|
+
transformProps: animatedProps => {
|
|
51
|
+
const [x, y] = (0, _d3Shape.arc)().cornerRadius(animatedProps.cornerRadius).centroid({
|
|
52
|
+
padAngle: animatedProps.paddingAngle,
|
|
53
|
+
startAngle: animatedProps.startAngle,
|
|
54
|
+
endAngle: animatedProps.endAngle,
|
|
55
|
+
innerRadius: animatedProps.innerRadius,
|
|
56
|
+
outerRadius: animatedProps.outerRadius
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
x,
|
|
60
|
+
y
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
applyProps(element, {
|
|
64
|
+
x,
|
|
65
|
+
y
|
|
66
|
+
}) {
|
|
67
|
+
element.setAttribute('x', x.toString());
|
|
68
|
+
element.setAttribute('y', y.toString());
|
|
69
|
+
},
|
|
70
|
+
initialProps,
|
|
71
|
+
skip: props.skipAnimation,
|
|
72
|
+
ref: props.ref
|
|
73
|
+
});
|
|
74
|
+
}
|
package/hooks/index.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ export * from "./useLineSeries.js";
|
|
|
13
13
|
export * from "./useItemHighlighted.js";
|
|
14
14
|
export * from "./useItemHighlightedGetter.js";
|
|
15
15
|
export * from "./useLegend.js";
|
|
16
|
-
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.js";
|
|
16
|
+
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.js";
|
|
17
|
+
export * from "./animation/index.js";
|