UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

33 lines 1.25 kB
import { type SeriesId } from "../models/seriesType/common.mjs"; export interface PieClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the `g` element that contains all pie arcs of a series. */ series: string; /** Styles applied to the `g` element that contains all pie arc labels of a series. */ seriesLabels: string; /** Styles applied to an individual pie arc element. */ arc: string; /** Styles applied to an individual pie arc label element. */ arcLabel: string; /** Styles applied when animation is not skipped. */ animate: string; /** Styles applied to the focused pie arc element. */ focusIndicator: string; } export type PieClassKey = keyof PieClasses; export interface PieArcOwnerState { seriesId: SeriesId; dataIndex: number; color: string; isFaded: boolean; isHighlighted: boolean; isFocused: boolean; classes?: Partial<PieClasses>; } export declare function getPieUtilityClass(slot: string): string; export declare const pieClasses: PieClasses; export declare const useUtilityClasses: (options?: { classes?: Partial<PieClasses>; skipAnimation?: boolean; }) => Record<"root" | "series" | "seriesLabels" | "arcLabel" | "arc" | "focusIndicator", string>;