@mui/x-charts-premium 9.5.0 → 9.7.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/BarChartPremium/BarChartPremium.d.mts +4 -4
- package/BarChartPremium/BarChartPremium.d.ts +4 -4
- package/BarChartPremium/BarChartPremium.js +5 -3
- package/BarChartPremium/BarChartPremium.mjs +5 -3
- package/BarChartPremium/BarChartPremium.plugins.d.mts +2 -2
- package/BarChartPremium/BarChartPremium.plugins.d.ts +2 -2
- package/BarChartPremium/BarPlotPremium.d.mts +1 -1
- package/BarChartPremium/BarPlotPremium.d.ts +1 -1
- package/BarChartPremium/BarPlotPremium.js +1 -1
- package/BarChartPremium/BarPlotPremium.mjs +1 -1
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts +1 -1
- package/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts +1 -1
- package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +2 -2
- package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +2 -2
- package/BarChartPremium/RangeBar/RangeBarPlot.js +2 -2
- package/BarChartPremium/RangeBar/RangeBarPlot.mjs +2 -2
- package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.mts +1 -1
- package/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/descriptionGetter.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/extrema.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/extrema.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/getColor.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/getColor.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/getColor.js +2 -5
- package/BarChartPremium/RangeBar/seriesConfig/getColor.mjs +2 -5
- package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/index.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/index.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/legend.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/legend.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/tooltip.d.ts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts +1 -1
- package/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts +1 -1
- package/BarChartPremium/RangeBar/useRangeBarPlotData.d.mts +4 -4
- package/BarChartPremium/RangeBar/useRangeBarPlotData.d.ts +4 -4
- package/BarChartPremium/useBarChartPremiumProps.d.mts +5 -5
- package/BarChartPremium/useBarChartPremiumProps.d.ts +5 -5
- package/BarChartPremium/webgl/BarWebGLProgram.d.mts +1 -1
- package/BarChartPremium/webgl/BarWebGLProgram.d.ts +1 -1
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +3 -3
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +3 -3
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +3 -3
- package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +3 -3
- package/CHANGELOG.md +261 -0
- package/CandlestickChart/CandlestickChart.d.mts +12 -12
- package/CandlestickChart/CandlestickChart.d.ts +12 -12
- package/CandlestickChart/CandlestickChart.js +1 -1
- package/CandlestickChart/CandlestickChart.mjs +1 -1
- package/CandlestickChart/CandlestickChart.plugins.d.mts +2 -2
- package/CandlestickChart/CandlestickChart.plugins.d.ts +2 -2
- package/CandlestickChart/CandlestickWebGLProgram.d.mts +1 -1
- package/CandlestickChart/CandlestickWebGLProgram.d.ts +1 -1
- package/CandlestickChart/checkCandlestickScaleErrors.d.mts +2 -2
- package/CandlestickChart/checkCandlestickScaleErrors.d.ts +2 -2
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.mts +1 -1
- package/CandlestickChart/seriesConfig/OHLCTooltipContent.d.ts +1 -1
- package/CandlestickChart/seriesConfig/descriptionGetter.d.mts +1 -1
- package/CandlestickChart/seriesConfig/descriptionGetter.d.ts +1 -1
- package/CandlestickChart/seriesConfig/extrema.d.mts +1 -1
- package/CandlestickChart/seriesConfig/extrema.d.ts +1 -1
- package/CandlestickChart/seriesConfig/getColor.d.mts +1 -1
- package/CandlestickChart/seriesConfig/getColor.d.ts +1 -1
- package/CandlestickChart/seriesConfig/getColor.js +2 -5
- package/CandlestickChart/seriesConfig/getColor.mjs +2 -5
- package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
- package/CandlestickChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/CandlestickChart/seriesConfig/index.d.mts +1 -1
- package/CandlestickChart/seriesConfig/index.d.ts +1 -1
- package/CandlestickChart/seriesConfig/legend.d.mts +1 -1
- package/CandlestickChart/seriesConfig/legend.d.ts +1 -1
- package/CandlestickChart/seriesConfig/seriesProcessor.d.mts +1 -1
- package/CandlestickChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/CandlestickChart/seriesConfig/tooltip.d.mts +1 -1
- package/CandlestickChart/seriesConfig/tooltip.d.ts +1 -1
- package/CandlestickChart/seriesConfig/tooltipPosition.d.mts +1 -1
- package/CandlestickChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/CandlestickChart/useCandlestickChartProps.d.mts +9 -9
- package/CandlestickChart/useCandlestickChartProps.d.ts +9 -9
- package/CandlestickChart/useCandlestickChartProps.mjs +0 -1
- package/CandlestickChart/useCandlestickPlotData.d.mts +3 -3
- package/CandlestickChart/useCandlestickPlotData.d.ts +3 -3
- package/ChartsContainerPremium/ChartsContainerPremium.d.mts +4 -4
- package/ChartsContainerPremium/ChartsContainerPremium.d.ts +4 -4
- package/ChartsContainerPremium/useChartsContainerPremiumProps.d.mts +2 -2
- package/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +4 -4
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +4 -4
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +7 -3
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +8 -5
- package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.mts +1 -1
- package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +1 -1
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +4 -4
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +4 -4
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +11 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +11 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +4 -4
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +4 -4
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +2 -2
- package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.mts +4 -4
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.d.ts +4 -4
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +11 -3
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +11 -3
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.mts +3 -3
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.plugins.d.ts +3 -3
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.mts +1 -1
- package/ChartsRadialDataProviderPremium/useChartsRadialDataProviderPremiumProps.d.ts +1 -1
- package/ChartsRenderer/ChartsRenderer.js +1 -1
- package/ChartsRenderer/ChartsRenderer.mjs +1 -1
- package/ChartsRenderer/colors.d.mts +1 -1
- package/ChartsRenderer/colors.d.ts +1 -1
- package/ChartsRenderer/configuration.d.mts +1 -1
- package/ChartsRenderer/configuration.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/CandlestickPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.mts +1 -1
- package/HeatmapPremium/HeatmapPlotPremium.d.ts +1 -1
- package/HeatmapPremium/HeatmapPremium.d.mts +1 -1
- package/HeatmapPremium/HeatmapPremium.d.ts +1 -1
- package/HeatmapPremium/HeatmapPremium.js +5 -3
- package/HeatmapPremium/HeatmapPremium.mjs +5 -3
- package/HeatmapPremium/HeatmapPremium.plugins.d.mts +2 -2
- package/HeatmapPremium/HeatmapPremium.plugins.d.ts +2 -2
- package/HeatmapPremium/useHeatmapPremiumProps.d.mts +2 -2
- package/HeatmapPremium/useHeatmapPremiumProps.d.ts +2 -2
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
- package/Map/GeoDataPlot.js +1 -1
- package/Map/GeoDataPlot.mjs +1 -1
- package/Map/MapShape.d.mts +4 -1
- package/Map/MapShape.d.ts +4 -1
- package/Map/MapShape.js +10 -1
- package/Map/MapShape.mjs +9 -0
- package/Map/MapShapePlot.d.mts +5 -1
- package/Map/MapShapePlot.d.ts +5 -1
- package/Map/MapShapePlot.js +27 -3
- package/Map/MapShapePlot.mjs +28 -4
- package/Map/index.d.mts +3 -1
- package/Map/index.d.ts +3 -1
- package/Map/seriesConfig/descriptionGetter.d.mts +1 -1
- package/Map/seriesConfig/descriptionGetter.d.ts +1 -1
- package/Map/seriesConfig/getColor.js +4 -9
- package/Map/seriesConfig/getColor.mjs +4 -9
- package/Map/seriesConfig/index.d.mts +1 -1
- package/Map/seriesConfig/index.d.ts +1 -1
- package/Map/seriesConfig/index.js +2 -0
- package/Map/seriesConfig/index.mjs +2 -0
- package/Map/seriesConfig/keyboardFocusHandler.d.mts +1 -1
- package/Map/seriesConfig/keyboardFocusHandler.d.ts +1 -1
- package/Map/seriesConfig/legend.d.mts +1 -1
- package/Map/seriesConfig/legend.d.ts +1 -1
- package/Map/seriesConfig/seriesProcessor.d.mts +1 -1
- package/Map/seriesConfig/seriesProcessor.d.ts +1 -1
- package/Map/seriesConfig/tooltip.d.mts +1 -1
- package/Map/seriesConfig/tooltip.d.ts +1 -1
- package/Map/seriesConfig/tooltip.js +5 -1
- package/Map/seriesConfig/tooltip.mjs +5 -1
- package/Map/seriesConfig/tooltipPosition.d.mts +3 -0
- package/Map/seriesConfig/tooltipPosition.d.ts +3 -0
- package/Map/seriesConfig/tooltipPosition.js +64 -0
- package/Map/seriesConfig/tooltipPosition.mjs +58 -0
- package/RadialBarChart/RadialBarChart.d.mts +10 -10
- package/RadialBarChart/RadialBarChart.d.ts +10 -10
- package/RadialBarChart/RadialBarChart.js +1 -1
- package/RadialBarChart/RadialBarChart.mjs +1 -1
- package/RadialBarChart/RadialBarChart.plugins.d.mts +2 -2
- package/RadialBarChart/RadialBarChart.plugins.d.ts +2 -2
- package/RadialBarChart/RadialBarElement.d.mts +2 -2
- package/RadialBarChart/RadialBarElement.d.ts +2 -2
- package/RadialBarChart/RadialBarPlot.js +1 -1
- package/RadialBarChart/RadialBarPlot.mjs +1 -1
- package/RadialBarChart/seriesConfig/descriptionGetter.d.mts +1 -1
- package/RadialBarChart/seriesConfig/descriptionGetter.d.ts +1 -1
- package/RadialBarChart/seriesConfig/extremums.d.mts +1 -1
- package/RadialBarChart/seriesConfig/extremums.d.ts +1 -1
- package/RadialBarChart/seriesConfig/getColor.d.mts +1 -1
- package/RadialBarChart/seriesConfig/getColor.d.ts +1 -1
- package/RadialBarChart/seriesConfig/getItemAtPosition.d.mts +1 -1
- package/RadialBarChart/seriesConfig/getItemAtPosition.d.ts +1 -1
- package/RadialBarChart/seriesConfig/index.d.mts +1 -1
- package/RadialBarChart/seriesConfig/index.d.ts +1 -1
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
- package/RadialBarChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
- package/RadialBarChart/seriesConfig/tooltip.d.mts +1 -1
- package/RadialBarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadialBarChart/useRadialBarChartProps.d.mts +6 -6
- package/RadialBarChart/useRadialBarChartProps.d.ts +6 -6
- package/RadialBarChart/useRadialBarPlotData.d.mts +1 -1
- package/RadialBarChart/useRadialBarPlotData.d.ts +1 -1
- package/RadialBarChart/useRadialBarPlotData.js +4 -1
- package/RadialBarChart/useRadialBarPlotData.mjs +3 -1
- package/RadialLineChart/RadialArea.d.mts +1 -1
- package/RadialLineChart/RadialArea.d.ts +1 -1
- package/RadialLineChart/RadialAreaPlot.d.mts +6 -2
- package/RadialLineChart/RadialAreaPlot.d.ts +6 -2
- package/RadialLineChart/RadialAreaPlot.js +10 -1
- package/RadialLineChart/RadialAreaPlot.mjs +11 -2
- package/RadialLineChart/RadialLine.d.mts +2 -2
- package/RadialLineChart/RadialLine.d.ts +2 -2
- package/RadialLineChart/RadialLineChart.d.mts +10 -10
- package/RadialLineChart/RadialLineChart.d.ts +10 -10
- package/RadialLineChart/RadialLineChart.js +1 -1
- package/RadialLineChart/RadialLineChart.mjs +1 -1
- package/RadialLineChart/RadialLineChart.plugins.d.mts +2 -2
- package/RadialLineChart/RadialLineChart.plugins.d.ts +2 -2
- package/RadialLineChart/RadialLineHighlightElement.d.mts +4 -1
- package/RadialLineChart/RadialLineHighlightElement.d.ts +4 -1
- package/RadialLineChart/RadialLineHighlightElement.js +10 -1
- package/RadialLineChart/RadialLineHighlightElement.mjs +9 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +5 -2
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +5 -2
- package/RadialLineChart/RadialLineHighlightPlot.js +18 -1
- package/RadialLineChart/RadialLineHighlightPlot.mjs +17 -0
- package/RadialLineChart/RadialLinePlot.d.mts +6 -2
- package/RadialLineChart/RadialLinePlot.d.ts +6 -2
- package/RadialLineChart/RadialLinePlot.js +10 -1
- package/RadialLineChart/RadialLinePlot.mjs +11 -2
- package/RadialLineChart/RadialMarkPlot.d.mts +6 -2
- package/RadialLineChart/RadialMarkPlot.d.ts +6 -2
- package/RadialLineChart/RadialMarkPlot.js +10 -1
- package/RadialLineChart/RadialMarkPlot.mjs +11 -2
- package/RadialLineChart/seriesConfig/descriptionGetter.d.mts +1 -1
- package/RadialLineChart/seriesConfig/descriptionGetter.d.ts +1 -1
- package/RadialLineChart/seriesConfig/extremums.d.mts +1 -1
- package/RadialLineChart/seriesConfig/extremums.d.ts +1 -1
- package/RadialLineChart/seriesConfig/getColor.d.mts +1 -1
- package/RadialLineChart/seriesConfig/getColor.d.ts +1 -1
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.mts +1 -1
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.ts +1 -1
- package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +1 -2
- package/RadialLineChart/seriesConfig/index.d.mts +1 -1
- package/RadialLineChart/seriesConfig/index.d.ts +1 -1
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
- package/RadialLineChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
- package/RadialLineChart/seriesConfig/legend.d.mts +1 -1
- package/RadialLineChart/seriesConfig/legend.d.ts +1 -1
- package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +1 -1
- package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/RadialLineChart/seriesConfig/tooltip.d.mts +1 -1
- package/RadialLineChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadialLineChart/useRadialLineChartProps.d.mts +7 -7
- package/RadialLineChart/useRadialLineChartProps.d.ts +7 -7
- package/RadialLineChart/useRadialLinePlotData.d.mts +1 -1
- package/RadialLineChart/useRadialLinePlotData.d.ts +1 -1
- package/ScatterChartPremium/ScatterChartPremium.d.mts +6 -6
- package/ScatterChartPremium/ScatterChartPremium.d.ts +6 -6
- package/ScatterChartPremium/ScatterChartPremium.js +5 -3
- package/ScatterChartPremium/ScatterChartPremium.mjs +5 -3
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +19 -3
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +19 -3
- package/ScatterChartPremium/ScatterPlotPremium.js +34 -1
- package/ScatterChartPremium/ScatterPlotPremium.mjs +36 -2
- package/ScatterChartPremium/index.d.mts +1 -1
- package/ScatterChartPremium/index.d.ts +1 -1
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +1 -1
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +1 -1
- package/context/ChartPremiumApi.d.mts +4 -1
- package/context/ChartPremiumApi.d.ts +4 -1
- package/context/useChartPremiumApiContext.d.mts +1 -1
- package/context/useChartPremiumApiContext.d.ts +1 -1
- package/hooks/animation/useAnimateRangeBar.d.mts +1 -1
- package/hooks/animation/useAnimateRangeBar.d.ts +1 -1
- package/hooks/useChartPremiumApiRef.d.mts +4 -4
- package/hooks/useChartPremiumApiRef.d.ts +4 -4
- package/hooks/useGeoData.d.mts +1 -1
- package/hooks/useGeoData.d.ts +1 -1
- package/hooks/useGeoData.js +1 -1
- package/hooks/useGeoData.mjs +2 -3
- package/hooks/useGeoFeatureIndexesByName.mjs +0 -1
- package/hooks/useGeoPath.d.mts +1 -1
- package/hooks/useGeoPath.d.ts +1 -1
- package/hooks/useGeoPath.mjs +0 -1
- package/hooks/useMapShapeSeries.d.mts +2 -2
- package/hooks/useMapShapeSeries.d.ts +2 -2
- package/hooks/useOHLCSeries.d.mts +2 -2
- package/hooks/useOHLCSeries.d.ts +2 -2
- package/hooks/useRadialLineSeries.d.mts +2 -2
- package/hooks/useRadialLineSeries.d.ts +2 -2
- package/hooks/useRangeBarSeries.d.mts +2 -2
- package/hooks/useRangeBarSeries.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +2 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +2 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.js +32 -3
- package/internals/plugins/useGeoProjection/useGeoProjection.mjs +32 -3
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +12 -34
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +12 -34
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +8 -129
- package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +8 -128
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +2 -55
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +2 -55
- package/models/seriesType/ohlc.d.mts +2 -2
- package/models/seriesType/ohlc.d.ts +2 -2
- package/models/seriesType/rangeBar.d.mts +2 -2
- package/models/seriesType/rangeBar.d.ts +2 -2
- package/moduleAugmentation/rangeBarOnClick.d.mts +1 -1
- package/moduleAugmentation/rangeBarOnClick.d.ts +1 -1
- package/package.json +9 -6
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _d3Geo = require("@mui/x-charts-vendor/d3-geo");
|
|
8
|
+
const tooltipItemPositionGetter = params => {
|
|
9
|
+
const {
|
|
10
|
+
series,
|
|
11
|
+
identifier,
|
|
12
|
+
axesConfig,
|
|
13
|
+
placement
|
|
14
|
+
} = params;
|
|
15
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const itemSeries = series.mapShape?.series[identifier.seriesId];
|
|
19
|
+
if (itemSeries == null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
if (axesConfig.geo === undefined) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const {
|
|
26
|
+
projection,
|
|
27
|
+
geoData,
|
|
28
|
+
featureIndexesByName
|
|
29
|
+
} = axesConfig.geo;
|
|
30
|
+
if (projection == null || geoData == null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
|
|
34
|
+
if (featureIndex === undefined) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const feature = geoData.features[featureIndex];
|
|
38
|
+
const path = (0, _d3Geo.geoPath)(projection);
|
|
39
|
+
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
40
|
+
switch (placement) {
|
|
41
|
+
case 'right':
|
|
42
|
+
return {
|
|
43
|
+
x: x1,
|
|
44
|
+
y: (y0 + y1) / 2
|
|
45
|
+
};
|
|
46
|
+
case 'bottom':
|
|
47
|
+
return {
|
|
48
|
+
x: (x0 + x1) / 2,
|
|
49
|
+
y: y1
|
|
50
|
+
};
|
|
51
|
+
case 'left':
|
|
52
|
+
return {
|
|
53
|
+
x: x0,
|
|
54
|
+
y: (y0 + y1) / 2
|
|
55
|
+
};
|
|
56
|
+
case 'top':
|
|
57
|
+
default:
|
|
58
|
+
return {
|
|
59
|
+
x: (x0 + x1) / 2,
|
|
60
|
+
y: y0
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var _default = exports.default = tooltipItemPositionGetter;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { geoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
2
|
+
const tooltipItemPositionGetter = params => {
|
|
3
|
+
const {
|
|
4
|
+
series,
|
|
5
|
+
identifier,
|
|
6
|
+
axesConfig,
|
|
7
|
+
placement
|
|
8
|
+
} = params;
|
|
9
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const itemSeries = series.mapShape?.series[identifier.seriesId];
|
|
13
|
+
if (itemSeries == null) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
if (axesConfig.geo === undefined) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const {
|
|
20
|
+
projection,
|
|
21
|
+
geoData,
|
|
22
|
+
featureIndexesByName
|
|
23
|
+
} = axesConfig.geo;
|
|
24
|
+
if (projection == null || geoData == null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
|
|
28
|
+
if (featureIndex === undefined) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const feature = geoData.features[featureIndex];
|
|
32
|
+
const path = geoPath(projection);
|
|
33
|
+
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
34
|
+
switch (placement) {
|
|
35
|
+
case 'right':
|
|
36
|
+
return {
|
|
37
|
+
x: x1,
|
|
38
|
+
y: (y0 + y1) / 2
|
|
39
|
+
};
|
|
40
|
+
case 'bottom':
|
|
41
|
+
return {
|
|
42
|
+
x: (x0 + x1) / 2,
|
|
43
|
+
y: y1
|
|
44
|
+
};
|
|
45
|
+
case 'left':
|
|
46
|
+
return {
|
|
47
|
+
x: x0,
|
|
48
|
+
y: (y0 + y1) / 2
|
|
49
|
+
};
|
|
50
|
+
case 'top':
|
|
51
|
+
default:
|
|
52
|
+
return {
|
|
53
|
+
x: (x0 + x1) / 2,
|
|
54
|
+
y: y0
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export default tooltipItemPositionGetter;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import type { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
+
import type { ChartsSlots, ChartsSlotProps } from '@mui/x-charts/internals';
|
|
4
|
+
import type { ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
|
|
5
|
+
import type { ChartsLegendSlots, ChartsLegendSlotProps } from "../ChartsLegend/index.mjs";
|
|
6
|
+
import type { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/index.mjs";
|
|
7
|
+
import type { ChartsOverlayProps, ChartsOverlaySlots, ChartsOverlaySlotProps } from "../ChartsOverlay/index.mjs";
|
|
8
|
+
import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/index.mjs";
|
|
9
|
+
import type { ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.mjs";
|
|
10
10
|
import type { RadialBarSeriesType } from "../models/seriesType/radialBar.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.mjs";
|
|
12
|
+
import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.mjs";
|
|
13
13
|
export type RadialBarSeries = MakeOptional<RadialBarSeriesType, 'type'>;
|
|
14
14
|
export interface RadialBarChartSlots extends ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
15
15
|
export interface RadialBarChartSlotProps extends ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import type { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
+
import type { ChartsSlots, ChartsSlotProps } from '@mui/x-charts/internals';
|
|
4
|
+
import type { ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
|
|
5
|
+
import type { ChartsLegendSlots, ChartsLegendSlotProps } from "../ChartsLegend/index.js";
|
|
6
|
+
import type { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/index.js";
|
|
7
|
+
import type { ChartsOverlayProps, ChartsOverlaySlots, ChartsOverlaySlotProps } from "../ChartsOverlay/index.js";
|
|
8
|
+
import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/index.js";
|
|
9
|
+
import type { ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.js";
|
|
10
10
|
import type { RadialBarSeriesType } from "../models/seriesType/radialBar.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.js";
|
|
12
|
+
import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.js";
|
|
13
13
|
export type RadialBarSeries = MakeOptional<RadialBarSeriesType, 'type'>;
|
|
14
14
|
export interface RadialBarChartSlots extends ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
15
15
|
export interface RadialBarChartSlotProps extends ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
@@ -75,7 +75,7 @@ const RadialBarChart = exports.RadialBarChart = /*#__PURE__*/React.forwardRef(fu
|
|
|
75
75
|
}));
|
|
76
76
|
});
|
|
77
77
|
if (process.env.NODE_ENV !== "production") RadialBarChart.displayName = "RadialBarChart";
|
|
78
|
-
process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
|
|
78
|
+
process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes /* remove-proptypes */ = {
|
|
79
79
|
// ----------------------------- Warning --------------------------------
|
|
80
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -68,7 +68,7 @@ const RadialBarChart = /*#__PURE__*/React.forwardRef(function RadialBarChart(inP
|
|
|
68
68
|
}));
|
|
69
69
|
});
|
|
70
70
|
if (process.env.NODE_ENV !== "production") RadialBarChart.displayName = "RadialBarChart";
|
|
71
|
-
process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
|
|
71
|
+
process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes /* remove-proptypes */ = {
|
|
72
72
|
// ----------------------------- Warning --------------------------------
|
|
73
73
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
74
74
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { UseChartZAxisSignature, UseChartPolarAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature } from "../plugins/index.mjs";
|
|
3
3
|
export type RadialBarChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialBar'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialBar'>, UseChartHighlightSignature<'radialBar'>, UseChartVisibilityManagerSignature<'radialBar'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
|
|
4
4
|
export declare const RADIAL_BAR_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialBarChartPluginSignatures>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { UseChartZAxisSignature, UseChartPolarAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartVisibilityManagerSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature } from "../plugins/index.js";
|
|
3
3
|
export type RadialBarChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialBar'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialBar'>, UseChartHighlightSignature<'radialBar'>, UseChartVisibilityManagerSignature<'radialBar'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
|
|
4
4
|
export declare const RADIAL_BAR_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialBarChartPluginSignatures>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SeriesId } from '@mui/x-charts/internals';
|
|
3
|
+
import type { RadialBarClasses } from "./radialBarClasses.mjs";
|
|
4
4
|
type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
dataIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SeriesId } from '@mui/x-charts/internals';
|
|
3
|
+
import type { RadialBarClasses } from "./radialBarClasses.js";
|
|
4
4
|
type RadialBarElementProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
dataIndex: number;
|
|
@@ -73,7 +73,7 @@ function RadialBarPlot(props) {
|
|
|
73
73
|
}, seriesId))
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
|
|
76
|
+
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes /* remove-proptypes */ = {
|
|
77
77
|
// ----------------------------- Warning --------------------------------
|
|
78
78
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
79
79
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -66,7 +66,7 @@ function RadialBarPlot(props) {
|
|
|
66
66
|
}, seriesId))
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
|
|
69
|
+
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes /* remove-proptypes */ = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
72
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PolarExtremumGetter } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const rotationExtremumGetter: PolarExtremumGetter<'radialBar'>;
|
|
3
3
|
export declare const radiusExtremumGetter: PolarExtremumGetter<'radialBar'>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PolarExtremumGetter } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const rotationExtremumGetter: PolarExtremumGetter<'radialBar'>;
|
|
3
3
|
export declare const radiusExtremumGetter: PolarExtremumGetter<'radialBar'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartState, UseChartPolarAxisSignature } from '@mui/x-charts/internals';
|
|
2
2
|
import type { SeriesItemIdentifierWithType } from '@mui/x-charts/models';
|
|
3
3
|
export default function getItemAtPosition(state: ChartState<[UseChartPolarAxisSignature]>, point: {
|
|
4
4
|
x: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartState, UseChartPolarAxisSignature } from '@mui/x-charts/internals';
|
|
2
2
|
import type { SeriesItemIdentifierWithType } from '@mui/x-charts/models';
|
|
3
3
|
export default function getItemAtPosition(state: ChartState<[UseChartPolarAxisSignature]>, point: {
|
|
4
4
|
x: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const radialBarSeriesConfig: ChartSeriesTypeConfig<'radialBar'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const radialBarSeriesConfig: ChartSeriesTypeConfig<'radialBar'>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { KeyboardFocusHandler, ComposableRadialChartSeriesType } from '@mui/x-charts/internals';
|
|
2
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'radialBar', ComposableRadialChartSeriesType>;
|
|
3
3
|
export default keyboardFocusHandler;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { KeyboardFocusHandler, ComposableRadialChartSeriesType } from '@mui/x-charts/internals';
|
|
2
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'radialBar', ComposableRadialChartSeriesType>;
|
|
3
3
|
export default keyboardFocusHandler;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import type { ChartsClipPathProps } from "../ChartsClipPath/index.mjs";
|
|
3
|
+
import type { ChartsRadialGridProps } from "../ChartsRadialGrid/index.mjs";
|
|
4
|
+
import type { ChartsLegendSlotExtension } from "../ChartsLegend/index.mjs";
|
|
5
|
+
import type { ChartsOverlayProps } from "../ChartsOverlay/index.mjs";
|
|
6
|
+
import type { ChartsRadialDataProviderProps } from "../ChartsRadialDataProvider/index.mjs";
|
|
7
7
|
import type { RadialBarChartProps } from "./RadialBarChart.mjs";
|
|
8
8
|
import type { ChartsWrapperProps } from "../ChartsWrapper/index.mjs";
|
|
9
9
|
import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.mjs";
|
|
11
11
|
/**
|
|
12
12
|
* A helper function that extracts RadialBarChartProps from the input props
|
|
13
13
|
* and returns an object with props for the children components of RadialBarChart.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import type { ChartsClipPathProps } from "../ChartsClipPath/index.js";
|
|
3
|
+
import type { ChartsRadialGridProps } from "../ChartsRadialGrid/index.js";
|
|
4
|
+
import type { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
5
|
+
import type { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
6
|
+
import type { ChartsRadialDataProviderProps } from "../ChartsRadialDataProvider/index.js";
|
|
7
7
|
import type { RadialBarChartProps } from "./RadialBarChart.js";
|
|
8
8
|
import type { ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
9
9
|
import type { ChartsRadialAxisHighlightProps } from "../ChartsRadialAxisHighlight/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import type { RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.js";
|
|
11
11
|
/**
|
|
12
12
|
* A helper function that extracts RadialBarChartProps from the input props
|
|
13
13
|
* and returns an object with props for the children components of RadialBarChart.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -8,6 +9,7 @@ exports.useRadialBarPlotData = useRadialBarPlotData;
|
|
|
8
9
|
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _hooks = require("@mui/x-charts/hooks");
|
|
10
11
|
var _internals = require("@mui/x-charts/internals");
|
|
12
|
+
var _getColor = _interopRequireDefault(require("./seriesConfig/getColor"));
|
|
11
13
|
function useRadialBarPlotData() {
|
|
12
14
|
const seriesData = (0, _internals.useAllSeriesOfType)('radialBar') ?? {
|
|
13
15
|
series: {},
|
|
@@ -45,6 +47,7 @@ function processRadialBarDataForPlot(stackingGroups, series, rotationAxes, radiu
|
|
|
45
47
|
const valueScale = valueAxisConfig.scale;
|
|
46
48
|
const rotationOrigin = rotationAxisConfig.scale(0) ?? 0;
|
|
47
49
|
const radiusOrigin = radiusAxisConfig.scale(0) ?? 0;
|
|
50
|
+
const colorGetter = (0, _getColor.default)(seriesItem, rotationAxisConfig, radiusAxisConfig);
|
|
48
51
|
const {
|
|
49
52
|
barWidth: bandSlice,
|
|
50
53
|
offset
|
|
@@ -71,7 +74,7 @@ function processRadialBarDataForPlot(stackingGroups, series, rotationAxes, radiu
|
|
|
71
74
|
seriesId,
|
|
72
75
|
dataIndex,
|
|
73
76
|
hidden: seriesItem.hidden,
|
|
74
|
-
color:
|
|
77
|
+
color: colorGetter(dataIndex),
|
|
75
78
|
value: seriesValue,
|
|
76
79
|
startAngle: verticalLayout ? baseStart : valueStart,
|
|
77
80
|
endAngle: verticalLayout ? baseEnd : valueEnd,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useRadiusAxes, useRotationAxes } from '@mui/x-charts/hooks';
|
|
3
3
|
import { findMinMax, getBandSize, useAllSeriesOfType } from '@mui/x-charts/internals';
|
|
4
|
+
import getColor from "./seriesConfig/getColor.mjs";
|
|
4
5
|
export function useRadialBarPlotData() {
|
|
5
6
|
const seriesData = useAllSeriesOfType('radialBar') ?? {
|
|
6
7
|
series: {},
|
|
@@ -38,6 +39,7 @@ function processRadialBarDataForPlot(stackingGroups, series, rotationAxes, radiu
|
|
|
38
39
|
const valueScale = valueAxisConfig.scale;
|
|
39
40
|
const rotationOrigin = rotationAxisConfig.scale(0) ?? 0;
|
|
40
41
|
const radiusOrigin = radiusAxisConfig.scale(0) ?? 0;
|
|
42
|
+
const colorGetter = getColor(seriesItem, rotationAxisConfig, radiusAxisConfig);
|
|
41
43
|
const {
|
|
42
44
|
barWidth: bandSlice,
|
|
43
45
|
offset
|
|
@@ -64,7 +66,7 @@ function processRadialBarDataForPlot(stackingGroups, series, rotationAxes, radiu
|
|
|
64
66
|
seriesId,
|
|
65
67
|
dataIndex,
|
|
66
68
|
hidden: seriesItem.hidden,
|
|
67
|
-
color:
|
|
69
|
+
color: colorGetter(dataIndex),
|
|
68
70
|
value: seriesValue,
|
|
69
71
|
startAngle: verticalLayout ? baseStart : valueStart,
|
|
70
72
|
endAngle: verticalLayout ? baseEnd : valueEnd,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RadialLineClasses } from "./radialLineClasses.mjs";
|
|
2
2
|
export interface RadialAreaPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialAreaPlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialAreaPlot };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RadialLineClasses } from "./radialLineClasses.js";
|
|
2
2
|
export interface RadialAreaPlotProps {
|
|
3
3
|
classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace RadialAreaPlot {
|
|
7
|
+
var propTypes: any;
|
|
8
|
+
}
|
|
9
|
+
export { RadialAreaPlot };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.RadialAreaPlot = RadialAreaPlot;
|
|
7
8
|
var _styles = require("@mui/material/styles");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
10
|
var _internals = require("@mui/x-charts/internals");
|
|
9
11
|
var _useRadialLinePlotData = require("./useRadialLinePlotData");
|
|
10
12
|
var _radialLineClasses = require("./radialLineClasses");
|
|
@@ -50,4 +52,11 @@ function RadialAreaPlot(props) {
|
|
|
50
52
|
className: classes.area
|
|
51
53
|
}, seriesId))
|
|
52
54
|
});
|
|
53
|
-
}
|
|
55
|
+
}
|
|
56
|
+
process.env.NODE_ENV !== "production" ? RadialAreaPlot.propTypes /* remove-proptypes */ = {
|
|
57
|
+
// ----------------------------- Warning --------------------------------
|
|
58
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
60
|
+
// ----------------------------------------------------------------------
|
|
61
|
+
classes: _propTypes.default.object
|
|
62
|
+
} : void 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { styled } from '@mui/material/styles';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { selectorChartPolarCenter, useChartsContext } from '@mui/x-charts/internals';
|
|
3
4
|
import { useRadialLinePlotData } from "./useRadialLinePlotData.mjs";
|
|
4
5
|
import { useUtilityClasses } from "./radialLineClasses.mjs";
|
|
@@ -8,7 +9,7 @@ const RadialAreaPlotRoot = styled('g', {
|
|
|
8
9
|
name: 'MuiRadialAreaPlot',
|
|
9
10
|
slot: 'Root'
|
|
10
11
|
})();
|
|
11
|
-
|
|
12
|
+
function RadialAreaPlot(props) {
|
|
12
13
|
const {
|
|
13
14
|
classes: inClasses
|
|
14
15
|
} = props;
|
|
@@ -44,4 +45,12 @@ export function RadialAreaPlot(props) {
|
|
|
44
45
|
className: classes.area
|
|
45
46
|
}, seriesId))
|
|
46
47
|
});
|
|
47
|
-
}
|
|
48
|
+
}
|
|
49
|
+
process.env.NODE_ENV !== "production" ? RadialAreaPlot.propTypes /* remove-proptypes */ = {
|
|
50
|
+
// ----------------------------- Warning --------------------------------
|
|
51
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
52
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
53
|
+
// ----------------------------------------------------------------------
|
|
54
|
+
classes: PropTypes.object
|
|
55
|
+
} : void 0;
|
|
56
|
+
export { RadialAreaPlot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { CurveType, SeriesId } from '@mui/x-charts/models';
|
|
3
|
+
import type { RadialLinePoint } from "./useRadialLinePlotData.mjs";
|
|
4
4
|
export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
color: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { CurveType, SeriesId } from '@mui/x-charts/models';
|
|
3
|
+
import type { RadialLinePoint } from "./useRadialLinePlotData.js";
|
|
4
4
|
export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
color: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
3
|
+
import type { ChartsSlots, ChartsSlotProps } from '@mui/x-charts/internals';
|
|
4
|
+
import type { ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
|
|
5
|
+
import type { ChartsRadialAxisHighlightProps } from '@mui/x-charts/ChartsRadialAxisHighlight';
|
|
6
|
+
import type { ChartsLegendSlots, ChartsLegendSlotProps } from "../ChartsLegend/index.mjs";
|
|
7
|
+
import type { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/index.mjs";
|
|
8
|
+
import type { RadialLineChartPluginSignatures } from "./RadialLineChart.plugins.mjs";
|
|
9
|
+
import type { ChartsOverlayProps, ChartsOverlaySlots, ChartsOverlaySlotProps } from "../ChartsOverlay/index.mjs";
|
|
10
|
+
import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/index.mjs";
|
|
11
|
+
import type { RadialLineHighlightPlotSlots, RadialLineHighlightPlotSlotProps } from "./RadialLineHighlightPlot.mjs";
|
|
12
|
+
import type { ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.mjs";
|
|
13
13
|
import type { RadialLineSeriesType } from "../models/seriesType/radialLine.mjs";
|
|
14
14
|
export interface RadialLineChartSlots extends RadialLineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
15
15
|
export interface RadialLineChartSlotProps extends RadialLineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|