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