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

Function element_size

packages/server/src/main/tap_target.rs:157–162  ·  view source on GitHub ↗
(node: &Value)

Source from the content-addressed store, hash-verified

155}
156
157fn element_size(node: &Value) -> Option<(f64, f64)> {
158 let frame = node.get("frame")?;
159 let width = frame.get("width")?.as_f64()?;
160 let height = frame.get("height")?.as_f64()?;
161 (width > 0.0 && height > 0.0).then_some((width, height))
162}
163
164fn normalize_accessibility_point_for_display(
165 x: f64,

Callers 1

find_element_tap_targetFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected