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.
18 lines (17 loc) • 572 B
TypeScript
import { default as Gantt } from '.';
export type Point = [number, number];
export type Box = {
x: number;
y: number;
width: number;
height: number;
};
export declare function pointInBox(point: Point, box: Box): boolean;
export declare class View {
gantt: Gantt;
constructor(gantt: Gantt);
scrollToID(id: string, options?: ScrollToOptions): void;
scrollToItem(itemId: string, options?: ScrollToOptions): void;
scrollToEvent(eventId: string, options?: ScrollToOptions): void;
scrollToEarliestItem(options?: ScrollToOptions): void;
}