(width: number, height: number)
| 16 | |
| 17 | /** Derive orientation label from actual pixel dimensions. */ |
| 18 | export function orientation(width: number, height: number): "landscape" | "portrait" | "square" { |
| 19 | if (width > height) return "landscape"; |
| 20 | if (height > width) return "portrait"; |
| 21 | return "square"; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Duration of the composition: prefer the root element's data-duration, |
no outgoing calls
no test coverage detected