DiagramMouseEventObject API in JavaScript (ES5) Diagram API control
MouseEventElement notifies whether it is node or connector or selector model
Properties
connector
ConnectorModel
returns the new source node or target node of the connector
node
NodeModel
returns the new source node or target node of the connector