Creating a ToolElement for every object JointJS
I am trying to create a sort of a Tool menu for every object - when you click or hover over an element, it shows several actions that could be done: delete, rotate, enlarge, link, etc. I have used this question as the guideline - and was able to add and extend the ToolElement itself, with the help of the JFiddle . However, after that I got stuck on the functionality of linking. What I want to do is the green arrow. And when I click and drag the green arrow, I want the link to start dragging from the object, just like a port, only from the object itself. I tried reading the documentation, but