-
Notifications
You must be signed in to change notification settings - Fork 2
/
exampleData1.js
45 lines (40 loc) · 1.11 KB
/
exampleData1.js
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
export const title = "autoLayout example"
export const globalDefaultsJSON = {
graph: {
autoLayout: true,
orientation: "vertical",
spacing: 1.9
},
node: {
presets : {
"database" : {
fill: "maroon",
shape: "icon",
iconName: "FaDatabase",
topText: "#LD",
height: 65,
width: 45
}
}
},
edge: {
color: "darkgray",
markerEnd: {type: "arrowclosed"},
markerStart: {type: "arrowclosed"}
}
};
export const nodesJSON = [
{id: "LD1", preset: "database"},
{id: "LD2", preset: "database"},
{id: "LD3", preset: "database"},
{id: "LD4", preset: "database"},
{id: "LD5", preset: "database"},
{shape: "comunica"}
];
export const edgesJSON = [
{source: "comunica", target: "LD1", label: "LD1"},
{source: "comunica", target: "LD2", label: "LD2"},
{source: "comunica", target: "LD3", label: "LD3"},
{source: "comunica", target: "LD4", label: "LD4"},
{source: "comunica", target: "LD5", label: "LD5"},
];