svg & documentation fixes
This commit is contained in:
1 parent
6b7d57378c
commit
241c9e9422
3 files changed
+5
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -107,6 +107,9 @@ export interface StylingOption {
|
||||
locale: string;
|
||||
tasks: Task[];
|
||||
selectedTaskId: string;
|
||||
/**
|
||||
* Sets selected task by id
|
||||
*/
|
||||
setSelectedTask: (taskId: string) => void;
|
||||
}>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user