activity-grid
Version:
A customizable activity grid component similar to GitHub's contribution graph
17 lines (16 loc) • 461 B
TypeScript
import { DayCellMap } from './types';
export declare class GridRenderer {
private createMonthLabels;
private createWeekLabels;
private getWeeksBetweenDates;
private createGridCells;
render(cells: DayCellMap, startDate: Date, endDate: Date, options: {
colors: string[];
emptyColor: string;
skipWeekends: boolean;
startWeekOnMonday: boolean;
}): {
html: string;
numOfWeeks: number;
};
}