We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Hi Vasco Asturiano,
Not a problem, new feature.
Murphy's law, not 3 minutes after I created this issue I find this one: #470
Which I think is what I want... let me test...
Yes Yes Rush Rush that worked. Phew. Glad you answered Issue 470 !
Describe the solution you'd like
I label all my nodes. I want to focus on a node with a specific label. I have buttons, such as a music band "Rush (band)" Button.
Describe alternatives you've considered
Now showing correct answer:
const focusOnNode = (searchString) => { const myGraphData = fgRef.current.graphData(); const node = myGraphData.nodes.find(n => n.id === searchString); if (node) { const distance = 40; // Distance from the node to position the camera const distRatio = 1 + distance / Math.hypot(node.x, node.y, node.z); fgRef.current.cameraPosition( { x: node.x * distRatio, y: node.y * distRatio, z: node.z * distRatio }, // new position node, // lookAt target 3000 // ms transition duration ); } }; useEffect(() => { if (focusNodeId) { focusOnNode(focusNodeId); } }, [focusNodeId]);
Additional context
https://bandtree.fly.dev
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Hi Vasco Asturiano,
Not a problem, new feature.
Murphy's law, not 3 minutes after I created this issue I find this one:
#470
Which I think is what I want... let me test...
Yes Yes Rush Rush that worked. Phew. Glad you answered Issue 470 !
Describe the solution you'd like
I label all my nodes.
I want to focus on a node with a specific label.
I have buttons, such as a music band "Rush (band)" Button.
Describe alternatives you've considered
Now showing correct answer:
Additional context
https://bandtree.fly.dev
The text was updated successfully, but these errors were encountered: