()
| 24 | * In the browser it uses window.innerWidth/innerHeight. |
| 25 | */ |
| 26 | export function getWindowDimensions(): { width: number; height: number } { |
| 27 | if (!isWeb) { |
| 28 | return { |
| 29 | width: (typeof process !== "undefined" && process.stdout?.columns) || 80, |
| 30 | height: (typeof process !== "undefined" && process.stdout?.rows) || 24, |
| 31 | }; |
| 32 | } |
| 33 | return { |
| 34 | width: window.innerWidth, |
| 35 | height: window.innerHeight, |
| 36 | }; |
| 37 | } |
nothing calls this directly
no outgoing calls
no test coverage detected