My use case is that I'm building a UI where people can add a node by double-clicking. The node appears where the mouse is.
I tried using d3.forceCenter, but when the node appears, it just recenters everything instantly which I find a bit aggressive. I want to provide a smoother experience (the whole graph gradually recenters)
Filing this issue for various reasons:
- knowing whether this is the wanted behavior for default d3
- whether the d3 project is interested in a PR on this topic (if so let's discuss what the new behavior would be)
- if it's not a PR for the project, where should people gather if they want to create a library of forces for d3-force? Maybe just npm with the
d3-force keyword?
My use case is that I'm building a UI where people can add a node by double-clicking. The node appears where the mouse is.
I tried using
d3.forceCenter, but when the node appears, it just recenters everything instantly which I find a bit aggressive. I want to provide a smoother experience (the whole graph gradually recenters)Filing this issue for various reasons:
d3-forcekeyword?