pub fn hit_visuals<'a, S: Scalar>(
visuals: &'a [Visual<S>],
pointer: &Pointer<S>,
accept: impl Fn(&Visual<S>) -> bool,
) -> Option<VisualHit<'a, S>>Expand description
The visual among those accept takes that the pointer is over: handles
and labels first, then points, curves and areas — within each, the one
nearest the pointer on screen.