Hi,
I want’t show context menu on the diagram when I release the link. My scenario is as following:
- I have a node in the diagram
- Click on the node to start the line drawing
- Move the line anywhere on the diagram, still holding the mouse
- If I release the mouse over the diagram AND NOT over another node, I do:
- detect mouse location
- show context menu on that location
So far I was unable to find the right API for this. The closest I come is use of doMouseUp
tool
diagram.toolManager.linkingTool.doMouseUp = function () {
console.log("mouse up");
};
But that overrides default behavior of line drawing and connecting to other nodes so everything stops working.