(value: &SceneValue)
| 2335 | } else { |
| 2336 | 0.026 |
| 2337 | } |
| 2338 | }) |
| 2339 | .collect() |
| 2340 | } |
| 2341 | |
| 2342 | fn apply_inspector_value_row_text_layout<API: ScriptAPI + ?Sized>( |
| 2343 | ctx: &mut ScriptContext<'_, API>, |
| 2344 | idx: usize, |
| 2345 | row: &InspectorValueRow, |
| 2346 | changed: bool, |
| 2347 | ) { |
| 2348 | let (name_ratio, name_text_ratio) = if row.source == "section" { |
| 2349 | if row.depth == 0 { |
| 2350 | (0.96, 0.38) |
| 2351 | } else { |
| 2352 | (0.96, 0.36) |
| 2353 | } |
| 2354 | } else if row.kind == "EmptyArrayAdd" || row.kind == "EmptyObject" { |
| 2355 | (0.62, 0.62) |
| 2356 | } else if row.kind == "BitMask" { |
| 2357 | (0.13, 0.13) |
| 2358 | } else if row.kind.starts_with("Matrix(") { |
| 2359 | (0.23, 0.23) |
| 2360 | } else if row.kind == "Quat" || !row.components.is_empty() || row.kind == "Color" { |
no outgoing calls