File size: 1,052 Bytes
31fa036 |
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 |
export const initialNodes = [
{
id: '1',
type: 'input',
data: { label: 'input' },
position: { x: 0, y: 0 },
},
{
id: '2',
data: { label: 'node 2' },
position: { x: 0, y: 100 },
},
{
id: '2a',
data: { label: 'node 2a' },
position: { x: 0, y: 200 },
},
{
id: '2b',
data: { label: 'node 2b' },
position: { x: 0, y: 300 },
},
{
id: '2c',
data: { label: 'node 2c' },
position: { x: 0, y: 400 },
},
{
id: '2d',
data: { label: 'node 2d' },
position: { x: 0, y: 500 },
},
{
id: '3',
data: { label: 'node 3' },
position: { x: 200, y: 100 },
},
];
export const initialEdges = [
{ id: 'e12', source: '1', target: '2', animated: true },
{ id: 'e13', source: '1', target: '3', animated: true },
{ id: 'e22a', source: '2', target: '2a', animated: true },
{ id: 'e22b', source: '2', target: '2b', animated: true },
{ id: 'e22c', source: '2', target: '2c', animated: true },
{ id: 'e2c2d', source: '2c', target: '2d', animated: true },
];
|