Skip to content
New issue

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

I need a way to set the transofrm state that controls the position of the graph (which gets called on dragging the graph) #534

Open
naderSolveit opened this issue Aug 9, 2022 · 0 comments

Comments

@naderSolveit
Copy link

I have four arrows controls, up, right, down and left, which moves the entire graph up, right, down and left by setting the transform attribute of the g element which is the first child of the svg element.
the problem is that react-d3-graph doesn't know that I updated the position of the graph, so whenever I drag the graph after moving it via the arrows controls, it moves the graph from the previous position because it doesn't know that I updated the position of the graph.
So I need to set the transform state that controls the position of the graph (which gets called on dragging the graph) on using the arrows controls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant