forked from d3/d3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't actually need the separate `fx` and `fy` attributes on each node; instead we can modify the `x` and `y` attributes directly, since we're using position Verlet! This commit also adds the layout's `alpha` parameter to the tick event, such that normalized external forces can be applied.
- Loading branch information
Showing
6 changed files
with
74 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
d3 = {version: "1.13.2"}; // semver | d3 = {version: "1.13.3"}; // semver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters