e.g. if I do :
const graph = {
id: "root",
properties: { "elk.direction": "RIGHT" },
children: [
{ id: "n1", width: 10, height: 10 },
{ id: "n2", width: 10, height: 10 }
],
edges: [{
id: "e1", sources: [ "n1" ], targets: [ "n2" ]
}]
}
terminalGraph.render(graph)
.then(res => console.log(res))
I get errors about x or y not being set. From looking into source it looks like this expects children to perhaps have x/y coords set by me? i.e. this doesn't auto-flow the diagram for you.
That's fine, it was just unexpected <3
e.g. if I do :
I get errors about x or y not being set. From looking into source it looks like this expects children to perhaps have x/y coords set by me? i.e. this doesn't auto-flow the diagram for you.
That's fine, it was just unexpected <3