@mui/x-charts-premium 9.6.0 → 9.8.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.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/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/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/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 +5 -6
- package/BarChartPremium/webgl/BarWebGLProgram.d.ts +5 -6
- package/BarChartPremium/webgl/BarWebGLProgram.js +24 -65
- package/BarChartPremium/webgl/BarWebGLProgram.mjs +24 -65
- package/BarChartPremium/webgl/shaders.d.mts +1 -1
- package/BarChartPremium/webgl/shaders.d.ts +1 -1
- package/BarChartPremium/webgl/shaders.js +2 -15
- package/BarChartPremium/webgl/shaders.mjs +3 -15
- 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 +241 -2
- package/CandlestickChart/CandlestickChart.d.mts +12 -12
- package/CandlestickChart/CandlestickChart.d.ts +12 -12
- 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/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 +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +3 -4
- 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 +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +2 -2
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +3 -3
- package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +3 -3
- 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 +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- 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/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.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/HeatmapWebGLProgram.js +12 -37
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +12 -37
- package/HeatmapPremium/webgl/shaders.d.mts +3 -3
- package/HeatmapPremium/webgl/shaders.d.ts +3 -3
- package/HeatmapPremium/webgl/shaders.js +12 -15
- package/HeatmapPremium/webgl/shaders.mjs +13 -15
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.js +3 -8
- package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +3 -8
- package/Map/FocusedMapShape.js +5 -1
- package/Map/FocusedMapShape.mjs +5 -1
- package/Map/MapImagePlot.d.mts +39 -0
- package/Map/MapImagePlot.d.ts +39 -0
- package/Map/MapImagePlot.js +138 -0
- package/Map/MapImagePlot.mjs +132 -0
- package/Map/MapShape.d.mts +2 -2
- package/Map/MapShape.d.ts +2 -2
- package/Map/MapShape.js +6 -6
- package/Map/MapShape.mjs +6 -6
- package/Map/MapShapePlot.d.mts +8 -0
- package/Map/MapShapePlot.d.ts +8 -0
- package/Map/MapShapePlot.js +17 -5
- package/Map/MapShapePlot.mjs +17 -5
- package/Map/index.d.mts +2 -1
- package/Map/index.d.ts +2 -1
- package/Map/index.js +11 -0
- package/Map/index.mjs +1 -0
- package/Map/reprojectEquirectangularImage.d.mts +60 -0
- package/Map/reprojectEquirectangularImage.d.ts +60 -0
- package/Map/reprojectEquirectangularImage.js +116 -0
- package/Map/reprojectEquirectangularImage.mjs +110 -0
- package/Map/seriesConfig/descriptionGetter.d.mts +1 -1
- package/Map/seriesConfig/descriptionGetter.d.ts +1 -1
- package/Map/seriesConfig/descriptionGetter.js +5 -1
- package/Map/seriesConfig/descriptionGetter.mjs +5 -1
- package/Map/seriesConfig/getColor.js +18 -6
- package/Map/seriesConfig/getColor.mjs +18 -6
- package/Map/seriesConfig/highlight.d.mts +10 -0
- package/Map/seriesConfig/highlight.d.ts +10 -0
- package/Map/seriesConfig/highlight.js +52 -0
- package/Map/seriesConfig/highlight.mjs +45 -0
- package/Map/seriesConfig/identifierCleaner.d.mts +3 -0
- package/Map/seriesConfig/identifierCleaner.d.ts +3 -0
- package/Map/seriesConfig/identifierCleaner.js +14 -0
- package/Map/seriesConfig/identifierCleaner.mjs +8 -0
- package/Map/seriesConfig/identifierSerializer.d.mts +3 -0
- package/Map/seriesConfig/identifierSerializer.d.ts +3 -0
- package/Map/seriesConfig/identifierSerializer.js +12 -0
- package/Map/seriesConfig/identifierSerializer.mjs +6 -0
- package/Map/seriesConfig/index.d.mts +1 -1
- package/Map/seriesConfig/index.d.ts +1 -1
- package/Map/seriesConfig/index.js +8 -6
- package/Map/seriesConfig/index.mjs +7 -5
- package/Map/seriesConfig/keyboardFocusHandler.d.mts +1 -7
- package/Map/seriesConfig/keyboardFocusHandler.d.ts +1 -7
- package/Map/seriesConfig/keyboardFocusHandler.js +40 -7
- package/Map/seriesConfig/keyboardFocusHandler.mjs +41 -8
- 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/seriesProcessor.js +11 -2
- package/Map/seriesConfig/seriesProcessor.mjs +11 -2
- package/Map/seriesConfig/tooltip.d.mts +1 -1
- package/Map/seriesConfig/tooltip.d.ts +1 -1
- package/Map/seriesConfig/tooltip.js +8 -4
- package/Map/seriesConfig/tooltip.mjs +8 -4
- package/Map/seriesConfig/tooltipPosition.d.mts +8 -3
- package/Map/seriesConfig/tooltipPosition.d.ts +8 -3
- package/Map/seriesConfig/tooltipPosition.js +21 -27
- package/Map/seriesConfig/tooltipPosition.mjs +22 -27
- package/RadialBarChart/RadialBarChart.d.mts +10 -10
- package/RadialBarChart/RadialBarChart.d.ts +10 -10
- 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/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 +1 -1
- package/RadialLineChart/RadialAreaPlot.d.ts +1 -1
- 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.plugins.d.mts +2 -2
- package/RadialLineChart/RadialLineChart.plugins.d.ts +2 -2
- package/RadialLineChart/RadialLineHighlightElement.d.mts +1 -1
- package/RadialLineChart/RadialLineHighlightElement.d.ts +1 -1
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +2 -2
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +2 -2
- package/RadialLineChart/RadialLinePlot.d.mts +1 -1
- package/RadialLineChart/RadialLinePlot.d.ts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.mts +1 -1
- package/RadialLineChart/RadialMarkPlot.d.ts +1 -1
- 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.plugins.d.mts +1 -1
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +1 -1
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +1 -1
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +1 -3
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +1 -3
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +23 -81
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +23 -81
- 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.mjs +0 -1
- 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/createGetVisibleCoordinate.d.mts +14 -0
- package/internals/createGetVisibleCoordinate.d.ts +14 -0
- package/internals/createGetVisibleCoordinate.js +66 -0
- package/internals/createGetVisibleCoordinate.mjs +60 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +1 -1
- package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +1 -1
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +1 -1
- package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +1 -1
- package/models/seriesType/mapShape.d.mts +2 -1
- package/models/seriesType/mapShape.d.ts +2 -1
- 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 +6 -6
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
- package/utils/webgl/glsl.d.mts +15 -0
- package/utils/webgl/glsl.d.ts +15 -0
- package/utils/webgl/glsl.js +34 -0
- package/utils/webgl/glsl.mjs +28 -0
- package/utils/webgl/instancedAttribute.d.mts +28 -0
- package/utils/webgl/instancedAttribute.d.ts +28 -0
- package/utils/webgl/instancedAttribute.js +57 -0
- package/utils/webgl/instancedAttribute.mjs +50 -0
- package/utils/webgl/utils.d.mts +21 -2
- package/utils/webgl/utils.d.ts +21 -2
- package/utils/webgl/utils.js +44 -8
- package/utils/webgl/utils.mjs +41 -7
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { identifierSerializerSeriesIdDataIndex, identifierCleanerSeriesIdDataIndex, createIsHighlighted, createIsFaded } from '@mui/x-charts/internals';
|
|
2
1
|
import seriesProcessor from "./seriesProcessor.mjs";
|
|
3
2
|
import getColor from "./getColor.mjs";
|
|
4
3
|
import legendGetter from "./legend.mjs";
|
|
@@ -6,17 +5,20 @@ import tooltipGetter from "./tooltip.mjs";
|
|
|
6
5
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
|
|
7
6
|
import descriptionGetter from "./descriptionGetter.mjs";
|
|
8
7
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
|
-
import
|
|
8
|
+
import selectorTooltipItemPosition from "./tooltipPosition.mjs";
|
|
9
|
+
import identifierSerializer from "./identifierSerializer.mjs";
|
|
10
|
+
import identifierCleaner from "./identifierCleaner.mjs";
|
|
11
|
+
import { createIsHighlighted, createIsFaded } from "./highlight.mjs";
|
|
10
12
|
export const mapShapeSeriesConfig = {
|
|
11
13
|
seriesProcessor,
|
|
12
14
|
colorProcessor: getColor,
|
|
13
15
|
legendGetter,
|
|
14
16
|
tooltipGetter,
|
|
15
|
-
|
|
17
|
+
selectorTooltipItemPosition,
|
|
16
18
|
getSeriesWithDefaultValues,
|
|
17
19
|
keyboardFocusHandler,
|
|
18
|
-
identifierSerializer
|
|
19
|
-
identifierCleaner
|
|
20
|
+
identifierSerializer,
|
|
21
|
+
identifierCleaner,
|
|
20
22
|
descriptionGetter,
|
|
21
23
|
isHighlightedCreator: createIsHighlighted,
|
|
22
24
|
isFadedCreator: createIsFaded
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* Move the focus across the shapes of the map series.
|
|
4
|
-
*
|
|
5
|
-
* `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
|
|
6
|
-
* while `ArrowUp`/`ArrowDown` move between series.
|
|
7
|
-
*/
|
|
1
|
+
import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
8
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'mapShape', 'mapShape'>;
|
|
9
3
|
export default keyboardFocusHandler;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* Move the focus across the shapes of the map series.
|
|
4
|
-
*
|
|
5
|
-
* `ArrowRight`/`ArrowLeft` move to the next/previous shape of the focused series,
|
|
6
|
-
* while `ArrowUp`/`ArrowDown` move between series.
|
|
7
|
-
*/
|
|
1
|
+
import type { KeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
8
2
|
declare const keyboardFocusHandler: KeyboardFocusHandler<'mapShape', 'mapShape'>;
|
|
9
3
|
export default keyboardFocusHandler;
|
|
@@ -5,15 +5,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
/**
|
|
9
|
+
* Keyboard navigation for the map series.
|
|
10
|
+
*
|
|
11
|
+
* The `mapShape` identifier is keyed by the feature `name` (a string), but navigation itself
|
|
12
|
+
* is position-based, so the shared `createCommonKeyboardFocusHandler` does all the work
|
|
13
|
+
* (stepping, hidden-skipping, boundaries, moving between series). This handler only adapts the
|
|
14
|
+
* boundaries: it translates the focused `name` to a `dataIndex` on the way in (through the
|
|
15
|
+
* series `lookupByName` map), and the resulting `dataIndex` back to a `name` on the way out.
|
|
16
|
+
*
|
|
17
|
+
* `ArrowRight`/`ArrowLeft` step within the focused series, `ArrowUp`/`ArrowDown` move between series.
|
|
18
|
+
*/
|
|
19
|
+
|
|
8
20
|
const mapShapeSeriesTypes = new Set(['mapShape']);
|
|
9
21
|
const allowCycles = false;
|
|
10
22
|
const useCurrentSeriesMaxLength = true;
|
|
23
|
+
const commonFocusHandler = (0, _internals.createCommonKeyboardFocusHandler)(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
24
|
+
const keyboardFocusHandler = event => {
|
|
25
|
+
const updateFocusedItem = commonFocusHandler(event);
|
|
26
|
+
if (!updateFocusedItem) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return (currentItem, state) => {
|
|
30
|
+
const mapSeries = (0, _internals.selectorChartSeriesProcessed)(state).mapShape;
|
|
11
31
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
32
|
+
// name -> dataIndex
|
|
33
|
+
const current = currentItem ? {
|
|
34
|
+
type: 'mapShape',
|
|
35
|
+
seriesId: currentItem.seriesId,
|
|
36
|
+
dataIndex: mapSeries?.series[currentItem.seriesId]?.lookupByName.get(currentItem.name) ?? -1
|
|
37
|
+
} : null;
|
|
38
|
+
const next = updateFocusedItem(current, state);
|
|
39
|
+
if (!next) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// dataIndex -> name
|
|
44
|
+
const name = mapSeries?.series[next.seriesId]?.data[next.dataIndex]?.name;
|
|
45
|
+
return name === undefined ? null : {
|
|
46
|
+
type: 'mapShape',
|
|
47
|
+
seriesId: next.seriesId,
|
|
48
|
+
name
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
19
52
|
var _default = exports.default = keyboardFocusHandler;
|
|
@@ -1,13 +1,46 @@
|
|
|
1
|
-
import { createCommonKeyboardFocusHandler } from '@mui/x-charts/internals';
|
|
1
|
+
import { createCommonKeyboardFocusHandler, selectorChartSeriesProcessed } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Keyboard navigation for the map series.
|
|
4
|
+
*
|
|
5
|
+
* The `mapShape` identifier is keyed by the feature `name` (a string), but navigation itself
|
|
6
|
+
* is position-based, so the shared `createCommonKeyboardFocusHandler` does all the work
|
|
7
|
+
* (stepping, hidden-skipping, boundaries, moving between series). This handler only adapts the
|
|
8
|
+
* boundaries: it translates the focused `name` to a `dataIndex` on the way in (through the
|
|
9
|
+
* series `lookupByName` map), and the resulting `dataIndex` back to a `name` on the way out.
|
|
10
|
+
*
|
|
11
|
+
* `ArrowRight`/`ArrowLeft` step within the focused series, `ArrowUp`/`ArrowDown` move between series.
|
|
12
|
+
*/
|
|
13
|
+
|
|
2
14
|
const mapShapeSeriesTypes = new Set(['mapShape']);
|
|
3
15
|
const allowCycles = false;
|
|
4
16
|
const useCurrentSeriesMaxLength = true;
|
|
17
|
+
const commonFocusHandler = createCommonKeyboardFocusHandler(mapShapeSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
18
|
+
const keyboardFocusHandler = event => {
|
|
19
|
+
const updateFocusedItem = commonFocusHandler(event);
|
|
20
|
+
if (!updateFocusedItem) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return (currentItem, state) => {
|
|
24
|
+
const mapSeries = selectorChartSeriesProcessed(state).mapShape;
|
|
5
25
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
26
|
+
// name -> dataIndex
|
|
27
|
+
const current = currentItem ? {
|
|
28
|
+
type: 'mapShape',
|
|
29
|
+
seriesId: currentItem.seriesId,
|
|
30
|
+
dataIndex: mapSeries?.series[currentItem.seriesId]?.lookupByName.get(currentItem.name) ?? -1
|
|
31
|
+
} : null;
|
|
32
|
+
const next = updateFocusedItem(current, state);
|
|
33
|
+
if (!next) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// dataIndex -> name
|
|
38
|
+
const name = mapSeries?.series[next.seriesId]?.data[next.dataIndex]?.name;
|
|
39
|
+
return name === undefined ? null : {
|
|
40
|
+
type: 'mapShape',
|
|
41
|
+
seriesId: next.seriesId,
|
|
42
|
+
name
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
13
46
|
export default keyboardFocusHandler;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
9
10
|
var _internals = require("@mui/x-charts/internals");
|
|
10
11
|
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
11
12
|
const seriesProcessor = ({
|
|
@@ -41,16 +42,24 @@ const seriesProcessor = ({
|
|
|
41
42
|
} else {
|
|
42
43
|
data = input.data ?? [];
|
|
43
44
|
}
|
|
45
|
+
const lookupByName = new Map();
|
|
46
|
+
data.forEach((item, index) => {
|
|
47
|
+
if (lookupByName.has(item.name)) {
|
|
48
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Series "${seriesId}" has a duplicated name "${item.name}".\n` + `Map shapes are identified by their name, so duplicates cannot be told apart for coloring, tooltips, and highlighting.\n` + `Ensure each data entry has a unique name.` : (0, _formatErrorMessage2.default)(294, seriesId, item.name));
|
|
49
|
+
}
|
|
50
|
+
lookupByName.set(item.name, index);
|
|
51
|
+
});
|
|
44
52
|
defaultizedSeries[seriesId] = (0, _extends2.default)({
|
|
45
53
|
labelMarkType: 'square'
|
|
46
54
|
}, input, {
|
|
47
|
-
data: data.map(
|
|
55
|
+
data: data.map(item => (0, _extends2.default)({}, item, {
|
|
48
56
|
hidden: !isItemVisible?.({
|
|
49
57
|
type: 'mapShape',
|
|
50
58
|
seriesId,
|
|
51
|
-
|
|
59
|
+
name: item.name
|
|
52
60
|
})
|
|
53
61
|
})),
|
|
62
|
+
lookupByName,
|
|
54
63
|
hidden: !isItemVisible?.({
|
|
55
64
|
type: 'mapShape',
|
|
56
65
|
seriesId
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
2
3
|
import { incompleteDatasetKeysError } from '@mui/x-charts/internals';
|
|
3
4
|
const defaultValueFormatter = v => v == null ? '' : String(v.value);
|
|
4
5
|
const seriesProcessor = ({
|
|
@@ -34,16 +35,24 @@ const seriesProcessor = ({
|
|
|
34
35
|
} else {
|
|
35
36
|
data = input.data ?? [];
|
|
36
37
|
}
|
|
38
|
+
const lookupByName = new Map();
|
|
39
|
+
data.forEach((item, index) => {
|
|
40
|
+
if (lookupByName.has(item.name)) {
|
|
41
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Series "${seriesId}" has a duplicated name "${item.name}".\n` + `Map shapes are identified by their name, so duplicates cannot be told apart for coloring, tooltips, and highlighting.\n` + `Ensure each data entry has a unique name.` : _formatErrorMessage(294, seriesId, item.name));
|
|
42
|
+
}
|
|
43
|
+
lookupByName.set(item.name, index);
|
|
44
|
+
});
|
|
37
45
|
defaultizedSeries[seriesId] = _extends({
|
|
38
46
|
labelMarkType: 'square'
|
|
39
47
|
}, input, {
|
|
40
|
-
data: data.map(
|
|
48
|
+
data: data.map(item => _extends({}, item, {
|
|
41
49
|
hidden: !isItemVisible?.({
|
|
42
50
|
type: 'mapShape',
|
|
43
51
|
seriesId,
|
|
44
|
-
|
|
52
|
+
name: item.name
|
|
45
53
|
})
|
|
46
54
|
})),
|
|
55
|
+
lookupByName,
|
|
47
56
|
hidden: !isItemVisible?.({
|
|
48
57
|
type: 'mapShape',
|
|
49
58
|
seriesId
|
|
@@ -10,20 +10,24 @@ const tooltipGetter = ({
|
|
|
10
10
|
getColor,
|
|
11
11
|
identifier
|
|
12
12
|
}) => {
|
|
13
|
-
if (!identifier || identifier.
|
|
13
|
+
if (!identifier || identifier.name === undefined) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const index = series.lookupByName.get(identifier.name);
|
|
17
|
+
if (index === undefined) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const point = series.data[index];
|
|
17
21
|
if (point == null) {
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
|
-
const color = getColor(identifier.
|
|
24
|
+
const color = getColor(identifier.name);
|
|
21
25
|
if (color === null) {
|
|
22
26
|
return null;
|
|
23
27
|
}
|
|
24
28
|
const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
|
|
25
29
|
const formattedValue = series.valueFormatter(point, {
|
|
26
|
-
dataIndex:
|
|
30
|
+
dataIndex: index
|
|
27
31
|
});
|
|
28
32
|
return {
|
|
29
33
|
identifier,
|
|
@@ -4,20 +4,24 @@ const tooltipGetter = ({
|
|
|
4
4
|
getColor,
|
|
5
5
|
identifier
|
|
6
6
|
}) => {
|
|
7
|
-
if (!identifier || identifier.
|
|
7
|
+
if (!identifier || identifier.name === undefined) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const index = series.lookupByName.get(identifier.name);
|
|
11
|
+
if (index === undefined) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
const point = series.data[index];
|
|
11
15
|
if (point == null) {
|
|
12
16
|
return null;
|
|
13
17
|
}
|
|
14
|
-
const color = getColor(identifier.
|
|
18
|
+
const color = getColor(identifier.name);
|
|
15
19
|
if (color === null) {
|
|
16
20
|
return null;
|
|
17
21
|
}
|
|
18
22
|
const label = getLabel(point.label ?? point.name, 'tooltip');
|
|
19
23
|
const formattedValue = series.valueFormatter(point, {
|
|
20
|
-
dataIndex:
|
|
24
|
+
dataIndex: index
|
|
21
25
|
});
|
|
22
26
|
return {
|
|
23
27
|
identifier,
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
4
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
5
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
6
|
+
*/
|
|
7
|
+
declare const selectorTooltipItemPosition: TooltipItemPositionSelector;
|
|
8
|
+
export default selectorTooltipItemPosition;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
4
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
5
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
6
|
+
*/
|
|
7
|
+
declare const selectorTooltipItemPosition: TooltipItemPositionSelector;
|
|
8
|
+
export default selectorTooltipItemPosition;
|
|
@@ -5,39 +5,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _d3Geo = require("@mui/x-charts-vendor/d3-geo");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
var _store = require("@mui/x-internals/store");
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
/**
|
|
11
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
12
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
13
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
14
|
+
*/
|
|
15
|
+
const selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.useGeoProjectionSelectors.selectorGeoTooltipPosition,
|
|
16
|
+
// `selectorChartsTooltipItem` is typed with the community series types, which
|
|
17
|
+
// don't include `mapShape`, so the identifier is matched structurally here.
|
|
18
|
+
(identifier, {
|
|
19
|
+
projection,
|
|
20
|
+
geoData,
|
|
21
|
+
featureIndexesByName
|
|
22
|
+
}, position) => {
|
|
23
|
+
if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
|
|
16
24
|
return null;
|
|
17
25
|
}
|
|
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
26
|
if (projection == null || geoData == null) {
|
|
31
27
|
return null;
|
|
32
28
|
}
|
|
33
|
-
const featureIndex = featureIndexesByName.get(
|
|
29
|
+
const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
|
|
34
30
|
if (featureIndex === undefined) {
|
|
35
31
|
return null;
|
|
36
32
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
40
|
-
switch (placement) {
|
|
33
|
+
const [[x0, y0], [x1, y1]] = (0, _d3Geo.geoPath)(projection).bounds(geoData.features[featureIndex]);
|
|
34
|
+
switch (position) {
|
|
41
35
|
case 'right':
|
|
42
36
|
return {
|
|
43
37
|
x: x1,
|
|
@@ -60,5 +54,5 @@ const tooltipItemPositionGetter = params => {
|
|
|
60
54
|
y: y0
|
|
61
55
|
};
|
|
62
56
|
}
|
|
63
|
-
};
|
|
64
|
-
var _default = exports.default =
|
|
57
|
+
});
|
|
58
|
+
var _default = exports.default = selectorTooltipItemPosition;
|
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import { geoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
3
|
+
import { selectorChartsTooltipItem, useGeoProjectionSelectors } from '@mui/x-charts/internals';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Positions a map shape tooltip from the geo projection. It lives in the map
|
|
7
|
+
* series config (rather than the core tooltip plugin) so the geo projection is a
|
|
8
|
+
* tracked dependency and d3-geo is only bundled with map charts.
|
|
9
|
+
*/
|
|
10
|
+
const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, useGeoProjectionSelectors.selectorGeoTooltipPosition,
|
|
11
|
+
// `selectorChartsTooltipItem` is typed with the community series types, which
|
|
12
|
+
// don't include `mapShape`, so the identifier is matched structurally here.
|
|
13
|
+
(identifier, {
|
|
14
|
+
projection,
|
|
15
|
+
geoData,
|
|
16
|
+
featureIndexesByName
|
|
17
|
+
}, position) => {
|
|
18
|
+
if (identifier?.type !== 'mapShape' || identifier.name === undefined) {
|
|
10
19
|
return null;
|
|
11
20
|
}
|
|
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
21
|
if (projection == null || geoData == null) {
|
|
25
22
|
return null;
|
|
26
23
|
}
|
|
27
|
-
const featureIndex = featureIndexesByName.get(
|
|
24
|
+
const featureIndex = featureIndexesByName.get(identifier.name)?.[0];
|
|
28
25
|
if (featureIndex === undefined) {
|
|
29
26
|
return null;
|
|
30
27
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const [[x0, y0], [x1, y1]] = path.bounds(feature);
|
|
34
|
-
switch (placement) {
|
|
28
|
+
const [[x0, y0], [x1, y1]] = geoPath(projection).bounds(geoData.features[featureIndex]);
|
|
29
|
+
switch (position) {
|
|
35
30
|
case 'right':
|
|
36
31
|
return {
|
|
37
32
|
x: x1,
|
|
@@ -54,5 +49,5 @@ const tooltipItemPositionGetter = params => {
|
|
|
54
49
|
y: y0
|
|
55
50
|
};
|
|
56
51
|
}
|
|
57
|
-
};
|
|
58
|
-
export default
|
|
52
|
+
});
|
|
53
|
+
export default selectorTooltipItemPosition;
|
|
@@ -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> {}
|
|
@@ -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;
|
|
@@ -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;
|