gantt-task-react-powern 0.5.9 → 0.6.0

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.
@@ -677,7 +677,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
677
677
  }
678
678
  }, task.name + ": Planned dates: "), React.createElement("b", null, task.start.getMonth() + 1 + "/" + task.start.getDate() + "/" + task.start.getFullYear() + " - " + (task.end.getMonth() + 1) + "/" + task.end.getDate() + "/" + task.end.getFullYear()), task.end.getTime() - task.start.getTime() !== 0 && React.createElement("p", {
679
679
  className: styles$2.tooltipDefaultContainerParagraph
680
- }, "Duration: " + ~~Math.ceil((task.end.getTime() - task.start.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
680
+ }, "Duration: " + ~~Math.round((task.end.getTime() - task.start.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
681
681
  className: styles$2.tooltipDefaultContainerParagraph
682
682
  }, !!task.progress && "Progress: " + task.progress + " %"));else return React.createElement("div", {
683
683
  className: styles$2.tooltipDefaultContainer,
@@ -688,7 +688,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
688
688
  }
689
689
  }, task.name + ": Actual dates: "), React.createElement("b", null, task.actualStart.getMonth() + 1 + "/" + task.actualStart.getDate() + "/" + task.actualStart.getFullYear() + " - " + (task.actualEnd.getMonth() + 1) + "/" + task.actualEnd.getDate() + "/" + task.actualEnd.getFullYear()), task.actualEnd.getTime() - task.actualStart.getTime() !== 0 && React.createElement("p", {
690
690
  className: styles$2.tooltipDefaultContainerParagraph
691
- }, "Duration: " + ~~Math.ceil((task.actualEnd.getTime() - task.actualStart.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
691
+ }, "Duration: " + ~~Math.round((task.actualEnd.getTime() - task.actualStart.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
692
692
  className: styles$2.tooltipDefaultContainerParagraph
693
693
  }, !!task.progress && "Progress: " + task.progress + " %"));
694
694
  };
@@ -3504,7 +3504,6 @@ function getCriticalPaths(leafTasks) {
3504
3504
  computeCriticalPath(sortedTaskList[_i4], taskMap);
3505
3505
  }
3506
3506
 
3507
- console.debug(taskMap);
3508
3507
  var taskChainList = [];
3509
3508
 
3510
3509
  for (var _i5 = 0; _i5 < sortedTaskList.length; _i5++) {