gantt-task-react-powern 0.4.5 → 0.4.7

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.
@@ -18,7 +18,7 @@ declare type BarDisplayProps = {
18
18
  backgroundSelectedColor: string;
19
19
  progressColor: string;
20
20
  progressSelectedColor: string;
21
- criticalPathColor: string;
21
+ criticalPathColor?: string;
22
22
  };
23
23
  onMouseDown: (event: React.MouseEvent<SVGPolygonElement, MouseEvent>) => void;
24
24
  };
package/dist/index.js CHANGED
@@ -118,6 +118,14 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
118
118
  if (task.end > newEndDate) {
119
119
  newEndDate = task.end;
120
120
  }
121
+
122
+ if (task.actualStart < newStartDate) {
123
+ newStartDate = task.actualStart;
124
+ }
125
+
126
+ if (task.actualEnd > newEndDate) {
127
+ newEndDate = task.actualEnd;
128
+ }
121
129
  }
122
130
 
123
131
  switch (viewMode) {