UNPKG

@uiw/react-heat-map

Version:

React component create calendar heatmap to visualize time series data, a la github contribution graph.

10 lines (9 loc) 618 B
import { SVGProps, HeatMapValue } from './SVG'; export declare const oneDayTime: number; export declare function isValidDate(date: Date): boolean; export declare function getDateToString(date: Date): string; export declare function formatData(data?: SVGProps['value']): Record<string, HeatMapValue>; /** 排序 比较函数 */ export declare function numberSort(keys?: number[]): number[]; export declare function existColor(num: number | undefined, nums: number[], panelColors?: Record<number, string>): string; export declare const convertPanelColors: (colors: string[], maxCount: number) => Record<number, string>;