d3-force icon indicating copy to clipboard operation
d3-force copied to clipboard

Method to get all forces currently set (or at least clear them)

Open RLesser opened this issue 4 years ago • 0 comments

I'm working on something where I'd like to be able to see all the currently set forces on a simulation. This information is stored in the forces map, but this isn't accessible through any method. Would it be possible to add a forces() method that returns that map, or a list of the defined forces?

Alternatively, some way to clear all current forces from a simulation would also satisfy this goal.

Would love to hear thoughts on this!

RLesser avatar Dec 23 '21 18:12 RLesser