react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
36 lines • 1.46 kB
TypeScript
import type { ProgressRingModel } from "../../../core/index";
import type { ProgressChartAnimationConfig } from "./types";
export type ResolvedProgressChartAnimationConfig = {
duration: number;
enabled: boolean;
stagger: number;
};
export declare const resolveProgressChartAnimationConfig: (animation: boolean | ProgressChartAnimationConfig | undefined) => ResolvedProgressChartAnimationConfig;
export declare const getProgressRingAnimationProgress: ({ index, progress, stagger }: {
index: number;
progress: number;
stagger: number;
}) => number;
export declare const getAnimatedProgressRing: ({ centerX, centerY, progress, ring }: {
centerX: number;
centerY: number;
progress: number;
ring: ProgressRingModel;
}) => ProgressRingModel;
export declare const getAnimatedProgressRings: ({ centerX, centerY, progress, rings, stagger }: {
centerX: number;
centerY: number;
progress: number;
rings: ProgressRingModel[];
stagger: number;
}) => ProgressRingModel[];
export declare const getAverageProgress: (rings: ProgressRingModel[]) => number;
export declare const getProgressChartAnimationTargetKey: (rings: ProgressRingModel[]) => string;
export declare const useProgressChartAnimation: ({ animation, targetKey }: {
animation: boolean | ProgressChartAnimationConfig | undefined;
targetKey: string;
}) => {
progress: number;
stagger: number;
};
//# sourceMappingURL=animation.d.ts.map