UNPKG

@xpytest/gantt-core

Version:

A powerful and flexible Gantt chart component library for modern web applications with TypeScript support

34 lines (33 loc) 1.04 kB
import { Store } from "./store"; import { EventBus } from "./event"; import { IOptionConfig, IOptions } from "./types"; import { EventMap } from "./types/event"; import { IContext } from "./types/render"; export declare class XGanttContext implements IContext { private container; private events; private _id; store: Store; event: EventBus; private renderer; constructor(container: HTMLElement, events: Map<keyof EventMap, Function[]>, options?: IOptions); getScrollbar(): import("./rendering/scrollbar").Scrollbar; getOptions(): import("./types/options").IGanttOptions; private setOptions; render(): void; updateOptions(newOptions: IOptions, config: IOptionConfig): void; destroy(): void; /** * 跳转到指定日期。默认为今天 * * @return {boolean} 是否成功跳转 */ jumpTo(date?: any): boolean; /** * 触发事件 * @param event 事件名称 * @param args 参数列表 */ private _emit; private registerEvents; }