@visactor/vrender-core
Version:
```typescript import { xxx } from '@visactor/vrender-core'; ```
19 lines (18 loc) • 602 B
TypeScript
import type { Releaseable } from './common';
import type { IStage } from './stage';
export interface IPluginService extends Releaseable {
register: (plugin: IPlugin) => void;
unRegister: (plugin: IPlugin) => void;
active: (stage: IStage, params: {
pluginList?: string[];
}) => void;
actived: boolean;
stage: IStage;
findPluginsByName: (name: string) => IPlugin[];
}
export interface IPlugin {
name: string;
activeEvent: 'onStartupFinished' | 'onRegister';
activate: (context: IPluginService) => void;
deactivate: (context: IPluginService) => void;
}