mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(lint): derive the root duration with the parser's timing reader `deriveDurationFromClips` read `data-start` with a raw `Number()`, so a clip authored at `data-start="-2"` produced an end of `-1`. `resolveCompositionDuration` only counts positive ends, so the clip vanished from the derivation and the composition was reported as having no duration source at all — a hard error that blocks strict renders, even though the parser clamps the same start to zero and renders the clip for its full length. Read the start through `readClipTiming`, the same contract parser the renderer uses, and keep the media-duration default for untimed images. * fix(lint): derive the root duration with the parser's timing reader `deriveDurationFromClips` read `data-start` with a raw `Number()`, so a clip authored at `data-start="-2"` produced a negative end and vanished from the derivation. Read the start through `readClipTiming`, which clamps it to zero, and keep `readAuthoredDurationSeconds` for the authored length so a valid `data-end` still backs an unparseable `data-duration`.