new UI, unify map/demo/live architecture more, cleanup

This commit is contained in:
Brian Beck 2026-03-12 16:25:04 -07:00
parent d9b5e30831
commit 4741f59582
146 changed files with 5477 additions and 3005 deletions

View file

@ -103,10 +103,7 @@ export function updateAtlasFrame(atlas: IflAtlas, frameIndex: number) {
* Find the frame index for a given time in seconds. Matches Torque's
* `animateIfls()` lookup using cumulative `iflFrameOffTimes`.
*/
export function getFrameIndexForTime(
atlas: IflAtlas,
seconds: number,
): number {
export function getFrameIndexForTime(atlas: IflAtlas, seconds: number): number {
const dur = atlas.totalDurationSeconds;
if (dur <= 0) return 0;
let t = seconds;