UNPKG

iamferraz-gantt-chart

Version:

Gantt Chart Component using Echarts library

184 lines (183 loc) 5.29 kB
import { TaskModel } from '../models/task-data.model'; export declare class GanttRenderers { private HEIGHT_RATIO; private DATE_FORMAT; private _darkTheme; private _enableGroup; private _taskData; private _mappedData; private taskDataManipulator; private _translation; private arrowColors; private zebraColor; constructor(taskData: TaskModel[], mappedData: any[], colours: string[], dateFormat: string, heightRatio: number, translation: any, enableGroup?: boolean, darkTheme?: boolean); renderGanttItem(params: any, api: any): { type: string; children: { type: string; ignore: boolean; shape: { x: number; y: number; width: number; height: number; }; style: any; }[]; }; renderAxisLabelItem(params: any, api: any): { type: string; silent: boolean; position: any[]; children: ({ type: string; shape: { x: number; y: number; width: number; height: number; }; style: { fill: any; image?: undefined; x?: undefined; y?: undefined; width?: undefined; height?: undefined; text?: undefined; textVerticalAlign?: undefined; textAlign?: undefined; textFill?: undefined; fontSize?: undefined; }; } | { type: string; style: { image: any; x: number; y: number; width: number; height: number; fill?: undefined; text?: undefined; textVerticalAlign?: undefined; textAlign?: undefined; textFill?: undefined; fontSize?: undefined; }; shape?: undefined; } | { type: string; style: { x: number; y: number; text: any; textVerticalAlign: string; textAlign: string; textFill: string; fill?: undefined; image?: undefined; width?: undefined; height?: undefined; fontSize?: undefined; }; shape?: undefined; } | { type: string; style: { x: number; y: number; textVerticalAlign: string; textAlign: string; text: string; textFill: string; fontSize: number; fill?: undefined; image?: undefined; width?: undefined; height?: undefined; }; shape?: undefined; })[]; }; renderArrowsItem(params: any, api: any): { type: string; children: { type: string; children: {}[]; }[]; }; renderArrowsItem2(params: any, api: any): { type: string; children: { type: string; children: ({ type: string; shape: { x1: any; y1: number; x2: any; y2: number; points?: undefined; }; style: any; } | { type: string; shape: { points: any[][]; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; }; style: any; })[]; }[]; }; renderZebra(params: any, api: any): { type: string; silent: boolean; children: { type: string; ignore: boolean; shape: { x: number; y: number; width: number; height: number; }; style: any; }[]; }; renderToday(params: any, api: any): { type: string; silent: boolean; children: ({ type: string; style: { x: number; y: any; text: string; textVerticalAlign: string; textAlign: string; textFill: string; }; shape?: undefined; } | { type: string; shape: { x1: any; y1: any; x2: any; y2: number; }; style: any; })[]; }; clipRectByRect(params: any, rect: any): { x: number; y: number; width: number; height: number; }; }