Including labels can make the graph more spaced out than desired in some cases. Having an option would give more control over the output.
options.nodeDimensionsIncludeLabels : If true, the width of a node is considered to be node.boundingBox().w. If false, the width of a node is considered to be node.outerWidth(). The analogous cases for height also hold.
Including labels can make the graph more spaced out than desired in some cases. Having an option would give more control over the output.
options.nodeDimensionsIncludeLabels
: Iftrue
, the width of a node is considered to benode.boundingBox().w
. Iffalse
, the width of a node is considered to benode.outerWidth()
. The analogous cases for height also hold.Uses
node.layoutDimensions()
Ref https://github.com/cytoscape/cytoscape.js/pull/1784