-
Notifications
You must be signed in to change notification settings - Fork 232
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
Adding the ability to completely freeze the graph #308
Comments
I'm also wondering if it is possible. It would be nice to prevent users from unexpected behaviours related to graph dragging. |
Hello @BradleyBrown19 @grabczak, from the official docs:
You'll probably want to look at these two configs. |
I am running into this issue as well. So does it makes sense to prevent pan and zoom for the existing static graph props? Or maybe |
It seems that is is quite a requested feature. Let me know what you think of this approach. In order to keep things retro-compatible, I was thinking of having a new property Would this be something that you would use? @lynamemi @grabczak @BradleyBrown19 |
This is exactly what suits my needs :) |
Yes, that sounds great! |
Assigning
With these 2 steps, we should be able to completely freeze the graph. I hope these small steps encourage you to contribute! Cheers! |
I implemented this in #388, but while the property does freeze the nodes, the graph still can be panned around and zoomed into. Was the idea to block those drag events as well? |
I believe I got it working! (PR #388 updated). If folks on this thread want to check behavior before it's merged, clone my fork, switch to this branch, flip the default to |
The PR #388 closes this issue. Will go out in the next release. |
I'm very pleased with this library so far!
I was wondering if it was possible to completely freeze the graph, including it's position.
Static graph does everything except it still lets the user drag the entire graph to different positions. I was wondering if it was possible to disable this?
The text was updated successfully, but these errors were encountered: