0

I'd like my dagre layout to take the label length into consideration for the layout calculation. Right now I have overlapping labels but dagre can definitely take the label length into consideration (for example in http://cpettitt.github.io/project/dagre-d3/latest/demo/sentence-tokenization.html).

How can I make my dagre layout take label length into account with cytoscape.js?

dominik
  • 5,745
  • 6
  • 34
  • 45
  • It may be possible, but note that the library you're looking at is dagre-d3 https://github.com/cpettitt/dagre-d3, and cytoscape doesn't use dagre-d3 for the dagre layout, it uses https://github.com/cpettitt/dagre – StackExchange What The Heck Aug 09 '15 at 13:50
  • See Github issue filed by same person : https://github.com/cytoscape/cytoscape.js/issues/1023 – maxkfranz Aug 20 '15 at 20:05

1 Answers1

0

I got an answer for the github issue I created.

This required changes to several layouts themselves to take into account BB in lieu of simply w/h. The lib only included w/h until more recent versions, so the layouts used those values.

You can build off unstable to see the changes.

Community
  • 1
  • 1
dominik
  • 5,745
  • 6
  • 34
  • 45