@hsablonniere/activity-graph
Version:
A low level and stylable Web Component to display an activity graph.
26 lines (19 loc) • 601 B
TypeScript
export interface PlainDate {
id: string;
year: number;
month: number;
date: number;
weekday: number;
weekIndex: number;
isInFirstWeekOfTheMonth: boolean;
}
export type ActivityGraphData = Record<string, ActivityGraphDataEntry>;
export interface ActivityGraphDataEntry {
text?: string;
title?: string;
parts?: Array<string>;
}
export type MonthHeaderFormat = 'long' | 'short' | 'narrow' | 'numeric' | '2-digit';
export type MonthLimits = 'early' | 'middle' | 'late';
export type MonthPosition = 'top' | 'bottom';
export type WeekdayHeaderFormat = 'long' | 'short' | 'narrow';