jquery - Cytoscape.js: Needed linear layout -
i trying use cytoscape.js create network diagram. there couple of layout design nodes , links upward downward. 1 of them "dagre" layout. but, want display same layout left right. have no luck find such option.
is there way can achieve this. sharing image url. http://share.pho.to/9m6sa . combination of 2 images a) getting using "dagre" layout b) needed.
any appreciated.
thanks
chop's suggestion one, since many layouts wrappers external libraries dagre. example of suggestion in practice:
cy.one('layoutstop', function(){ cy.nodes.positions(function(n){ var pos = n.position(); return { x: pos.y, y: pos.x }; }); cy.fit(); // fit new node positions }).layout({ /* options... */ });
Comments
Post a Comment