mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Extract duplicate code into reusable utilities: - calculatePatternCenter(): Eliminates 6x duplication of center calculations - convertPenStitchesToPesFormat(): Eliminates 3x duplication of stitch conversion - calculateZoomToPoint(): Eliminates 2x duplication of zoom math Reorganize into subfolder: - Created src/components/PatternCanvas/ directory - Moved PatternCanvas.tsx into subfolder - Added index.ts for clean imports - All utilities in patternCanvasHelpers.ts Benefits: - Reduced ~50+ lines of duplicated code - Single source of truth for common operations - Easier to test and maintain - Better code organization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| data | ||
| formats | ||
| lib | ||
| platform | ||
| services | ||
| stores | ||
| types | ||
| utils | ||
| App.css | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||