UNPKG

iamferraz-gantt-chart

Version:

Gantt Chart Component using Echarts library

74 lines (73 loc) 2.53 kB
import { AfterContentChecked, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { TaskModel } from '../models/task-data.model'; export declare class GanttComponent implements OnInit, AfterViewInit, OnChanges, AfterContentChecked { wrapper: ElementRef | undefined; gantt: ElementRef | undefined; taskData: TaskModel[]; taskDataChange: EventEmitter<TaskModel[]>; editClicked: EventEmitter<boolean>; taskClicked: EventEmitter<TaskModel | null>; /** * The scroll will stop to work... its a bug that I cant figure it out :( */ enableDataZoom: boolean; enableDarkTheme: boolean; enableGroup: boolean; chartTitle: string; dateFormat: string; colours: string[]; heightRatio: number; loading: boolean; height: number; /** * To replace the strings */ translation: any; /** * Variable to control chart */ ganttWidth: number; ganttHeight: number; chartOptions: any; echartsInstance: any; private renderers?; private taskDataManipulator; private mappedData; private zebraData; private todayData; constructor(); getTitleOption(): any; getGridOption(): any; getTooltipOption(): any; resetZoomAction(): void; editAction(): void; getToolboxOption(): any; getXAxisOption(): any; formatLabelDate(value: Date, index: number): string; /** * * @param dayToday day reference to check if is the last day of the month * @param month (0-11) month reference to check if the day passed is the last day of the month. * @returns true if day is the last day of the month. False otherwise */ getLastDayMonth(dayToday: number, month: number): boolean; isFirstDay(dayToday: number, month: number): boolean; getMonthName(month: number): string; getYAxisOption(): any; getSerieZebra(): any; getSerieArrow(taskDataDimensions: any[]): any; getSerieGantt(taskDataDimensions: any[]): any; getSerieAxisY(taskDataDimensions: any[]): any; getSerieToday(): any; getDataZoom(): any[]; getSeries(): any[]; setChartOptions(): void; ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterContentChecked(): void; onChartInit(ec: any): void; onTaskClicked(params: any): void; resizeChart(): void; sizeChange(event: any): void; }