@mui/x-charts
Version:
The community edition of the Charts components (MUI X).
8 lines (7 loc) • 337 B
TypeScript
import { DrawingArea } from '../context/DrawingProvider';
import { DefaultizedPieSeriesType } from '../models/seriesType/pie';
export declare function getPieCoordinates(series: Pick<DefaultizedPieSeriesType, 'cx' | 'cy'>, drawing: Pick<DrawingArea, 'width' | 'height'>): {
cx: number;
cy: number;
availableRadius: number;
};