You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constg=newdagre.graphlib.Graph()g.setGraph({})g.setDefaultEdgeLabel(()=>({}))nodes.forEach(n=>g.setNode(n.id,{width: n.size.width,height: n.size.height}))edges.forEach(e=>g.setEdge(e.src,e.ref))dagre.layout(g,{rankdir: 'LR',nodesep: 20,edgesep: 0,ranksep: 20})// these options don't change anything, tried LR, TB, BT... rankdir and more :/app.gotAutoLayout(g.nodes().map(id=>{constnode=g.node(id)return{id,size: {width: node.width,height: node.height},pos: {left: node.x,top: node.y}}}))
Any idea why?
Also, is there a way to "freeze" existing nodes? When I'm adding a new entity (in my ERD), I want to get a good position for it but not change anything else. Is it possible with dagre?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm integrating dagre into https://github.com/azimuttapp/azimutt (an ERD tool) and it looks like when I change options in the
dagre.layout
function, I still get the same result 😅I followed the https://github.com/dagrejs/dagre/wiki#an-example-layout, here is my code:
Any idea why?
Also, is there a way to "freeze" existing nodes? When I'm adding a new entity (in my ERD), I want to get a good position for it but not change anything else. Is it possible with dagre?
Thanks!
The text was updated successfully, but these errors were encountered: