chore(docs): simplify animated layout example (#1747)

* chore(examples): update ts example of layouting

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(docs): cleanup animated layout example

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:
Braks
2025-01-13 00:22:13 +01:00
committed by GitHub
parent 25f9dd1dd9
commit e94611a3b0
25 changed files with 1059 additions and 684 deletions
+36 -24
View File
@@ -1,61 +1,73 @@
const position = { x: 0, y: 0 }
const nodeType = 'process'
const initialPos = { x: 0, y: 0 }
const type = 'process'
const data = { status: null }
export const initialNodes = [
{
id: '1',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '2',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '2a',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '2b',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '2c',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '2d',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '3',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '4',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '5',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '6',
position,
type: nodeType,
position: initialPos,
type,
data,
},
{
id: '7',
position,
type: nodeType,
position: initialPos,
type,
data,
},
]