Skip to content

simple ELK graph can't draw #2

Description

@mixmix

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions