Answer the question
In order to leave comments, you need to log in
How to limit the movement area of elements in D3 Force?
Hello! https://codepen.io/AndrewGHC/pen/mPXjKr
There are 2 questions that I can't figure out
1) How to limit the drag-and-drop area of an object? Let's say that it can't be dragged more than 50px
2) When reloading the page, the elements are always in different places. One circle (fil) may be on the right, and the next time on the left. How can this be avoided?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question