Is it possible to explicitly switch between dragging and linking modes in GoJS? I am trying to achieve a behavior similar to other diagram editors out there:
- Have 2 buttons in a toolbar outside of the diagram: an Link and a Hand.
- Clicking on Link button switches diagram into linking mode. Clicking any part of any node initiates LinkingTool on that node so it can be linked to another node. Node dragging is disabled.
- Clicking on Hand button switches diagram into dragging mode. Now mouse click on any node initiates DraggingTool, ResizingTool etc., anything but LinkingTool.
I believe I've seen such example but now cannot find it after couple hours of searching. An attempt to set diagram.toolManager.xxxTool.enabled to "false" in JavaScript does not seem to have any effect on tool activation behavior.