Fix typo in README.md (#222)
This commit is contained in:
parent
475ec96f1a
commit
51e9a5d775
|
|
@ -193,7 +193,7 @@ Supplies the array of *nodes* and *random* source to this force. This method is
|
|||
|
||||
#### Centering
|
||||
|
||||
The centering force translates nodes uniformly so that the mean position of all nodes (the center of mass if all nodes have equal weight) is at the given position ⟨[*x*](#center_x),[*y*](#center_y)⟩. This force modifies the positions of nodes on each application; it does not modify velocities, as doing so would typically cause the nodes to overshoot and oscillate around the desired center. This force helps keeps nodes in the center of the viewport, and unlike the [positioning force](#positioning), it does not distort their relative positions.
|
||||
The centering force translates nodes uniformly so that the mean position of all nodes (the center of mass if all nodes have equal weight) is at the given position ⟨[*x*](#center_x),[*y*](#center_y)⟩. This force modifies the positions of nodes on each application; it does not modify velocities, as doing so would typically cause the nodes to overshoot and oscillate around the desired center. This force helps keep nodes in the center of the viewport, and unlike the [positioning force](#positioning), it does not distort their relative positions.
|
||||
|
||||
<a name="forceCenter" href="#forceCenter">#</a> d3.<b>forceCenter</b>([<i>x</i>, <i>y</i>]) · [Source](https://github.com/d3/d3-force/blob/master/src/center.js)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user