Skip to main content

node_size

Function node_size 

Source
pub fn node_size(shape: NodeShape, label: &str) -> NodeBox
Expand description

The size a node of shape needs for label (a NodeShape::Box is node_box without a value, badge or sparkline). A circle fits its label on one line, at least 30 px across.