Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/hooks/animation/useAnimatePieArcLabel.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

24 lines
1.1 KiB
TypeScript

import * as React from 'react';
import type { PieArcLabelProps } from "../../PieChart/index.js";
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
ref?: React.Ref<SVGTextElement>;
arcLabelRadius?: number;
/**
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
*/
innerRadius: PieArcLabelProps['innerRadius'];
/**
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
*/
outerRadius: PieArcLabelProps['outerRadius'];
};
type UseAnimatePieArcLabelReturn = {
ref: React.Ref<SVGTextElement>;
x: number;
y: number;
};
/** Animates the label of pie slice from its middle point to the centroid of the slice.
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
export declare function useAnimatePieArcLabel(props: UseAnimatePieArcLabelParams): UseAnimatePieArcLabelReturn;
export {};