Skip to content

updating bbox to constant breaks force #3

@fefrei

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;

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