respira/src/utils
Jan-Henrik Bruhn bc46fe0015 fix: Calculate time correctly per color block using Brother formula
Implemented proper time calculation matching the Brother app algorithm:
- 150ms per stitch + 3000ms startup time per color block
- Calculate total and elapsed time by summing across color blocks
- This fixes the "999 seconds" issue by calculating time accurately

Created timeCalculation utility with:
- convertStitchesToMinutes: Convert stitches to minutes using PP1 formula
- calculatePatternTime: Calculate total/elapsed time per color blocks

Updated ProgressMonitor to show:
- Total Time (calculated from all color blocks)
- Elapsed Time / Total Time (based on current stitch position)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 12:19:24 +01:00
..
bluetoothSupport.ts feature: Add browser compatibility detection for Web Bluetooth 2025-12-16 23:54:55 +01:00
errorCodeHelpers.ts Add comprehensive error descriptions and solutions for all machine error codes 2025-12-06 20:38:02 +01:00
konvaRenderers.ts feature: Reorganize code into formats folder structure 2025-12-14 12:19:21 +01:00
machineStateHelpers.ts Fix PEN encoding and improve UI layout 2025-12-06 12:56:27 +01:00
timeCalculation.ts fix: Calculate time correctly per color block using Brother formula 2025-12-17 12:19:24 +01:00