Alexithemia
Alexithemia
@vasturiano Didn't you do something with collision in your example? https://vasturiano.github.io/3d-force-graph/example/collision-detection/ https://github.com/vasturiano/3d-force-graph/blob/master/example/collision-detection/index.html
The data that is passed into the graph is edited as it is graphed. RaulPROP's answer works but you don't have to pull it into a new variable for that....
You would have to use onNodeDragEnd and use the node's original coordinates plus the coordinate translation (included in the function) to see if you "dropped" it on top of another...
I am not able to create an event listener for mousedown on the canvas or the container element of the graph, something seems to be blocking it. Do you know...
I am probably missing something, but when I place a div over the graph it doesn't let any click events though it. There is a way to let the events...
Here is my code I used for 2D box select. ``` // forceGraph element is the element provided to the Force Graph Library document.getElementById('forceGraph').addEventListener('pointerdown', (e) => { if (e.shiftKey) {...
I'm my use of the graph I am creating absolute positioned nodes on top of the graph using `graph2ScreenCoords(x, y)` Just give it the x,y of the node you clicked...
Would be useful, but you can temporarily use .zoom and have the value based off how many nodes you have.
His example does that here: https://vasturiano.github.io/force-graph/example/highlight/ Source code: https://github.com/vasturiano/force-graph/blob/master/example/highlight/index.html
Then you should make the issue in the 3D-Force-graph repository. It works pretty much the same though. 3D Example: https://vasturiano.github.io/3d-force-graph/example/highlight/ 3D source code: https://github.com/vasturiano/3d-force-graph/blob/master/example/highlight/index.html