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

Is there any way to update the graph only by one frame?

Open tuotuodev opened this issue 3 years ago • 3 comments

For example, I updated the color of the node to make it work. If the graph has been rendered, it has no effect. Can you avoid node movement?

tuotuodev avatar Dec 08 '21 09:12 tuotuodev

@Yaowen-Pan have you re-invoked .nodeColor(...) when you changed the node's color? That's required to tell the component that a node color change has happened.

vasturiano avatar Dec 08 '21 22:12 vasturiano

i do this :node.x = "#000"

tuotuodev avatar Dec 09 '21 03:12 tuotuodev

Also need to modify the text. like this: node.text = "xxx"

tuotuodev avatar Dec 09 '21 06:12 tuotuodev