@graphty/graph-io / styles / StyleLabelFit
Type Alias: StyleLabelFit ​
StyleLabelFit =
"inside"|"bounds"
Defined in: styles/types.ts:141
How a node grows to hold its label, when it does: its width and height are then minimums, and the label's box (as wide as its widest line and as tall as its lines at one labelSize each), with labelPaddingX and labelPaddingY added on each side, decides the rest.
inside: the padded box fits inside the node's outline, so an ellipse or a diamond grows past the box's corners (Graphviz).bounds: the padded box is the node's width and height, whatever its shape (vis-network).