Git Product home page Git Product logo

Comments (2)

vasturiano avatar vasturiano commented on May 13, 2024 1

@SailinZh I add a shot at this and added the feature to have moving particles indicate the directionality of links, since it was a needed feature of the library anyway.

Working example here:
https://vasturiano.github.io/3d-force-graph/example/directional-links/

This is achieved via the new component methods: linkDirectionalParticles, linkDirectionalParticleSpeed, linkDirectionalParticleWidth and linkDirectionalParticleResolution.

Let me know if this works for you. And thanks again for suggesting it.

from 3d-force-graph.

vasturiano avatar vasturiano commented on May 13, 2024

That looks beautiful @SailinZh, thanks for sharing.

To add the additional elements, I'd recommend you use the lower level three-forcegraph Three component instead. That will allow you to combine the new photon particles with the nodes/links generated by the force-directed engine.

You can access the current coordinates of the nodes as x, y, and z attributes of the objects.

You'd also need to take care of the render/scene/camera scaffolding, but there's an example here to guide you, if you need:
https://github.com/vasturiano/three-forcegraph/blob/master/example/basic/index.html

from 3d-force-graph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.