@mui/x-charts 8.0.0-alpha.7 → 8.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarChart.d.ts +1 -1
- package/BarChart/BarChart.js +10 -2
- package/BarChart/BarLabel/BarLabelPlot.js +1 -1
- package/BarChart/BarPlot.js +8 -9
- package/BarChart/extremums.d.ts +3 -3
- package/BarChart/formatter.d.ts +2 -2
- package/BarChart/formatter.js +2 -1
- package/BarChart/getColor.d.ts +1 -1
- package/BarChart/legend.d.ts +1 -1
- package/BarChart/legend.js +1 -1
- package/BarChart/plugin.d.ts +2 -2
- package/BarChart/plugin.js +3 -2
- package/BarChart/useBarChartProps.d.ts +1 -1
- package/CHANGELOG.md +551 -3
- package/ChartContainer/ChartContainer.d.ts +8 -4
- package/ChartContainer/ChartContainer.js +15 -9
- package/ChartContainer/useChartContainerProps.d.ts +6 -4
- package/ChartContainer/useChartContainerProps.js +7 -5
- package/ChartDataProvider/ChartDataProvider.d.ts +42 -0
- package/ChartDataProvider/ChartDataProvider.js +108 -0
- package/ChartDataProvider/package.json +6 -0
- package/ChartDataProvider/useChartDataProviderProps.d.ts +13 -0
- package/ChartDataProvider/useChartDataProviderProps.js +52 -0
- package/ChartsAxis/ChartsAxis.js +5 -3
- package/ChartsGrid/ChartsGrid.js +9 -5
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +4 -3
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +4 -3
- package/ChartsLabel/ChartsLabelGradient.js +11 -12
- package/ChartsLegend/ContinuousColorLegend.js +3 -3
- package/ChartsLegend/useAxis.js +7 -5
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +7 -6
- package/ChartsSurface/ChartsSurface.d.ts +1 -1
- package/ChartsSurface/ChartsSurface.js +17 -27
- package/ChartsTooltip/ChartsAxisTooltipContent.js +6 -3
- package/ChartsTooltip/ChartsItemTooltipContent.js +6 -3
- package/ChartsTooltip/ChartsTooltipTable.d.ts +0 -6
- package/ChartsTooltip/ChartsTooltipTable.js +0 -20
- package/ChartsTooltip/useAxisTooltip.d.ts +3 -1
- package/ChartsTooltip/useAxisTooltip.js +13 -9
- package/ChartsTooltip/useItemTooltip.d.ts +3 -1
- package/ChartsTooltip/useItemTooltip.js +14 -10
- package/ChartsTooltip/utils.js +2 -0
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +16 -9
- package/ChartsXAxis/ChartsXAxis.js +11 -8
- package/ChartsYAxis/ChartsYAxis.js +8 -5
- package/Gauge/Gauge.js +5 -1
- package/Gauge/GaugeContainer.d.ts +3 -10
- package/Gauge/GaugeContainer.js +38 -38
- package/Gauge/GaugeProvider.js +2 -0
- package/LineChart/AnimatedArea.js +1 -1
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AppearingMask.js +1 -1
- package/LineChart/AreaPlot.js +59 -25
- package/LineChart/CircleMarkElement.d.ts +0 -4
- package/LineChart/CircleMarkElement.js +2 -7
- package/LineChart/LineChart.d.ts +0 -4
- package/LineChart/LineChart.js +10 -6
- package/LineChart/LineHighlightElement.d.ts +5 -1
- package/LineChart/LineHighlightElement.js +29 -9
- package/LineChart/LineHighlightPlot.js +18 -13
- package/LineChart/LinePlot.js +59 -24
- package/LineChart/MarkPlot.d.ts +0 -6
- package/LineChart/MarkPlot.js +20 -23
- package/LineChart/extremums.d.ts +3 -3
- package/LineChart/formatter.d.ts +2 -2
- package/LineChart/formatter.js +3 -1
- package/LineChart/getColor.d.ts +1 -1
- package/LineChart/legend.d.ts +1 -1
- package/LineChart/legend.js +1 -1
- package/LineChart/plugin.d.ts +2 -2
- package/LineChart/plugin.js +3 -2
- package/LineChart/useLineChartProps.d.ts +1 -1
- package/LineChart/useLineChartProps.js +3 -5
- package/PieChart/PieArcLabelPlot.js +2 -2
- package/PieChart/PieArcPlot.js +2 -2
- package/PieChart/PieChart.js +10 -2
- package/PieChart/dataTransform/transition.d.ts +2 -2
- package/PieChart/dataTransform/transition.js +6 -6
- package/PieChart/formatter.d.ts +2 -2
- package/PieChart/formatter.js +4 -1
- package/PieChart/getColor.d.ts +1 -1
- package/PieChart/getPieCoordinates.d.ts +2 -2
- package/PieChart/legend.d.ts +1 -1
- package/PieChart/legend.js +1 -1
- package/PieChart/plugin.d.ts +2 -2
- package/PieChart/plugin.js +3 -2
- package/ScatterChart/Scatter.js +6 -4
- package/ScatterChart/ScatterChart.d.ts +1 -2
- package/ScatterChart/ScatterChart.js +17 -13
- package/ScatterChart/ScatterPlot.js +11 -10
- package/ScatterChart/extremums.d.ts +3 -3
- package/ScatterChart/extremums.js +3 -1
- package/ScatterChart/formatter.d.ts +2 -2
- package/ScatterChart/formatter.js +3 -1
- package/ScatterChart/getColor.d.ts +1 -1
- package/ScatterChart/legend.d.ts +1 -1
- package/ScatterChart/legend.js +1 -1
- package/ScatterChart/plugin.d.ts +2 -2
- package/ScatterChart/plugin.js +3 -2
- package/ScatterChart/useScatterChartProps.d.ts +1 -3
- package/ScatterChart/useScatterChartProps.js +1 -4
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +11 -2
- package/context/AnimationProvider/AnimationProvider.js +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +5 -1
- package/context/ChartProvider/ChartProvider.js +22 -2
- package/context/ChartProvider/ChartProvider.types.d.ts +17 -2
- package/context/InteractionSelectors.d.ts +22 -22
- package/context/PolarProvider/PolarProvider.d.ts +0 -4
- package/context/PolarProvider/PolarProvider.js +59 -47
- package/context/PolarProvider/getAxisExtremum.d.ts +0 -4
- package/context/PolarProvider/getAxisExtremum.js +48 -20
- package/context/PolarProvider/usePolarContext.d.ts +0 -2
- package/context/PolarProvider/usePolarContext.js +9 -8
- package/context/index.d.ts +0 -4
- package/context/index.js +1 -3
- package/hooks/index.d.ts +2 -0
- package/hooks/index.js +3 -1
- package/hooks/useAxis.d.ts +9 -1
- package/hooks/useAxis.js +32 -6
- package/hooks/useAxisEvents.js +12 -8
- package/hooks/useChartGradientId.d.ts +31 -0
- package/hooks/useChartGradientId.js +47 -0
- package/hooks/useColorScale.js +5 -5
- package/hooks/useDrawingArea.d.ts +16 -2
- package/hooks/useDrawingArea.js +5 -20
- package/hooks/useLegend.js +8 -13
- package/hooks/useSeries.d.ts +11 -6
- package/hooks/useSeries.js +5 -10
- package/hooks/useZAxis.d.ts +3 -2
- package/hooks/useZAxis.js +25 -6
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +0 -3
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +19 -27
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +3 -0
- package/internals/defaultizeColor.d.ts +24 -22
- package/internals/index.d.ts +14 -10
- package/internals/index.js +17 -11
- package/internals/plugins/allPlugins.d.ts +12 -1
- package/internals/plugins/allPlugins.js +5 -2
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartDimensions/index.js +2 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +175 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +264 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +25 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +99 -0
- package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -0
- package/internals/plugins/corePlugins/useChartId/index.js +2 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.js +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeries/index.js +2 -0
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +18 -0
- package/{modern/context/SeriesProvider → internals/plugins/corePlugins/useChartSeries}/processSeries.js +9 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +72 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +61 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +4 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +51 -0
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +10 -0
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +21 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +29 -0
- package/internals/{computeAxisValue.js → plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js} +19 -27
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +61 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +39 -0
- package/{modern/context/ChartDataProvider/useDefaultizeAxis.js → internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js} +3 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.d.ts +6 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.js +22 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +6 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.d.ts +4 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +68 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.d.ts +1336 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.js +89 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +75 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +11 -11
- package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartZAxis/index.js +2 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +86 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +45 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +3 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +39 -0
- package/internals/plugins/featurePlugins/useChartZAxis/utils.d.ts +0 -0
- package/internals/plugins/featurePlugins/useChartZAxis/utils.js +0 -0
- package/internals/plugins/models/index.d.ts +1 -0
- package/internals/plugins/models/index.js +2 -1
- package/internals/plugins/models/plugin.d.ts +32 -2
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -0
- package/internals/plugins/models/seriesConfig/extremumGetter.types.d.ts +22 -0
- package/internals/plugins/models/seriesConfig/index.d.ts +4 -0
- package/internals/plugins/models/seriesConfig/index.js +4 -0
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +15 -0
- package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +18 -0
- package/internals/store/extractPluginParamsFromProps.d.ts +7 -0
- package/internals/store/extractPluginParamsFromProps.js +28 -0
- package/internals/store/useChartModels.d.ts +7 -0
- package/internals/store/useChartModels.js +64 -0
- package/internals/store/useCharts.d.ts +4 -2
- package/internals/store/useCharts.js +14 -9
- package/internals/store/useCharts.types.d.ts +1 -1
- package/internals/store/useStore.d.ts +5 -1
- package/internals/store/useStore.js +1 -9
- package/models/layout.d.ts +2 -1
- package/models/seriesType/line.d.ts +11 -0
- package/modern/BarChart/BarChart.js +10 -2
- package/modern/BarChart/BarLabel/BarLabelPlot.js +1 -1
- package/modern/BarChart/BarPlot.js +8 -9
- package/modern/BarChart/formatter.js +2 -1
- package/modern/BarChart/legend.js +1 -1
- package/modern/BarChart/plugin.js +3 -2
- package/modern/ChartContainer/ChartContainer.js +15 -9
- package/modern/ChartContainer/useChartContainerProps.js +7 -5
- package/modern/ChartDataProvider/ChartDataProvider.js +108 -0
- package/modern/ChartDataProvider/useChartDataProviderProps.js +52 -0
- package/modern/ChartsAxis/ChartsAxis.js +5 -3
- package/modern/ChartsGrid/ChartsGrid.js +9 -5
- package/modern/ChartsGrid/ChartsHorizontalGrid.js +4 -3
- package/modern/ChartsGrid/ChartsVerticalGrid.js +4 -3
- package/modern/ChartsLabel/ChartsLabelGradient.js +11 -12
- package/modern/ChartsLegend/ContinuousColorLegend.js +3 -3
- package/modern/ChartsLegend/useAxis.js +7 -5
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +7 -6
- package/modern/ChartsSurface/ChartsSurface.js +17 -27
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +6 -3
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +6 -3
- package/modern/ChartsTooltip/ChartsTooltipTable.js +0 -20
- package/modern/ChartsTooltip/useAxisTooltip.js +13 -9
- package/modern/ChartsTooltip/useItemTooltip.js +14 -10
- package/modern/ChartsTooltip/utils.js +2 -0
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +16 -9
- package/modern/ChartsXAxis/ChartsXAxis.js +11 -8
- package/modern/ChartsYAxis/ChartsYAxis.js +8 -5
- package/modern/Gauge/Gauge.js +5 -1
- package/modern/Gauge/GaugeContainer.js +38 -38
- package/modern/Gauge/GaugeProvider.js +2 -0
- package/modern/LineChart/AnimatedArea.js +1 -1
- package/modern/LineChart/AnimatedLine.js +1 -1
- package/modern/LineChart/AppearingMask.js +1 -1
- package/modern/LineChart/AreaPlot.js +59 -25
- package/modern/LineChart/CircleMarkElement.js +2 -7
- package/modern/LineChart/LineChart.js +10 -6
- package/modern/LineChart/LineHighlightElement.js +29 -9
- package/modern/LineChart/LineHighlightPlot.js +18 -13
- package/modern/LineChart/LinePlot.js +59 -24
- package/modern/LineChart/MarkPlot.js +20 -23
- package/modern/LineChart/formatter.js +3 -1
- package/modern/LineChart/legend.js +1 -1
- package/modern/LineChart/plugin.js +3 -2
- package/modern/LineChart/useLineChartProps.js +3 -5
- package/modern/PieChart/PieArcLabelPlot.js +2 -2
- package/modern/PieChart/PieArcPlot.js +2 -2
- package/modern/PieChart/PieChart.js +10 -2
- package/modern/PieChart/dataTransform/transition.js +6 -6
- package/modern/PieChart/formatter.js +4 -1
- package/modern/PieChart/legend.js +1 -1
- package/modern/PieChart/plugin.js +3 -2
- package/modern/ScatterChart/Scatter.js +6 -4
- package/modern/ScatterChart/ScatterChart.js +17 -13
- package/modern/ScatterChart/ScatterPlot.js +11 -10
- package/modern/ScatterChart/extremums.js +3 -1
- package/modern/ScatterChart/formatter.js +3 -1
- package/modern/ScatterChart/legend.js +1 -1
- package/modern/ScatterChart/plugin.js +3 -2
- package/modern/ScatterChart/useScatterChartProps.js +1 -4
- package/modern/SparkLineChart/SparkLineChart.js +11 -2
- package/modern/context/AnimationProvider/AnimationProvider.js +1 -1
- package/modern/context/ChartProvider/ChartProvider.js +22 -2
- package/modern/context/PolarProvider/PolarProvider.js +59 -47
- package/modern/context/PolarProvider/getAxisExtremum.js +48 -20
- package/modern/context/PolarProvider/usePolarContext.js +9 -8
- package/modern/context/index.js +1 -3
- package/modern/hooks/index.js +3 -1
- package/modern/hooks/useAxis.js +32 -6
- package/modern/hooks/useAxisEvents.js +12 -8
- package/modern/hooks/useChartGradientId.js +47 -0
- package/modern/hooks/useColorScale.js +5 -5
- package/modern/hooks/useDrawingArea.js +5 -20
- package/modern/hooks/useLegend.js +8 -13
- package/modern/hooks/useSeries.js +5 -10
- package/modern/hooks/useZAxis.js +25 -6
- package/modern/index.js +3 -2
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +19 -27
- package/modern/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +3 -0
- package/modern/internals/index.js +17 -11
- package/modern/internals/plugins/allPlugins.js +5 -2
- package/modern/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/modern/internals/plugins/corePlugins/useChartDimensions/index.js +2 -0
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +175 -0
- package/modern/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +25 -0
- package/modern/internals/plugins/corePlugins/useChartId/index.js +2 -1
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.js +1 -1
- package/modern/internals/plugins/corePlugins/useChartSeries/index.js +2 -0
- package/{context/SeriesProvider → modern/internals/plugins/corePlugins/useChartSeries}/processSeries.js +9 -6
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +72 -0
- package/modern/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +4 -0
- package/modern/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +21 -0
- package/modern/internals/{computeAxisValue.js → plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js} +19 -27
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +61 -0
- package/{context/ChartDataProvider/useDefaultizeAxis.js → modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js} +3 -11
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.js +22 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +5 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +68 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.js +89 -0
- package/modern/internals/plugins/featurePlugins/useChartZAxis/index.js +2 -0
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +86 -0
- package/modern/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +3 -0
- package/modern/internals/plugins/featurePlugins/useChartZAxis/utils.js +0 -0
- package/modern/internals/plugins/models/index.js +2 -1
- package/modern/internals/plugins/models/seriesConfig/index.js +4 -0
- package/modern/internals/plugins/models/seriesConfig/seriesConfig.types.js +1 -0
- package/modern/internals/plugins/models/seriesConfig/seriesProcessor.types.js +1 -0
- package/modern/internals/store/extractPluginParamsFromProps.js +28 -0
- package/modern/internals/store/useChartModels.js +64 -0
- package/modern/internals/store/useCharts.js +14 -9
- package/modern/internals/store/useStore.js +1 -9
- package/node/BarChart/BarChart.js +11 -3
- package/node/BarChart/BarLabel/BarLabelPlot.js +1 -1
- package/node/BarChart/BarPlot.js +6 -6
- package/node/BarChart/formatter.js +2 -1
- package/node/BarChart/legend.js +1 -1
- package/node/BarChart/plugin.js +3 -2
- package/node/ChartContainer/ChartContainer.js +15 -9
- package/node/ChartContainer/useChartContainerProps.js +7 -5
- package/node/ChartDataProvider/ChartDataProvider.js +114 -0
- package/node/ChartDataProvider/useChartDataProviderProps.js +59 -0
- package/node/ChartsAxis/ChartsAxis.js +5 -3
- package/node/ChartsGrid/ChartsGrid.js +9 -5
- package/node/ChartsGrid/ChartsHorizontalGrid.js +4 -3
- package/node/ChartsGrid/ChartsVerticalGrid.js +4 -3
- package/node/ChartsLabel/ChartsLabelGradient.js +11 -12
- package/node/ChartsLegend/ContinuousColorLegend.js +3 -3
- package/node/ChartsLegend/useAxis.js +6 -4
- package/node/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +6 -5
- package/node/ChartsSurface/ChartsSurface.js +18 -28
- package/node/ChartsTooltip/ChartsAxisTooltipContent.js +5 -2
- package/node/ChartsTooltip/ChartsItemTooltipContent.js +5 -2
- package/node/ChartsTooltip/ChartsTooltipTable.js +1 -21
- package/node/ChartsTooltip/useAxisTooltip.js +11 -7
- package/node/ChartsTooltip/useItemTooltip.js +13 -9
- package/node/ChartsTooltip/utils.js +1 -0
- package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +19 -12
- package/node/ChartsXAxis/ChartsXAxis.js +11 -8
- package/node/ChartsYAxis/ChartsYAxis.js +8 -5
- package/node/Gauge/Gauge.js +5 -1
- package/node/Gauge/GaugeContainer.js +38 -38
- package/node/Gauge/GaugeProvider.js +2 -2
- package/node/LineChart/AnimatedArea.js +1 -1
- package/node/LineChart/AnimatedLine.js +1 -1
- package/node/LineChart/AppearingMask.js +1 -1
- package/node/LineChart/AreaPlot.js +59 -25
- package/node/LineChart/CircleMarkElement.js +2 -7
- package/node/LineChart/LineChart.js +11 -7
- package/node/LineChart/LineHighlightElement.js +29 -9
- package/node/LineChart/LineHighlightPlot.js +18 -13
- package/node/LineChart/LinePlot.js +59 -24
- package/node/LineChart/MarkPlot.js +20 -23
- package/node/LineChart/formatter.js +3 -1
- package/node/LineChart/legend.js +1 -1
- package/node/LineChart/plugin.js +3 -2
- package/node/LineChart/useLineChartProps.js +3 -5
- package/node/PieChart/PieArcLabelPlot.js +1 -1
- package/node/PieChart/PieArcPlot.js +1 -1
- package/node/PieChart/PieChart.js +11 -3
- package/node/PieChart/dataTransform/transition.js +9 -7
- package/node/PieChart/formatter.js +4 -1
- package/node/PieChart/legend.js +1 -1
- package/node/PieChart/plugin.js +3 -2
- package/node/ScatterChart/Scatter.js +6 -4
- package/node/ScatterChart/ScatterChart.js +18 -14
- package/node/ScatterChart/ScatterPlot.js +10 -9
- package/node/ScatterChart/extremums.js +3 -1
- package/node/ScatterChart/formatter.js +3 -1
- package/node/ScatterChart/legend.js +1 -1
- package/node/ScatterChart/plugin.js +3 -2
- package/node/ScatterChart/useScatterChartProps.js +1 -4
- package/node/SparkLineChart/SparkLineChart.js +10 -1
- package/node/context/AnimationProvider/AnimationProvider.js +1 -1
- package/node/context/ChartProvider/ChartProvider.js +23 -2
- package/node/context/PolarProvider/PolarProvider.js +59 -51
- package/node/context/PolarProvider/getAxisExtremum.js +49 -27
- package/node/context/PolarProvider/usePolarContext.js +9 -14
- package/node/context/index.js +1 -20
- package/node/hooks/index.js +29 -2
- package/node/hooks/useAxis.js +34 -6
- package/node/hooks/useAxisEvents.js +12 -8
- package/node/hooks/useChartGradientId.js +56 -0
- package/node/hooks/useColorScale.js +4 -4
- package/node/hooks/useDrawingArea.js +5 -21
- package/node/hooks/useLegend.js +8 -14
- package/node/hooks/useSeries.js +5 -9
- package/node/hooks/useZAxis.js +27 -9
- package/node/index.js +12 -1
- package/node/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +17 -27
- package/node/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +3 -0
- package/node/internals/index.js +111 -63
- package/node/internals/plugins/allPlugins.js +4 -2
- package/node/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/node/internals/plugins/corePlugins/useChartDimensions/index.js +27 -0
- package/node/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +183 -0
- package/node/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +32 -0
- package/node/internals/plugins/corePlugins/useChartId/index.js +16 -1
- package/node/internals/plugins/corePlugins/useChartId/useChartId.js +1 -1
- package/node/internals/plugins/corePlugins/useChartSeries/index.js +27 -0
- package/node/{context/SeriesProvider → internals/plugins/corePlugins/useChartSeries}/processSeries.js +9 -6
- package/node/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +80 -0
- package/node/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +11 -0
- package/node/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +27 -0
- package/node/internals/{computeAxisValue.js → plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js} +19 -27
- package/node/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +69 -0
- package/node/{context/ChartDataProvider/useDefaultizeAxis.js → internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js} +4 -13
- package/node/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum.js +29 -0
- package/node/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +59 -0
- package/node/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +76 -0
- package/node/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.js +98 -0
- package/node/internals/plugins/featurePlugins/useChartZAxis/index.js +27 -0
- package/node/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +94 -0
- package/node/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +9 -0
- package/node/internals/plugins/featurePlugins/useChartZAxis/utils.js +1 -0
- package/node/internals/plugins/models/index.js +11 -0
- package/node/internals/plugins/models/seriesConfig/index.js +49 -0
- package/node/internals/plugins/models/seriesConfig/seriesProcessor.types.js +5 -0
- package/node/internals/store/extractPluginParamsFromProps.js +36 -0
- package/node/internals/store/useChartModels.js +73 -0
- package/node/internals/store/useCharts.js +14 -9
- package/node/internals/store/useStore.js +1 -9
- package/package.json +3 -3
- package/context/CartesianProvider/Cartesian.types.d.ts +0 -59
- package/context/CartesianProvider/CartesianContext.d.ts +0 -4
- package/context/CartesianProvider/CartesianContext.js +0 -13
- package/context/CartesianProvider/CartesianProvider.d.ts +0 -4
- package/context/CartesianProvider/CartesianProvider.js +0 -49
- package/context/CartesianProvider/defaultizeAxis.d.ts +0 -38
- package/context/CartesianProvider/defaultizeAxis.js +0 -13
- package/context/CartesianProvider/getAxisExtremum.d.ts +0 -5
- package/context/CartesianProvider/getAxisExtremum.js +0 -21
- package/context/CartesianProvider/index.d.ts +0 -4
- package/context/CartesianProvider/index.js +0 -4
- package/context/CartesianProvider/useCartesianContext.d.ts +0 -2
- package/context/CartesianProvider/useCartesianContext.js +0 -10
- package/context/ChartDataProvider/ChartDataProvider.d.ts +0 -58
- package/context/ChartDataProvider/ChartDataProvider.js +0 -270
- package/context/ChartDataProvider/useChartDataProviderProps.d.ts +0 -90
- package/context/ChartDataProvider/useChartDataProviderProps.js +0 -66
- package/context/ChartDataProvider/useDefaultizeAxis.d.ts +0 -39
- package/context/DrawingAreaProvider/DrawingArea.types.d.ts +0 -51
- package/context/DrawingAreaProvider/DrawingAreaContext.d.ts +0 -3
- package/context/DrawingAreaProvider/DrawingAreaContext.js +0 -15
- package/context/DrawingAreaProvider/DrawingAreaProvider.d.ts +0 -3
- package/context/DrawingAreaProvider/DrawingAreaProvider.js +0 -48
- package/context/DrawingAreaProvider/index.d.ts +0 -3
- package/context/DrawingAreaProvider/index.js +0 -3
- package/context/PluginProvider/ColorProcessor.types.d.ts +0 -8
- package/context/PluginProvider/ExtremumGetter.types.d.ts +0 -25
- package/context/PluginProvider/Plugin.types.d.ts +0 -29
- package/context/PluginProvider/PluginContext.d.ts +0 -4
- package/context/PluginProvider/PluginContext.js +0 -15
- package/context/PluginProvider/PluginProvider.d.ts +0 -4
- package/context/PluginProvider/PluginProvider.js +0 -21
- package/context/PluginProvider/SeriesFormatter.types.d.ts +0 -21
- package/context/PluginProvider/index.d.ts +0 -12
- package/context/PluginProvider/index.js +0 -12
- package/context/PluginProvider/mergePlugins.d.ts +0 -46
- package/context/PluginProvider/mergePlugins.js +0 -40
- package/context/PluginProvider/useColorProcessor.d.ts +0 -4
- package/context/PluginProvider/useColorProcessor.js +0 -17
- package/context/PluginProvider/useRadiusExtremumGetter.d.ts +0 -4
- package/context/PluginProvider/useRadiusExtremumGetter.js +0 -17
- package/context/PluginProvider/useRotationExtremumGetter.d.ts +0 -4
- package/context/PluginProvider/useRotationExtremumGetter.js +0 -17
- package/context/PluginProvider/useSeriesFormatter.d.ts +0 -4
- package/context/PluginProvider/useSeriesFormatter.js +0 -17
- package/context/PluginProvider/useXExtremumGetter.d.ts +0 -4
- package/context/PluginProvider/useXExtremumGetter.js +0 -15
- package/context/PluginProvider/useYExtremumGetter.d.ts +0 -4
- package/context/PluginProvider/useYExtremumGetter.js +0 -15
- package/context/SeriesProvider/Series.types.d.ts +0 -26
- package/context/SeriesProvider/SeriesContext.d.ts +0 -4
- package/context/SeriesProvider/SeriesContext.js +0 -8
- package/context/SeriesProvider/SeriesProvider.d.ts +0 -5
- package/context/SeriesProvider/SeriesProvider.js +0 -33
- package/context/SeriesProvider/index.d.ts +0 -12
- package/context/SeriesProvider/index.js +0 -8
- package/context/SeriesProvider/processSeries.d.ts +0 -18
- package/context/SizeProvider/Size.types.d.ts +0 -30
- package/context/SizeProvider/SizeContext.d.ts +0 -4
- package/context/SizeProvider/SizeContext.js +0 -15
- package/context/SizeProvider/SizeProvider.d.ts +0 -11
- package/context/SizeProvider/SizeProvider.js +0 -26
- package/context/SizeProvider/index.d.ts +0 -4
- package/context/SizeProvider/index.js +0 -4
- package/context/SizeProvider/useChartContainerDimensions.d.ts +0 -9
- package/context/SizeProvider/useChartContainerDimensions.js +0 -108
- package/context/SizeProvider/useSize.d.ts +0 -5
- package/context/SizeProvider/useSize.js +0 -13
- package/context/ZAxisContextProvider.d.ts +0 -33
- package/context/ZAxisContextProvider.js +0 -96
- package/internals/computeAxisValue.d.ts +0 -38
- package/modern/context/CartesianProvider/CartesianContext.js +0 -13
- package/modern/context/CartesianProvider/CartesianProvider.js +0 -49
- package/modern/context/CartesianProvider/defaultizeAxis.js +0 -13
- package/modern/context/CartesianProvider/getAxisExtremum.js +0 -21
- package/modern/context/CartesianProvider/index.js +0 -4
- package/modern/context/CartesianProvider/useCartesianContext.js +0 -10
- package/modern/context/ChartDataProvider/ChartDataProvider.js +0 -270
- package/modern/context/ChartDataProvider/useChartDataProviderProps.js +0 -66
- package/modern/context/DrawingAreaProvider/DrawingAreaContext.js +0 -15
- package/modern/context/DrawingAreaProvider/DrawingAreaProvider.js +0 -48
- package/modern/context/DrawingAreaProvider/index.js +0 -3
- package/modern/context/PluginProvider/PluginContext.js +0 -15
- package/modern/context/PluginProvider/PluginProvider.js +0 -21
- package/modern/context/PluginProvider/index.js +0 -12
- package/modern/context/PluginProvider/mergePlugins.js +0 -40
- package/modern/context/PluginProvider/useColorProcessor.js +0 -17
- package/modern/context/PluginProvider/useRadiusExtremumGetter.js +0 -17
- package/modern/context/PluginProvider/useRotationExtremumGetter.js +0 -17
- package/modern/context/PluginProvider/useSeriesFormatter.js +0 -17
- package/modern/context/PluginProvider/useXExtremumGetter.js +0 -15
- package/modern/context/PluginProvider/useYExtremumGetter.js +0 -15
- package/modern/context/SeriesProvider/SeriesContext.js +0 -8
- package/modern/context/SeriesProvider/SeriesProvider.js +0 -33
- package/modern/context/SeriesProvider/index.js +0 -8
- package/modern/context/SizeProvider/SizeContext.js +0 -15
- package/modern/context/SizeProvider/SizeProvider.js +0 -26
- package/modern/context/SizeProvider/index.js +0 -4
- package/modern/context/SizeProvider/useChartContainerDimensions.js +0 -108
- package/modern/context/SizeProvider/useSize.js +0 -13
- package/modern/context/ZAxisContextProvider.js +0 -96
- package/node/context/CartesianProvider/CartesianContext.js +0 -20
- package/node/context/CartesianProvider/CartesianProvider.js +0 -54
- package/node/context/CartesianProvider/defaultizeAxis.js +0 -21
- package/node/context/CartesianProvider/getAxisExtremum.js +0 -28
- package/node/context/CartesianProvider/index.js +0 -49
- package/node/context/CartesianProvider/useCartesianContext.js +0 -17
- package/node/context/ChartDataProvider/ChartDataProvider.js +0 -276
- package/node/context/ChartDataProvider/useChartDataProviderProps.js +0 -72
- package/node/context/DrawingAreaProvider/DrawingAreaContext.js +0 -21
- package/node/context/DrawingAreaProvider/DrawingAreaProvider.js +0 -55
- package/node/context/DrawingAreaProvider/index.js +0 -38
- package/node/context/PluginProvider/PluginContext.js +0 -22
- package/node/context/PluginProvider/PluginProvider.js +0 -26
- package/node/context/PluginProvider/index.js +0 -137
- package/node/context/PluginProvider/mergePlugins.js +0 -47
- package/node/context/PluginProvider/useColorProcessor.js +0 -23
- package/node/context/PluginProvider/useRadiusExtremumGetter.js +0 -23
- package/node/context/PluginProvider/useRotationExtremumGetter.js +0 -23
- package/node/context/PluginProvider/useSeriesFormatter.js +0 -23
- package/node/context/PluginProvider/useXExtremumGetter.js +0 -22
- package/node/context/PluginProvider/useYExtremumGetter.js +0 -22
- package/node/context/SeriesProvider/SeriesContext.js +0 -15
- package/node/context/SeriesProvider/SeriesProvider.js +0 -38
- package/node/context/SeriesProvider/index.js +0 -49
- package/node/context/SizeProvider/SizeContext.js +0 -22
- package/node/context/SizeProvider/SizeProvider.js +0 -29
- package/node/context/SizeProvider/index.js +0 -49
- package/node/context/SizeProvider/useChartContainerDimensions.js +0 -116
- package/node/context/SizeProvider/useSize.js +0 -20
- package/node/context/ZAxisContextProvider.js +0 -103
- /package/{context/ChartDataProvider → ChartDataProvider}/index.d.ts +0 -0
- /package/{context/ChartDataProvider → ChartDataProvider}/index.js +0 -0
- /package/{context/CartesianProvider/Cartesian.types.js → internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.js} +0 -0
- /package/{context/DrawingAreaProvider/DrawingArea.types.js → internals/plugins/corePlugins/useChartSeries/useChartSeries.types.js} +0 -0
- /package/{context/PluginProvider/ColorProcessor.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.js} +0 -0
- /package/{context/CartesianProvider → internals/plugins/featurePlugins/useChartCartesianAxis}/zoom.d.ts +0 -0
- /package/{context/CartesianProvider → internals/plugins/featurePlugins/useChartCartesianAxis}/zoom.js +0 -0
- /package/{context/PluginProvider/ExtremumGetter.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.js} +0 -0
- /package/{context/PluginProvider/Plugin.types.js → internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.js} +0 -0
- /package/{context/PluginProvider/SeriesFormatter.types.js → internals/plugins/models/seriesConfig/colorProcessor.types.js} +0 -0
- /package/{context/SeriesProvider/Series.types.js → internals/plugins/models/seriesConfig/extremumGetter.types.js} +0 -0
- /package/{context/SizeProvider/Size.types.js → internals/plugins/models/seriesConfig/seriesConfig.types.js} +0 -0
- /package/{modern/context/CartesianProvider/Cartesian.types.js → internals/plugins/models/seriesConfig/seriesProcessor.types.js} +0 -0
- /package/modern/{context/ChartDataProvider → ChartDataProvider}/index.js +0 -0
- /package/modern/{context/DrawingAreaProvider/DrawingArea.types.js → internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.js} +0 -0
- /package/modern/{context/PluginProvider/ColorProcessor.types.js → internals/plugins/corePlugins/useChartSeries/useChartSeries.types.js} +0 -0
- /package/modern/{context/PluginProvider/ExtremumGetter.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.js} +0 -0
- /package/modern/{context/CartesianProvider → internals/plugins/featurePlugins/useChartCartesianAxis}/zoom.js +0 -0
- /package/modern/{context/PluginProvider/Plugin.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.js} +0 -0
- /package/modern/{context/PluginProvider/SeriesFormatter.types.js → internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.js} +0 -0
- /package/modern/{context/SeriesProvider/Series.types.js → internals/plugins/models/seriesConfig/colorProcessor.types.js} +0 -0
- /package/modern/{context/SizeProvider/Size.types.js → internals/plugins/models/seriesConfig/extremumGetter.types.js} +0 -0
- /package/node/{context/ChartDataProvider → ChartDataProvider}/index.js +0 -0
- /package/node/{context/CartesianProvider/Cartesian.types.js → internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.js} +0 -0
- /package/node/{context/DrawingAreaProvider/DrawingArea.types.js → internals/plugins/corePlugins/useChartSeries/useChartSeries.types.js} +0 -0
- /package/node/{context/PluginProvider/ColorProcessor.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.js} +0 -0
- /package/node/{context/CartesianProvider → internals/plugins/featurePlugins/useChartCartesianAxis}/zoom.js +0 -0
- /package/node/{context/PluginProvider/ExtremumGetter.types.js → internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.js} +0 -0
- /package/node/{context/PluginProvider/Plugin.types.js → internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.js} +0 -0
- /package/node/{context/PluginProvider/SeriesFormatter.types.js → internals/plugins/models/seriesConfig/colorProcessor.types.js} +0 -0
- /package/node/{context/SeriesProvider/Series.types.js → internals/plugins/models/seriesConfig/extremumGetter.types.js} +0 -0
- /package/node/{context/SizeProvider/Size.types.js → internals/plugins/models/seriesConfig/seriesConfig.types.js} +0 -0
|
@@ -7,13 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useXColorScale = useXColorScale;
|
|
8
8
|
exports.useYColorScale = useYColorScale;
|
|
9
9
|
exports.useZColorScale = useZColorScale;
|
|
10
|
-
var
|
|
10
|
+
var _useAxis = require("./useAxis");
|
|
11
11
|
var _useZAxis = require("./useZAxis");
|
|
12
12
|
function useXColorScale(identifier) {
|
|
13
13
|
const {
|
|
14
14
|
xAxis,
|
|
15
15
|
xAxisIds
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _useAxis.useXAxes)();
|
|
17
17
|
const id = typeof identifier === 'string' ? identifier : xAxisIds[identifier ?? 0];
|
|
18
18
|
return xAxis[id].colorScale;
|
|
19
19
|
}
|
|
@@ -21,7 +21,7 @@ function useYColorScale(identifier) {
|
|
|
21
21
|
const {
|
|
22
22
|
yAxis,
|
|
23
23
|
yAxisIds
|
|
24
|
-
} = (0,
|
|
24
|
+
} = (0, _useAxis.useYAxes)();
|
|
25
25
|
const id = typeof identifier === 'string' ? identifier : yAxisIds[identifier ?? 0];
|
|
26
26
|
return yAxis[id].colorScale;
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ function useZColorScale(identifier) {
|
|
|
29
29
|
const {
|
|
30
30
|
zAxis,
|
|
31
31
|
zAxisIds
|
|
32
|
-
} = (0, _useZAxis.
|
|
32
|
+
} = (0, _useZAxis.useZAxes)();
|
|
33
33
|
const id = typeof identifier === 'string' ? identifier : zAxisIds[identifier ?? 0];
|
|
34
34
|
return zAxis[id]?.colorScale;
|
|
35
35
|
}
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.useDrawingArea = useDrawingArea;
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var _useStore = require("../internals/store/useStore");
|
|
9
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
10
|
+
var _useChartDimensions = require("../internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors");
|
|
11
11
|
function useDrawingArea() {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
top,
|
|
15
|
-
width,
|
|
16
|
-
height,
|
|
17
|
-
bottom,
|
|
18
|
-
right,
|
|
19
|
-
isPointInside
|
|
20
|
-
} = React.useContext(_DrawingAreaProvider.DrawingAreaContext);
|
|
21
|
-
return React.useMemo(() => ({
|
|
22
|
-
left,
|
|
23
|
-
top,
|
|
24
|
-
width,
|
|
25
|
-
height,
|
|
26
|
-
bottom,
|
|
27
|
-
right,
|
|
28
|
-
isPointInside
|
|
29
|
-
}), [height, left, top, width, bottom, right, isPointInside]);
|
|
12
|
+
const store = (0, _useStore.useStore)();
|
|
13
|
+
return (0, _useSelector.useSelector)(store, _useChartDimensions.selectorChartDrawingArea);
|
|
30
14
|
}
|
package/node/hooks/useLegend.js
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.useLegend = useLegend;
|
|
9
|
-
var
|
|
10
|
-
var _legend2 = _interopRequireDefault(require("../ScatterChart/legend"));
|
|
11
|
-
var _legend3 = _interopRequireDefault(require("../LineChart/legend"));
|
|
12
|
-
var _legend4 = _interopRequireDefault(require("../PieChart/legend"));
|
|
8
|
+
var _useChartSeries = require("../internals/plugins/corePlugins/useChartSeries");
|
|
13
9
|
var _useSeries = require("./useSeries");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
line: _legend3.default,
|
|
18
|
-
pie: _legend4.default
|
|
19
|
-
};
|
|
20
|
-
function getSeriesToDisplay(series) {
|
|
10
|
+
var _useStore = require("../internals/store/useStore");
|
|
11
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
12
|
+
function getSeriesToDisplay(series, seriesConfig) {
|
|
21
13
|
return Object.keys(series).flatMap(seriesType => {
|
|
22
|
-
const getter =
|
|
14
|
+
const getter = seriesConfig[seriesType].legendGetter;
|
|
23
15
|
return getter === undefined ? [] : getter(series[seriesType]);
|
|
24
16
|
});
|
|
25
17
|
}
|
|
@@ -35,7 +27,9 @@ function getSeriesToDisplay(series) {
|
|
|
35
27
|
*/
|
|
36
28
|
function useLegend() {
|
|
37
29
|
const series = (0, _useSeries.useSeries)();
|
|
30
|
+
const store = (0, _useStore.useStore)();
|
|
31
|
+
const seriesConfig = (0, _useSelector.useSelector)(store, _useChartSeries.selectorChartSeriesConfig);
|
|
38
32
|
return {
|
|
39
|
-
items: getSeriesToDisplay(series)
|
|
33
|
+
items: getSeriesToDisplay(series, seriesConfig)
|
|
40
34
|
};
|
|
41
35
|
}
|
package/node/hooks/useSeries.js
CHANGED
|
@@ -11,7 +11,9 @@ exports.usePieSeries = usePieSeries;
|
|
|
11
11
|
exports.useScatterSeries = useScatterSeries;
|
|
12
12
|
exports.useSeries = useSeries;
|
|
13
13
|
var React = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _useStore = require("../internals/store/useStore");
|
|
15
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
16
|
+
var _useChartSeries = require("../internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors");
|
|
15
17
|
/**
|
|
16
18
|
* Get access to the internal state of series.
|
|
17
19
|
* Structured by type of series:
|
|
@@ -19,14 +21,8 @@ var _SeriesProvider = require("../context/SeriesProvider");
|
|
|
19
21
|
* @returns FormattedSeries series
|
|
20
22
|
*/
|
|
21
23
|
function useSeries() {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
data
|
|
25
|
-
} = React.useContext(_SeriesProvider.SeriesContext);
|
|
26
|
-
if (!isInitialized) {
|
|
27
|
-
throw new Error(['MUI X: Could not find the series ref context.', 'It looks like you rendered your component outside of a ChartsContainer parent component.'].join('\n'));
|
|
28
|
-
}
|
|
29
|
-
return data;
|
|
24
|
+
const store = (0, _useStore.useStore)();
|
|
25
|
+
return (0, _useSelector.useSelector)(store, _useChartSeries.selectorChartSeriesProcessed);
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
/**
|
package/node/hooks/useZAxis.js
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
exports.useZAxes = useZAxes;
|
|
8
|
+
exports.useZAxis = useZAxis;
|
|
9
|
+
var _useStore = require("../internals/store/useStore");
|
|
10
|
+
var _useChartZAxis = require("../internals/plugins/featurePlugins/useChartZAxis");
|
|
11
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
12
|
+
function useZAxes() {
|
|
13
|
+
const store = (0, _useStore.useStore)();
|
|
14
|
+
const {
|
|
15
|
+
axis: zAxis,
|
|
16
|
+
axisIds: zAxisIds
|
|
17
|
+
} = (0, _useSelector.useSelector)(store, _useChartZAxis.selectorChartZAxis) ?? {
|
|
18
|
+
axis: {},
|
|
19
|
+
axisIds: []
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
zAxis,
|
|
23
|
+
zAxisIds
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function useZAxis(identifier) {
|
|
27
|
+
const {
|
|
28
|
+
zAxis,
|
|
29
|
+
zAxisIds
|
|
30
|
+
} = useZAxes();
|
|
31
|
+
const id = typeof identifier === 'string' ? identifier : zAxisIds[identifier ?? 0];
|
|
32
|
+
return zAxis[id];
|
|
33
|
+
}
|
package/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v8.0.0-alpha.
|
|
2
|
+
* @mui/x-charts v8.0.0-alpha.9
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -295,4 +295,15 @@ Object.keys(_ChartContainer).forEach(function (key) {
|
|
|
295
295
|
return _ChartContainer[key];
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
+
});
|
|
299
|
+
var _ChartDataProvider = require("./ChartDataProvider");
|
|
300
|
+
Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
301
|
+
if (key === "default" || key === "__esModule") return;
|
|
302
|
+
if (key in exports && exports[key] === _ChartDataProvider[key]) return;
|
|
303
|
+
Object.defineProperty(exports, key, {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
get: function () {
|
|
306
|
+
return _ChartDataProvider[key];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
298
309
|
});
|
|
@@ -6,26 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.ChartsAxesGradients = ChartsAxesGradients;
|
|
9
|
-
exports.useChartGradient = useChartGradient;
|
|
10
|
-
exports.useChartGradientObjectBound = useChartGradientObjectBound;
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _CartesianProvider = require("../../../context/CartesianProvider");
|
|
13
10
|
var _hooks = require("../../../hooks");
|
|
14
11
|
var _ChartsPiecewiseGradient = _interopRequireDefault(require("./ChartsPiecewiseGradient"));
|
|
15
12
|
var _ChartsContinuousGradient = _interopRequireDefault(require("./ChartsContinuousGradient"));
|
|
16
13
|
var _ChartsContinuousGradientObjectBound = _interopRequireDefault(require("./ChartsContinuousGradientObjectBound"));
|
|
17
14
|
var _useZAxis = require("../../../hooks/useZAxis");
|
|
15
|
+
var _useChartGradientId = require("../../../hooks/useChartGradientId");
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
function useChartGradient() {
|
|
20
|
-
const chartId = (0, _hooks.useChartId)();
|
|
21
|
-
return React.useCallback((axisId, direction) => `${chartId}-gradient-${direction}-${axisId}`, [chartId]);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// TODO: make public?
|
|
25
|
-
function useChartGradientObjectBound() {
|
|
26
|
-
const chartId = (0, _hooks.useChartId)();
|
|
27
|
-
return React.useCallback((axisId, direction) => `${chartId}-gradient-${direction}-${axisId}-object-bound`, [chartId]);
|
|
28
|
-
}
|
|
29
17
|
function ChartsAxesGradients() {
|
|
30
18
|
const {
|
|
31
19
|
top,
|
|
@@ -37,18 +25,20 @@ function ChartsAxesGradients() {
|
|
|
37
25
|
} = (0, _hooks.useDrawingArea)();
|
|
38
26
|
const svgHeight = top + height + bottom;
|
|
39
27
|
const svgWidth = left + width + right;
|
|
40
|
-
const getGradientId =
|
|
41
|
-
const getObjectBoundGradientId =
|
|
28
|
+
const getGradientId = (0, _useChartGradientId.useChartGradientIdBuilder)();
|
|
29
|
+
const getObjectBoundGradientId = (0, _useChartGradientId.useChartGradientIdObjectBoundBuilder)();
|
|
42
30
|
const {
|
|
43
|
-
xAxisIds,
|
|
44
31
|
xAxis,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
xAxisIds
|
|
33
|
+
} = (0, _hooks.useXAxes)();
|
|
34
|
+
const {
|
|
35
|
+
yAxis,
|
|
36
|
+
yAxisIds
|
|
37
|
+
} = (0, _hooks.useYAxes)();
|
|
48
38
|
const {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = (0, _useZAxis.
|
|
39
|
+
zAxis,
|
|
40
|
+
zAxisIds
|
|
41
|
+
} = (0, _useZAxis.useZAxes)();
|
|
52
42
|
const filteredYAxisIds = yAxisIds.filter(axisId => yAxis[axisId].colorMap !== undefined);
|
|
53
43
|
const filteredXAxisIds = xAxisIds.filter(axisId => xAxis[axisId].colorMap !== undefined);
|
|
54
44
|
const filteredZAxisIds = zAxisIds.filter(axisId => zAxis[axisId].colorMap !== undefined);
|
|
@@ -57,8 +47,8 @@ function ChartsAxesGradients() {
|
|
|
57
47
|
}
|
|
58
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
|
|
59
49
|
children: [filteredYAxisIds.map(axisId => {
|
|
60
|
-
const gradientId = getGradientId(axisId
|
|
61
|
-
const objectBoundGradientId = getObjectBoundGradientId(axisId
|
|
50
|
+
const gradientId = getGradientId(axisId);
|
|
51
|
+
const objectBoundGradientId = getObjectBoundGradientId(axisId);
|
|
62
52
|
const {
|
|
63
53
|
colorMap,
|
|
64
54
|
scale,
|
|
@@ -95,8 +85,8 @@ function ChartsAxesGradients() {
|
|
|
95
85
|
}
|
|
96
86
|
return null;
|
|
97
87
|
}), filteredXAxisIds.map(axisId => {
|
|
98
|
-
const gradientId = getGradientId(axisId
|
|
99
|
-
const objectBoundGradientId = getObjectBoundGradientId(axisId
|
|
88
|
+
const gradientId = getGradientId(axisId);
|
|
89
|
+
const objectBoundGradientId = getObjectBoundGradientId(axisId);
|
|
100
90
|
const {
|
|
101
91
|
colorMap,
|
|
102
92
|
scale,
|
|
@@ -133,7 +123,7 @@ function ChartsAxesGradients() {
|
|
|
133
123
|
}
|
|
134
124
|
return null;
|
|
135
125
|
}), filteredZAxisIds.map(axisId => {
|
|
136
|
-
const objectBoundGradientId = getObjectBoundGradientId(axisId
|
|
126
|
+
const objectBoundGradientId = getObjectBoundGradientId(axisId);
|
|
137
127
|
const {
|
|
138
128
|
colorMap,
|
|
139
129
|
colorScale
|
package/node/internals/index.js
CHANGED
|
@@ -85,6 +85,18 @@ Object.keys(_ChartsWrapper).forEach(function (key) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
|
+
var _ChartsLabelMark = require("../ChartsLabel/ChartsLabelMark");
|
|
89
|
+
Object.keys(_ChartsLabelMark).forEach(function (key) {
|
|
90
|
+
if (key === "default" || key === "__esModule") return;
|
|
91
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
92
|
+
if (key in exports && exports[key] === _ChartsLabelMark[key]) return;
|
|
93
|
+
Object.defineProperty(exports, key, {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () {
|
|
96
|
+
return _ChartsLabelMark[key];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
88
100
|
var _useSeries = require("../hooks/useSeries");
|
|
89
101
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
90
102
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
@@ -103,7 +115,7 @@ Object.keys(_useChartContainerProps).forEach(function (key) {
|
|
|
103
115
|
}
|
|
104
116
|
});
|
|
105
117
|
});
|
|
106
|
-
var _useChartDataProviderProps = require("../
|
|
118
|
+
var _useChartDataProviderProps = require("../ChartDataProvider/useChartDataProviderProps");
|
|
107
119
|
Object.keys(_useChartDataProviderProps).forEach(function (key) {
|
|
108
120
|
if (key === "default" || key === "__esModule") return;
|
|
109
121
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -115,188 +127,212 @@ Object.keys(_useChartDataProviderProps).forEach(function (key) {
|
|
|
115
127
|
}
|
|
116
128
|
});
|
|
117
129
|
});
|
|
118
|
-
var
|
|
119
|
-
Object.keys(
|
|
130
|
+
var _useChartId = require("./plugins/corePlugins/useChartId");
|
|
131
|
+
Object.keys(_useChartId).forEach(function (key) {
|
|
120
132
|
if (key === "default" || key === "__esModule") return;
|
|
121
133
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
122
|
-
if (key in exports && exports[key] ===
|
|
134
|
+
if (key in exports && exports[key] === _useChartId[key]) return;
|
|
123
135
|
Object.defineProperty(exports, key, {
|
|
124
136
|
enumerable: true,
|
|
125
137
|
get: function () {
|
|
126
|
-
return
|
|
138
|
+
return _useChartId[key];
|
|
127
139
|
}
|
|
128
140
|
});
|
|
129
141
|
});
|
|
130
|
-
var
|
|
131
|
-
Object.keys(
|
|
142
|
+
var _useChartSeries = require("./plugins/corePlugins/useChartSeries");
|
|
143
|
+
Object.keys(_useChartSeries).forEach(function (key) {
|
|
132
144
|
if (key === "default" || key === "__esModule") return;
|
|
133
145
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
134
|
-
if (key in exports && exports[key] ===
|
|
146
|
+
if (key in exports && exports[key] === _useChartSeries[key]) return;
|
|
135
147
|
Object.defineProperty(exports, key, {
|
|
136
148
|
enumerable: true,
|
|
137
149
|
get: function () {
|
|
138
|
-
return
|
|
150
|
+
return _useChartSeries[key];
|
|
139
151
|
}
|
|
140
152
|
});
|
|
141
153
|
});
|
|
142
|
-
var
|
|
143
|
-
Object.keys(
|
|
154
|
+
var _useChartDimensions = require("./plugins/corePlugins/useChartDimensions");
|
|
155
|
+
Object.keys(_useChartDimensions).forEach(function (key) {
|
|
144
156
|
if (key === "default" || key === "__esModule") return;
|
|
145
157
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
146
|
-
if (key in exports && exports[key] ===
|
|
158
|
+
if (key in exports && exports[key] === _useChartDimensions[key]) return;
|
|
147
159
|
Object.defineProperty(exports, key, {
|
|
148
160
|
enumerable: true,
|
|
149
161
|
get: function () {
|
|
150
|
-
return
|
|
162
|
+
return _useChartDimensions[key];
|
|
151
163
|
}
|
|
152
164
|
});
|
|
153
165
|
});
|
|
154
|
-
var
|
|
155
|
-
Object.keys(
|
|
166
|
+
var _useChartZAxis = require("./plugins/featurePlugins/useChartZAxis");
|
|
167
|
+
Object.keys(_useChartZAxis).forEach(function (key) {
|
|
156
168
|
if (key === "default" || key === "__esModule") return;
|
|
157
169
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
158
|
-
if (key in exports && exports[key] ===
|
|
170
|
+
if (key in exports && exports[key] === _useChartZAxis[key]) return;
|
|
159
171
|
Object.defineProperty(exports, key, {
|
|
160
172
|
enumerable: true,
|
|
161
173
|
get: function () {
|
|
162
|
-
return
|
|
174
|
+
return _useChartZAxis[key];
|
|
163
175
|
}
|
|
164
176
|
});
|
|
165
177
|
});
|
|
166
|
-
var
|
|
167
|
-
Object.keys(
|
|
178
|
+
var _useChartCartesianAxis = require("./plugins/featurePlugins/useChartCartesianAxis");
|
|
179
|
+
Object.keys(_useChartCartesianAxis).forEach(function (key) {
|
|
168
180
|
if (key === "default" || key === "__esModule") return;
|
|
169
181
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
170
|
-
if (key in exports && exports[key] ===
|
|
182
|
+
if (key in exports && exports[key] === _useChartCartesianAxis[key]) return;
|
|
171
183
|
Object.defineProperty(exports, key, {
|
|
172
184
|
enumerable: true,
|
|
173
185
|
get: function () {
|
|
174
|
-
return
|
|
186
|
+
return _useChartCartesianAxis[key];
|
|
175
187
|
}
|
|
176
188
|
});
|
|
177
189
|
});
|
|
178
|
-
var
|
|
179
|
-
|
|
180
|
-
Object.keys(_getScale).forEach(function (key) {
|
|
190
|
+
var _useChartInteraction = require("./plugins/featurePlugins/useChartInteraction");
|
|
191
|
+
Object.keys(_useChartInteraction).forEach(function (key) {
|
|
181
192
|
if (key === "default" || key === "__esModule") return;
|
|
182
193
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
183
|
-
if (key in exports && exports[key] ===
|
|
194
|
+
if (key in exports && exports[key] === _useChartInteraction[key]) return;
|
|
184
195
|
Object.defineProperty(exports, key, {
|
|
185
196
|
enumerable: true,
|
|
186
197
|
get: function () {
|
|
187
|
-
return
|
|
198
|
+
return _useChartInteraction[key];
|
|
188
199
|
}
|
|
189
200
|
});
|
|
190
201
|
});
|
|
191
|
-
var
|
|
192
|
-
Object.keys(
|
|
202
|
+
var _selectors = require("./plugins/utils/selectors");
|
|
203
|
+
Object.keys(_selectors).forEach(function (key) {
|
|
193
204
|
if (key === "default" || key === "__esModule") return;
|
|
194
205
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
195
|
-
if (key in exports && exports[key] ===
|
|
206
|
+
if (key in exports && exports[key] === _selectors[key]) return;
|
|
196
207
|
Object.defineProperty(exports, key, {
|
|
197
208
|
enumerable: true,
|
|
198
209
|
get: function () {
|
|
199
|
-
return
|
|
210
|
+
return _selectors[key];
|
|
200
211
|
}
|
|
201
212
|
});
|
|
202
213
|
});
|
|
203
|
-
var
|
|
204
|
-
Object.keys(
|
|
214
|
+
var _useCharts = require("./store/useCharts");
|
|
215
|
+
Object.keys(_useCharts).forEach(function (key) {
|
|
205
216
|
if (key === "default" || key === "__esModule") return;
|
|
206
217
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
207
|
-
if (key in exports && exports[key] ===
|
|
218
|
+
if (key in exports && exports[key] === _useCharts[key]) return;
|
|
208
219
|
Object.defineProperty(exports, key, {
|
|
209
220
|
enumerable: true,
|
|
210
221
|
get: function () {
|
|
211
|
-
return
|
|
222
|
+
return _useCharts[key];
|
|
212
223
|
}
|
|
213
224
|
});
|
|
214
225
|
});
|
|
215
|
-
var
|
|
216
|
-
Object.keys(
|
|
226
|
+
var _useStore = require("./store/useStore");
|
|
227
|
+
Object.keys(_useStore).forEach(function (key) {
|
|
217
228
|
if (key === "default" || key === "__esModule") return;
|
|
218
229
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
219
|
-
if (key in exports && exports[key] ===
|
|
230
|
+
if (key in exports && exports[key] === _useStore[key]) return;
|
|
220
231
|
Object.defineProperty(exports, key, {
|
|
221
232
|
enumerable: true,
|
|
222
233
|
get: function () {
|
|
223
|
-
return
|
|
234
|
+
return _useStore[key];
|
|
224
235
|
}
|
|
225
236
|
});
|
|
226
237
|
});
|
|
227
|
-
var
|
|
228
|
-
Object.keys(
|
|
238
|
+
var _useSelector = require("./store/useSelector");
|
|
239
|
+
Object.keys(_useSelector).forEach(function (key) {
|
|
229
240
|
if (key === "default" || key === "__esModule") return;
|
|
230
241
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
231
|
-
if (key in exports && exports[key] ===
|
|
242
|
+
if (key in exports && exports[key] === _useSelector[key]) return;
|
|
232
243
|
Object.defineProperty(exports, key, {
|
|
233
244
|
enumerable: true,
|
|
234
245
|
get: function () {
|
|
235
|
-
return
|
|
246
|
+
return _useSelector[key];
|
|
236
247
|
}
|
|
237
248
|
});
|
|
238
249
|
});
|
|
239
|
-
var
|
|
240
|
-
Object.keys(
|
|
250
|
+
var _defaultizeValueFormatter = require("./defaultizeValueFormatter");
|
|
251
|
+
Object.keys(_defaultizeValueFormatter).forEach(function (key) {
|
|
241
252
|
if (key === "default" || key === "__esModule") return;
|
|
242
253
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
243
|
-
if (key in exports && exports[key] ===
|
|
254
|
+
if (key in exports && exports[key] === _defaultizeValueFormatter[key]) return;
|
|
244
255
|
Object.defineProperty(exports, key, {
|
|
245
256
|
enumerable: true,
|
|
246
257
|
get: function () {
|
|
247
|
-
return
|
|
258
|
+
return _defaultizeValueFormatter[key];
|
|
248
259
|
}
|
|
249
260
|
});
|
|
250
261
|
});
|
|
251
|
-
var
|
|
252
|
-
Object.keys(
|
|
262
|
+
var _configInit = require("./configInit");
|
|
263
|
+
Object.keys(_configInit).forEach(function (key) {
|
|
253
264
|
if (key === "default" || key === "__esModule") return;
|
|
254
265
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
255
|
-
if (key in exports && exports[key] ===
|
|
266
|
+
if (key in exports && exports[key] === _configInit[key]) return;
|
|
256
267
|
Object.defineProperty(exports, key, {
|
|
257
268
|
enumerable: true,
|
|
258
269
|
get: function () {
|
|
259
|
-
return
|
|
270
|
+
return _configInit[key];
|
|
260
271
|
}
|
|
261
272
|
});
|
|
262
273
|
});
|
|
263
|
-
var
|
|
264
|
-
Object.keys(
|
|
274
|
+
var _getLabel = require("./getLabel");
|
|
275
|
+
Object.keys(_getLabel).forEach(function (key) {
|
|
265
276
|
if (key === "default" || key === "__esModule") return;
|
|
266
277
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
267
|
-
if (key in exports && exports[key] ===
|
|
278
|
+
if (key in exports && exports[key] === _getLabel[key]) return;
|
|
268
279
|
Object.defineProperty(exports, key, {
|
|
269
280
|
enumerable: true,
|
|
270
281
|
get: function () {
|
|
271
|
-
return
|
|
282
|
+
return _getLabel[key];
|
|
272
283
|
}
|
|
273
284
|
});
|
|
274
285
|
});
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
286
|
+
var _getSVGPoint = require("./getSVGPoint");
|
|
287
|
+
Object.keys(_getSVGPoint).forEach(function (key) {
|
|
278
288
|
if (key === "default" || key === "__esModule") return;
|
|
279
289
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
280
|
-
if (key in exports && exports[key] ===
|
|
290
|
+
if (key in exports && exports[key] === _getSVGPoint[key]) return;
|
|
281
291
|
Object.defineProperty(exports, key, {
|
|
282
292
|
enumerable: true,
|
|
283
293
|
get: function () {
|
|
284
|
-
return
|
|
294
|
+
return _getSVGPoint[key];
|
|
285
295
|
}
|
|
286
296
|
});
|
|
287
297
|
});
|
|
288
|
-
var
|
|
289
|
-
Object.keys(
|
|
298
|
+
var _isDefined = require("./isDefined");
|
|
299
|
+
Object.keys(_isDefined).forEach(function (key) {
|
|
290
300
|
if (key === "default" || key === "__esModule") return;
|
|
291
301
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
292
|
-
if (key in exports && exports[key] ===
|
|
302
|
+
if (key in exports && exports[key] === _isDefined[key]) return;
|
|
293
303
|
Object.defineProperty(exports, key, {
|
|
294
304
|
enumerable: true,
|
|
295
305
|
get: function () {
|
|
296
|
-
return
|
|
306
|
+
return _isDefined[key];
|
|
297
307
|
}
|
|
298
308
|
});
|
|
299
309
|
});
|
|
310
|
+
var _domUtils = require("./domUtils");
|
|
311
|
+
var _getScale = require("./getScale");
|
|
312
|
+
Object.keys(_getScale).forEach(function (key) {
|
|
313
|
+
if (key === "default" || key === "__esModule") return;
|
|
314
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
315
|
+
if (key in exports && exports[key] === _getScale[key]) return;
|
|
316
|
+
Object.defineProperty(exports, key, {
|
|
317
|
+
enumerable: true,
|
|
318
|
+
get: function () {
|
|
319
|
+
return _getScale[key];
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
var _AnimationProvider = require("../context/AnimationProvider");
|
|
324
|
+
Object.keys(_AnimationProvider).forEach(function (key) {
|
|
325
|
+
if (key === "default" || key === "__esModule") return;
|
|
326
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
327
|
+
if (key in exports && exports[key] === _AnimationProvider[key]) return;
|
|
328
|
+
Object.defineProperty(exports, key, {
|
|
329
|
+
enumerable: true,
|
|
330
|
+
get: function () {
|
|
331
|
+
return _AnimationProvider[key];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
var _getAxisExtremum = require("./plugins/featurePlugins/useChartCartesianAxis/getAxisExtremum");
|
|
300
336
|
var _ChartProvider = require("../context/ChartProvider");
|
|
301
337
|
Object.keys(_ChartProvider).forEach(function (key) {
|
|
302
338
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -356,4 +392,16 @@ Object.keys(_axis).forEach(function (key) {
|
|
|
356
392
|
return _axis[key];
|
|
357
393
|
}
|
|
358
394
|
});
|
|
395
|
+
});
|
|
396
|
+
var _models = require("./plugins/models");
|
|
397
|
+
Object.keys(_models).forEach(function (key) {
|
|
398
|
+
if (key === "default" || key === "__esModule") return;
|
|
399
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
400
|
+
if (key in exports && exports[key] === _models[key]) return;
|
|
401
|
+
Object.defineProperty(exports, key, {
|
|
402
|
+
enumerable: true,
|
|
403
|
+
get: function () {
|
|
404
|
+
return _models[key];
|
|
405
|
+
}
|
|
406
|
+
});
|
|
359
407
|
});
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ALL_PLUGINS = void 0;
|
|
7
|
+
var _useChartCartesianAxis = require("./featurePlugins/useChartCartesianAxis");
|
|
7
8
|
var _useChartInteraction = require("./featurePlugins/useChartInteraction");
|
|
8
|
-
|
|
9
|
+
var _useChartZAxis = require("./featurePlugins/useChartZAxis");
|
|
10
|
+
// This file should be removed after creating all plugins in favor of a file per chart type.
|
|
9
11
|
|
|
10
|
-
const ALL_PLUGINS = exports.ALL_PLUGINS = [_useChartInteraction.useChartInteraction];
|
|
12
|
+
const ALL_PLUGINS = exports.ALL_PLUGINS = [_useChartZAxis.useChartZAxis, _useChartCartesianAxis.useChartCartesianAxis, _useChartInteraction.useChartInteraction];
|
|
@@ -4,9 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CHART_CORE_PLUGINS = void 0;
|
|
7
|
+
var _useChartDimensions = require("./useChartDimensions/useChartDimensions");
|
|
7
8
|
var _useChartId = require("./useChartId");
|
|
9
|
+
var _useChartSeries = require("./useChartSeries");
|
|
8
10
|
/**
|
|
9
11
|
* Internal plugins that create the tools used by the other plugins.
|
|
10
12
|
* These plugins are used by the Charts components.
|
|
11
13
|
*/
|
|
12
|
-
const CHART_CORE_PLUGINS = exports.CHART_CORE_PLUGINS = [_useChartId.useChartId];
|
|
14
|
+
const CHART_CORE_PLUGINS = exports.CHART_CORE_PLUGINS = [_useChartId.useChartId, _useChartDimensions.useChartDimensions, _useChartSeries.useChartSeries];
|