Skip to main content

diagram_weight

Function diagram_weight 

Source
pub fn diagram_weight(weight: f64) -> f64
Expand description

Map user-facing mol weight → absolute ink multiplier (≥ 1).

Call this (or helpers that call it) with the public weight field — never with an already-converted absolute value.

§Panics

Panics if weight is non-finite or < WEIGHT_MIN.