react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
30 lines • 882 B
TypeScript
import type { NormalizedProgressRing } from "../data";
export type ProgressRingPoint = {
x: number;
y: number;
};
export type ProgressRingModel = {
index: number;
label?: string;
value: number | null;
clampedValue: number;
defined: boolean;
color?: string;
radius: number;
strokeWidth: number;
startAngle: number;
endAngle: number;
backgroundPath: string;
path: string;
};
export type BuildProgressRingsOptions = {
rings: NormalizedProgressRing[];
centerX: number;
centerY: number;
maxRadius: number;
strokeWidth: number;
ringGap?: number | undefined;
startAngle?: number | undefined;
};
export declare const buildProgressRings: ({ rings, centerX, centerY, maxRadius, strokeWidth, ringGap, startAngle }: BuildProgressRingsOptions) => ProgressRingModel[];
//# sourceMappingURL=progressRings.d.ts.map