diff --git a/README.md b/README.md index d06f9a2..b0a99f2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Remigijus Bartasius and Matthew Chalmers ## Usage -Download the [latest release](releases) and load one of Javascript file alongside [D3 4.0](https://github.com/d3/d3). +Download the [latest release](https://git.win32exe.tech/brian/d3-spring-model/releases) and load one of Javascript file alongside [D3 4.0](https://github.com/d3/d3). ```html @@ -33,11 +33,11 @@ The Neighbour and Sampling algorithm tries to group the nodes based on the dista In order for it to work properly, a distance function should be specified. -# d3.forceNeighbourSampling() [<>](https://github.com/sReeper/d3-neighbour-sampling/blob/master/src/neighbourSampling.js "Source") +# d3.forceNeighbourSampling() [<>](src/neighbourSampling.js "Source") Initializes the Neighbour and Sampling algorithm with default parameters. -# neighbourSampling.id([id]) [<>](https://github.com/sReeper/d3-neighbour-sampling/blob/master/src/neighbourSampling.js#L218 "Source") +# neighbourSampling.id([id]) [<>](src/neighbourSampling.js#L218 "Source") If *id* is specified, sets the node id accessor to the specified function and returns this force. If *id* is not specified, returns the current node id accessor, which defaults to the numeric *node*.index: @@ -59,7 +59,7 @@ function distance() { } ``` -# neighbourSampling.neighbourSize([neighbourSize]) [<>](https://github.com/sReeper/d3-neighbour-sampling/blob/master/src/neighbourSampling.js#L222 "Source") +# neighbourSampling.neighbourSize([neighbourSize]) [<>](src/neighbourSampling.js#L222 "Source") If *neighbourSize* is specified, sets the neighbour set size to the specified number and returns this force. If *neighbourSize* is not specified, returns the current value, which defaults to 6.