kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.76k stars 97 forks source link

mrtree layout always using DOWN #223

Closed geohuz closed 1 year ago

geohuz commented 1 year ago
const graph = {
    id: "root",
    layoutOptions: {
      "elk.algorithm": 'mrtree',
      "elk.direction": 'RIGHT',
    },
    children: nodes,
    edges: edges
  }

I've tried other directions, it always return DOWN layout. I've tried layered algorithm and it works fine.

soerendomroes commented 1 year ago

Directions other than DOWN will only be added with the 0.9.0 ELK release or are usable with the ELK Java nightly build. In the meantime, I suggest using ELK layered.