lineMouseDown

fires when a pointing device button is pressed while the pointer is over a connector line

void lineMouseDown(string|number id,MouseEvent e){ ... };

Parameters

idstring|numberthe id of a connector
eMouseEventa native HTML event object

Example

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

Related samples

See also
Change log

Added in v4.0

Back to top