Skip to content

Commit ea7ef3a

Browse files
authored
perf: adjust maxSpeed for force2; (#107)
1 parent 076f26a commit ea7ef3a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
### 0.3.5
4+
5+
- perf: adjust maxSpeed for force2;
6+
37
### 0.3.4
48

59
- perf: improve the performance of dagre with layers;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/layout",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "graph layout algorithm",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/layout/force2/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class Force2Layout extends Base {
6969
public damping: number = 0.9;
7070

7171
/** 最大速度 */
72-
public maxSpeed: number = 100;
72+
public maxSpeed: number = 500;
7373

7474
/** 一次迭代的平均移动距离小于该值时停止迭代 */
7575
public minMovement: number = 0.4;

0 commit comments

Comments
 (0)