ISSUE-054 - Have static timing display mostly figured out.

Some subtle scaling was necessary to accomplish the proper spacing.
This commit is contained in:
Kyle Geib committed 2022-02-16 17:20:08 -05:00
1 parent 22ebab1101
commit 7507868dce
8 files changed
+134 -45

No files matched your search

+8 -4
View File
@@ -127,9 +127,13 @@ export function outlineClipPath(
[0, height + outlineThickness],
];
}
}
// return [
// ]
export function formatTime(time: number) {
if (time < 60) {
return String(time.toFixed(3));
}
const minutes = Math.floor(time / 60);
const seconds = time % 60;
return `${minutes}:${String(seconds.toFixed(3)).padStart(6, "0")}`;
}