@mui/x-charts 9.8.0 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarClipPath.d.mts +1 -1
- package/BarChart/BarClipPath.d.ts +1 -1
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
- package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
- package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
- package/BarChart/FocusedBar.d.mts +1 -1
- package/BarChart/FocusedBar.d.ts +1 -1
- package/BarChart/IndividualBarPlot.d.mts +2 -1
- package/BarChart/IndividualBarPlot.d.ts +2 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
- package/BarChart/seriesConfig/index.js +2 -2
- package/BarChart/seriesConfig/index.mjs +2 -2
- package/BarChart/useBarPlotData.d.mts +5 -1
- package/BarChart/useBarPlotData.d.ts +5 -1
- package/BarChart/useBarPlotData.js +102 -25
- package/BarChart/useBarPlotData.mjs +102 -26
- package/CHANGELOG.md +119 -0
- package/ChartsAxis/ChartsAxis.d.mts +2 -1
- package/ChartsAxis/ChartsAxis.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
- package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
- package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +1 -1
- package/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
- package/ChartsText/ChartsText.d.mts +1 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +2 -6
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
- package/Gauge/GaugeProvider.d.mts +1 -1
- package/Gauge/GaugeProvider.d.ts +1 -1
- package/Gauge/GaugeReferenceArc.d.mts +1 -1
- package/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/Gauge/GaugeValueArc.d.mts +1 -1
- package/Gauge/GaugeValueArc.d.ts +1 -1
- package/Gauge/GaugeValueText.d.mts +1 -1
- package/Gauge/GaugeValueText.d.ts +1 -1
- package/LineChart/AnimatedArea.d.mts +1 -1
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AppearingMask.d.mts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.mts +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +1 -1
- package/LineChart/AreaPlot.d.ts +1 -1
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/FocusedLineMark.d.mts +1 -1
- package/LineChart/FocusedLineMark.d.ts +1 -1
- package/LineChart/LineElement.d.mts +1 -1
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightElement.d.mts +1 -1
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.mts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LinePlot.d.mts +1 -1
- package/LineChart/LinePlot.d.ts +1 -1
- package/LineChart/LinePlot.js +3 -2
- package/LineChart/LinePlot.mjs +3 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.mts +1 -1
- package/LineChart/MarkPlot.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +2 -2
- package/LineChart/seriesConfig/index.mjs +2 -2
- package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.js +14 -14
- package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
- package/LineChart/useLinePlotData.d.mts +13 -1
- package/LineChart/useLinePlotData.d.ts +13 -1
- package/LineChart/useLinePlotData.js +90 -33
- package/LineChart/useLinePlotData.mjs +92 -34
- package/PieChart/FocusedPieArc.d.mts +1 -1
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/PieArcLabelPlot.d.mts +1 -1
- package/PieChart/PieArcLabelPlot.d.ts +1 -1
- package/PieChart/PieArcPlot.d.mts +1 -1
- package/PieChart/PieArcPlot.d.ts +1 -1
- package/PieChart/PiePlot.d.mts +1 -1
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -2
- package/PieChart/seriesConfig/index.mjs +2 -2
- package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.js +7 -11
- package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
- package/RadarChart/FocusedRadarMark.d.mts +1 -1
- package/RadarChart/FocusedRadarMark.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +2 -2
- package/RadarChart/seriesConfig/index.mjs +2 -2
- package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
- package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/FocusedScatterMark.d.mts +1 -1
- package/ScatterChart/FocusedScatterMark.d.ts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterMarker.d.mts +1 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterPlot.d.mts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/async/ScatterAsync.d.mts +2 -1
- package/ScatterChart/async/ScatterAsync.d.ts +2 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +2 -2
- package/ScatterChart/seriesConfig/index.mjs +2 -2
- package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsSlotsContext.d.mts +1 -1
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
- package/internals/createGetBarDimensions.d.mts +14 -1
- package/internals/createGetBarDimensions.d.ts +14 -1
- package/internals/createGetBarDimensions.js +45 -0
- package/internals/createGetBarDimensions.mjs +45 -0
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/index.d.mts +1 -2
- package/internals/index.d.ts +1 -2
- package/internals/index.js +12 -8
- package/internals/index.mjs +1 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +3 -8
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +3 -8
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -53
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -53
- package/models/seriesType/config.d.mts +6 -2
- package/models/seriesType/config.d.ts +6 -2
- package/package.json +5 -5
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -45
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -45
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -73
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -73
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { SeriesId } from "../../../../models/seriesType/common.js";
|
|
2
|
+
import type { ChartSeriesType, ChartSeriesDefaultized, ChartsSeriesConfig } from "../../../../models/seriesType/config.js";
|
|
3
|
+
import type { ZoomData } from "./zoom.types.js";
|
|
4
|
+
/** Line sampling algorithms. `m4` pixel-accurate; `minmax` its 2-point subset; `lttb` keeps shape. */
|
|
5
|
+
export type LineSamplingAlgorithm = 'm4' | 'minmax' | 'lttb';
|
|
6
|
+
/** `sampling` prop method. `'none'` (default) disables; for lines it also picks the algorithm. */
|
|
7
|
+
export type SamplingMethod = 'none' | LineSamplingAlgorithm;
|
|
8
|
+
/** Bar `sampling` method. Bars always use a min/max envelope, so line-only algorithms are excluded. */
|
|
9
|
+
export type BarSamplingMethod = 'none' | 'minmax';
|
|
10
|
+
/**
|
|
11
|
+
* Per-series-type `sampling` prop on `ChartsDataProviderPro`. Derived from each type's
|
|
12
|
+
* `samplingMethod`, contributed by pro via the per-type series-config extensions (e.g.
|
|
13
|
+
* `BarSeriesExtension`). Empty in community-only builds.
|
|
14
|
+
*/
|
|
15
|
+
export type SamplingConfig = { [K in keyof ChartsSeriesConfig as ChartsSeriesConfig[K] extends {
|
|
16
|
+
samplingMethod: any;
|
|
17
|
+
} ? K : never]?: ChartsSeriesConfig[K] extends {
|
|
18
|
+
samplingMethod: infer M;
|
|
19
|
+
} ? M : never };
|
|
20
|
+
/** State set by the pro `useChartProSampling` plugin; absent in community. */
|
|
21
|
+
export interface SamplingState {
|
|
22
|
+
/** True when at least one series type is sampled. */
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/** Method per series type; absent/`'none'` = not sampled. */
|
|
25
|
+
methods: Partial<Record<ChartSeriesType, SamplingMethod>>;
|
|
26
|
+
}
|
|
27
|
+
/** Built sampling structures keyed by series id (type depends on the strategy). */
|
|
28
|
+
export type SampledSeriesLookup = Record<SeriesId, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* One bucket of the active level of detail: the index range it covers plus the indices to render.
|
|
31
|
+
* Lines flatten `indices` into a polyline; bars draw one merged rect over `[startIndex, endIndex]`.
|
|
32
|
+
*/
|
|
33
|
+
export interface SampledBucket {
|
|
34
|
+
/** First original index covered. */
|
|
35
|
+
startIndex: number;
|
|
36
|
+
/** Last original index covered (inclusive). */
|
|
37
|
+
endIndex: number;
|
|
38
|
+
/** Ascending original indices to render. */
|
|
39
|
+
indices: Int32Array;
|
|
40
|
+
}
|
|
41
|
+
/** Sampler inputs for one series. Bars omit `algorithm`/`getValues` (min/max envelope). */
|
|
42
|
+
export interface SampleContext {
|
|
43
|
+
/** Opaque built structure (the strategy's `TBuilt`; the pyramid lives in pro). */
|
|
44
|
+
built: unknown;
|
|
45
|
+
/** Zoom of the sampled axis; `undefined` => sampler returns `null`. */
|
|
46
|
+
zoom: ZoomData | undefined;
|
|
47
|
+
/** Pixel extent along the sampled axis (band axis for bars, x-axis for lines). */
|
|
48
|
+
availableSize: number;
|
|
49
|
+
/** Axis zoom `minSpan`; level 0 (`span ≈ minSpan`) renders raw. */
|
|
50
|
+
minSpan: number;
|
|
51
|
+
/** Line algorithm. Omitted for bars, which always use the default min/max envelope. */
|
|
52
|
+
algorithm?: LineSamplingAlgorithm;
|
|
53
|
+
/**
|
|
54
|
+
* Lazy raw values, read only for `lttb`.
|
|
55
|
+
* @returns {ArrayLike<number>} The raw values.
|
|
56
|
+
*/
|
|
57
|
+
getValues?: () => ArrayLike<number>;
|
|
58
|
+
}
|
|
59
|
+
/** Axis-level math inputs (no per-series built struct). */
|
|
60
|
+
export interface AxisSamplingContext {
|
|
61
|
+
/** `axis.data.length`. */
|
|
62
|
+
dataLength: number;
|
|
63
|
+
/** Pixel extent along the band axis: width (x) / height (y). */
|
|
64
|
+
availableSize: number;
|
|
65
|
+
/** Axis zoom `minSpan`. */
|
|
66
|
+
minSpan: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Per-series-type sampling strategy, registered on `seriesConfig.sampler`. Owns both building the
|
|
70
|
+
* LOD structure and consuming it, so all algorithm code lives in pro; community calls through the
|
|
71
|
+
* pro-injected reference. `TBuilt` is opaque to community; pro narrows it per method.
|
|
72
|
+
*/
|
|
73
|
+
export interface SamplingStrategy<SeriesType extends ChartSeriesType = ChartSeriesType, TBuilt = unknown> {
|
|
74
|
+
/**
|
|
75
|
+
* Build the sampled structure for one series.
|
|
76
|
+
* @param {ChartSeriesDefaultized<SeriesType>} series The processed series.
|
|
77
|
+
* @returns {TBuilt | null} The built structure, or `null` if it can't be sampled.
|
|
78
|
+
*/
|
|
79
|
+
build: (series: ChartSeriesDefaultized<SeriesType>) => TBuilt | null;
|
|
80
|
+
/**
|
|
81
|
+
* Active level of detail as buckets for the current zoom.
|
|
82
|
+
* @param {SampleContext} context The sampling inputs.
|
|
83
|
+
* @returns {SampledBucket[] | null} The buckets, or `null` to render raw.
|
|
84
|
+
*/
|
|
85
|
+
sample?: (context: SampleContext) => SampledBucket[] | null;
|
|
86
|
+
/**
|
|
87
|
+
* Merged bucket size at a zoom span (`>= 1`; `1` = no merge), for axis-highlight widening.
|
|
88
|
+
* @param {number} span The zoom span (`end - start`).
|
|
89
|
+
* @param {AxisSamplingContext} context The axis inputs.
|
|
90
|
+
* @returns {number} The bucket size.
|
|
91
|
+
*/
|
|
92
|
+
bucketSizeAt?: (span: number, context: AxisSamplingContext) => number;
|
|
93
|
+
}
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import type { ZoomData, ZoomOptions, ZoomSliderPreviewOptions, ZoomSliderShowToo
|
|
|
6
6
|
import type { UseChartInteractionSignature } from "../useChartInteraction/index.mjs";
|
|
7
7
|
import type { ChartsAxisProps } from "../../../../ChartsAxis/index.mjs";
|
|
8
8
|
import type { UseChartBrushSignature } from "../useChartBrush/index.mjs";
|
|
9
|
+
import type { SamplingState } from "./sampling.types.mjs";
|
|
9
10
|
/**
|
|
10
11
|
* The axes' configuration after computing.
|
|
11
12
|
* An axis in this state already contains a scale function and all the necessary properties to be rendered.
|
|
@@ -97,6 +98,10 @@ export interface UseChartCartesianAxisState {
|
|
|
97
98
|
isInteracting: boolean;
|
|
98
99
|
zoomData: readonly ZoomData[];
|
|
99
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @ignore - state populated by the useChartProSampling plugin
|
|
103
|
+
*/
|
|
104
|
+
sampling?: SamplingState;
|
|
100
105
|
cartesianAxis: {
|
|
101
106
|
axesGap: number;
|
|
102
107
|
x: DefaultedXAxis[];
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { ZoomData, ZoomOptions, ZoomSliderPreviewOptions, ZoomSliderShowToo
|
|
|
6
6
|
import type { UseChartInteractionSignature } from "../useChartInteraction/index.js";
|
|
7
7
|
import type { ChartsAxisProps } from "../../../../ChartsAxis/index.js";
|
|
8
8
|
import type { UseChartBrushSignature } from "../useChartBrush/index.js";
|
|
9
|
+
import type { SamplingState } from "./sampling.types.js";
|
|
9
10
|
/**
|
|
10
11
|
* The axes' configuration after computing.
|
|
11
12
|
* An axis in this state already contains a scale function and all the necessary properties to be rendered.
|
|
@@ -97,6 +98,10 @@ export interface UseChartCartesianAxisState {
|
|
|
97
98
|
isInteracting: boolean;
|
|
98
99
|
zoomData: readonly ZoomData[];
|
|
99
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @ignore - state populated by the useChartProSampling plugin
|
|
103
|
+
*/
|
|
104
|
+
sampling?: SamplingState;
|
|
100
105
|
cartesianAxis: {
|
|
101
106
|
axesGap: number;
|
|
102
107
|
x: DefaultedXAxis[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SeriesItemIdentifierWithType } from "../../../../models/index.mjs";
|
|
1
2
|
export declare const selectorChartsTooltipPointerItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartTooltip.types.mjs").UseChartTooltipState<keyof import("../../../index.mjs").ChartsSeriesConfig>> & {
|
|
2
3
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
3
4
|
}) => import("../../../index.mjs").LineItemIdentifier | import("../../../index.mjs").BarItemIdentifier | import("../../../../index.mjs").ScatterItemIdentifier | import("../../../../index.mjs").PieItemIdentifier | import("../../../../index.mjs").RadarItemIdentifier | null;
|
|
@@ -6,13 +7,7 @@ export declare const selectorChartsTooltipPointerItemIsDefined: (args_0: import(
|
|
|
6
7
|
}) => boolean;
|
|
7
8
|
export declare const selectorChartsTooltipItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
|
|
8
9
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
9
|
-
}) =>
|
|
10
|
+
}) => SeriesItemIdentifierWithType<keyof import("../../../index.mjs").ChartsSeriesConfig> | null;
|
|
10
11
|
export declare const selectorChartsTooltipItemIsDefined: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
|
|
11
12
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
12
|
-
}) => boolean;
|
|
13
|
-
export declare const selectorChartsTooltipItemPosition: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
|
|
14
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
15
|
-
}, placement: "bottom" | "left" | "right" | "top" | undefined) => {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
} | null;
|
|
13
|
+
}) => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SeriesItemIdentifierWithType } from "../../../../models/index.js";
|
|
1
2
|
export declare const selectorChartsTooltipPointerItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartTooltip.types.js").UseChartTooltipState<keyof import("../../../index.js").ChartsSeriesConfig>> & {
|
|
2
3
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
3
4
|
}) => import("../../../index.js").LineItemIdentifier | import("../../../index.js").BarItemIdentifier | import("../../../../index.js").ScatterItemIdentifier | import("../../../../index.js").PieItemIdentifier | import("../../../../index.js").RadarItemIdentifier | null;
|
|
@@ -6,13 +7,7 @@ export declare const selectorChartsTooltipPointerItemIsDefined: (args_0: import(
|
|
|
6
7
|
}) => boolean;
|
|
7
8
|
export declare const selectorChartsTooltipItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
|
|
8
9
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
9
|
-
}) =>
|
|
10
|
+
}) => SeriesItemIdentifierWithType<keyof import("../../../index.js").ChartsSeriesConfig> | null;
|
|
10
11
|
export declare const selectorChartsTooltipItemIsDefined: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
|
|
11
12
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
12
|
-
}) => boolean;
|
|
13
|
-
export declare const selectorChartsTooltipItemPosition: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
|
|
14
|
-
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
15
|
-
}, placement: "bottom" | "left" | "right" | "top" | undefined) => {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
} | null;
|
|
13
|
+
}) => boolean;
|
|
@@ -3,63 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.selectorChartsTooltipPointerItemIsDefined = exports.selectorChartsTooltipPointerItem = exports.
|
|
6
|
+
exports.selectorChartsTooltipPointerItemIsDefined = exports.selectorChartsTooltipPointerItem = exports.selectorChartsTooltipItemIsDefined = exports.selectorChartsTooltipItem = void 0;
|
|
7
7
|
var _store = require("@mui/x-internals/store");
|
|
8
|
-
var _useChartSeries = require("../../corePlugins/useChartSeries");
|
|
9
|
-
var _useChartSeriesConfig = require("../../corePlugins/useChartSeriesConfig");
|
|
10
|
-
var _useChartCartesianAxisRendering = require("../useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
|
|
11
8
|
var _useChartKeyboardNavigation = require("../useChartKeyboardNavigation");
|
|
12
9
|
var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
|
|
13
|
-
var _useChartDimensions = require("../../corePlugins/useChartDimensions/useChartDimensions.selectors");
|
|
14
|
-
var _isCartesian = require("../../../isCartesian");
|
|
15
|
-
var _useChartPolarAxis = require("../useChartPolarAxis/useChartPolarAxis.selectors");
|
|
16
10
|
const selectTooltip = state => state.tooltip;
|
|
17
11
|
const selectorChartsTooltipPointerItem = exports.selectorChartsTooltipPointerItem = (0, _store.createSelector)(selectTooltip, tooltip => tooltip?.item ?? null);
|
|
18
12
|
const selectorChartsTooltipPointerItemIsDefined = exports.selectorChartsTooltipPointerItemIsDefined = (0, _store.createSelector)(selectorChartsTooltipPointerItem, item => item !== null);
|
|
19
13
|
const selectorChartsTooltipItem = exports.selectorChartsTooltipItem = (0, _store.createSelector)(_useChartInteraction.selectorChartsLastInteraction, selectorChartsTooltipPointerItem, _useChartKeyboardNavigation.selectorChartsKeyboardItem, (lastInteraction, pointerItem, keyboardItem) => lastInteraction === 'keyboard' ? keyboardItem : pointerItem ?? null);
|
|
20
|
-
const selectorChartsTooltipItemIsDefined = exports.selectorChartsTooltipItemIsDefined = (0, _store.createSelector)(_useChartInteraction.selectorChartsLastInteraction, selectorChartsTooltipPointerItemIsDefined, _useChartKeyboardNavigation.selectorChartsHasFocusedItem, (lastInteraction, pointerItemIsDefined, keyboardItemIsDefined) => lastInteraction === 'keyboard' ? keyboardItemIsDefined : pointerItemIsDefined);
|
|
21
|
-
const selectorChartsTooltipAxisConfig = (0, _store.createSelectorMemoized)(selectorChartsTooltipItem, _useChartCartesianAxisRendering.selectorChartXAxis, _useChartCartesianAxisRendering.selectorChartYAxis, _useChartPolarAxis.selectorChartRotationAxis, _useChartPolarAxis.selectorChartRadiusAxis, _useChartSeries.selectorChartSeriesProcessed, function selectorChartsTooltipAxisConfig(identifier, {
|
|
22
|
-
axis: xAxis,
|
|
23
|
-
axisIds: xAxisIds
|
|
24
|
-
}, {
|
|
25
|
-
axis: yAxis,
|
|
26
|
-
axisIds: yAxisIds
|
|
27
|
-
}, rotationAxes, radiusAxes, series) {
|
|
28
|
-
if (!identifier) {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
const itemSeries = series[identifier.type]?.series[identifier.seriesId];
|
|
32
|
-
if (!itemSeries) {
|
|
33
|
-
return {};
|
|
34
|
-
}
|
|
35
|
-
const axesConfig = {
|
|
36
|
-
rotationAxes,
|
|
37
|
-
radiusAxes
|
|
38
|
-
};
|
|
39
|
-
const xAxisId = (0, _isCartesian.isCartesianSeries)(itemSeries) ? itemSeries.xAxisId ?? xAxisIds[0] : undefined;
|
|
40
|
-
const yAxisId = (0, _isCartesian.isCartesianSeries)(itemSeries) ? itemSeries.yAxisId ?? yAxisIds[0] : undefined;
|
|
41
|
-
if (xAxisId !== undefined) {
|
|
42
|
-
axesConfig.x = xAxis[xAxisId];
|
|
43
|
-
}
|
|
44
|
-
if (yAxisId !== undefined) {
|
|
45
|
-
axesConfig.y = yAxis[yAxisId];
|
|
46
|
-
}
|
|
47
|
-
return axesConfig;
|
|
48
|
-
});
|
|
49
|
-
const selectorChartsTooltipItemPosition = exports.selectorChartsTooltipItemPosition = (0, _store.createSelectorMemoized)(selectorChartsTooltipItem, _useChartDimensions.selectorChartDrawingArea, _useChartSeriesConfig.selectorChartSeriesConfig, _useChartSeries.selectorChartSeriesProcessed, _useChartSeries.selectorChartSeriesLayout, selectorChartsTooltipAxisConfig, function selectorChartsTooltipItemPosition(identifier, drawingArea, seriesConfig, series, seriesLayout, axesConfig, placement) {
|
|
50
|
-
if (!identifier) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const itemSeries = series[identifier.type]?.series[identifier.seriesId];
|
|
54
|
-
if (!itemSeries) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
return seriesConfig[itemSeries.type].tooltipItemPositionGetter?.({
|
|
58
|
-
series,
|
|
59
|
-
seriesLayout,
|
|
60
|
-
drawingArea,
|
|
61
|
-
axesConfig,
|
|
62
|
-
identifier,
|
|
63
|
-
placement: placement ?? 'top'
|
|
64
|
-
}) ?? null;
|
|
65
|
-
});
|
|
14
|
+
const selectorChartsTooltipItemIsDefined = exports.selectorChartsTooltipItemIsDefined = (0, _store.createSelector)(_useChartInteraction.selectorChartsLastInteraction, selectorChartsTooltipPointerItemIsDefined, _useChartKeyboardNavigation.selectorChartsHasFocusedItem, (lastInteraction, pointerItemIsDefined, keyboardItemIsDefined) => lastInteraction === 'keyboard' ? keyboardItemIsDefined : pointerItemIsDefined);
|
|
@@ -1,59 +1,8 @@
|
|
|
1
|
-
import { createSelector
|
|
2
|
-
import { selectorChartSeriesProcessed, selectorChartSeriesLayout } from "../../corePlugins/useChartSeries/index.mjs";
|
|
3
|
-
import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
4
|
-
import { selectorChartXAxis, selectorChartYAxis } from "../useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
|
|
1
|
+
import { createSelector } from '@mui/x-internals/store';
|
|
5
2
|
import { selectorChartsKeyboardItem, selectorChartsHasFocusedItem } from "../useChartKeyboardNavigation/index.mjs";
|
|
6
3
|
import { selectorChartsLastInteraction } from "../useChartInteraction/useChartInteraction.selectors.mjs";
|
|
7
|
-
import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/useChartDimensions.selectors.mjs";
|
|
8
|
-
import { isCartesianSeries } from "../../../isCartesian.mjs";
|
|
9
|
-
import { selectorChartRadiusAxis, selectorChartRotationAxis } from "../useChartPolarAxis/useChartPolarAxis.selectors.mjs";
|
|
10
4
|
const selectTooltip = state => state.tooltip;
|
|
11
5
|
export const selectorChartsTooltipPointerItem = createSelector(selectTooltip, tooltip => tooltip?.item ?? null);
|
|
12
6
|
export const selectorChartsTooltipPointerItemIsDefined = createSelector(selectorChartsTooltipPointerItem, item => item !== null);
|
|
13
7
|
export const selectorChartsTooltipItem = createSelector(selectorChartsLastInteraction, selectorChartsTooltipPointerItem, selectorChartsKeyboardItem, (lastInteraction, pointerItem, keyboardItem) => lastInteraction === 'keyboard' ? keyboardItem : pointerItem ?? null);
|
|
14
|
-
export const selectorChartsTooltipItemIsDefined = createSelector(selectorChartsLastInteraction, selectorChartsTooltipPointerItemIsDefined, selectorChartsHasFocusedItem, (lastInteraction, pointerItemIsDefined, keyboardItemIsDefined) => lastInteraction === 'keyboard' ? keyboardItemIsDefined : pointerItemIsDefined);
|
|
15
|
-
const selectorChartsTooltipAxisConfig = createSelectorMemoized(selectorChartsTooltipItem, selectorChartXAxis, selectorChartYAxis, selectorChartRotationAxis, selectorChartRadiusAxis, selectorChartSeriesProcessed, function selectorChartsTooltipAxisConfig(identifier, {
|
|
16
|
-
axis: xAxis,
|
|
17
|
-
axisIds: xAxisIds
|
|
18
|
-
}, {
|
|
19
|
-
axis: yAxis,
|
|
20
|
-
axisIds: yAxisIds
|
|
21
|
-
}, rotationAxes, radiusAxes, series) {
|
|
22
|
-
if (!identifier) {
|
|
23
|
-
return {};
|
|
24
|
-
}
|
|
25
|
-
const itemSeries = series[identifier.type]?.series[identifier.seriesId];
|
|
26
|
-
if (!itemSeries) {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
const axesConfig = {
|
|
30
|
-
rotationAxes,
|
|
31
|
-
radiusAxes
|
|
32
|
-
};
|
|
33
|
-
const xAxisId = isCartesianSeries(itemSeries) ? itemSeries.xAxisId ?? xAxisIds[0] : undefined;
|
|
34
|
-
const yAxisId = isCartesianSeries(itemSeries) ? itemSeries.yAxisId ?? yAxisIds[0] : undefined;
|
|
35
|
-
if (xAxisId !== undefined) {
|
|
36
|
-
axesConfig.x = xAxis[xAxisId];
|
|
37
|
-
}
|
|
38
|
-
if (yAxisId !== undefined) {
|
|
39
|
-
axesConfig.y = yAxis[yAxisId];
|
|
40
|
-
}
|
|
41
|
-
return axesConfig;
|
|
42
|
-
});
|
|
43
|
-
export const selectorChartsTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartDrawingArea, selectorChartSeriesConfig, selectorChartSeriesProcessed, selectorChartSeriesLayout, selectorChartsTooltipAxisConfig, function selectorChartsTooltipItemPosition(identifier, drawingArea, seriesConfig, series, seriesLayout, axesConfig, placement) {
|
|
44
|
-
if (!identifier) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
const itemSeries = series[identifier.type]?.series[identifier.seriesId];
|
|
48
|
-
if (!itemSeries) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
return seriesConfig[itemSeries.type].tooltipItemPositionGetter?.({
|
|
52
|
-
series,
|
|
53
|
-
seriesLayout,
|
|
54
|
-
drawingArea,
|
|
55
|
-
axesConfig,
|
|
56
|
-
identifier,
|
|
57
|
-
placement: placement ?? 'top'
|
|
58
|
-
}) ?? null;
|
|
59
|
-
});
|
|
8
|
+
export const selectorChartsTooltipItemIsDefined = createSelector(selectorChartsLastInteraction, selectorChartsTooltipPointerItemIsDefined, selectorChartsHasFocusedItem, (lastInteraction, pointerItemIsDefined, keyboardItemIsDefined) => lastInteraction === 'keyboard' ? keyboardItemIsDefined : pointerItemIsDefined);
|
|
@@ -7,6 +7,10 @@ import type { DefaultizedRadarSeriesType, RadarItemIdentifier, RadarSeriesType }
|
|
|
7
7
|
import type { SeriesColor, SeriesId } from "./common.mjs";
|
|
8
8
|
import type { ChartsRadiusAxisProps, ChartsRotationAxisProps, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized } from "../axis.mjs";
|
|
9
9
|
import type { CommonHighlightScope } from "../../internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.mjs";
|
|
10
|
+
/** Bar series-config extension point. Empty in community; pro augments it. */
|
|
11
|
+
export interface BarSeriesExtension {}
|
|
12
|
+
/** Line series-config extension point. Empty in community; pro augments it. */
|
|
13
|
+
export interface LineSeriesExtension {}
|
|
10
14
|
export interface ChartsSeriesConfig {
|
|
11
15
|
bar: {
|
|
12
16
|
/**
|
|
@@ -49,7 +53,7 @@ export interface ChartsSeriesConfig {
|
|
|
49
53
|
seriesId: SeriesId;
|
|
50
54
|
dataIndex?: number | undefined;
|
|
51
55
|
};
|
|
52
|
-
};
|
|
56
|
+
} & BarSeriesExtension;
|
|
53
57
|
line: {
|
|
54
58
|
seriesInput: DefaultizedProps<LineSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
55
59
|
series: DefaultizedLineSeriesType;
|
|
@@ -72,7 +76,7 @@ export interface ChartsSeriesConfig {
|
|
|
72
76
|
seriesId: SeriesId;
|
|
73
77
|
dataIndex?: number;
|
|
74
78
|
};
|
|
75
|
-
};
|
|
79
|
+
} & LineSeriesExtension;
|
|
76
80
|
scatter: {
|
|
77
81
|
seriesInput: DefaultizedProps<ScatterSeriesType, 'id'> & MakeRequired<SeriesColor<ScatterValueType>, 'color'>;
|
|
78
82
|
series: DefaultizedScatterSeriesType;
|
|
@@ -7,6 +7,10 @@ import type { DefaultizedRadarSeriesType, RadarItemIdentifier, RadarSeriesType }
|
|
|
7
7
|
import type { SeriesColor, SeriesId } from "./common.js";
|
|
8
8
|
import type { ChartsRadiusAxisProps, ChartsRotationAxisProps, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized } from "../axis.js";
|
|
9
9
|
import type { CommonHighlightScope } from "../../internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.js";
|
|
10
|
+
/** Bar series-config extension point. Empty in community; pro augments it. */
|
|
11
|
+
export interface BarSeriesExtension {}
|
|
12
|
+
/** Line series-config extension point. Empty in community; pro augments it. */
|
|
13
|
+
export interface LineSeriesExtension {}
|
|
10
14
|
export interface ChartsSeriesConfig {
|
|
11
15
|
bar: {
|
|
12
16
|
/**
|
|
@@ -49,7 +53,7 @@ export interface ChartsSeriesConfig {
|
|
|
49
53
|
seriesId: SeriesId;
|
|
50
54
|
dataIndex?: number | undefined;
|
|
51
55
|
};
|
|
52
|
-
};
|
|
56
|
+
} & BarSeriesExtension;
|
|
53
57
|
line: {
|
|
54
58
|
seriesInput: DefaultizedProps<LineSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
|
|
55
59
|
series: DefaultizedLineSeriesType;
|
|
@@ -72,7 +76,7 @@ export interface ChartsSeriesConfig {
|
|
|
72
76
|
seriesId: SeriesId;
|
|
73
77
|
dataIndex?: number;
|
|
74
78
|
};
|
|
75
|
-
};
|
|
79
|
+
} & LineSeriesExtension;
|
|
76
80
|
scatter: {
|
|
77
81
|
seriesInput: DefaultizedProps<ScatterSeriesType, 'id'> & MakeRequired<SeriesColor<ScatterValueType>, 'color'>;
|
|
78
82
|
series: DefaultizedScatterSeriesType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.29.7",
|
|
31
|
-
"@mui/utils": "^9.
|
|
31
|
+
"@mui/utils": "^9.2.0",
|
|
32
32
|
"bezier-easing": "^3.0.1",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"reselect": "^5.2.0",
|
|
36
36
|
"use-sync-external-store": "^1.6.0",
|
|
37
|
-
"@mui/x-
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-
|
|
37
|
+
"@mui/x-internal-gestures": "^9.9.0",
|
|
38
|
+
"@mui/x-internals": "^9.9.0",
|
|
39
|
+
"@mui/x-charts-vendor": "^9.4.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { SeriesItemIdentifierWithType } from "../../../../../models/seriesType/index.mjs";
|
|
2
|
-
import type { ChartSeriesType } from "../../../../../models/seriesType/config.mjs";
|
|
3
|
-
import type { ChartsRotationAxisProps, ChartsRadiusAxisProps, ComputedXAxis, ComputedYAxis } from "../../../../../models/axis.mjs";
|
|
4
|
-
import type { ChartDrawingArea } from "../../../../../hooks/useDrawingArea.mjs";
|
|
5
|
-
import type { ProcessedSeries, SeriesLayout } from "../../useChartSeries/index.mjs";
|
|
6
|
-
import type { ComputeResult } from "../../../featurePlugins/useChartPolarAxis/computeAxisValue.mjs";
|
|
7
|
-
import type { ChartState } from "../../../models/index.mjs";
|
|
8
|
-
import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/useChartCartesianAxis/index.mjs";
|
|
9
|
-
import type { UseChartInteractionSignature } from "../../../featurePlugins/useChartInteraction/index.mjs";
|
|
10
|
-
import type { UseChartTooltipSignature } from "../../../featurePlugins/useChartTooltip/index.mjs";
|
|
11
|
-
export interface TooltipPositionGetterAxesConfig {
|
|
12
|
-
x?: ComputedXAxis;
|
|
13
|
-
y?: ComputedYAxis;
|
|
14
|
-
rotationAxes?: ComputeResult<ChartsRotationAxisProps>;
|
|
15
|
-
radiusAxes?: ComputeResult<ChartsRadiusAxisProps>;
|
|
16
|
-
}
|
|
17
|
-
export type TooltipItemPositionGetter<SeriesType extends ChartSeriesType> = (params: {
|
|
18
|
-
series: ProcessedSeries<SeriesType>;
|
|
19
|
-
axesConfig: TooltipPositionGetterAxesConfig;
|
|
20
|
-
drawingArea: ChartDrawingArea;
|
|
21
|
-
identifier: SeriesItemIdentifierWithType<SeriesType> | null;
|
|
22
|
-
seriesLayout: SeriesLayout<SeriesType>;
|
|
23
|
-
/**
|
|
24
|
-
* The preferred placement of the tooltip related to the element.
|
|
25
|
-
* @default 'top'
|
|
26
|
-
*/
|
|
27
|
-
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
28
|
-
}) => {
|
|
29
|
-
x: number;
|
|
30
|
-
y: number;
|
|
31
|
-
} | null;
|
|
32
|
-
/**
|
|
33
|
-
* Computes the anchor position of an item tooltip from the chart state. Series
|
|
34
|
-
* types whose position depends on state the core tooltip plugin doesn't track
|
|
35
|
-
* (e.g. the geo projection for map series) provide one of these instead of a
|
|
36
|
-
* `tooltipItemPositionGetter`, so the dependency is memoized correctly and the
|
|
37
|
-
* feature-specific code stays out of the core bundle.
|
|
38
|
-
* @param {ChartState} state The chart state.
|
|
39
|
-
* @param {'top' | 'bottom' | 'left' | 'right' | undefined} position The preferred placement of the tooltip.
|
|
40
|
-
* @returns {{ x: number; y: number } | null} The tooltip anchor position, or `null` when it cannot be computed.
|
|
41
|
-
*/
|
|
42
|
-
export type TooltipItemPositionSelector = (state: ChartState<[UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartTooltipSignature]>, position: 'top' | 'bottom' | 'left' | 'right' | undefined) => {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
} | null;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { SeriesItemIdentifierWithType } from "../../../../../models/seriesType/index.js";
|
|
2
|
-
import type { ChartSeriesType } from "../../../../../models/seriesType/config.js";
|
|
3
|
-
import type { ChartsRotationAxisProps, ChartsRadiusAxisProps, ComputedXAxis, ComputedYAxis } from "../../../../../models/axis.js";
|
|
4
|
-
import type { ChartDrawingArea } from "../../../../../hooks/useDrawingArea.js";
|
|
5
|
-
import type { ProcessedSeries, SeriesLayout } from "../../useChartSeries/index.js";
|
|
6
|
-
import type { ComputeResult } from "../../../featurePlugins/useChartPolarAxis/computeAxisValue.js";
|
|
7
|
-
import type { ChartState } from "../../../models/index.js";
|
|
8
|
-
import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/useChartCartesianAxis/index.js";
|
|
9
|
-
import type { UseChartInteractionSignature } from "../../../featurePlugins/useChartInteraction/index.js";
|
|
10
|
-
import type { UseChartTooltipSignature } from "../../../featurePlugins/useChartTooltip/index.js";
|
|
11
|
-
export interface TooltipPositionGetterAxesConfig {
|
|
12
|
-
x?: ComputedXAxis;
|
|
13
|
-
y?: ComputedYAxis;
|
|
14
|
-
rotationAxes?: ComputeResult<ChartsRotationAxisProps>;
|
|
15
|
-
radiusAxes?: ComputeResult<ChartsRadiusAxisProps>;
|
|
16
|
-
}
|
|
17
|
-
export type TooltipItemPositionGetter<SeriesType extends ChartSeriesType> = (params: {
|
|
18
|
-
series: ProcessedSeries<SeriesType>;
|
|
19
|
-
axesConfig: TooltipPositionGetterAxesConfig;
|
|
20
|
-
drawingArea: ChartDrawingArea;
|
|
21
|
-
identifier: SeriesItemIdentifierWithType<SeriesType> | null;
|
|
22
|
-
seriesLayout: SeriesLayout<SeriesType>;
|
|
23
|
-
/**
|
|
24
|
-
* The preferred placement of the tooltip related to the element.
|
|
25
|
-
* @default 'top'
|
|
26
|
-
*/
|
|
27
|
-
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
28
|
-
}) => {
|
|
29
|
-
x: number;
|
|
30
|
-
y: number;
|
|
31
|
-
} | null;
|
|
32
|
-
/**
|
|
33
|
-
* Computes the anchor position of an item tooltip from the chart state. Series
|
|
34
|
-
* types whose position depends on state the core tooltip plugin doesn't track
|
|
35
|
-
* (e.g. the geo projection for map series) provide one of these instead of a
|
|
36
|
-
* `tooltipItemPositionGetter`, so the dependency is memoized correctly and the
|
|
37
|
-
* feature-specific code stays out of the core bundle.
|
|
38
|
-
* @param {ChartState} state The chart state.
|
|
39
|
-
* @param {'top' | 'bottom' | 'left' | 'right' | undefined} position The preferred placement of the tooltip.
|
|
40
|
-
* @returns {{ x: number; y: number } | null} The tooltip anchor position, or `null` when it cannot be computed.
|
|
41
|
-
*/
|
|
42
|
-
export type TooltipItemPositionSelector = (state: ChartState<[UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartTooltipSignature]>, position: 'top' | 'bottom' | 'left' | 'right' | undefined) => {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
} | null;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ExtendedFeatureCollection, GeoProjection, GeoPath } from '@mui/x-charts-vendor/d3-geo';
|
|
2
|
-
import type { D3NamedProjection, GeoProjectionInput, GeoTooltipPosition, UseGeoProjectionSignature, UseGeoProjectionState } from "./useGeoProjection.types.mjs";
|
|
3
|
-
import type { ChartState } from "../../models/chart.mjs";
|
|
4
|
-
export declare const selectorChartGeoProjectionState: (state: ChartState<[], [UseGeoProjectionSignature]>) => UseGeoProjectionState["geoProjection"] | undefined;
|
|
5
|
-
export declare const selectorChartGeoData: (state: ChartState<[], [UseGeoProjectionSignature]>) => ExtendedFeatureCollection | null;
|
|
6
|
-
export declare const selectorChartGeoFeatureKey: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
7
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
8
|
-
}) => string | ((feature: ExtendedFeatureCollection["features"][number]) => string | null);
|
|
9
|
-
export declare const selectorChartRawProjection: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
10
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
11
|
-
}) => GeoProjectionInput | null;
|
|
12
|
-
export declare const selectorChartProjectionFactory: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
13
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
14
|
-
}) => Record<D3NamedProjection, (() => GeoProjection) | undefined> | null;
|
|
15
|
-
export declare const selectorChartRawScale: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
16
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
17
|
-
}) => number | null;
|
|
18
|
-
/**
|
|
19
|
-
* Map a feature's `properties.name` to its index in `geoData.features`,
|
|
20
|
-
* for fast lookup by name when joining series rows to features.
|
|
21
|
-
*
|
|
22
|
-
* Features without a string `properties.name` are skipped; on duplicates,
|
|
23
|
-
* the first occurrence wins.
|
|
24
|
-
*/
|
|
25
|
-
export declare const selectorChartGeoFeatureIndexesByName: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
26
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
27
|
-
}) => ReadonlyMap<string, number[]>;
|
|
28
|
-
/**
|
|
29
|
-
* Resolves the raw `projection` input into a ready-to-use `GeoProjection` instance
|
|
30
|
-
* fitted to the chart's drawing area.
|
|
31
|
-
*
|
|
32
|
-
* - String inputs (e.g. `'mercator'`) are mapped to the matching d3-geo factory.
|
|
33
|
-
* - `GeoProjection` instances are used as-is, then fitted.
|
|
34
|
-
* - Returns `null` when no projection is registered or the name is unknown.
|
|
35
|
-
*/
|
|
36
|
-
export declare const selectorChartProjection: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
37
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
38
|
-
}) => GeoProjection | null;
|
|
39
|
-
/**
|
|
40
|
-
* Resolves the raw `projection` input into a ready-to-use `GeoPath` instance
|
|
41
|
-
* fitted to the chart's drawing area.
|
|
42
|
-
*/
|
|
43
|
-
export declare const selectorChartGeoPath: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
44
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
45
|
-
}) => GeoPath<any, import("@mui/x-charts-vendor/d3-geo").GeoPermissibleObjects> | null;
|
|
46
|
-
export declare const selectorGeoTooltipPosition: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<UseGeoProjectionState> & {
|
|
47
|
-
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
48
|
-
}) => GeoTooltipPosition;
|