force-graph icon indicating copy to clipboard operation
force-graph copied to clipboard

Question about handling onNodeClick function

Open Yass525 opened this issue 2 years ago • 1 comments

Hello!

I'm currently using the force-graph library in my project and I'm trying to understand how the onNodeClick function is being handled internally. I'm having trouble locating where the event listener or function call for this event is in the codebase.

I've reviewed the documentation and source code, but I couldn't find the exact location where the onNodeClick or others (onNodeRightClick, onLickClick ...) function is being triggered. Could you please provide some guidance on this? I want to understand the internals better to customize the behavior to my project's requirements.

Thank you for your help!

Yass525 avatar Aug 08 '23 14:08 Yass525

https://github.com/vasturiano/force-graph/blob/9391348223d01d372bbf078628eae42b52867f83/src/force-graph.js#L539-L566

vasturiano avatar Aug 08 '23 14:08 vasturiano