@mui/x-charts
Version:
The community edition of MUI X Charts components.
34 lines • 1.27 kB
TypeScript
import { type SeriesId } from "../models/seriesType/common.js";
export interface LineClasses {
/** Styles applied to the area element. */
area: string;
/** Styles applied to the line element. */
line: string;
/** Styles applied to the mark element. */
mark: string;
/** Styles applied to a mark element when it is animated. */
markAnimate: string;
/** Styles applied to the highlight element. */
highlight: string;
/** Styles applied to the AreaPlot root element. */
areaPlot: string;
/** Styles applied to the LinePlot root element. */
linePlot: string;
/** Styles applied to the MarkPlot root element. */
markPlot: string;
}
export type LineClassKey = keyof LineClasses;
export interface MarkElementOwnerState {
id: SeriesId;
isFaded: boolean;
isHighlighted: boolean;
classes?: Partial<LineClasses>;
skipAnimation?: boolean;
}
export declare function getLineUtilityClass(slot: string): string;
export declare const lineClasses: LineClasses;
export interface UseUtilityClassesOptions {
skipAnimation?: boolean;
classes?: Partial<LineClasses>;
}
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"line" | "area" | "mark" | "highlight" | "areaPlot" | "linePlot" | "markPlot", string>;