@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
26 lines (25 loc) • 740 B
TypeScript
import type { MantineColor } from '../../../core';
interface CurveData extends React.ComponentPropsWithRef<'circle'> {
value: number;
color: MantineColor;
tooltip?: React.ReactNode;
}
interface RootCurveData extends React.ComponentPropsWithRef<'circle'> {
color?: MantineColor;
}
interface GetCurves {
sections: CurveData[];
size: number;
thickness: number;
renderRoundedLineCaps: boolean | undefined;
rootColor?: MantineColor;
}
interface Curve {
sum: number;
offset: number;
root: boolean;
data: CurveData | RootCurveData;
lineRoundCaps?: boolean;
}
export declare function getCurves({ size, thickness, sections, renderRoundedLineCaps, rootColor, }: GetCurves): Curve[];
export {};