Changing node color when other node is dragged above it


#1

Hi,
I would like to implement a group creation when a node is dragged onto another node (like in android phone).
As soon as the node is dragged over another node, i would like that the underneath node to change its color or opacity.
How can i do it ?


#2

Set https://gojs.net/latest/api/symbols/GraphObject.html#mouseDragEnter and https://gojs.net/latest/api/symbols/GraphObject.html#mouseDragLeave on the Node.

For example: https://gojs.net/latest/samples/orgChartEditor.html


#3

Works perfect,
Thanks