itemMouseOver

fires when a pointing device is onto an item

void itemMouseOver(string|number id,MouseEvent event){ ... };

Parameters

idstring|numberthe id of an item
eventMouseEventa native HTML event object

Example

diagram.events.on("itemMouseOver", (id, event) => {
    console.log(id, event);
});
// For diagram editor
editor.diagram.events.on("itemMouseOver", (id, event) => {
    console.log(id, event);
});

Related samples

See also
Change log

Added in v4.0

Back to top