#Event State
With the EventState we can customize the operation of various events, such as the mouse move event and so on.
eventState = {
// trigger while loading the project data from cloud server
onDataLoading: function (event, shape, point) {
// do something
},
// trigger while the project data was loaded from cloud server
onDataLoaded: function (event, shape, point) {
// do something
},
// trigger while selecting one shape
onSelectShape: function (event, shape, point) {
// do something
}
// trigger while the mouse moving
onMouseMove: function (event, shape, point) {
// do something
}
}