@mui/x-charts
Version:
The community edition of MUI X Charts components.
67 lines • 2.1 kB
TypeScript
import * as React from 'react';
import { type PieItemId } from "../models/index.js";
/**
* @deprecated Use `PieClasses` instead.
*/
export interface PieArcLabelClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element when highlighted. */
highlighted: string;
/** Styles applied to the root element when faded. */
faded: string;
/** Styles applied to the root element when animation is not skipped.
* @deprecated Use the `animate` class from `./pieClasses` instead.
*/
animate: string;
/**
* Styles applied to the root element for a specified series.
* Needs to be suffixed with the series ID: `.${pieArcLabelClasses.series}-${seriesId}`.
*/
series: string;
}
/**
* @deprecated Use `PieClassKey` instead.
*/
export type PieArcLabelClassKey = keyof PieArcLabelClasses;
interface PieArcLabelOwnerState {
id: PieItemId;
color: string;
isFaded: boolean;
isHighlighted: boolean;
skipAnimation: boolean;
classes?: Partial<PieArcLabelClasses>;
}
/**
* @deprecated Use `getPieUtilityClass` instead.
*/
export declare function getPieArcLabelUtilityClass(slot: string): string;
/**
* @deprecated Use `pieClasses` instead.
*/
export declare const pieArcLabelClasses: PieArcLabelClasses;
export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color' | 'id'> & {
startAngle: number;
endAngle: number;
innerRadius: number;
outerRadius: number;
arcLabelRadius: number;
cornerRadius: number;
paddingAngle: number;
skipAnimation: boolean;
formattedArcLabel?: string | null;
hidden?: boolean;
};
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "ref" | "color" | "id"> & {
startAngle: number;
endAngle: number;
innerRadius: number;
outerRadius: number;
arcLabelRadius: number;
cornerRadius: number;
paddingAngle: number;
skipAnimation: boolean;
formattedArcLabel?: string | null;
hidden?: boolean;
} & React.RefAttributes<SVGTextElement>>;
export { PieArcLabel };