ShapeHover

fires on moving the mouse pointer over a shape in the editor

void ShapeHover(string|number id,Event e){ ... };

Parameters

idstring|numberthe id of a shape
eEventa native event object

Example

diagram.events.on("ShapeHover",function(id,e){
    console.log("An item"+ diagram.data.getItem(id).text +"has been hovered over");
});

Related samples

Back to top