Commit Graph

269 Commits

Author SHA1 Message Date
liuhuayong
9312756daa chore: add .gitignore and stage all project files
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2026-06-13 13:15:09 +08:00
Philippe Rivière
c3e73cf641
Restructure README (#221)
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
* Restructure README

* minimalist

* remove icons

* even more minimalist
2023-10-06 10:54:53 -04:00
Ilya Belsky
51e9a5d775
Fix typo in README.md (#222) 2023-10-04 10:10:56 -04:00
Curran Kelleher
475ec96f1a
Let and Const in README (#183) 2021-06-11 23:01:40 +02:00
Mike Bostock
156712c8c3
3.0.0 2021-06-05 12:10:58 -07:00
Philippe Rivière
8aed9d462f
Adopt type=module (#192)
* Adopt type=module

follow changes in d3-format:
* type=module
* add exports
* remove zip
* license: ISC
* update dependencies

* es6 rather than no-undef

* remove Sublime project

* add eslint.json

* related d3/d3#3502; extract copyrights from LICENSE

* update dependencies

* stricter eslint

* cleaner imports

* Update README

Co-authored-by: Mike Bostock <mbostock@gmail.com>
2021-06-05 12:09:51 -07:00
Philippe Rivière
8c4d113979
links 2020-09-01 16:15:49 +02:00
Philippe Rivière
32613054ec link 2020-08-25 15:23:50 +02:00
Philippe Rivière
f9d0a7d628 links
(cherry-picked from https://github.com/d3/d3-force/pull/174)
2020-08-25 15:21:31 +02:00
Philippe Rivière
c62a93008d link to forcecenter-strength example 2020-08-25 15:11:31 +02:00
Philippe Rivière
6e42fc0f1c versions @2 2020-08-25 15:11:17 +02:00
Philippe Rivière
1eabfd08cf v2.1.1 2020-08-24 00:45:00 +02:00
Philippe Rivière
ed62b985e8 upgrade d3 dependencies 2020-08-23 16:44:12 +02:00
Philippe Rivière
cf30f35ff1 v2.1.0 2020-08-19 09:29:13 +02:00
Philippe Rivière
127cbb778c test that forceCollide jiggles in a reproducible way 2020-08-15 13:30:35 +02:00
Philippe Rivière
d0b28dee7e test randomSource in simulation 2020-08-15 13:30:35 +02:00
Mike Bostock
1e3db41373 Add deterministic LCG. 2020-08-15 13:30:35 +02:00
Mike Bostock
92b8ce3a09 README 2020-08-15 13:30:35 +02:00
Mike Bostock
ad96d04754 Re-initialize forces when random source changes. 2020-08-15 13:30:35 +02:00
Mike Bostock
523a02d963 Add simulation.randomSource. 2020-08-15 13:30:35 +02:00
Philippe Rivière
f02c557cce a few tests for #17 2020-08-15 13:23:42 +02:00
Mike Bostock
c46be8de85
Add center.strength.
Fixes #81.
2020-08-12 14:16:18 -07:00
Philippe Rivière
88e57e2593
link to phyllotaxis notebook (#159)
(& no need to specify "around the origin" since we can scale & translate after init, as demonstrated in https://observablehq.com/@d3/force-layout-phyllotaxis )
2020-07-10 18:28:34 +02:00
Christophe Coevoet
23ccfe0e4f
Mark the package as having no side effects (#145) 2020-07-10 18:18:50 +02:00
Joel Louzado
051f8d3976
docs(README.md): Add definition for alpha (#139)
* docs(README.md): Add definition for `alpha`

- Alpha didn't have a meaningful definition and assumed people already knew what it was.
- Also added link to Simulation-Restart to reference the idea presented there of "reheating" the simulation

fix: https://github.com/d3/d3-force/pull/139#issuecomment-655488430

Co-authored-by: Philippe Rivière <fil@rezo.net>
2020-07-10 18:17:40 +02:00
Philippe Rivière
194dba9ed9
default strength for collide is 1
fixes https://github.com/d3/d3-force/issues/127
2020-06-25 16:28:00 +02:00
Philippe Rivière
810f7312ce
Merge pull request #129 from Fil/phyllotaxis.5
Add .5 to the radius for a nicer density around the origin
2020-05-06 09:52:16 +02:00
Tom MacWright
27df15202d Update README.md 2019-09-25 11:53:47 -07:00
Tom MacWright
595eb55157 Remove beta from ObservableHQ link 2019-09-25 11:53:47 -07:00
Mike Bostock
9f1265cca3 Standardize dependencies. d3/d3#3337 2019-08-09 17:37:45 -07:00
Mike Bostock
6bbdaeb27c Use exact paths in imports. d3/d3#3265 2019-08-09 15:20:33 -07:00
Mike Bostock
8d979ea8d5 Update link.js 2019-07-24 14:53:46 -07:00
Micah Stubbs
d6dc0c1a97 indicate node is missing in missing node error
this avoids the difficult to debug message "missing: undefined" that appears when a nodeId is undefined.
2019-07-24 14:53:46 -07:00
Mike Bostock
a97670b8c5 2.0.1 2019-03-14 09:06:28 -07:00
Mike Bostock
4c064c791a Update dependencies. 2019-03-14 09:06:10 -07:00
Mike Bostock
dd4a288376 Fix #135. 2019-03-14 09:05:41 -07:00
Mike Bostock
0cc60d2a37 2.0.0 2018-12-16 09:47:39 -08:00
Mike Bostock
5e36c11ef7 Explicit files. 2018-12-16 09:47:29 -08:00
Mike Bostock
455c0bad8f Prepare for v2. 2018-12-16 09:46:17 -08:00
Philippe Rivière
9c403f765d Add .5 to the radius for a nicer density around the origin
See https://beta.observablehq.com/@fil/phyllotaxis-explained
2018-12-15 20:45:29 +01:00
Mike Bostock
00268ddf6a Favor proper imports. 2018-11-13 07:27:48 -08:00
Mike Bostock
8d2a75121a Fix nodeById initialization. 2018-11-13 07:23:30 -08:00
Mike Bostock
0062ebbad5 Adopt Map. 2018-11-10 22:04:52 -08:00
vasco
ec2f423ba5 Fix #111. Add iterations to tick method. 2018-11-10 21:55:59 -08:00
vasco
b383200ee5 Fix #123 Initialize fixed nodes from f* attributes 2018-10-10 21:18:40 -07:00
Mike Bostock
83d4653e8e 1.1.2 2018-08-24 14:26:09 -07:00
Mike Bostock
6d7e24bf72 Update dependencies. 2018-08-24 14:26:07 -07:00
Mike Bostock
ed010ef09a Adopt npm_package_version. 2018-08-24 14:01:54 -07:00
Mike Bostock
b104062edc Move index; add unpkg & jsdelivr fields. 2018-08-24 13:49:50 -07:00
Mike Bostock
56a9e6f5a7 1.1.1 2018-08-24 12:08:22 -07:00