(node: &Value)
| 155 | } |
| 156 | |
| 157 | fn 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 | |
| 164 | fn normalize_accessibility_point_for_display( |
| 165 | x: f64, |
no test coverage detected