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