Comments (5)
@GeoffGodwin @qasimalbaqali this is now already supported, using linkThreeObject
and linkPositionUpdate
.
from react-force-graph.
For instance, it would be nice to have a weighted graph where the weights in-between are always floating and visible, not simply when it's hovered over. If there was a paint function for the links this could be possible.
from react-force-graph.
@GeoffGodwin I think that would be a good feature addition. It's slightly more complicated because the method would have to read the source
/target
coordinates and draw it in the correct location, so it puts more burden on the client implementation.
But I still think it would be useful. I'll leave the issue open until there's a bit of time to implement it. Or I'll accept a PR too if you have something working. :)
from react-force-graph.
Yeah I may have to give that a try. I figure getting the midpoint between source and destination is easy enough for straight links. Slightly more work to calculate the curved links but not terrible in terms of the price of the calculations. If I get a chance I'll open a PR with whatever I come up with. Thanks!
from react-force-graph.
@GeoffGodwin Have you got the chance to try it out? I currently have a use case where I would like to paint the links of the selected node.
from react-force-graph.
Related Issues (20)
- Feasibility of Group-Based Color and Position Assignment for Nodes HOT 2
- 7 vulnerabilities, may require choosing a different dependencies versions. HOT 1
- Unable to click the nodes after adding Margin/Padding HOT 1
- Click or drag on canvas on resize throws error HOT 1
- too much recursion HOT 1
- How to use ref type correct HOT 2
- Touch event HOT 4
- HTML gets stripped from label HOT 1
- Render without blocking JS thread HOT 1
- Find node by ID HOT 4
- User-defined links do not provide access to link source & target until user interacts with the graph HOT 5
- Cannot find name 'ChainableInstance'.ts in Latest Release HOT 1
- How to use useRef with Typescript? HOT 1
- It There a way to remove the bottom text of the graph?
- ReferenceError: self is not defined NextJS app router HOT 4
- Cannot add threejs object in the current ref scene
- BackgroundColor: white is not working propertly HOT 1
- Unable to get the dynamic position of the node HOT 2
- is there a way to keep the gentle floating movement after the initial graph animation? HOT 3
- Is it possible to incorporate a lasso selection? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-force-graph.