ruv commited on
Commit
31fa036
·
verified ·
1 Parent(s): a13832d

Create nodes-edges.js

Browse files
Files changed (1) hide show
  1. src/nodes-edges.js +47 -0
src/nodes-edges.js ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const initialNodes = [
2
+ {
3
+ id: '1',
4
+ type: 'input',
5
+ data: { label: 'input' },
6
+ position: { x: 0, y: 0 },
7
+ },
8
+ {
9
+ id: '2',
10
+ data: { label: 'node 2' },
11
+ position: { x: 0, y: 100 },
12
+ },
13
+ {
14
+ id: '2a',
15
+ data: { label: 'node 2a' },
16
+ position: { x: 0, y: 200 },
17
+ },
18
+ {
19
+ id: '2b',
20
+ data: { label: 'node 2b' },
21
+ position: { x: 0, y: 300 },
22
+ },
23
+ {
24
+ id: '2c',
25
+ data: { label: 'node 2c' },
26
+ position: { x: 0, y: 400 },
27
+ },
28
+ {
29
+ id: '2d',
30
+ data: { label: 'node 2d' },
31
+ position: { x: 0, y: 500 },
32
+ },
33
+ {
34
+ id: '3',
35
+ data: { label: 'node 3' },
36
+ position: { x: 200, y: 100 },
37
+ },
38
+ ];
39
+
40
+ export const initialEdges = [
41
+ { id: 'e12', source: '1', target: '2', animated: true },
42
+ { id: 'e13', source: '1', target: '3', animated: true },
43
+ { id: 'e22a', source: '2', target: '2a', animated: true },
44
+ { id: 'e22b', source: '2', target: '2b', animated: true },
45
+ { id: 'e22c', source: '2', target: '2c', animated: true },
46
+ { id: 'e2c2d', source: '2c', target: '2d', animated: true },
47
+ ];