svg & documentation fixes

This commit is contained in:
unknown committed 2020-09-15 23:34:30 +03:00
1 parent 6b7d57378c
commit 241c9e9422
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ export const Gantt: React.SFC<GanttProps> = ({
const [startDate, endDate] = ganttDateRange(ganttTasks, viewMode);
const dates = seedDates(startDate, endDate, viewMode);
const svgHeight = rowHeight * tasks.length;
const svgHeight = rowHeight * ganttTasks.length;
const gridWidth = dates.length * columnWidth;
const ganttFullHeight = ganttTasks.length * rowHeight;
+3
View File
@@ -107,6 +107,9 @@ export interface StylingOption {
locale: string;
tasks: Task[];
selectedTaskId: string;
/**
* Sets selected task by id
*/
setSelectedTask: (taskId: string) => void;
}>;
}