emptyAreaClick

fires on clicking an empty space in the diagram area

void emptyAreaClick(Event e){ ... };

Parameters

eEventa native event object

Example

diagram.events.on("emptyAreaClick",function(e){
    console.log("An empty space has been clicked");
});
 
// For diagram editor
editor.diagram.events.on("emptyAreaClick",function(e){
    console.log("An empty space has been clicked");
});

Related samples

Back to top