Skip to main content

edge_anchors

Function edge_anchors 

Source
pub fn edge_anchors(
    src: (f64, f64, f64, f64),
    tgt: (f64, f64, f64, f64),
    pad: f64,
) -> (Pt, Pt)
Expand description

Viewport-boundary anchors between two molecule boxes.

Each box is (x, y, width, height) in document space.