visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.
https://visjs.github.io/vis-network/
Apache License 2.0
3.09k stars 374 forks source link

How do I get a cluster node reference? #1562

Open Instinct408 opened 3 years ago

Instinct408 commented 3 years ago

I created a cluster node with an ID but as far as I know, the cluster node isn't added to the nodes object. One way I found was using network.body.node[id].options, but since I am using visjs with typescript Angular, my compiler is giving me body not found error.. Is there any way around this?

harshadchavan commented 1 year ago

Assuming that you already got the answer, but for future reference for others, you get it from VisNetworkService that is provided with Angular implementation. visNetworkService['networks']['{your network name goes here}']