force-graph
force-graph copied to clipboard
Conditional in linkDirectionalParticles does not use correct return value
Describe the bug Conditional in linkDirectionalParticles seems to be using the first return value for all nodes instead of the return value within the specific conditional.
To Reproduce Steps to reproduce the behavior:
- Create
linkDirectionalParticles
conditional that evaluates to false first/once, returning 1. - Have conditional return > 1 for other nodes.
Expected behavior It should used the returned value for each link to determine how many particles are on it at each time.
Screenshots
This is confirmed to be false on the first conditional and true on some others.
Desktop (please complete the following information):
Smartphone (please complete the following information): NA - Not tested!
Disclaimer: I did check out Dynamically Update linkDirectionalParticles and this does not seem to be exactly what I am trying to do.
@kohlerpop1 thanks for reaching out.
I'm unable to reproduce your issue. Also because I don't have insight into your data. In my case it does respect the return value of the linkDirectionalParticles
method for each independent link.
If you're still having issues, could you make a simple reproducing example on https://codepen.io/ ?