| RESET_TIME_LINE: 'restTimeLine' | RESET_TIME_LINE: 'restTimeLine' | ||||
| } | } | ||||
| const PlotEventType = { | |||||
| DARW_START: 'drawStart', | |||||
| DARW_MOVING: 'drawMoving', | |||||
| DARW_END: 'drawEnd', | |||||
| EDIT_START: 'drawStart', | |||||
| EDIT_MOVING: 'drawMoving', | |||||
| ANCHOR_MOVING: 'anchorMoving', | |||||
| EDIT_END: 'editEnd' | |||||
| } | |||||
| export { | export { | ||||
| MouseEventType, | MouseEventType, | ||||
| ViewerEventType, | ViewerEventType, | ||||
| LayerEventType, | LayerEventType, | ||||
| OverlayEventType, | OverlayEventType, | ||||
| TrackEventType, | TrackEventType, | ||||
| PathEventType | |||||
| PathEventType, | |||||
| PlotEventType | |||||
| } | } |
| */ | */ | ||||
| export { default as TrackEvent } from './type/TrackEvent' | export { default as TrackEvent } from './type/TrackEvent' | ||||
| export { default as PathEvent } from './type/PathEvent' | export { default as PathEvent } from './type/PathEvent' | ||||
| /** | |||||
| * plot | |||||
| */ | |||||
| export { default as PlotEvent } from './type/PlotEvent' |
| /** | |||||
| * @Author: Caven | |||||
| * @Date: 2020-05-11 23:28:13 | |||||
| */ | |||||
| import { Cesium } from '@dc-modules/namespace' | |||||
| import { PlotEventType } from '../EventType' | |||||
| import Event from '../Event' | |||||
| class PlotEvent extends Event { | |||||
| constructor() { | |||||
| super() | |||||
| } | |||||
| /** | |||||
| * | |||||
| * @private | |||||
| */ | |||||
| _registerEvent() { | |||||
| Object.keys(PlotEventType).forEach(key => { | |||||
| let type = PlotEventType[key] | |||||
| this._cache[type] = new Cesium.Event() | |||||
| }) | |||||
| } | |||||
| } | |||||
| export default PlotEvent |