()
| 31 | Index((String, i32)), |
| 32 | } |
| 33 | |
| 34 | fn parse_position(position: &str, distance: &str) -> (f32, f32, f32) { |
| 35 | let (width_ratio, default_base_y) = match distance { |
| 36 | "z1" => (0.34, 0.125), // 1/8 |
| 37 | "no" => (0.25, 0.16667), // 1/6 |
| 38 | _ => (0.34, 0.125), |