Repository navigation
Commit 2d0d554
authored
fix(d3-force): respect explicit center and force positions (#295)
Defaults such as width / 2, the center point and radius 100 were merged
after the user-provided force objects, so explicit center, x, y and radial
options were overwritten. Apply defaults first, then force objects, then
shortcut fields.1 parent 62bb479 commit 2d0d554
3 files changed
Lines changed: 1879 additions & 1787 deletions
File tree
- __tests__
- snapshots/d3-force
- unit
- src/algorithm/d3-force
0 commit comments