Cmen
3 years ago
3 changed files with 10 additions and 22 deletions
@ -1,12 +0,0 @@
|
||||
import { Dispatch } from "react"; |
||||
import { EditorAction } from "@store"; |
||||
import { MapEditor } from "@map"; |
||||
import { EventTypes } from "../../types/enum"; |
||||
|
||||
// 注册地图的事件钩子
|
||||
export function registerMapEventHooks(map: MapEditor, dispatch: Dispatch<any>) { |
||||
//
|
||||
map.on(EventTypes.FinishEditOverlay, (evt: any) => |
||||
dispatch(EditorAction.finishEditOverlay(evt)) |
||||
); |
||||
} |
Loading…
Reference in new issue