force.initialize()

force.initialize(nodes)

Assigns the array of nodes to this force. This method is called when a force is bound to a simulation via simulation.force and when the simulation’s nodes change via simulation.nodes. A force may perform necessary work during initialization, such as evaluating per-node parameters, to avoid repeatedly performing work during each application of the force.

doc_D3_Js
2016-11-24 10:27:45
Comments
Leave a Comment

Please login to continue.