@mui/x-charts 9.1.0 → 9.3.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/BarChart.js +10 -10
- package/BarChart/BarChart.mjs +10 -10
- package/BarChart/seriesConfig/bar/getColor.js +7 -53
- package/BarChart/seriesConfig/bar/getColor.mjs +7 -53
- package/BarChart/seriesConfig/bar/seriesProcessor.js +3 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.mjs +3 -1
- package/BarChart/seriesConfig/bar/tooltip.js +4 -27
- package/BarChart/seriesConfig/bar/tooltip.mjs +4 -27
- package/CHANGELOG.md +221 -0
- package/ChartsContainer/ChartsContainer.js +9 -9
- package/ChartsContainer/ChartsContainer.mjs +9 -9
- package/ChartsLabel/ChartsLabelMark.js +0 -2
- package/ChartsLabel/ChartsLabelMark.mjs +0 -2
- package/ChartsLabel/labelMarkClasses.d.mts +0 -1
- package/ChartsLabel/labelMarkClasses.d.ts +0 -1
- package/ChartsLabel/labelMarkClasses.js +1 -2
- package/ChartsLabel/labelMarkClasses.mjs +2 -2
- package/ChartsLayerContainer/ChartsLayerContainer.js +36 -30
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +36 -30
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.mts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.ts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.js +31 -14
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.mjs +32 -15
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +20 -16
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +21 -15
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.js +16 -19
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +17 -18
- package/ChartsTooltip/useAxesTooltip.d.mts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.js +11 -2
- package/ChartsTooltip/useAxesTooltip.mjs +12 -3
- package/ChartsXAxis/ChartsXAxis.js +3 -1
- package/ChartsXAxis/ChartsXAxis.mjs +3 -1
- package/ChartsYAxis/ChartsYAxis.js +3 -1
- package/ChartsYAxis/ChartsYAxis.mjs +3 -1
- package/LineChart/LineChart.js +6 -6
- package/LineChart/LineChart.mjs +6 -6
- package/LineChart/seriesConfig/curveEvaluation.js +12 -1
- package/LineChart/seriesConfig/curveEvaluation.mjs +12 -1
- package/LineChart/seriesConfig/getColor.js +7 -54
- package/LineChart/seriesConfig/getColor.mjs +7 -54
- package/LineChart/seriesConfig/seriesProcessor.d.mts +2 -4
- package/LineChart/seriesConfig/seriesProcessor.d.ts +2 -4
- package/LineChart/seriesConfig/seriesProcessor.js +2 -139
- package/LineChart/seriesConfig/seriesProcessor.mjs +2 -138
- package/LineChart/seriesConfig/tooltip.js +4 -25
- package/LineChart/seriesConfig/tooltip.mjs +4 -25
- package/PieChart/PieChart.js +6 -6
- package/PieChart/PieChart.mjs +6 -6
- package/RadarChart/RadarAxis/useRadarAxis.js +1 -1
- package/RadarChart/RadarAxis/useRadarAxis.mjs +1 -1
- package/RadarChart/RadarChart.js +8 -8
- package/RadarChart/RadarChart.mjs +8 -8
- package/RadarChart/RadarGrid/CircularRadarStripes.js +2 -3
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +2 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +3 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +3 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +1 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +1 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +1 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +1 -0
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.mjs +2 -2
- package/ScatterChart/ScatterChart.js +11 -11
- package/ScatterChart/ScatterChart.mjs +11 -11
- package/ScatterChart/seriesConfig/tooltip.js +2 -24
- package/ScatterChart/seriesConfig/tooltip.mjs +2 -24
- package/SparkLineChart/SparkLineChart.js +27 -27
- package/SparkLineChart/SparkLineChart.mjs +27 -27
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +1 -1
- package/internals/getLineLikeTooltip.d.mts +9 -0
- package/internals/getLineLikeTooltip.d.ts +9 -0
- package/internals/getLineLikeTooltip.js +38 -0
- package/internals/getLineLikeTooltip.mjs +31 -0
- package/internals/getRingPath.d.mts +16 -0
- package/internals/getRingPath.d.ts +16 -0
- package/internals/getRingPath.js +39 -0
- package/internals/getRingPath.mjs +33 -0
- package/internals/index.d.mts +7 -2
- package/internals/index.d.ts +7 -2
- package/internals/index.js +46 -3
- package/internals/index.mjs +6 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +4 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +4 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +8 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.mts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +48 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +47 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +74 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +74 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +3 -0
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +3 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.mts +6 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +6 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +36 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs +34 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +22 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +22 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +73 -12
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +74 -12
- package/internals/processLineLikeSeries.d.mts +6 -0
- package/internals/processLineLikeSeries.d.ts +6 -0
- package/internals/processLineLikeSeries.js +145 -0
- package/internals/processLineLikeSeries.mjs +138 -0
- package/internals/resolveColorProcessor.d.mts +11 -0
- package/internals/resolveColorProcessor.d.ts +11 -0
- package/internals/resolveColorProcessor.js +62 -0
- package/internals/resolveColorProcessor.mjs +56 -0
- package/models/axis.d.mts +55 -7
- package/models/axis.d.ts +55 -7
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
2
|
+
import type { TooltipGetterParams, TooltipGetterResult } from "./plugins/corePlugins/useChartSeriesConfig/index.mjs";
|
|
3
|
+
type LineLikeTooltipChartType = Extract<ChartSeriesType, 'line' | 'radialLine' | 'bar' | 'radialBar' | 'scatter'>;
|
|
4
|
+
export interface LineLikeTooltipOptions {
|
|
5
|
+
skipNullValues?: boolean;
|
|
6
|
+
includeMarkShape?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getLineLikeTooltip<SeriesType extends LineLikeTooltipChartType>(params: TooltipGetterParams<SeriesType>, options?: LineLikeTooltipOptions): TooltipGetterResult<SeriesType>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
2
|
+
import type { TooltipGetterParams, TooltipGetterResult } from "./plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
3
|
+
type LineLikeTooltipChartType = Extract<ChartSeriesType, 'line' | 'radialLine' | 'bar' | 'radialBar' | 'scatter'>;
|
|
4
|
+
export interface LineLikeTooltipOptions {
|
|
5
|
+
skipNullValues?: boolean;
|
|
6
|
+
includeMarkShape?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getLineLikeTooltip<SeriesType extends LineLikeTooltipChartType>(params: TooltipGetterParams<SeriesType>, options?: LineLikeTooltipOptions): TooltipGetterResult<SeriesType>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getLineLikeTooltip = getLineLikeTooltip;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _getLabel = require("./getLabel");
|
|
10
|
+
function getLineLikeTooltip(params, options = {}) {
|
|
11
|
+
const {
|
|
12
|
+
series,
|
|
13
|
+
getColor,
|
|
14
|
+
identifier
|
|
15
|
+
} = params;
|
|
16
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const label = (0, _getLabel.getLabel)(series.label, 'tooltip');
|
|
20
|
+
const value = series.data[identifier.dataIndex];
|
|
21
|
+
if (options.skipNullValues && value == null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const formattedValue = series.valueFormatter(value, {
|
|
25
|
+
dataIndex: identifier.dataIndex
|
|
26
|
+
});
|
|
27
|
+
const result = (0, _extends2.default)({
|
|
28
|
+
identifier,
|
|
29
|
+
color: getColor(identifier.dataIndex),
|
|
30
|
+
label,
|
|
31
|
+
value,
|
|
32
|
+
formattedValue,
|
|
33
|
+
markType: series.labelMarkType
|
|
34
|
+
}, options.includeMarkShape && 'showMark' in series && {
|
|
35
|
+
markShape: series.showMark ? series.shape : undefined
|
|
36
|
+
});
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import { getLabel } from "./getLabel.mjs";
|
|
3
|
+
export function getLineLikeTooltip(params, options = {}) {
|
|
4
|
+
const {
|
|
5
|
+
series,
|
|
6
|
+
getColor,
|
|
7
|
+
identifier
|
|
8
|
+
} = params;
|
|
9
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const label = getLabel(series.label, 'tooltip');
|
|
13
|
+
const value = series.data[identifier.dataIndex];
|
|
14
|
+
if (options.skipNullValues && value == null) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
const formattedValue = series.valueFormatter(value, {
|
|
18
|
+
dataIndex: identifier.dataIndex
|
|
19
|
+
});
|
|
20
|
+
const result = _extends({
|
|
21
|
+
identifier,
|
|
22
|
+
color: getColor(identifier.dataIndex),
|
|
23
|
+
label,
|
|
24
|
+
value,
|
|
25
|
+
formattedValue,
|
|
26
|
+
markType: series.labelMarkType
|
|
27
|
+
}, options.includeMarkShape && 'showMark' in series && {
|
|
28
|
+
markShape: series.showMark ? series.shape : undefined
|
|
29
|
+
});
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRingPath(center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}, outerRadius: number, innerRadius: number, angles?: {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
} | undefined): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRingPath(center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}, outerRadius: number, innerRadius: number, angles?: {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
} | undefined): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getRingPath = getRingPath;
|
|
7
|
+
/**
|
|
8
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
9
|
+
*
|
|
10
|
+
* @param center - The center of the ring.
|
|
11
|
+
* @param outerRadius - The outer radius of the ring.
|
|
12
|
+
* @param innerRadius - The inner radius of the ring.
|
|
13
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
14
|
+
* @returns The SVG path string to display the ring.
|
|
15
|
+
*/
|
|
16
|
+
function getRingPath(center, outerRadius, innerRadius, angles) {
|
|
17
|
+
if (!angles) {
|
|
18
|
+
return [`M ${center.x - outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x + outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x - outerRadius} ${center.y} Z`, `M ${center.x - innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x + innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x - innerRadius} ${center.y} Z`].join('');
|
|
19
|
+
}
|
|
20
|
+
const isLargeArc = Math.abs(angles.end - angles.start) > Math.PI;
|
|
21
|
+
const isDirectArc = angles.end > angles.start;
|
|
22
|
+
const startOuterPoint = {
|
|
23
|
+
x: center.x + outerRadius * Math.sin(angles.start),
|
|
24
|
+
y: center.y - outerRadius * Math.cos(angles.start)
|
|
25
|
+
};
|
|
26
|
+
const endOuterPoint = {
|
|
27
|
+
x: center.x + outerRadius * Math.sin(angles.end),
|
|
28
|
+
y: center.y - outerRadius * Math.cos(angles.end)
|
|
29
|
+
};
|
|
30
|
+
const startInnerPoint = {
|
|
31
|
+
x: center.x + innerRadius * Math.sin(angles.start),
|
|
32
|
+
y: center.y - innerRadius * Math.cos(angles.start)
|
|
33
|
+
};
|
|
34
|
+
const endInnerPoint = {
|
|
35
|
+
x: center.x + innerRadius * Math.sin(angles.end),
|
|
36
|
+
y: center.y - innerRadius * Math.cos(angles.end)
|
|
37
|
+
};
|
|
38
|
+
return [`M ${startOuterPoint.x} ${startOuterPoint.y}`, `A ${outerRadius} ${outerRadius} 0 ${isLargeArc ? 1 : 0} ${isDirectArc ? 1 : 0} ${endOuterPoint.x} ${endOuterPoint.y}`, `L ${endInnerPoint.x} ${endInnerPoint.y}`, `A ${innerRadius} ${innerRadius} 0 ${isLargeArc ? 1 : 0} ${!isDirectArc ? 1 : 0} ${startInnerPoint.x} ${startInnerPoint.y} Z`].join('');
|
|
39
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export function getRingPath(center, outerRadius, innerRadius, angles) {
|
|
11
|
+
if (!angles) {
|
|
12
|
+
return [`M ${center.x - outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x + outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x - outerRadius} ${center.y} Z`, `M ${center.x - innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x + innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x - innerRadius} ${center.y} Z`].join('');
|
|
13
|
+
}
|
|
14
|
+
const isLargeArc = Math.abs(angles.end - angles.start) > Math.PI;
|
|
15
|
+
const isDirectArc = angles.end > angles.start;
|
|
16
|
+
const startOuterPoint = {
|
|
17
|
+
x: center.x + outerRadius * Math.sin(angles.start),
|
|
18
|
+
y: center.y - outerRadius * Math.cos(angles.start)
|
|
19
|
+
};
|
|
20
|
+
const endOuterPoint = {
|
|
21
|
+
x: center.x + outerRadius * Math.sin(angles.end),
|
|
22
|
+
y: center.y - outerRadius * Math.cos(angles.end)
|
|
23
|
+
};
|
|
24
|
+
const startInnerPoint = {
|
|
25
|
+
x: center.x + innerRadius * Math.sin(angles.start),
|
|
26
|
+
y: center.y - innerRadius * Math.cos(angles.start)
|
|
27
|
+
};
|
|
28
|
+
const endInnerPoint = {
|
|
29
|
+
x: center.x + innerRadius * Math.sin(angles.end),
|
|
30
|
+
y: center.y - innerRadius * Math.cos(angles.end)
|
|
31
|
+
};
|
|
32
|
+
return [`M ${startOuterPoint.x} ${startOuterPoint.y}`, `A ${outerRadius} ${outerRadius} 0 ${isLargeArc ? 1 : 0} ${isDirectArc ? 1 : 0} ${endOuterPoint.x} ${endOuterPoint.y}`, `L ${endInnerPoint.x} ${endInnerPoint.y}`, `A ${innerRadius} ${innerRadius} 0 ${isLargeArc ? 1 : 0} ${!isDirectArc ? 1 : 0} ${startInnerPoint.x} ${startInnerPoint.y} Z`].join('');
|
|
33
|
+
}
|
package/internals/index.d.mts
CHANGED
|
@@ -13,7 +13,8 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.mjs";
|
|
|
13
13
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.mjs";
|
|
14
14
|
export { useLinePlotData } from "../LineChart/useLinePlotData.mjs";
|
|
15
15
|
export * from "../BarChart/useBarChartProps.mjs";
|
|
16
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
|
|
16
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.mjs";
|
|
17
|
+
export type { BorderRadiusSide, MaskData, ProcessedBarData, ProcessedBarSeriesData } from "../BarChart/types.mjs";
|
|
17
18
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
|
|
18
19
|
export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
19
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
@@ -40,7 +41,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
|
40
41
|
export * from "./plugins/utils/selectors.mjs";
|
|
41
42
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.mjs";
|
|
42
43
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.mjs";
|
|
43
|
-
export {
|
|
44
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs";
|
|
44
45
|
export * from "./store/useCharts.mjs";
|
|
45
46
|
export * from "./store/useStore.mjs";
|
|
46
47
|
export * from "../BarChart/BarChart.plugins.mjs";
|
|
@@ -53,6 +54,7 @@ export * from "./clampAngle.mjs";
|
|
|
53
54
|
export * from "./getLabel.mjs";
|
|
54
55
|
export * from "./legendUtils.mjs";
|
|
55
56
|
export * from "./getChartPoint.mjs";
|
|
57
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
|
|
56
58
|
export * from "./isDefined.mjs";
|
|
57
59
|
export * from "./getScale.mjs";
|
|
58
60
|
export * from "./getAsNumber.mjs";
|
|
@@ -71,6 +73,9 @@ export * from "./findMinMax.mjs";
|
|
|
71
73
|
export * from "./commonNextFocusItem.mjs";
|
|
72
74
|
export { createCommonKeyboardFocusHandler } from "./createCommonKeyboardFocusHandler.mjs";
|
|
73
75
|
export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
|
|
76
|
+
export { resolveColorProcessor } from "./resolveColorProcessor.mjs";
|
|
77
|
+
export { processLineLikeSeries } from "./processLineLikeSeries.mjs";
|
|
78
|
+
export { getLineLikeTooltip } from "./getLineLikeTooltip.mjs";
|
|
74
79
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
|
|
75
80
|
export { getBandSize } from "./getBandSize.mjs";
|
|
76
81
|
export * from "./plugins/utils/defaultSeriesConfig.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.js";
|
|
|
13
13
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.js";
|
|
14
14
|
export { useLinePlotData } from "../LineChart/useLinePlotData.js";
|
|
15
15
|
export * from "../BarChart/useBarChartProps.js";
|
|
16
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.js";
|
|
16
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.js";
|
|
17
|
+
export type { BorderRadiusSide, MaskData, ProcessedBarData, ProcessedBarSeriesData } from "../BarChart/types.js";
|
|
17
18
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
18
19
|
export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
19
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.js";
|
|
@@ -40,7 +41,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.js";
|
|
|
40
41
|
export * from "./plugins/utils/selectors.js";
|
|
41
42
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js";
|
|
42
43
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js";
|
|
43
|
-
export {
|
|
44
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js";
|
|
44
45
|
export * from "./store/useCharts.js";
|
|
45
46
|
export * from "./store/useStore.js";
|
|
46
47
|
export * from "../BarChart/BarChart.plugins.js";
|
|
@@ -53,6 +54,7 @@ export * from "./clampAngle.js";
|
|
|
53
54
|
export * from "./getLabel.js";
|
|
54
55
|
export * from "./legendUtils.js";
|
|
55
56
|
export * from "./getChartPoint.js";
|
|
57
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js";
|
|
56
58
|
export * from "./isDefined.js";
|
|
57
59
|
export * from "./getScale.js";
|
|
58
60
|
export * from "./getAsNumber.js";
|
|
@@ -71,6 +73,9 @@ export * from "./findMinMax.js";
|
|
|
71
73
|
export * from "./commonNextFocusItem.js";
|
|
72
74
|
export { createCommonKeyboardFocusHandler } from "./createCommonKeyboardFocusHandler.js";
|
|
73
75
|
export { getSeriesColorFn } from "./getSeriesColorFn.js";
|
|
76
|
+
export { resolveColorProcessor } from "./resolveColorProcessor.js";
|
|
77
|
+
export { processLineLikeSeries } from "./processLineLikeSeries.js";
|
|
78
|
+
export { getLineLikeTooltip } from "./getLineLikeTooltip.js";
|
|
74
79
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
75
80
|
export { getBandSize } from "./getBandSize.js";
|
|
76
81
|
export * from "./plugins/utils/defaultSeriesConfig.js";
|
package/internals/index.js
CHANGED
|
@@ -15,14 +15,18 @@ var _exportNames = {
|
|
|
15
15
|
useAreaPlotData: true,
|
|
16
16
|
useLinePlotData: true,
|
|
17
17
|
processBarDataForPlot: true,
|
|
18
|
+
useBarPlotData: true,
|
|
18
19
|
useRadarChartProps: true,
|
|
19
20
|
useSkipAnimation: true,
|
|
20
21
|
useRegisterPointerInteractions: true,
|
|
21
22
|
getCartesianAxisTriggerTooltip: true,
|
|
22
23
|
getCartesianAxisIndex: true,
|
|
23
|
-
|
|
24
|
+
getRotationAxisIndex: true,
|
|
24
25
|
createCommonKeyboardFocusHandler: true,
|
|
25
26
|
getSeriesColorFn: true,
|
|
27
|
+
resolveColorProcessor: true,
|
|
28
|
+
processLineLikeSeries: true,
|
|
29
|
+
getLineLikeTooltip: true,
|
|
26
30
|
checkBarChartScaleErrors: true,
|
|
27
31
|
getBandSize: true,
|
|
28
32
|
EPSILON: true,
|
|
@@ -92,10 +96,16 @@ Object.defineProperty(exports, "getLineItemAtPosition", {
|
|
|
92
96
|
return _getItemAtPosition.default;
|
|
93
97
|
}
|
|
94
98
|
});
|
|
95
|
-
Object.defineProperty(exports, "
|
|
99
|
+
Object.defineProperty(exports, "getLineLikeTooltip", {
|
|
96
100
|
enumerable: true,
|
|
97
101
|
get: function () {
|
|
98
|
-
return
|
|
102
|
+
return _getLineLikeTooltip.getLineLikeTooltip;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "getRotationAxisIndex", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () {
|
|
108
|
+
return _getAxisIndex.getRotationAxisIndex;
|
|
99
109
|
}
|
|
100
110
|
});
|
|
101
111
|
Object.defineProperty(exports, "getSeriesColorFn", {
|
|
@@ -110,6 +120,18 @@ Object.defineProperty(exports, "processBarDataForPlot", {
|
|
|
110
120
|
return _useBarPlotData.processBarDataForPlot;
|
|
111
121
|
}
|
|
112
122
|
});
|
|
123
|
+
Object.defineProperty(exports, "processLineLikeSeries", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return _processLineLikeSeries.processLineLikeSeries;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "resolveColorProcessor", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return _resolveColorProcessor.resolveColorProcessor;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
113
135
|
Object.defineProperty(exports, "scatterSeriesConfig", {
|
|
114
136
|
enumerable: true,
|
|
115
137
|
get: function () {
|
|
@@ -122,6 +144,12 @@ Object.defineProperty(exports, "useAreaPlotData", {
|
|
|
122
144
|
return _useAreaPlotData.useAreaPlotData;
|
|
123
145
|
}
|
|
124
146
|
});
|
|
147
|
+
Object.defineProperty(exports, "useBarPlotData", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () {
|
|
150
|
+
return _useBarPlotData.useBarPlotData;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
125
153
|
Object.defineProperty(exports, "useChartsTooltipUtilityClasses", {
|
|
126
154
|
enumerable: true,
|
|
127
155
|
get: function () {
|
|
@@ -672,6 +700,18 @@ Object.keys(_getChartPoint).forEach(function (key) {
|
|
|
672
700
|
}
|
|
673
701
|
});
|
|
674
702
|
});
|
|
703
|
+
var _coordinateTransformation = require("./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation");
|
|
704
|
+
Object.keys(_coordinateTransformation).forEach(function (key) {
|
|
705
|
+
if (key === "default" || key === "__esModule") return;
|
|
706
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
707
|
+
if (key in exports && exports[key] === _coordinateTransformation[key]) return;
|
|
708
|
+
Object.defineProperty(exports, key, {
|
|
709
|
+
enumerable: true,
|
|
710
|
+
get: function () {
|
|
711
|
+
return _coordinateTransformation[key];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
});
|
|
675
715
|
var _isDefined = require("./isDefined");
|
|
676
716
|
Object.keys(_isDefined).forEach(function (key) {
|
|
677
717
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -866,6 +906,9 @@ Object.keys(_commonNextFocusItem).forEach(function (key) {
|
|
|
866
906
|
});
|
|
867
907
|
var _createCommonKeyboardFocusHandler = require("./createCommonKeyboardFocusHandler");
|
|
868
908
|
var _getSeriesColorFn = require("./getSeriesColorFn");
|
|
909
|
+
var _resolveColorProcessor = require("./resolveColorProcessor");
|
|
910
|
+
var _processLineLikeSeries = require("./processLineLikeSeries");
|
|
911
|
+
var _getLineLikeTooltip = require("./getLineLikeTooltip");
|
|
869
912
|
var _checkBarChartScaleErrors = require("../BarChart/checkBarChartScaleErrors");
|
|
870
913
|
var _getBandSize = require("./getBandSize");
|
|
871
914
|
var _defaultSeriesConfig = require("./plugins/utils/defaultSeriesConfig");
|
package/internals/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.mjs";
|
|
|
16
16
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.mjs";
|
|
17
17
|
export { useLinePlotData } from "../LineChart/useLinePlotData.mjs";
|
|
18
18
|
export * from "../BarChart/useBarChartProps.mjs";
|
|
19
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
|
|
19
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.mjs";
|
|
20
20
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
|
|
21
21
|
export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
22
22
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
@@ -45,7 +45,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
|
45
45
|
export * from "./plugins/utils/selectors.mjs";
|
|
46
46
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.mjs";
|
|
47
47
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.mjs";
|
|
48
|
-
export {
|
|
48
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs";
|
|
49
49
|
export * from "./store/useCharts.mjs";
|
|
50
50
|
export * from "./store/useStore.mjs";
|
|
51
51
|
|
|
@@ -62,6 +62,7 @@ export * from "./clampAngle.mjs";
|
|
|
62
62
|
export * from "./getLabel.mjs";
|
|
63
63
|
export * from "./legendUtils.mjs";
|
|
64
64
|
export * from "./getChartPoint.mjs";
|
|
65
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
|
|
65
66
|
export * from "./isDefined.mjs";
|
|
66
67
|
export * from "./getScale.mjs";
|
|
67
68
|
export * from "./getAsNumber.mjs";
|
|
@@ -80,6 +81,9 @@ export * from "./findMinMax.mjs";
|
|
|
80
81
|
export * from "./commonNextFocusItem.mjs";
|
|
81
82
|
export { createCommonKeyboardFocusHandler } from "./createCommonKeyboardFocusHandler.mjs";
|
|
82
83
|
export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
|
|
84
|
+
export { resolveColorProcessor } from "./resolveColorProcessor.mjs";
|
|
85
|
+
export { processLineLikeSeries } from "./processLineLikeSeries.mjs";
|
|
86
|
+
export { getLineLikeTooltip } from "./getLineLikeTooltip.mjs";
|
|
83
87
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
|
|
84
88
|
export { getBandSize } from "./getBandSize.mjs";
|
|
85
89
|
export * from "./plugins/utils/defaultSeriesConfig.mjs";
|
|
@@ -55,12 +55,14 @@ export interface TooltipGetterAxesConfig {
|
|
|
55
55
|
rotation?: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
56
56
|
radius?: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export interface TooltipGetterParams<SeriesType extends ChartSeriesType> {
|
|
59
59
|
series: ChartSeriesDefaultized<SeriesType>;
|
|
60
60
|
axesConfig: TooltipGetterAxesConfig;
|
|
61
61
|
getColor: ColorGetter<SeriesType>;
|
|
62
62
|
identifier: SeriesItemIdentifierWithType<SeriesType> | null;
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
|
+
export type TooltipGetterResult<SeriesType extends ChartSeriesType> = (SeriesType extends 'radar' ? ItemTooltipWithMultipleValues<SeriesType> : ItemTooltip<SeriesType>) | null;
|
|
65
|
+
export type TooltipGetter<SeriesType extends ChartSeriesType> = (params: TooltipGetterParams<SeriesType>) => TooltipGetterResult<SeriesType>;
|
|
64
66
|
/**
|
|
65
67
|
* If `axisId` is set to undefined, the default axis will be used.
|
|
66
68
|
*
|
|
@@ -55,12 +55,14 @@ export interface TooltipGetterAxesConfig {
|
|
|
55
55
|
rotation?: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
56
56
|
radius?: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export interface TooltipGetterParams<SeriesType extends ChartSeriesType> {
|
|
59
59
|
series: ChartSeriesDefaultized<SeriesType>;
|
|
60
60
|
axesConfig: TooltipGetterAxesConfig;
|
|
61
61
|
getColor: ColorGetter<SeriesType>;
|
|
62
62
|
identifier: SeriesItemIdentifierWithType<SeriesType> | null;
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
|
+
export type TooltipGetterResult<SeriesType extends ChartSeriesType> = (SeriesType extends 'radar' ? ItemTooltipWithMultipleValues<SeriesType> : ItemTooltip<SeriesType>) | null;
|
|
65
|
+
export type TooltipGetter<SeriesType extends ChartSeriesType> = (params: TooltipGetterParams<SeriesType>) => TooltipGetterResult<SeriesType>;
|
|
64
66
|
/**
|
|
65
67
|
* If `axisId` is set to undefined, the default axis will be used.
|
|
66
68
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AxisConfig, ScaleName } from "../../../../models/index.mjs";
|
|
2
|
+
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.mjs";
|
|
3
3
|
import { type DefaultizedZoomOptions } from "./useChartCartesianAxis.types.mjs";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any,
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AxisConfig, ScaleName } from "../../../../models/index.js";
|
|
2
|
+
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.js";
|
|
3
3
|
import { type DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any,
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -5,6 +5,7 @@ export * from "./useChartCartesianAxisLayout.selectors.mjs";
|
|
|
5
5
|
export * from "./useChartCartesianInteraction.selectors.mjs";
|
|
6
6
|
export * from "./useChartCartesianHighlight.selectors.mjs";
|
|
7
7
|
export * from "./useChartCartesianAxisPreview.selectors.mjs";
|
|
8
|
+
export { getBandIndex } from "./useChartCartesianAxisPosition.selectors.mjs";
|
|
8
9
|
export * from "./useChartAxisAutoSize.selectors.mjs";
|
|
9
10
|
export * from "./useChartCartesianTooltip.selectors.mjs";
|
|
10
11
|
export { defaultizeXAxis, defaultizeYAxis } from "./defaultizeAxis.mjs";
|
|
@@ -5,6 +5,7 @@ export * from "./useChartCartesianAxisLayout.selectors.js";
|
|
|
5
5
|
export * from "./useChartCartesianInteraction.selectors.js";
|
|
6
6
|
export * from "./useChartCartesianHighlight.selectors.js";
|
|
7
7
|
export * from "./useChartCartesianAxisPreview.selectors.js";
|
|
8
|
+
export { getBandIndex } from "./useChartCartesianAxisPosition.selectors.js";
|
|
8
9
|
export * from "./useChartAxisAutoSize.selectors.js";
|
|
9
10
|
export * from "./useChartCartesianTooltip.selectors.js";
|
|
10
11
|
export { defaultizeXAxis, defaultizeYAxis } from "./defaultizeAxis.js";
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
useChartCartesianAxis: true,
|
|
8
|
+
getBandIndex: true,
|
|
8
9
|
defaultizeXAxis: true,
|
|
9
10
|
defaultizeYAxis: true,
|
|
10
11
|
computeAxisAutoSize: true
|
|
@@ -27,6 +28,12 @@ Object.defineProperty(exports, "defaultizeYAxis", {
|
|
|
27
28
|
return _defaultizeAxis.defaultizeYAxis;
|
|
28
29
|
}
|
|
29
30
|
});
|
|
31
|
+
Object.defineProperty(exports, "getBandIndex", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _useChartCartesianAxisPosition.getBandIndex;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
30
37
|
Object.defineProperty(exports, "useChartCartesianAxis", {
|
|
31
38
|
enumerable: true,
|
|
32
39
|
get: function () {
|
|
@@ -94,6 +101,7 @@ Object.keys(_useChartCartesianAxisPreview).forEach(function (key) {
|
|
|
94
101
|
}
|
|
95
102
|
});
|
|
96
103
|
});
|
|
104
|
+
var _useChartCartesianAxisPosition = require("./useChartCartesianAxisPosition.selectors");
|
|
97
105
|
var _useChartAxisAutoSize = require("./useChartAxisAutoSize.selectors");
|
|
98
106
|
Object.keys(_useChartAxisAutoSize).forEach(function (key) {
|
|
99
107
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -4,6 +4,7 @@ export * from "./useChartCartesianAxisLayout.selectors.mjs";
|
|
|
4
4
|
export * from "./useChartCartesianInteraction.selectors.mjs";
|
|
5
5
|
export * from "./useChartCartesianHighlight.selectors.mjs";
|
|
6
6
|
export * from "./useChartCartesianAxisPreview.selectors.mjs";
|
|
7
|
+
export { getBandIndex } from "./useChartCartesianAxisPosition.selectors.mjs";
|
|
7
8
|
export * from "./useChartAxisAutoSize.selectors.mjs";
|
|
8
9
|
export * from "./useChartCartesianTooltip.selectors.mjs";
|
|
9
10
|
export { defaultizeXAxis, defaultizeYAxis } from "./defaultizeAxis.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartsRadialAxisProps, ChartsCartesianAxisProps, ComputedAxis } from "../../../../models/axis.mjs";
|
|
2
|
+
import type { ScaleName, BarItemIdentifier } from "../../../../models/index.mjs";
|
|
3
|
+
export declare function getBandIndex(bandAxis: ComputedAxis<ScaleName, any, ChartsCartesianAxisProps | ChartsRadialAxisProps>, stackConfig: {
|
|
4
|
+
groupNumber: number;
|
|
5
|
+
groupIndex: number;
|
|
6
|
+
}, coordinate: number): number;
|
|
2
7
|
export declare const selectorBarItemAtPosition: (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<{}> & {
|
|
3
8
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
4
9
|
}, svgPoint: Pick<DOMPoint, "x" | "y">) => BarItemIdentifier | undefined;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartsRadialAxisProps, ChartsCartesianAxisProps, ComputedAxis } from "../../../../models/axis.js";
|
|
2
|
+
import type { ScaleName, BarItemIdentifier } from "../../../../models/index.js";
|
|
3
|
+
export declare function getBandIndex(bandAxis: ComputedAxis<ScaleName, any, ChartsCartesianAxisProps | ChartsRadialAxisProps>, stackConfig: {
|
|
4
|
+
groupNumber: number;
|
|
5
|
+
groupIndex: number;
|
|
6
|
+
}, coordinate: number): number;
|
|
2
7
|
export declare const selectorBarItemAtPosition: (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<{}> & {
|
|
3
8
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
4
9
|
}, svgPoint: Pick<DOMPoint, "x" | "y">) => BarItemIdentifier | undefined;
|