bbl-gantt
Version:
一个框架无关的JS甘特图库,支持resize、拖拽新建、支持自定义样式、以及支持duration模式等功能。A framework-independent JS Gantt chart library, supporting resize, drag-and-drop to create new tasks, custom styling, and duration mode functionalities.
17 lines (16 loc) • 803 B
TypeScript
import { default as dayjs } from 'dayjs';
import { _GanttItem, GanttEventItemTime, GanttItem, GanttOptions } from '../index';
import { DeepRequired } from 'utility-types';
export declare function getUID(id?: string | number): string;
export declare function walkData(data: GanttItem[], callback: (params: {
item: GanttItem;
level: number;
parent: GanttItem | null;
}) => void | boolean, level?: number, parent?: GanttItem | null): void;
export declare function formatDataTimeToDayjs(time: GanttEventItemTime, isDuration: boolean): dayjs.Dayjs;
export declare function initDealData(data: GanttItem[], options: DeepRequired<GanttOptions>): {
maxTime: dayjs.Dayjs | null;
minTime: dayjs.Dayjs | null;
list: _GanttItem[];
};
export declare function isInfinity(num: number): boolean;