You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: hyperframes compositions prints NaN for a non-numeric data-width/data-height #7670
The cause is in packages/cli/src/commands/compositions.ts. Both the root parser (around line 63) and the sub-composition parser (around line 133) call parseInt(...) and use the result without checking it. The ?? "1920" and ?? "1080" fallbacks only apply when the attribute is missing, not when it's invalid.
What to do
Use the default size (1920×1080 for the root, the parent's size for sub-compositions) whenever the parsed value isn't a positive finite number.
Add a test with a non-numeric data-width that checks the listed size.
Activity