gantt-task-react-powern 0.4.1 → 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,6 +119,10 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
119
119
  }
120
120
  }
121
121
 
122
+ newStartDate = addToDate(newStartDate, -1, "year");
123
+ newEndDate = addToDate(newEndDate, 1, "year");
124
+ console.log(newStartDate, newEndDate);
125
+
122
126
  switch (viewMode) {
123
127
  case ViewMode.Year:
124
128
  newStartDate = addToDate(newStartDate, -1, "year");
@@ -170,6 +174,7 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
170
174
  break;
171
175
  }
172
176
 
177
+ console.log(newStartDate, newEndDate);
173
178
  return [newStartDate, newEndDate];
174
179
  };
175
180
  var seedDates = function seedDates(startDate, endDate, viewMode) {
@@ -1253,6 +1258,7 @@ var convertToMilestone = function convertToMilestone(task, index, dates, columnW
1253
1258
  };
1254
1259
 
1255
1260
  var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
1261
+ console.log(xDate);
1256
1262
  console.log(dates);
1257
1263
  var index = dates.findIndex(function (d) {
1258
1264
  return d.getTime() >= xDate.getTime();