UNPKG

react-native-chart-kit

Version:

Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.

42 lines 1.93 kB
import type { BarChartSelectionAnimationConfig } from "./types"; export type ResolvedBarChartSelectionAnimationConfig = { enabled: boolean; duration: number; }; export type BarChartSelectionAnimationState = { fromKey: string | undefined; toKey: string | undefined; progress: number; }; export declare const getSettledBarChartSelectionAnimationState: (selectedBarKey: string | undefined) => BarChartSelectionAnimationState; export declare const resolveBarChartSelectionAnimationConfig: (animation: boolean | BarChartSelectionAnimationConfig | undefined) => ResolvedBarChartSelectionAnimationConfig; export declare const getAnimatedBarSelectionOpacity: ({ barKey, state }: { barKey: string; state: BarChartSelectionAnimationState; }) => number; export declare const getAnimatedBarSelectionFill: ({ backgroundColor, barKey, color, state }: { backgroundColor: string; barKey: string; color: string; state: BarChartSelectionAnimationState; }) => string; export declare const getAnimatedBarSelectionStrokeOpacity: ({ barKey, state }: { barKey: string; state: BarChartSelectionAnimationState; }) => number; export declare const getAnimatedBarSelectionGridOpacity: ({ state }: { state: BarChartSelectionAnimationState; }) => 0 | 0.78; export declare const getBarChartSelectionGridOpacity: ({ selectedBarKey, state }: { selectedBarKey: string | undefined; state: BarChartSelectionAnimationState; }) => 0 | 0.78; export declare const shouldRenderBarChartGridLines: ({ selectedBarKey, state }: { selectedBarKey: string | undefined; state: BarChartSelectionAnimationState; }) => boolean; export declare const useBarChartSelectionAnimation: ({ animation, selectedBarKey }: { animation: boolean | BarChartSelectionAnimationConfig | undefined; selectedBarKey: string | undefined; }) => BarChartSelectionAnimationState; //# sourceMappingURL=selectionAnimation.d.ts.map