# Interface EventMap

插件事件

interface EventMap {
animationStart: () => void;
animationStop: () => void;
dataChange: (
data: DynamicPathLinePluginType.PluginData,
prevData?: DynamicPathLinePluginType.PluginData,
) => void;
dataLoaded: (data: DynamicPathLinePluginType.PluginData) => void;
dispose: () => void;
pathAdd: (pathId: string, config: PathConfig) => void;
pathDisable: (pathId: string) => void;
pathEnable: (pathId: string) => void;
pathHide: (pathId: string) => void;
pathRemove: (pathId: string) => void;
pathShow: (pathId: string) => void;
stateChange: (
params: StateChangeParams<DynamicPathLinePluginType.State>,
) => void;
}

#### Hierarchy (View Summary)

- BasePlugin.EventMap<
  DynamicPathLinePluginType.State,
  DynamicPathLinePluginType.PluginData,
  >
  - EventMap

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:115

##### Index

### Properties

animationStart
animationStop
dataChange
dataLoaded
dispose
pathAdd
pathDisable
pathEnable
pathHide
pathRemove
pathShow
stateChange

## Properties

### animationStart

animationStart: () => void

动画开始播放

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:117

### animationStop

animationStop: () => void

动画停止播放

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:119

### dataChange

dataChange: (
data: DynamicPathLinePluginType.PluginData,
prevData?: DynamicPathLinePluginType.PluginData,
) => void

数据变更

Inherited from BasePlugin.EventMap.dataChange

- Defined in lib/plugins/BasePlugin/index.ts:59

### dataLoaded

dataLoaded: (data: DynamicPathLinePluginType.PluginData) => void

数据加载完成

Inherited from BasePlugin.EventMap.dataLoaded

- Defined in lib/plugins/BasePlugin/index.ts:61

### dispose

dispose: () => void

插件被销毁

Inherited from BasePlugin.EventMap.dispose

- Defined in lib/plugins/BasePlugin/index.ts:55

### pathAdd

pathAdd: (pathId: string, config: PathConfig) => void

路径添加

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:121

### pathDisable

pathDisable: (pathId: string) => void

路径禁用

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:127

### pathEnable

pathEnable: (pathId: string) => void

路径启用

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:125

### pathHide

pathHide: (pathId: string) => void

路径隐藏

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:131

### pathRemove

pathRemove: (pathId: string) => void

路径移除

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:123

### pathShow

pathShow: (pathId: string) => void

路径显示

- Defined in lib/plugins/DynamicPathLinePlugin/typing.ts:129

### stateChange

stateChange: (
params: StateChangeParams<DynamicPathLinePluginType.State>,
) => void

插件状态变化

Inherited from BasePlugin.EventMap.stateChange

- Defined in lib/plugins/BasePlugin/index.ts:57