recharts
Version:
React charts
16 lines (15 loc) • 600 B
TypeScript
import { Coordinate, PolarCoordinate } from '../types';
export type RadialCursorPoints = {
points: [startPoint: Coordinate, endPoint: Coordinate];
cx?: number;
cy?: number;
radius?: number;
startAngle?: number;
endAngle?: number;
};
/**
* Only applicable for radial layouts
* @param activeCoordinate the polar coordinate of the active tooltip item
* @returns start and end points of the radial cursor line, together with the polar coordinates they were computed from
*/
export declare function getRadialCursorPoints(activeCoordinate: PolarCoordinate): RadialCursorPoints;