@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
|
@@ -70,7 +70,7 @@ const HeatmapPremium = exports.HeatmapPremium = /*#__PURE__*/React.forwardRef(fu
|
|
|
70
70
|
}));
|
|
71
71
|
});
|
|
72
72
|
if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
|
|
73
|
-
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
|
|
74
74
|
// ----------------------------- Warning --------------------------------
|
|
75
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
76
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -308,11 +308,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
|
308
308
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
309
309
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
310
310
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
311
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
311
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired,
|
|
312
|
+
unknownColor: _propTypes.default.string
|
|
312
313
|
}), _propTypes.default.shape({
|
|
313
314
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
314
315
|
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
315
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
316
|
+
type: _propTypes.default.oneOf(['piecewise']).isRequired,
|
|
317
|
+
unknownColor: _propTypes.default.string
|
|
316
318
|
}), _propTypes.default.shape({
|
|
317
319
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
318
320
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -63,7 +63,7 @@ const HeatmapPremium = /*#__PURE__*/React.forwardRef(function HeatmapPremium(inP
|
|
|
63
63
|
}));
|
|
64
64
|
});
|
|
65
65
|
if (process.env.NODE_ENV !== "production") HeatmapPremium.displayName = "HeatmapPremium";
|
|
66
|
-
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
66
|
+
process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes /* remove-proptypes */ = {
|
|
67
67
|
// ----------------------------- Warning --------------------------------
|
|
68
68
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
69
69
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -301,11 +301,13 @@ process.env.NODE_ENV !== "production" ? HeatmapPremium.propTypes = {
|
|
|
301
301
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
302
302
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
303
303
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
304
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
304
|
+
type: PropTypes.oneOf(['continuous']).isRequired,
|
|
305
|
+
unknownColor: PropTypes.string
|
|
305
306
|
}), PropTypes.shape({
|
|
306
307
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
307
308
|
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
308
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
309
|
+
type: PropTypes.oneOf(['piecewise']).isRequired,
|
|
310
|
+
unknownColor: PropTypes.string
|
|
309
311
|
}), PropTypes.shape({
|
|
310
312
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
311
313
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins, UseChartBrushSignature, UseChartKeyboardNavigationSignature, UseChartItemClickSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature, UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
export type HeatmapPremiumPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'heatmap'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'heatmap'>, UseChartHighlightSignature<'heatmap'>, UseChartProExportSignature, UseChartBrushSignature, UseChartProZoomSignature, UseChartItemClickSignature<'heatmap'>, UseChartKeyboardNavigationSignature];
|
|
4
4
|
export declare const HEATMAP_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<HeatmapPremiumPluginSignatures>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins, UseChartBrushSignature, UseChartKeyboardNavigationSignature, UseChartItemClickSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import type { UseChartProExportSignature, UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
export type HeatmapPremiumPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'heatmap'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'heatmap'>, UseChartHighlightSignature<'heatmap'>, UseChartProExportSignature, UseChartBrushSignature, UseChartProZoomSignature, UseChartItemClickSignature<'heatmap'>, UseChartKeyboardNavigationSignature];
|
|
4
4
|
export declare const HEATMAP_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<HeatmapPremiumPluginSignatures>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { HeatmapPremiumProps } from "./HeatmapPremium.mjs";
|
|
2
|
+
import type { HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.mjs";
|
|
3
3
|
export type UseHeatmapPremiumProps = HeatmapPremiumProps;
|
|
4
4
|
export declare function useHeatmapPremiumProps(props: UseHeatmapPremiumProps): {
|
|
5
5
|
heatmapPlotPremiumProps: HeatmapPlotPremiumProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { HeatmapPremiumProps } from "./HeatmapPremium.js";
|
|
2
|
+
import type { HeatmapPlotPremiumProps } from "./HeatmapPlotPremium.js";
|
|
3
3
|
export type UseHeatmapPremiumProps = HeatmapPremiumProps;
|
|
4
4
|
export declare function useHeatmapPremiumProps(props: UseHeatmapPremiumProps): {
|
|
5
5
|
heatmapPlotPremiumProps: HeatmapPlotPremiumProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ScaleBand } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
+
import type { DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
|
|
3
|
+
import type { ChartDrawingArea } from '@mui/x-charts/hooks';
|
|
4
4
|
export declare function useHeatmapPlotData(drawingArea: ChartDrawingArea, series: DefaultizedHeatmapSeriesType, xScale: ScaleBand<{
|
|
5
5
|
toString(): string;
|
|
6
6
|
}>, yScale: ScaleBand<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ScaleBand } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
+
import type { DefaultizedHeatmapSeriesType } from '@mui/x-charts-pro/models';
|
|
3
|
+
import type { ChartDrawingArea } from '@mui/x-charts/hooks';
|
|
4
4
|
export declare function useHeatmapPlotData(drawingArea: ChartDrawingArea, series: DefaultizedHeatmapSeriesType, xScale: ScaleBand<{
|
|
5
5
|
toString(): string;
|
|
6
6
|
}>, yScale: ScaleBand<{
|
package/Map/GeoDataPlot.js
CHANGED
|
@@ -41,7 +41,7 @@ function GeoDataPlot(props) {
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
44
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
|
|
45
45
|
// ----------------------------- Warning --------------------------------
|
|
46
46
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
47
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/Map/GeoDataPlot.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function GeoDataPlot(props) {
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes = {
|
|
38
|
+
process.env.NODE_ENV !== "production" ? GeoDataPlot.propTypes /* remove-proptypes */ = {
|
|
39
39
|
// ----------------------------- Warning --------------------------------
|
|
40
40
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41
41
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/Map/MapShape.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SeriesId } from '@mui/x-charts/internals';
|
|
3
3
|
export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
seriesId: SeriesId;
|
|
5
5
|
dataIndex: number;
|
|
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
7
7
|
color: string;
|
|
8
8
|
};
|
|
9
9
|
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace MapShape {
|
|
11
|
+
var propTypes: any;
|
|
12
|
+
}
|
|
10
13
|
export { MapShape };
|
package/Map/MapShape.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SeriesId } from '@mui/x-charts/internals';
|
|
3
3
|
export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
seriesId: SeriesId;
|
|
5
5
|
dataIndex: number;
|
|
@@ -7,4 +7,7 @@ export type MapShapeProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
|
7
7
|
color: string;
|
|
8
8
|
};
|
|
9
9
|
declare function MapShape(props: MapShapeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace MapShape {
|
|
11
|
+
var propTypes: any;
|
|
12
|
+
}
|
|
10
13
|
export { MapShape };
|
package/Map/MapShape.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.MapShape = MapShape;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _internals = require("@mui/x-charts/internals");
|
|
15
16
|
var _hooks = require("../hooks");
|
|
@@ -52,4 +53,12 @@ function MapShape(props) {
|
|
|
52
53
|
filter: isHighlighted ? 'brightness(120%)' : undefined,
|
|
53
54
|
opacity: isFaded ? 0.3 : 1
|
|
54
55
|
}, other, interactionProps));
|
|
55
|
-
}
|
|
56
|
+
}
|
|
57
|
+
process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
|
|
58
|
+
// ----------------------------- Warning --------------------------------
|
|
59
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
60
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
61
|
+
// ----------------------------------------------------------------------
|
|
62
|
+
dataIndex: _propTypes.default.number.isRequired,
|
|
63
|
+
seriesId: _propTypes.default.string.isRequired
|
|
64
|
+
} : void 0;
|
package/Map/MapShape.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["seriesId", "dataIndex", "d", "color", "onClick"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import { styled } from '@mui/material/styles';
|
|
8
9
|
import { useInteractionItemProps } from '@mui/x-charts/internals';
|
|
9
10
|
import { useItemHighlightState } from "../hooks/index.mjs";
|
|
@@ -46,4 +47,12 @@ function MapShape(props) {
|
|
|
46
47
|
opacity: isFaded ? 0.3 : 1
|
|
47
48
|
}, other, interactionProps));
|
|
48
49
|
}
|
|
50
|
+
process.env.NODE_ENV !== "production" ? MapShape.propTypes /* remove-proptypes */ = {
|
|
51
|
+
// ----------------------------- Warning --------------------------------
|
|
52
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
53
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
54
|
+
// ----------------------------------------------------------------------
|
|
55
|
+
dataIndex: PropTypes.number.isRequired,
|
|
56
|
+
seriesId: PropTypes.string.isRequired
|
|
57
|
+
} : void 0;
|
|
49
58
|
export { MapShape };
|
package/Map/MapShapePlot.d.mts
CHANGED
|
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Renders series mapShape items.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare namespace MapShapePlot {
|
|
23
|
+
var propTypes: any;
|
|
24
|
+
}
|
|
25
|
+
export { MapShapePlot };
|
package/Map/MapShapePlot.d.ts
CHANGED
|
@@ -18,4 +18,8 @@ export interface MapShapePlotProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Renders series mapShape items.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
declare function MapShapePlot(props: MapShapePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare namespace MapShapePlot {
|
|
23
|
+
var propTypes: any;
|
|
24
|
+
}
|
|
25
|
+
export { MapShapePlot };
|
package/Map/MapShapePlot.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.MapShapePlot = MapShapePlot;
|
|
9
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
12
|
var _hooks = require("@mui/x-charts/hooks");
|
|
11
13
|
var _useGeoData = require("../hooks/useGeoData");
|
|
12
14
|
var _useGeoPath = require("../hooks/useGeoPath");
|
|
@@ -66,14 +68,15 @@ function MapShapePlot(props) {
|
|
|
66
68
|
children: featureIndexes.map(featureIndex => {
|
|
67
69
|
const feature = geoData.features[featureIndex];
|
|
68
70
|
const d = path(feature);
|
|
69
|
-
|
|
71
|
+
const color = fill ?? colorGetter(dataIndex);
|
|
72
|
+
if (!d || color === null) {
|
|
70
73
|
return null;
|
|
71
74
|
}
|
|
72
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MapShape.MapShape, {
|
|
73
76
|
seriesId: id,
|
|
74
77
|
dataIndex: dataIndex,
|
|
75
78
|
d: d,
|
|
76
|
-
color:
|
|
79
|
+
color: color,
|
|
77
80
|
stroke: stroke,
|
|
78
81
|
strokeWidth: strokeWidth
|
|
79
82
|
}, featureIndex);
|
|
@@ -83,4 +86,25 @@ function MapShapePlot(props) {
|
|
|
83
86
|
}, id);
|
|
84
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FocusedMapShape.FocusedMapShape, {})]
|
|
85
88
|
});
|
|
86
|
-
}
|
|
89
|
+
}
|
|
90
|
+
process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
|
|
91
|
+
// ----------------------------- Warning --------------------------------
|
|
92
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
93
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
94
|
+
// ----------------------------------------------------------------------
|
|
95
|
+
className: _propTypes.default.string,
|
|
96
|
+
/**
|
|
97
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
98
|
+
*/
|
|
99
|
+
fill: _propTypes.default.string,
|
|
100
|
+
/**
|
|
101
|
+
* Stroke color applied to every feature path.
|
|
102
|
+
* @default 'none'
|
|
103
|
+
*/
|
|
104
|
+
stroke: _propTypes.default.string,
|
|
105
|
+
/**
|
|
106
|
+
* Stroke width applied to every feature path.
|
|
107
|
+
* @default 1
|
|
108
|
+
*/
|
|
109
|
+
strokeWidth: _propTypes.default.number
|
|
110
|
+
} : void 0;
|
package/Map/MapShapePlot.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
4
5
|
import { useZAxes } from '@mui/x-charts/hooks';
|
|
5
6
|
import { useGeoData } from "../hooks/useGeoData.mjs";
|
|
6
7
|
import { useGeoPath } from "../hooks/useGeoPath.mjs";
|
|
@@ -13,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
14
|
/**
|
|
14
15
|
* Renders series mapShape items.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
function MapShapePlot(props) {
|
|
17
18
|
const {
|
|
18
19
|
className,
|
|
19
20
|
fill,
|
|
@@ -60,14 +61,15 @@ export function MapShapePlot(props) {
|
|
|
60
61
|
children: featureIndexes.map(featureIndex => {
|
|
61
62
|
const feature = geoData.features[featureIndex];
|
|
62
63
|
const d = path(feature);
|
|
63
|
-
|
|
64
|
+
const color = fill ?? colorGetter(dataIndex);
|
|
65
|
+
if (!d || color === null) {
|
|
64
66
|
return null;
|
|
65
67
|
}
|
|
66
68
|
return /*#__PURE__*/_jsx(MapShape, {
|
|
67
69
|
seriesId: id,
|
|
68
70
|
dataIndex: dataIndex,
|
|
69
71
|
d: d,
|
|
70
|
-
color:
|
|
72
|
+
color: color,
|
|
71
73
|
stroke: stroke,
|
|
72
74
|
strokeWidth: strokeWidth
|
|
73
75
|
}, featureIndex);
|
|
@@ -77,4 +79,26 @@ export function MapShapePlot(props) {
|
|
|
77
79
|
}, id);
|
|
78
80
|
}), /*#__PURE__*/_jsx(FocusedMapShape, {})]
|
|
79
81
|
});
|
|
80
|
-
}
|
|
82
|
+
}
|
|
83
|
+
process.env.NODE_ENV !== "production" ? MapShapePlot.propTypes /* remove-proptypes */ = {
|
|
84
|
+
// ----------------------------- Warning --------------------------------
|
|
85
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
87
|
+
// ----------------------------------------------------------------------
|
|
88
|
+
className: PropTypes.string,
|
|
89
|
+
/**
|
|
90
|
+
* Fill color applied to every feature path. Overrides item and series colors.
|
|
91
|
+
*/
|
|
92
|
+
fill: PropTypes.string,
|
|
93
|
+
/**
|
|
94
|
+
* Stroke color applied to every feature path.
|
|
95
|
+
* @default 'none'
|
|
96
|
+
*/
|
|
97
|
+
stroke: PropTypes.string,
|
|
98
|
+
/**
|
|
99
|
+
* Stroke width applied to every feature path.
|
|
100
|
+
* @default 1
|
|
101
|
+
*/
|
|
102
|
+
strokeWidth: PropTypes.number
|
|
103
|
+
} : void 0;
|
|
104
|
+
export { MapShapePlot };
|
package/Map/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { useGeoProjectionTypes } from '@mui/x-charts/internals';
|
|
1
2
|
export * from "./GeoDataPlot.mjs";
|
|
2
3
|
export * from "./MapShapePlot.mjs";
|
|
3
4
|
export * from "./MapShape.mjs";
|
|
4
5
|
export * from "./FocusedMapShape.mjs";
|
|
5
6
|
export * from "./Graticule.mjs";
|
|
6
|
-
export type
|
|
7
|
+
export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
|
|
8
|
+
export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
|
|
7
9
|
export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
|
package/Map/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { useGeoProjectionTypes } from '@mui/x-charts/internals';
|
|
1
2
|
export * from "./GeoDataPlot.js";
|
|
2
3
|
export * from "./MapShapePlot.js";
|
|
3
4
|
export * from "./MapShape.js";
|
|
4
5
|
export * from "./FocusedMapShape.js";
|
|
5
6
|
export * from "./Graticule.js";
|
|
6
|
-
export type
|
|
7
|
+
export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
|
|
8
|
+
export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
|
|
7
9
|
export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
|
|
@@ -12,17 +12,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
|
|
|
12
12
|
return series.color;
|
|
13
13
|
}
|
|
14
14
|
const item = series.data[dataIndex];
|
|
15
|
-
if (item
|
|
16
|
-
return
|
|
15
|
+
if (item.color !== undefined) {
|
|
16
|
+
return item.color;
|
|
17
17
|
}
|
|
18
18
|
const scaleInput = item.colorValue ?? item.value;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (color !== null) {
|
|
22
|
-
return color;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return item.color ?? series.color;
|
|
19
|
+
const color = colorScale(scaleInput);
|
|
20
|
+
return color;
|
|
26
21
|
};
|
|
27
22
|
}
|
|
28
23
|
return dataIndex => {
|
|
@@ -6,17 +6,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
|
|
|
6
6
|
return series.color;
|
|
7
7
|
}
|
|
8
8
|
const item = series.data[dataIndex];
|
|
9
|
-
if (item
|
|
10
|
-
return
|
|
9
|
+
if (item.color !== undefined) {
|
|
10
|
+
return item.color;
|
|
11
11
|
}
|
|
12
12
|
const scaleInput = item.colorValue ?? item.value;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (color !== null) {
|
|
16
|
-
return color;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return item.color ?? series.color;
|
|
13
|
+
const color = colorScale(scaleInput);
|
|
14
|
+
return color;
|
|
20
15
|
};
|
|
21
16
|
}
|
|
22
17
|
return dataIndex => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const mapShapeSeriesConfig: ChartSeriesTypeConfig<'mapShape'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
2
|
export declare const mapShapeSeriesConfig: ChartSeriesTypeConfig<'mapShape'>;
|
|
@@ -13,11 +13,13 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
|
13
13
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
14
14
|
var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
|
|
15
15
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
16
|
+
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
16
17
|
const mapShapeSeriesConfig = exports.mapShapeSeriesConfig = {
|
|
17
18
|
seriesProcessor: _seriesProcessor.default,
|
|
18
19
|
colorProcessor: _getColor.default,
|
|
19
20
|
legendGetter: _legend.default,
|
|
20
21
|
tooltipGetter: _tooltip.default,
|
|
22
|
+
tooltipItemPositionGetter: _tooltipPosition.default,
|
|
21
23
|
getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
|
|
22
24
|
keyboardFocusHandler: _keyboardFocusHandler.default,
|
|
23
25
|
identifierSerializer: _internals.identifierSerializerSeriesIdDataIndex,
|
|
@@ -6,11 +6,13 @@ import tooltipGetter from "./tooltip.mjs";
|
|
|
6
6
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
|
|
7
7
|
import descriptionGetter from "./descriptionGetter.mjs";
|
|
8
8
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
|
+
import tooltipItemPositionGetter from "./tooltipPosition.mjs";
|
|
9
10
|
export const mapShapeSeriesConfig = {
|
|
10
11
|
seriesProcessor,
|
|
11
12
|
colorProcessor: getColor,
|
|
12
13
|
legendGetter,
|
|
13
14
|
tooltipGetter,
|
|
15
|
+
tooltipItemPositionGetter,
|
|
14
16
|
getSeriesWithDefaultValues,
|
|
15
17
|
keyboardFocusHandler,
|
|
16
18
|
identifierSerializer: identifierSerializerSeriesIdDataIndex,
|
|
@@ -17,13 +17,17 @@ const tooltipGetter = ({
|
|
|
17
17
|
if (point == null) {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
+
const color = getColor(identifier.dataIndex);
|
|
21
|
+
if (color === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
20
24
|
const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
|
|
21
25
|
const formattedValue = series.valueFormatter(point, {
|
|
22
26
|
dataIndex: identifier.dataIndex
|
|
23
27
|
});
|
|
24
28
|
return {
|
|
25
29
|
identifier,
|
|
26
|
-
color
|
|
30
|
+
color,
|
|
27
31
|
label,
|
|
28
32
|
value: point,
|
|
29
33
|
formattedValue,
|
|
@@ -11,13 +11,17 @@ const tooltipGetter = ({
|
|
|
11
11
|
if (point == null) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
+
const color = getColor(identifier.dataIndex);
|
|
15
|
+
if (color === null) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
14
18
|
const label = getLabel(point.label ?? point.name, 'tooltip');
|
|
15
19
|
const formattedValue = series.valueFormatter(point, {
|
|
16
20
|
dataIndex: identifier.dataIndex
|
|
17
21
|
});
|
|
18
22
|
return {
|
|
19
23
|
identifier,
|
|
20
|
-
color
|
|
24
|
+
color,
|
|
21
25
|
label,
|
|
22
26
|
value: point,
|
|
23
27
|
formattedValue,
|