Git Product home page Git Product logo

Comments (4)

vasturiano avatar vasturiano commented on May 22, 2024

There's probably different ways to achieve that, depending on what your intention is.
If it's just a visual difference and you simply wish to hide certain links, you can do that by setting a fully transparent color on those links. Something like:

linkColor={link => shouldHideLink(link) ? 'rgba(0, 0, 0, 0)' : link.color}

If however you wish to group nodes in another manner than not by the link force (or by configuring the link force in a different way) you can manipulate the internals of the forces in play in the system using the d3Force method.

from react-force-graph.

Benkevych avatar Benkevych commented on May 22, 2024

i`ve tried that, and my links appear just black instead of transparent...

from react-force-graph.

vasturiano avatar vasturiano commented on May 22, 2024

Seems like it's ignoring the alpha part. Are you using rgba? Also, are you running the latest version of react-force-graph?

from react-force-graph.

Benkevych avatar Benkevych commented on May 22, 2024

I don`t know what was the issue, but everything works fine after reinstalling package. Both was latest versions...
Thank you for your time)

from react-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.