Pārlūkot izejas kodu

add plot event

tags/2.3.1
Caven Chen pirms 4 gadiem
vecāks
revīzija
e6cdf2dbea

+ 12
- 1
modules/event/EventType.js Parādīt failu

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
} }

+ 5
- 0
modules/event/index.js Parādīt failu

*/ */
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'

+ 27
- 0
modules/event/type/PlotEvent.js Parādīt failu

/**
* @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

Notiek ielāde…
Atcelt
Saglabāt