-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayoutDefaults.ts
More file actions
54 lines (43 loc) · 922 Bytes
/
Copy pathlayoutDefaults.ts
File metadata and controls
54 lines (43 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export const DefaultLayoutOptions = {
name: 'fcose',
animate: true,
animationDuration: 500,
animationEasing: 'ease-in-out',
fit: true,
spacingFactor: 1.5,
radius: 100,
rows: 3,
cols: 3,
condensed: true,
minNodeSpacing: 10,
};
export const DefaultGridLayoutOptions = {
...DefaultLayoutOptions,
name: 'grid',
rows: 3,
cols: 3,
condensed: true,
};
export const DefaultCircleLayoutOptions = {
...DefaultLayoutOptions,
name: 'circle',
radius: 100,
};
export const DefaultFcoseLayoutOptions = {
...DefaultLayoutOptions,
name: 'fcose',
idealEdgeLength: 100,
nodeOverlap: 20,
refresh: 20,
fit: true,
padding: 30,
randomize: true,
componentSpacing: 100,
nodeRepulsion: 400000,
edgeElasticity: 100,
gravity: 80,
numIter: 1000,
initialTemp: 200,
coolingFactor: 0.95,
minTemp: 1,
};