-
Notifications
You must be signed in to change notification settings - Fork 210
/
Copy pathgantt.model.ts
62 lines (56 loc) · 1.04 KB
/
gantt.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export interface GanttScaleDateInfo {
dayOfMonthLabel: string;
dayOfWeekLabel: string;
monthLabel: string;
yearLabel: string;
date: Date;
monthStart?: boolean;
weekend?: boolean;
today?: boolean;
highlight?: boolean;
highlightStart?: boolean;
milestone?: string;
scaleStartVisable?: boolean;
index?: number;
}
export enum GanttScaleUnit {
day = 'day',
week = 'week',
month = 'month',
}
export interface GanttBarStatus {
focused: boolean;
startDate: Date;
endDate: Date;
}
export interface GanttScaleConfig {
startDate?: Date;
endDate?: Date;
unit?: GanttScaleUnit;
viewChange?: boolean;
}
export enum GanttMarkerType {
milestone = 'milestone',
month = 'month',
week = 'week',
}
export interface GanttMilestone {
date: Date;
lable: string;
}
export interface GanttTaskInfo {
id: string;
startDate: Date;
endDate: Date;
title?: string;
progress: string;
duration: string;
moveOffset?: number;
left?: number;
width?: number;
}
export enum UnitRole {
day = 10,
week = 20,
month = 30,
}