Skip to main content

pick_point

Function pick_point 

Source
pub fn pick_point(quads: &Value, vw: f64, vh: f64) -> Option<Point>
Expand description

Pick the centre of the first quad with a visible area after clipping to the viewport. Mirrors Puppeteer’s clickablePoint.