Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 121x 121x 7x 7x | /** The loading caption the built-in skins print on the lanes while a chart's assets load. */
export const LOADING_WORD = 'NOW LOADING';
/** One dot per step, cycling `''` → `.` → `..` → `...` every {@link LOADING_DOT_MS}. */
export const LOADING_DOT_MS = 320;
export function loadingDots(nowMs: number): string {
const step = Math.floor(Math.max(0, Number.isFinite(nowMs) ? nowMs : 0) / LOADING_DOT_MS) % 4;
return '.'.repeat(step);
}
|