UNPKG

react-native-chart-kit

Version:

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

37 lines 1.43 kB
import type { LinearScale } from "../../../core/index"; type AxisLabelSize = { width: number; height: number; }; export type LineChartAxisLabelAnimationStrategy = "crossfade"; export type LineChartYAxisLabelWidth = number | "auto" | "stable"; export type LineChartAxisLabelAnimationConfig = { duration?: number; strategy?: LineChartAxisLabelAnimationStrategy; }; export type ResolvedLineChartAxisLabelAnimationConfig = { enabled: boolean; duration: number; strategy: LineChartAxisLabelAnimationStrategy; }; export type LineChartYAxisLabelModel = { key: string; text: string; y: number; opacity: number; }; export declare const defaultLineChartAxisLabelAnimationDuration = 160; export declare const resolveLineChartYAxisLabelSizes: ({ sizes, stableSizes, width }: { sizes: AxisLabelSize[]; stableSizes?: AxisLabelSize[] | undefined; width?: LineChartYAxisLabelWidth | undefined; }) => AxisLabelSize[]; export declare const resolveLineChartAxisLabelAnimationConfig: (animation?: boolean | LineChartAxisLabelAnimationConfig) => ResolvedLineChartAxisLabelAnimationConfig; export declare const buildLineChartYAxisLabels: ({ formatYLabel, labelOffset, ticks, yScale }: { formatYLabel: (value: number) => string; labelOffset: number; ticks: readonly number[]; yScale: LinearScale; }) => LineChartYAxisLabelModel[]; export {}; //# sourceMappingURL=axisLabels.d.ts.map