Skip to main content

place_backbone

Function place_backbone 

Source
pub fn place_backbone(
    atoms: &[AtomIn],
    bonds: &[BondIn],
    font_px: f64,
    style: FaceStyle,
    weight: f64,
) -> (Vec<BondOut>, Vec<Option<PlacedLabel>>)
Expand description

Place all atom labels and shorten bond endpoints into label clearances.

weight (≥ 1) thickens bond↔label standoff so fat ink clears fat stems.