gantt-task-react-powern 0.4.2 → 0.4.3

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.
@@ -119,8 +119,9 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
119
119
  }
120
120
  }
121
121
 
122
- newStartDate = addToDate(newStartDate, -7, "day");
123
- newEndDate = addToDate(newEndDate, -7, "day");
122
+ newStartDate = addToDate(newStartDate, -1, "year");
123
+ newEndDate = addToDate(newEndDate, 1, "year");
124
+ console.log(newStartDate, newEndDate);
124
125
 
125
126
  switch (viewMode) {
126
127
  case ViewMode.Year:
@@ -173,6 +174,7 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
173
174
  break;
174
175
  }
175
176
 
177
+ console.log(newStartDate, newEndDate);
176
178
  return [newStartDate, newEndDate];
177
179
  };
178
180
  var seedDates = function seedDates(startDate, endDate, viewMode) {