cytoscape / cytoscape.js

Graph theory (network) library for visualisation and analysis
https://js.cytoscape.org
MIT License
10.09k stars 1.64k forks source link

Include labels in layout calculation #1023

Closed domoritz closed 9 years ago

domoritz commented 9 years ago

http://js.cytoscape.org/#collection/position--dimensions/eles.boundingBox seems to have an option includeLabels but I don't see how I would ask the algorithm such as dagre to use it.

maxkfranz commented 9 years ago

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.