gantt-task-react-powern 0.4.2 → 0.4.4

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:
@@ -1256,12 +1257,9 @@ var convertToMilestone = function convertToMilestone(task, index, dates, columnW
1256
1257
  };
1257
1258
 
1258
1259
  var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
1259
- console.log(xDate);
1260
- console.log(dates);
1261
1260
  var index = dates.findIndex(function (d) {
1262
1261
  return d.getTime() >= xDate.getTime();
1263
1262
  }) - 1;
1264
- console.log(index);
1265
1263
  var remainderMillis = xDate.getTime() - dates[index].getTime();
1266
1264
  var percentOfInterval = remainderMillis / (dates[index + 1].getTime() - dates[index].getTime());
1267
1265
  var x = index * columnWidth + percentOfInterval * columnWidth;