ISSUE-054 - Have static timing display mostly figured out.
Some subtle scaling was necessary to accomplish the proper spacing.
This commit is contained in:
1 parent
22ebab1101
commit
7507868dce
8 files changed
+134
-45
No files matched your search
@@ -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")}`;
|
||||
}
|
||||
Reference in new issue
Block a user