gantt-task-react-powern 0.4.0 → 0.4.1

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