From 6b5e0c4ec8cc3a5328e2456dd50b08396a682133 Mon Sep 17 00:00:00 2001 From: Ilya Belsky Date: Wed, 4 Oct 2023 12:14:43 +0200 Subject: [PATCH] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb757b6..f3e874c 100644 --- a/README.md +++ b/README.md @@ -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. # d3.forceCenter([x, y]) · [Source](https://github.com/d3/d3-force/blob/master/src/center.js)