docs(examples): add simple layout example (#1678)
* docs(examples): cleanup animated layout example Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(docs,deps): update deps Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * docs(examples): add animated and simple layout examples Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
const position = { x: 0, y: 0 }
|
||||
const nodeType = 'process'
|
||||
const edgeType = 'animation'
|
||||
|
||||
export const initialNodes = [
|
||||
{
|
||||
@@ -61,14 +60,14 @@ export const initialNodes = [
|
||||
]
|
||||
|
||||
export const initialEdges = [
|
||||
{ id: 'e1-2', source: '1', target: '2', type: edgeType, animated: true },
|
||||
{ id: 'e1-3', source: '1', target: '3', type: edgeType, animated: true },
|
||||
{ id: 'e2-2a', source: '2', target: '2a', type: edgeType, animated: true },
|
||||
{ id: 'e2-2b', source: '2', target: '2b', type: edgeType, animated: true },
|
||||
{ id: 'e2-2c', source: '2', target: '2c', type: edgeType, animated: true },
|
||||
{ id: 'e2c-2d', source: '2c', target: '2d', type: edgeType, animated: true },
|
||||
{ id: 'e3-7', source: '3', target: '4', type: edgeType, animated: true },
|
||||
{ id: 'e4-5', source: '4', target: '5', type: edgeType, animated: true },
|
||||
{ id: 'e5-6', source: '5', target: '6', type: edgeType, animated: true },
|
||||
{ id: 'e5-7', source: '5', target: '7', type: edgeType, animated: true },
|
||||
{ id: 'e1-2', source: '1', target: '2' },
|
||||
{ id: 'e1-3', source: '1', target: '3' },
|
||||
{ id: 'e2-2a', source: '2', target: '2a' },
|
||||
{ id: 'e2-2b', source: '2', target: '2b' },
|
||||
{ id: 'e2-2c', source: '2', target: '2c' },
|
||||
{ id: 'e2c-2d', source: '2c', target: '2d' },
|
||||
{ id: 'e3-7', source: '3', target: '4' },
|
||||
{ id: 'e4-5', source: '4', target: '5' },
|
||||
{ id: 'e5-6', source: '5', target: '6' },
|
||||
{ id: 'e5-7', source: '5', target: '7' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user