feat: graph.priorityState & event mode

This commit is contained in:
baizn 2020-07-13 20:23:44 +08:00
parent eb4339dff0
commit 783a1da248

View File

@ -163,6 +163,8 @@ export default class EventController {
if (evt.name && !evt.name.includes(':')) graph.emit(`${type}:${eventType}`, evt); // emit('node:click', evt)
else graph.emit(evt.name, evt); // emit('text-shape:click', evt)
graph.emit(evt.name, evt);
if (eventType === 'dragstart') {
this.dragging = true;
}