document changes

This commit is contained in:
VikariiCGI 2021-03-30 14:48:56 +03:00
parent 8f25eac2ad
commit a2fb41a155
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ npm start
| :------------- | :------- | :---------------------------------------------------------------------------------------------------- |
| id\* | string | Task id. |
| name\* | string | Task display name. |
| type | string | Task display type: "task", "milestone", "project" |
| type\* | string | Task display type: **task**, **milestone**, **project** |
| start\* | Date | Task start date. |
| end\* | Date | Task end date. |
| progress\* | number | Task progress. Sets in percent from 0 to 100. |

View File

@ -87,7 +87,7 @@ export const ganttDateRange = (tasks: Task[], viewMode: ViewMode) => {
newStartDate = startOfDate(newStartDate, "day");
newEndDate = startOfDate(newEndDate, "day");
newStartDate = addToDate(newStartDate, -1, "day");
newEndDate = addToDate(newEndDate, 3, "day");
newEndDate = addToDate(newEndDate, 5, "day");
break;
}
return [newStartDate, newEndDate];