@visactor/vtable
Version:
canvas table width high performance
17 lines (16 loc) • 719 B
TypeScript
import type { BaseTableAPI, BaseTableConstructorOptions } from '../ts-types/base-table';
import type { IVTablePlugin } from './interface';
export declare class PluginManager {
private plugins;
private table;
private pluginEventMap;
constructor(table: BaseTableAPI, options: BaseTableConstructorOptions);
register(plugin: IVTablePlugin): void;
registerAll(plugins: IVTablePlugin[]): void;
getPlugin(id: string): IVTablePlugin | undefined;
getPluginByName(name: string): IVTablePlugin | undefined;
_bindTableEventForPlugin(plugin: IVTablePlugin): void;
removeOrAddPlugins(plugins?: IVTablePlugin[]): void;
updatePlugins(plugins?: IVTablePlugin[]): void;
release(): void;
}