MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / orientation

Function orientation

packages/cli/src/commands/info.ts:18–22  ·  view source on GitHub ↗
(width: number, height: number)

Source from the content-addressed store, hash-verified

16
17/** Derive orientation label from actual pixel dimensions. */
18export 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,

Callers 2

runFunction · 0.85
info.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected