1 | import { ViewStyle } from "react-native";
|
2 | import { AbstractChartProps } from "../AbstractChart";
|
3 | import ContributionGraph, { ContributionChartValue, TooltipDataAttrs } from "./ContributionGraph";
|
4 | export interface ContributionGraphProps extends AbstractChartProps {
|
5 | values: Array<any>;
|
6 | endDate: Date;
|
7 | numDays: number;
|
8 | width: number;
|
9 | height: number;
|
10 | gutterSize?: number;
|
11 | squareSize?: number;
|
12 | horizontal?: boolean;
|
13 | showMonthLabels?: boolean;
|
14 | showOutOfRangeDays?: boolean;
|
15 | accessor?: string;
|
16 | getMonthLabel?: (monthIndex: number) => string;
|
17 | onDayPress?: ({ count: number, date: Date }: {
|
18 | count: any;
|
19 | date: any;
|
20 | }) => void;
|
21 | classForValue?: (value: string) => string;
|
22 | style?: Partial<ViewStyle>;
|
23 | titleForValue?: (value: ContributionChartValue) => string;
|
24 | tooltipDataAttrs: TooltipDataAttrs;
|
25 | }
|
26 | export declare type ContributionGraphState = {
|
27 | maxValue: number;
|
28 | minValue: number;
|
29 | valueCache: object;
|
30 | };
|
31 | export default ContributionGraph;
|
32 |
|
\ | No newline at end of file |