gantt-task-react-powern 0.3.12 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,10 @@ export interface BarTask extends Task {
4
4
  typeInternal: TaskTypeInternal;
5
5
  x1: number;
6
6
  x2: number;
7
+ actualx1: number;
8
+ actualx2: number;
9
+ progressStartWidth: number;
10
+ progressEndWidth: number;
7
11
  y: number;
8
12
  height: number;
9
13
  progressX: number;
@@ -12,6 +16,7 @@ export interface BarTask extends Task {
12
16
  handleWidth: number;
13
17
  barChildren: BarTask[];
14
18
  styles: {
19
+ taskProgressColor?: string;
15
20
  backgroundColor: string;
16
21
  backgroundSelectedColor: string;
17
22
  progressColor: string;
@@ -20,7 +20,10 @@ export interface Task {
20
20
  * From 0 to 100
21
21
  */
22
22
  progress: number;
23
+ actualStart: Date;
24
+ actualEnd: Date;
23
25
  styles?: {
26
+ taskProgressColor?: string;
24
27
  backgroundColor?: string;
25
28
  backgroundSelectedColor?: string;
26
29
  progressColor?: string;
@@ -130,6 +133,7 @@ export interface StylingOption {
130
133
  onExpanderClick: (task: Task) => void;
131
134
  }>;
132
135
  taskLabelRenderer?: (Task: Task) => React.ReactNode;
136
+ taskProgressColor?: string;
133
137
  }
134
138
  export interface GanttProps extends EventOption, DisplayOption, StylingOption {
135
139
  tasks: Task[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-powern",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "lewibs <benjamin.lewis@powern.ai>",
6
6
  "homepage": "https://github.com/powernai/gantt-task-react-powern",