gantt-task-react-powern 0.4.1 → 0.4.2

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,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");
125
+
123
126
  switch (viewMode) {
124
127
  case exports.ViewMode.Year:
125
128
  newStartDate = addToDate(newStartDate, -1, "year");
@@ -1254,6 +1257,7 @@ var convertToMilestone = function convertToMilestone(task, index, dates, columnW
1254
1257
  };
1255
1258
 
1256
1259
  var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
1260
+ console.log(xDate);
1257
1261
  console.log(dates);
1258
1262
  var index = dates.findIndex(function (d) {
1259
1263
  return d.getTime() >= xDate.getTime();