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; |
Running something like this results in a broken force:
I think the problem is simply the
+in this line falsely coercing the array to a number:d3-bboxCollide/src/bboxCollide.js
Line 164 in dbd3b9e