Files
hyperframes/packages
zhengqiuyang 401991669d fix(lint): derive the root duration with the parser's timing reader (#8032)
* 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`.
2026-11-17 17:08:08 +00:00
..
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00
2026-11-17 15:55:44 +00:00