gantt-task-react-powern
Version:
Interactive Gantt Chart for React with TypeScript.
33 lines (32 loc) • 1.16 kB
TypeScript
import React from "react";
import { VirtualItem } from "@tanstack/react-virtual";
import { CalendarDefinition, EventOption } from "../../types/public-types";
import { BarTask } from "../../types/bar-task";
import { GanttEvent } from "../../types/gantt-task-actions";
export declare type TaskGanttContentProps = {
tasks: BarTask[];
dates: Date[];
ganttEvent: GanttEvent;
selectedTask: BarTask | undefined;
rowHeight: number;
columnWidth: number;
timeStep: number;
svg?: React.RefObject<SVGSVGElement>;
svgWidth: number;
taskHeight: number;
arrowColor: string;
arrowIndent: number;
fontSize: string;
fontFamily: string;
rtl: boolean;
virtualItems?: VirtualItem[];
visibleStartY: number;
visibleEndY: number;
projectCalendar?: CalendarDefinition;
setGanttEvent: (value: GanttEvent) => void;
setFailedTask: (value: BarTask | null) => void;
setSelectedTask: (taskId: string) => void;
onBarTasksUpdate?: (task: BarTask) => void;
sliderTime?: number;
} & EventOption;
export declare const TaskGanttContent: React.FC<TaskGanttContentProps>;