UNPKG

@obliczeniowo/elementary

Version:
27 lines (26 loc) 1.02 kB
import { DatePipe } from '@angular/common'; import { DrawingContextInterface } from '@obliczeniowo/elementary/drawing'; import { DaypartsStatistic, HourData } from '../types/dayparts.types'; export declare class DaypartsStatistics { protected dc: DrawingContextInterface; protected statistics: DaypartsStatistic; protected datePipe: DatePipe; protected events: { clicked: (value: HourData) => void; mouseover?: (value: HourData) => void; }; protected max: number; protected fontSize: number; protected ray: number; protected textOffset: number; constructor(dc: DrawingContextInterface, statistics: DaypartsStatistic, datePipe: DatePipe, events: { clicked: (value: HourData) => void; mouseover?: (value: HourData) => void; }); getWidth(): number; getHeight(): number; updateMax(max: number): void; setStatistics(statistics: DaypartsStatistic): void; draw(dc?: DrawingContextInterface): void; protected setMax(): void; }