Skip to content

updating bbox to constant breaks force #3

Description

@fefrei

Running something like this results in a broken force:

bboxCollisionForce.bbox([[-100,-25],[100,25]]);

I think the problem is simply the + in this line falsely coercing the array to a number:

return arguments.length ? (bbox = typeof _ === "function" ? _ : constant(+_), force) : bbox;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions