react-d3-calendar-heatmap
Version:
19 lines (18 loc) • 848 B
TypeScript
import * as React from "react";
import { CountableTimeInterval } from "d3-time";
import { ScaleSequential } from "d3-scale";
import { BaseCalendarHeatMapItemType, CellShape } from "../CalendarHeatMap/CalendarHeatMapProps";
interface CellProps<CalendarHeatMapItemType> {
c: CalendarHeatMapItemType;
color: ScaleSequential<string, never>;
cellSize: number;
countDay: (i: number) => number;
timeWeek: CountableTimeInterval;
formatDate: (date: Date) => string;
from: Date;
cellShape?: CellShape;
defaultColor: string;
cellPadding: number;
}
declare const Cell: <CalendarHeatMapItemType extends BaseCalendarHeatMapItemType>({ color, cellSize, cellPadding, c, countDay, timeWeek, formatDate, from, cellShape, defaultColor, ...rest }: CellProps<CalendarHeatMapItemType>) => React.ReactElement;
export default Cell;