UNPKG

react-native-chart-kit

Version:

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

33 lines 1.42 kB
import { type PieArcModel } from "../../../core/index"; import type { PieChartSelectionAnimationConfig } from "./types"; export type PieChartSelectionAnimationState = { fromIndex: number | undefined; toIndex: number | undefined; progress: number; }; export type ResolvedPieChartSelectionAnimationConfig = { enabled: boolean; duration: number; }; export declare const resolvePieChartSelectionAnimationConfig: (animation: boolean | PieChartSelectionAnimationConfig | undefined) => ResolvedPieChartSelectionAnimationConfig; export declare const getAnimatedPieSliceOpacity: ({ activeOpacity, inactiveOpacity, index, state }: { activeOpacity: number; inactiveOpacity: number; index: number; state: PieChartSelectionAnimationState; }) => number; export declare const getAnimatedPieSlicePath: <TData>({ activeOffset, activeScale, arc, centerX, centerY, innerRadius, radius, state }: { activeOffset: number; activeScale: number; arc: PieArcModel<TData>; centerX: number; centerY: number; innerRadius: number; radius: number; state: PieChartSelectionAnimationState; }) => string; export declare const usePieChartSelectionAnimation: ({ animation, selectedIndex }: { animation: boolean | PieChartSelectionAnimationConfig | undefined; selectedIndex: number | undefined; }) => PieChartSelectionAnimationState; //# sourceMappingURL=selectionAnimation.d.ts.map