Event regarding mouse down

Hi,

I want to call my function on mouse down event on Node. Like we have click event,mouseHover etc on Node, do we have any mouse Down event on node.
If not, how can i implement mouse down event on Node.

Thanks

If what you want to do is a variation of an existing Tool in the ToolManager | GoJS API list, subclass it and replace it in that list.

Otherwise define your own tool and insert it into that list.

Thanks,

Can you give me a example for it?

There are lots of examples in the extensions directory – just look for “mouseDownTools” and study the definitions of the tools that are inserted into that List.