af83/chouette-core

View on GitHub
app/packs/src/shape_editor/shape.event-emitter.js

Summary

Maintainability
A
0 mins
Test Coverage
import EventEmitter from '../../src/helpers/EventEmitter'

export default new EventEmitter()

export const events = {
    initMap: 'map:init',
    mapMove: 'map:move',
    mapZoom: 'map:zoom',
    waypointZoom: 'map:zoom:waypoint',
    receivedRouteFeatures: 'route:received-features',
    receivedShapeFeatures: 'shape:received-features',
    submitShapeRequest: 'shape:submit-request',
    lineUpdated: 'updated-line',
    waypointAdded: 'waypoints:added',
    waypointUpdated: 'waypoints:updated',
    waypointDeleteRequest: 'waypoints:delete-request',
    waypointDeleted: 'waypoints:deleted',
}