@mui/x-charts 9.9.0 → 9.10.1
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/barClasses.d.mts +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.js +3 -1
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.mjs +3 -1
- package/CHANGELOG.md +217 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +1 -1
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +1 -1
- package/ChartsAxisHighlight/getSampledBandHighlight.js +15 -3
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +15 -3
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.mts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.mts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.mts +2 -1
- package/ChartsLegend/chartsLegend.types.d.ts +2 -1
- package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
- 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/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +4 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +4 -1
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsXAxis/utilities.d.mts +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsYAxis/utilities.d.mts +1 -1
- package/ChartsYAxis/utilities.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +3 -3
- package/LineChart/AreaPlot.d.ts +3 -3
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- package/LineChart/LinePlot.d.mts +3 -3
- package/LineChart/LinePlot.d.ts +3 -3
- package/LineChart/LinePlot.js +4 -5
- package/LineChart/LinePlot.mjs +4 -5
- package/LineChart/MarkPlot.d.mts +5 -4
- package/LineChart/MarkPlot.d.ts +5 -4
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/MarkPlot.mjs +1 -1
- package/LineChart/lineClasses.d.mts +1 -1
- package/LineChart/lineClasses.d.ts +1 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.js +3 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.mjs +3 -1
- package/LineChart/useLineItemClickHandler.d.mts +12 -0
- package/LineChart/useLineItemClickHandler.d.ts +12 -0
- package/LineChart/useLineItemClickHandler.js +54 -0
- package/LineChart/useLineItemClickHandler.mjs +48 -0
- package/PieChart/PieArcLabelPlot.d.mts +2 -1
- package/PieChart/PieArcLabelPlot.d.ts +2 -1
- package/PieChart/PieArcPlot.d.mts +2 -1
- package/PieChart/PieArcPlot.d.ts +2 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +4 -4
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +4 -4
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
- package/RadarChart/radarClasses.d.mts +1 -1
- package/RadarChart/radarClasses.d.ts +1 -1
- package/RadarChart/seriesConfig/keyboardFocusHandler.js +3 -1
- package/RadarChart/seriesConfig/keyboardFocusHandler.mjs +3 -1
- package/RadarChart/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -1
- package/ScatterChart/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.d.ts +1 -1
- package/ScatterChart/useScatterPlotData.d.mts +1 -1
- package/ScatterChart/useScatterPlotData.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.mts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.mts +2 -1
- package/Toolbar/Toolbar.types.d.ts +2 -1
- package/hooks/animation/useAnimatePieArc.js +2 -1
- package/hooks/animation/useAnimatePieArc.mjs +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +1 -1
- package/internals/colorScale.d.ts +1 -1
- package/internals/commonNextFocusItem.d.mts +2 -2
- package/internals/commonNextFocusItem.d.ts +2 -2
- package/internals/commonNextFocusItem.js +4 -4
- package/internals/commonNextFocusItem.mjs +4 -4
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +1 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +1 -0
- package/internals/configInit.d.mts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/consumeThemeProps.d.mts +1 -1
- package/internals/consumeThemeProps.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
- package/internals/createGetBarDimensions.js +10 -5
- package/internals/createGetBarDimensions.mjs +10 -5
- package/internals/getGraphemeCount.d.mts +2 -2
- package/internals/getGraphemeCount.d.ts +2 -2
- package/internals/getGroupingConfig.d.mts +1 -1
- package/internals/getGroupingConfig.d.ts +1 -1
- package/internals/getSampledBucketRegion.d.mts +12 -0
- package/internals/getSampledBucketRegion.d.ts +12 -0
- package/internals/getSampledBucketRegion.js +23 -0
- package/internals/getSampledBucketRegion.mjs +17 -0
- package/internals/identifierCleaner.d.mts +1 -1
- package/internals/identifierCleaner.d.ts +1 -1
- package/internals/invertScale.d.mts +1 -1
- package/internals/invertScale.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- 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/featurePlugins/useChartBrush/useChartBrush.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.d.mts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.js +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.mjs +3 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +6 -6
- package/internals/seriesSelectorOfType.d.ts +6 -6
- package/internals/sizeScale.d.mts +1 -1
- package/internals/sizeScale.d.ts +1 -1
- package/internals/sliceUntil.d.mts +2 -2
- package/internals/sliceUntil.d.ts +2 -2
- package/internals/snapEndAngleToFullCircle.d.mts +20 -0
- package/internals/snapEndAngleToFullCircle.d.ts +20 -0
- package/internals/snapEndAngleToFullCircle.js +47 -0
- package/internals/snapEndAngleToFullCircle.mjs +41 -0
- package/models/axis.d.mts +5 -4
- package/models/axis.d.ts +5 -4
- package/models/seriesType/config.d.mts +2 -2
- package/models/seriesType/config.d.ts +2 -2
- package/models/seriesType/index.d.mts +1 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/line.d.mts +14 -1
- package/models/seriesType/line.d.ts +14 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { findMinMax } from "./findMinMax.mjs";
|
|
2
2
|
import { getBandSize } from "./getBandSize.mjs";
|
|
3
|
+
import { getSampledBucketRegion } from "./getSampledBucketRegion.mjs";
|
|
3
4
|
|
|
4
5
|
/** Minimum on-screen gap (px) kept between merged (sampled) bars so they stay distinguishable. */
|
|
5
6
|
const MIN_SAMPLED_BAR_GAP_PX = 2;
|
|
@@ -72,9 +73,12 @@ export function createGetBucketBarDimensions(params) {
|
|
|
72
73
|
const step = baseScale.step();
|
|
73
74
|
const valueScale = verticalLayout ? yAxisConfig.scale : xAxisConfig.scale;
|
|
74
75
|
return function getBucketBarDimensions(startIndex, endIndex, min, max, groupIndex) {
|
|
75
|
-
|
|
76
|
+
// Region matches the axis highlight (see `getSampledBandHighlight`) so bar and highlight stay in sync.
|
|
77
|
+
const {
|
|
78
|
+
regionStart,
|
|
79
|
+
regionSize: bucketStride
|
|
80
|
+
} = getSampledBucketRegion(baseScale, baseScaleConfig.data, startIndex, endIndex);
|
|
76
81
|
const bucketCount = endIndex - startIndex + 1;
|
|
77
|
-
const bucketStride = bucketCount * step;
|
|
78
82
|
|
|
79
83
|
// Keep the gap between buckets proportional to the bucket (same ratio as an unsampled chart),
|
|
80
84
|
// but never thinner than MIN_SAMPLED_BAR_GAP_PX so it stays visible at every level and zoom.
|
|
@@ -83,7 +87,8 @@ export function createGetBucketBarDimensions(params) {
|
|
|
83
87
|
barWidth,
|
|
84
88
|
offset
|
|
85
89
|
} = getBandSize(bucketStride - gap, numberOfGroups, baseScaleConfig.barGapRatio);
|
|
86
|
-
|
|
90
|
+
// Center the bars in the region (split the gap to both sides) so they sit under the highlight.
|
|
91
|
+
const barOffset = gap / 2 + groupIndex * (barWidth + offset);
|
|
87
92
|
const valueCoordinates = [valueScale(min), valueScale(max)];
|
|
88
93
|
const [minValueCoord, maxValueCoord] = findMinMax(valueCoordinates).map(v => Math.round(v));
|
|
89
94
|
let barSize = maxValueCoord - minValueCoord;
|
|
@@ -91,8 +96,8 @@ export function createGetBucketBarDimensions(params) {
|
|
|
91
96
|
barSize = Math.max(series.minBarSize, barSize);
|
|
92
97
|
}
|
|
93
98
|
return {
|
|
94
|
-
x: verticalLayout ?
|
|
95
|
-
y: verticalLayout ? minValueCoord :
|
|
99
|
+
x: verticalLayout ? regionStart + barOffset : minValueCoord,
|
|
100
|
+
y: verticalLayout ? minValueCoord : regionStart + barOffset,
|
|
96
101
|
height: verticalLayout ? barSize : barWidth,
|
|
97
102
|
width: verticalLayout ? barWidth : barSize
|
|
98
103
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function getGraphemeCountFallback(text: string): number;
|
|
2
2
|
/** Returns the number of graphemes (basically characters) present in {@link text}. */
|
|
3
|
-
export declare const getGraphemeCount: typeof
|
|
3
|
+
export declare const getGraphemeCount: typeof getGraphemeCountFallback;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function getGraphemeCountFallback(text: string): number;
|
|
2
2
|
/** Returns the number of graphemes (basically characters) present in {@link text}. */
|
|
3
|
-
export declare const getGraphemeCount: typeof
|
|
3
|
+
export declare const getGraphemeCount: typeof getGraphemeCountFallback;
|
|
4
4
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { AxisGroup } from "../models/axis.mjs";
|
|
|
2
2
|
export declare const getGroupingConfig: (groups: AxisGroup[], groupIndex: number, tickSize: number | undefined, computedGroupTickSizes?: number[]) => {
|
|
3
3
|
tickSize: number;
|
|
4
4
|
getValue: (value: any, dataIndex: number) => string | number | Date;
|
|
5
|
-
tickLabelStyle?: import("../index.mjs").ChartsTextProps[
|
|
5
|
+
tickLabelStyle?: import("../index.mjs").ChartsTextProps['style'];
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import type { AxisGroup } from "../models/axis.js";
|
|
|
2
2
|
export declare const getGroupingConfig: (groups: AxisGroup[], groupIndex: number, tickSize: number | undefined, computedGroupTickSizes?: number[]) => {
|
|
3
3
|
tickSize: number;
|
|
4
4
|
getValue: (value: any, dataIndex: number) => string | number | Date;
|
|
5
|
-
tickLabelStyle?: import("../index.js").ChartsTextProps[
|
|
5
|
+
tickLabelStyle?: import("../index.js").ChartsTextProps['style'];
|
|
6
6
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { D3OrdinalScale } from "../models/axis.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Computes the band region covered by a sampled bucket spanning `data[startIndex..endIndex]`.
|
|
4
|
+
*
|
|
5
|
+
* The region is anchored at its left-most slot and spans whole steps, so both the rendered bar
|
|
6
|
+
* (see `createGetBucketBarDimensions`) and the axis highlight (see `getSampledBandHighlight`)
|
|
7
|
+
* stay in sync — on a reversed axis `startIndex` maps to the right, hence the `Math.min`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSampledBucketRegion(scale: D3OrdinalScale, data: readonly any[], startIndex: number, endIndex: number): {
|
|
10
|
+
regionStart: number;
|
|
11
|
+
regionSize: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { D3OrdinalScale } from "../models/axis.js";
|
|
2
|
+
/**
|
|
3
|
+
* Computes the band region covered by a sampled bucket spanning `data[startIndex..endIndex]`.
|
|
4
|
+
*
|
|
5
|
+
* The region is anchored at its left-most slot and spans whole steps, so both the rendered bar
|
|
6
|
+
* (see `createGetBucketBarDimensions`) and the axis highlight (see `getSampledBandHighlight`)
|
|
7
|
+
* stay in sync — on a reversed axis `startIndex` maps to the right, hence the `Math.min`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSampledBucketRegion(scale: D3OrdinalScale, data: readonly any[], startIndex: number, endIndex: number): {
|
|
10
|
+
regionStart: number;
|
|
11
|
+
regionSize: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSampledBucketRegion = getSampledBucketRegion;
|
|
7
|
+
/**
|
|
8
|
+
* Computes the band region covered by a sampled bucket spanning `data[startIndex..endIndex]`.
|
|
9
|
+
*
|
|
10
|
+
* The region is anchored at its left-most slot and spans whole steps, so both the rendered bar
|
|
11
|
+
* (see `createGetBucketBarDimensions`) and the axis highlight (see `getSampledBandHighlight`)
|
|
12
|
+
* stay in sync — on a reversed axis `startIndex` maps to the right, hence the `Math.min`.
|
|
13
|
+
*/
|
|
14
|
+
function getSampledBucketRegion(scale, data, startIndex, endIndex) {
|
|
15
|
+
const step = scale.step();
|
|
16
|
+
const halfPadding = (step - scale.bandwidth()) / 2;
|
|
17
|
+
const startPos = scale(data[startIndex]);
|
|
18
|
+
const endPos = scale(data[endIndex]);
|
|
19
|
+
return {
|
|
20
|
+
regionStart: Math.min(startPos, endPos) - halfPadding,
|
|
21
|
+
regionSize: (endIndex - startIndex + 1) * step
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computes the band region covered by a sampled bucket spanning `data[startIndex..endIndex]`.
|
|
3
|
+
*
|
|
4
|
+
* The region is anchored at its left-most slot and spans whole steps, so both the rendered bar
|
|
5
|
+
* (see `createGetBucketBarDimensions`) and the axis highlight (see `getSampledBandHighlight`)
|
|
6
|
+
* stay in sync — on a reversed axis `startIndex` maps to the right, hence the `Math.min`.
|
|
7
|
+
*/
|
|
8
|
+
export function getSampledBucketRegion(scale, data, startIndex, endIndex) {
|
|
9
|
+
const step = scale.step();
|
|
10
|
+
const halfPadding = (step - scale.bandwidth()) / 2;
|
|
11
|
+
const startPos = scale(data[startIndex]);
|
|
12
|
+
const endPos = scale(data[endIndex]);
|
|
13
|
+
return {
|
|
14
|
+
regionStart: Math.min(startPos, endPos) - halfPadding,
|
|
15
|
+
regionSize: (endIndex - startIndex + 1) * step
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -12,4 +12,4 @@ export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
|
12
12
|
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}>(identifier: T) => Pick<T,
|
|
15
|
+
}>(identifier: T) => Pick<T, 'type' | 'seriesId' | 'dataIndex'>;
|
|
@@ -12,4 +12,4 @@ export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
|
12
12
|
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}>(identifier: T) => Pick<T,
|
|
15
|
+
}>(identifier: T) => Pick<T, 'type' | 'seriesId' | 'dataIndex'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { D3OrdinalScale, D3Scale } from "../models/axis.mjs";
|
|
2
|
-
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number |
|
|
2
|
+
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number | T | Date;
|
|
3
3
|
/**
|
|
4
4
|
* Get the data index for a given value on an ordinal scale.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { D3OrdinalScale, D3Scale } from "../models/axis.js";
|
|
2
|
-
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number |
|
|
2
|
+
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number | T | Date;
|
|
3
3
|
/**
|
|
4
4
|
* Get the data index for a given value on an ordinal scale.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ export declare const defaultizeSeries: <SeriesType extends ChartSeriesType>({
|
|
|
19
19
|
}: {
|
|
20
20
|
series: Readonly<AllSeriesType<SeriesType>[]>;
|
|
21
21
|
colors: readonly string[];
|
|
22
|
-
theme:
|
|
22
|
+
theme: 'light' | 'dark';
|
|
23
23
|
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
24
24
|
}) => {
|
|
25
25
|
defaultizedSeries: DefaultizedSeriesGroups<SeriesType>;
|
|
@@ -19,7 +19,7 @@ export declare const defaultizeSeries: <SeriesType extends ChartSeriesType>({
|
|
|
19
19
|
}: {
|
|
20
20
|
series: Readonly<AllSeriesType<SeriesType>[]>;
|
|
21
21
|
colors: readonly string[];
|
|
22
|
-
theme:
|
|
22
|
+
theme: 'light' | 'dark';
|
|
23
23
|
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
24
24
|
}) => {
|
|
25
25
|
defaultizedSeries: DefaultizedSeriesGroups<SeriesType>;
|
|
@@ -25,7 +25,7 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
|
|
27
27
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
28
|
-
}) => (seriesId: SeriesId) =>
|
|
28
|
+
}) => (seriesId: SeriesId) => {
|
|
29
29
|
seriesProcessor: import("../useChartSeriesConfig/index.mjs").SeriesProcessor<"pie">;
|
|
30
30
|
seriesLayout?: import("../useChartSeriesConfig/index.mjs").SeriesLayoutGetter<"pie"> | undefined;
|
|
31
31
|
colorProcessor: import("../useChartSeriesConfig/index.mjs").ColorProcessor<"pie">;
|
|
@@ -42,4 +42,4 @@ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useCha
|
|
|
42
42
|
descriptionGetter: import("../useChartSeriesConfig/index.mjs").DescriptionGetter<"pie">;
|
|
43
43
|
isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
|
|
44
44
|
isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
|
|
45
|
-
} | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"radar"> | null;
|
|
45
|
+
} | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"radar"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"scatter"> | null;
|
|
@@ -25,7 +25,7 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
27
27
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
28
|
-
}) => (seriesId: SeriesId) =>
|
|
28
|
+
}) => (seriesId: SeriesId) => {
|
|
29
29
|
seriesProcessor: import("../useChartSeriesConfig/index.js").SeriesProcessor<"pie">;
|
|
30
30
|
seriesLayout?: import("../useChartSeriesConfig/index.js").SeriesLayoutGetter<"pie"> | undefined;
|
|
31
31
|
colorProcessor: import("../useChartSeriesConfig/index.js").ColorProcessor<"pie">;
|
|
@@ -42,4 +42,4 @@ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useCha
|
|
|
42
42
|
descriptionGetter: import("../useChartSeriesConfig/index.js").DescriptionGetter<"pie">;
|
|
43
43
|
isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
|
|
44
44
|
isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
|
|
45
|
-
} | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"radar"> | null;
|
|
45
|
+
} | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"radar"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"scatter"> | null;
|
|
@@ -33,13 +33,13 @@ export declare const selectorBrushState: (args_0: import("../../corePlugins/useC
|
|
|
33
33
|
} | null;
|
|
34
34
|
export declare const selectorBrushConfigNoZoom: (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<{}> & {
|
|
35
35
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
36
|
-
}) => "x" | "
|
|
36
|
+
}) => "x" | "xy" | "y";
|
|
37
37
|
export declare const selectorBrushConfigZoom: (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("../useChartCartesianAxis/index.mjs").UseChartCartesianAxisState> & {
|
|
38
38
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
39
|
-
}) => "x" | "
|
|
39
|
+
}) => "x" | "xy" | "y" | null;
|
|
40
40
|
export declare const selectorBrushConfig: (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<{}> & {
|
|
41
41
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
42
|
-
}) => "x" | "
|
|
42
|
+
}) => "x" | "xy" | "y";
|
|
43
43
|
export declare const selectorIsBrushEnabled: (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("./useChartBrush.types.mjs").UseChartBrushState> & {
|
|
44
44
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
45
45
|
}) => boolean | undefined;
|
|
@@ -33,13 +33,13 @@ export declare const selectorBrushState: (args_0: import("../../corePlugins/useC
|
|
|
33
33
|
} | null;
|
|
34
34
|
export declare const selectorBrushConfigNoZoom: (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<{}> & {
|
|
35
35
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
36
|
-
}) => "x" | "
|
|
36
|
+
}) => "x" | "xy" | "y";
|
|
37
37
|
export declare const selectorBrushConfigZoom: (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("../useChartCartesianAxis/index.js").UseChartCartesianAxisState> & {
|
|
38
38
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
39
|
-
}) => "x" | "
|
|
39
|
+
}) => "x" | "xy" | "y" | null;
|
|
40
40
|
export declare const selectorBrushConfig: (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<{}> & {
|
|
41
41
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
42
|
-
}) => "x" | "
|
|
42
|
+
}) => "x" | "xy" | "y";
|
|
43
43
|
export declare const selectorIsBrushEnabled: (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("./useChartBrush.types.js").UseChartBrushState> & {
|
|
44
44
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
45
45
|
}) => boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AxisConfig, ScaleName } from "../../../../models/index.mjs";
|
|
2
2
|
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.mjs";
|
|
3
3
|
import type { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.mjs";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection:
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: 'x' | 'y') => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AxisConfig, ScaleName } from "../../../../models/index.js";
|
|
2
2
|
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.js";
|
|
3
3
|
import type { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection:
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: 'x' | 'y') => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -9,7 +9,7 @@ import type { ZoomOptions } from "./zoom.types.mjs";
|
|
|
9
9
|
* Returns the `reverse` flag the zoom handlers should use so that pan/wheel
|
|
10
10
|
* gestures follow the visual direction of the axis.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getEffectiveZoomReverse: (axisDirection:
|
|
12
|
+
export declare const getEffectiveZoomReverse: (axisDirection: 'x' | 'y', scaleType: ScaleName | undefined, reverse: boolean | undefined) => boolean;
|
|
13
13
|
export declare const defaultZoomOptions: {
|
|
14
14
|
minStart: number;
|
|
15
15
|
maxEnd: number;
|
|
@@ -26,4 +26,4 @@ export declare const defaultZoomOptions: {
|
|
|
26
26
|
showTooltip: import("./zoom.types.mjs").ZoomSliderShowTooltip;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection:
|
|
29
|
+
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection: 'x' | 'y', reverse?: boolean) => DefaultizedZoomOptions | undefined;
|
|
@@ -9,7 +9,7 @@ import type { ZoomOptions } from "./zoom.types.js";
|
|
|
9
9
|
* Returns the `reverse` flag the zoom handlers should use so that pan/wheel
|
|
10
10
|
* gestures follow the visual direction of the axis.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getEffectiveZoomReverse: (axisDirection:
|
|
12
|
+
export declare const getEffectiveZoomReverse: (axisDirection: 'x' | 'y', scaleType: ScaleName | undefined, reverse: boolean | undefined) => boolean;
|
|
13
13
|
export declare const defaultZoomOptions: {
|
|
14
14
|
minStart: number;
|
|
15
15
|
maxEnd: number;
|
|
@@ -26,4 +26,4 @@ export declare const defaultZoomOptions: {
|
|
|
26
26
|
showTooltip: import("./zoom.types.js").ZoomSliderShowTooltip;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection:
|
|
29
|
+
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection: 'x' | 'y', reverse?: boolean) => DefaultizedZoomOptions | undefined;
|
|
@@ -2,7 +2,7 @@ import type { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { AxisConfig } from "../../../../models/axis.mjs";
|
|
3
3
|
import type { CartesianChartSeriesType } from "../../../../models/seriesType/config.mjs";
|
|
4
4
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/index.mjs";
|
|
5
|
-
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig,
|
|
5
|
+
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig, 'id' | 'domainLimit'>, axisDirection: 'x' | 'y', axisIndex: number, formattedSeries: ProcessedSeries<T | 'line'>) => 'nice' | 'strict' | ((min: NumberValue, max: NumberValue) => {
|
|
6
6
|
min: NumberValue;
|
|
7
7
|
max: NumberValue;
|
|
8
8
|
});
|
|
@@ -2,7 +2,7 @@ import type { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { AxisConfig } from "../../../../models/axis.js";
|
|
3
3
|
import type { CartesianChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
4
4
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/index.js";
|
|
5
|
-
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig,
|
|
5
|
+
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig, 'id' | 'domainLimit'>, axisDirection: 'x' | 'y', axisIndex: number, formattedSeries: ProcessedSeries<T | 'line'>) => 'nice' | 'strict' | ((min: NumberValue, max: NumberValue) => {
|
|
6
6
|
min: NumberValue;
|
|
7
7
|
max: NumberValue;
|
|
8
8
|
});
|
|
@@ -2,4 +2,4 @@ import type { CartesianChartSeriesType } from "../../../../models/seriesType/con
|
|
|
2
2
|
import type { ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
3
3
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
|
|
4
4
|
import type { AxisId } from "../../../../models/axis.mjs";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection:
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection: 'x' | 'y', seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|
|
@@ -2,4 +2,4 @@ import type { CartesianChartSeriesType } from "../../../../models/seriesType/con
|
|
|
2
2
|
import type { ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
|
|
3
3
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
4
4
|
import type { AxisId } from "../../../../models/axis.js";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection:
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection: 'x' | 'y', seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|