MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / chrome_screen_size

Function chrome_screen_size

packages/server/src/main.rs:5814–5819  ·  view source on GitHub ↗
(bridge: &NativeBridge, udid: &str)

Source from the content-addressed store, hash-verified

5812}
5813
5814fn chrome_screen_size(bridge: &NativeBridge, udid: &str) -> Option<(f64, f64)> {
5815 let profile = bridge.chrome_profile(udid).ok()?;
5816 let width = profile.screen_width;
5817 let height = profile.screen_height;
5818 (width > 0.0 && height > 0.0).then_some((width, height))
5819}
5820
5821fn lerp(start: f64, end: f64, t: f64) -> f64 {
5822 start + (end - start) * t

Callers 3

resolve_touch_pointFunction · 0.85
gesture_coordinatesFunction · 0.85
gesture_surface_sizeFunction · 0.85

Calls 1

chrome_profileMethod · 0.45

Tested by

no test coverage detected