d3-force/src/constant.js
Mike Bostock f08062fb16 Assign node.index in d3.forceSimulation.
Also get ready for d3-quadtree 0.3 and per-node forces.
2016-04-08 08:33:00 -07:00

6 lines
72 B
JavaScript

export default function(x) {
return function() {
return x;
};
}