Replies: 2 comments
-
The modified code above can turn node3 gray, but its initialization color can never be set to the specified yellow. It seems that the style color cannot be passed to the ctxRenderer function |
Beta Was this translation helpful? Give feedback.
0 replies
-
I used an inefficient alternative:
This method may seem a bit stupid, but at least it achieves the functionality I need. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the following program, I want to achieve that when any node is clicked, the color of other nodes will change to gray, but for the custom type node such as node3, the color change cannot be achieved.
How should I modify it to make the color of node3 also turn gray?
Beta Was this translation helpful? Give feedback.
All reactions