Skip to content

d3.forceCenter should have an alpha parameter. #81

@DavidBruant

Description

@DavidBruant

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions