feat(tests): add remove edge

This commit is contained in:
moklick
2019-10-04 22:33:11 +02:00
parent cd558f22ee
commit 04252b322f
5 changed files with 33 additions and 20 deletions

View File

@@ -61,15 +61,15 @@ class App extends PureComponent {
{ id: '7', type: 'output', data: { label: '7 output' }, position: { x: 250, y: 500 } },
{ id: '8', type: 'text', data: { onChange: onChangeInput, input: 'write something' }, position: { x: 350, y: 100 } },
{ id: '9', type: 'text', data: { label: 'right' }, position: { x: 600, y: 100 } },
{ source: '1', target: '2', animated: true },
{ source: '1', target: '8', animated: true },
{ source: '8', target: '9', animated: true },
{ source: '2', target: '3' },
{ source: '3', target: '4', type: 'step' },
{ source: '3', target: '5' },
{ source: '5', target: '6__b' },
{ source: '5', target: '6__a', type: 'step', animated: true, style: { stroke: '#FFCC00' } },
{ source: '6', target: '7', style: { stroke: '#FFCC00' }},
{ id: 'e1-2', source: '1', target: '2', animated: true },
{ id: 'e1-8', source: '1', target: '8', animated: true },
{ id: 'e8-9', source: '8', target: '9', animated: true },
{ id: 'e2-3', source: '2', target: '3' },
{ id: 'e3-4', source: '3', target: '4', type: 'step' },
{ id: 'e3-5', source: '3', target: '5' },
{ id: 'e5-6b', source: '5', target: '6__b' },
{ id: 'e5-6a', source: '5', target: '6__a', type: 'step', animated: true, style: { stroke: '#FFCC00' } },
{ id: 'e6-7', source: '6', target: '7', style: { stroke: '#FFCC00' }},
]
};

View File

@@ -15,8 +15,8 @@ class App extends PureComponent {
{ id: '2', data: { label: 'Node 2' }, position: { x: 100, y: 100 } },
{ id: '3', data: { label: 'Node 3' }, position: { x: 400, y: 100 } },
{ id: '4', data: { label: 'Node 4' }, position: { x: 400, y: 200 } },
{ source: '1', target: '2', animated: true },
{ source: '1', target: '3' },
{ id: 'e1-2', source: '1', target: '2', animated: true },
{ id: 'e1-3', source: '1', target: '3' },
]
};