UNPKG

@visactor/vrender-core

Version:
19 lines (18 loc) 602 B
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; }