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