vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.67k stars 825 forks source link

expandable-nodes example with node/link visible #630

Closed junxnone closed 1 year ago

junxnone commented 1 year ago
vasturiano commented 1 year ago

Hi @junxnone if I understand your intention correctly, this is a variation of the existing expandable nodes example, but in which when collapsed the nodes are not removed from the environment but simply hidden from the user. Is that correct?

Tbh, I find that example a little confusing because even though you can't see the nodes they are still having a force effect on the other nodes, leading to a bit of an unpredictable behavior. Could you expand on why do you prefer this behavior over the existing example?

junxnone commented 1 year ago

Hi @junxnone if I understand your intention correctly, this is a variation of the existing expandable nodes example, but in which when collapsed the nodes are not removed from the environment but simply hidden from the user. Is that correct?

Yes

Tbh, I find that example a little confusing because even though you can't see the nodes they are still having a force effect on the other nodes, leading to a bit of an unpredictable behavior. Could you expand on why do you prefer this behavior over the existing example?

I'm new to js and 3d-force-graph. I try to compose some example to build my KG :

Thanks for this awesome project!

vasturiano commented 1 year ago

Ok, great work on the visuals of that link you shared. Looks great!

As for this PR, it doesn't seem like the example is distinct enough from others to be really useful for a broader audience, so I'll close it. But it can always be reference back here if someone needs, even though it's closed.