svg & documentation fixes
This commit is contained in:
parent
6b7d57378c
commit
241c9e9422
@ -112,7 +112,7 @@ npm start
|
|||||||
|
|
||||||
- TooltipContent: [`React.FC<{ task: Task; fontSize: string; fontFamily: string; }>;`](https://github.com/MaTeMaTuK/gantt-task-react/blob/main/src/components/other/tooltip.tsx#L56)
|
- TooltipContent: [`React.FC<{ task: Task; fontSize: string; fontFamily: string; }>;`](https://github.com/MaTeMaTuK/gantt-task-react/blob/main/src/components/other/tooltip.tsx#L56)
|
||||||
- TaskListHeader: `React.FC<{ headerHeight: number; rowWidth: string; fontFamily: string; fontSize: string;}>;`
|
- TaskListHeader: `React.FC<{ headerHeight: number; rowWidth: string; fontFamily: string; fontSize: string;}>;`
|
||||||
- TaskListTable: `React.FC<{ rowHeight: number; rowWidth: string; fontFamily: string; fontSize: string; locale: string; tasks: Task[]; selectedTaskId: string setSelectedTask: (taskId: string) => void; }>;`
|
- TaskListTable: `React.FC<{ rowHeight: number; rowWidth: string; fontFamily: string; fontSize: string; locale: string; tasks: Task[]; selectedTaskId: string; setSelectedTask: (taskId: string) => void; }>;`
|
||||||
|
|
||||||
### Task
|
### Task
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export const Gantt: React.SFC<GanttProps> = ({
|
|||||||
const [startDate, endDate] = ganttDateRange(ganttTasks, viewMode);
|
const [startDate, endDate] = ganttDateRange(ganttTasks, viewMode);
|
||||||
const dates = seedDates(startDate, endDate, viewMode);
|
const dates = seedDates(startDate, endDate, viewMode);
|
||||||
|
|
||||||
const svgHeight = rowHeight * tasks.length;
|
const svgHeight = rowHeight * ganttTasks.length;
|
||||||
const gridWidth = dates.length * columnWidth;
|
const gridWidth = dates.length * columnWidth;
|
||||||
const ganttFullHeight = ganttTasks.length * rowHeight;
|
const ganttFullHeight = ganttTasks.length * rowHeight;
|
||||||
|
|
||||||
|
|||||||
@ -107,6 +107,9 @@ export interface StylingOption {
|
|||||||
locale: string;
|
locale: string;
|
||||||
tasks: Task[];
|
tasks: Task[];
|
||||||
selectedTaskId: string;
|
selectedTaskId: string;
|
||||||
|
/**
|
||||||
|
* Sets selected task by id
|
||||||
|
*/
|
||||||
setSelectedTask: (taskId: string) => void;
|
setSelectedTask: (taskId: string) => void;
|
||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user