feat: testing on how to flatten tree structures

This commit is contained in:
2024-04-05 16:45:57 +02:00
parent 473f696626
commit 68d1bac572
23 changed files with 348 additions and 307 deletions

View File

@@ -10,7 +10,7 @@ export function tree(depth: number): Graph {
},
{
id: 1,
type: "math",
type: "max/plantarium/math",
position: [-40, -10]
}
]
@@ -33,13 +33,13 @@ export function tree(depth: number): Graph {
nodes.push({
id: id0,
type: "math",
type: "max/plantarium/math",
position: [x, y],
});
edges.push([id0, 0, parent, "a"]);
nodes.push({
id: id1,
type: "math",
type: "max/plantarium/math",
position: [x, y + 35],
});
edges.push([id1, 0, parent, "b"]);