feat: convert inputs when switching units
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
## Recent Changes
|
||||
- Created `memory-bank/projectBrief.md`.
|
||||
- Created `memory-bank/productContext.md`.
|
||||
- Implemented unit conversion on toggle in `src/main.ts`.
|
||||
- Extracted `convertUnits` utility and added tests.
|
||||
|
||||
## Current Focus
|
||||
- Completing Memory Bank initialization.
|
||||
@@ -18,3 +20,4 @@
|
||||
- Using **Vanilla TypeScript** to avoid framework overhead.
|
||||
- Using **Vitest** for unit testing calculation logic.
|
||||
- Target: A single-page application that can be built into a self-contained output.
|
||||
- **Unit Toggle Behavior**: Switching units now automatically converts existing input values using a factor of 25.4. MM values are rounded to 1 decimal, Inches to 2 decimals.
|
||||
|
||||
Reference in New Issue
Block a user