cv-frontend-vue
cv-frontend-vue copied to clipboard
refactor:minimap.js to ts
Fixes #661
Describe the changes you have made in this PR -
converting the minimap.js to ts while maintaining the logic
Screenshots of the changes (If any) -
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.
Summary by CodeRabbit
- Refactor
- Improved minimap with stronger safety checks and safer DOM handling for more reliable rendering and lifecycle management.
- Explicit dimension calculations and cleanup logic to prevent visual glitches and stale drawings.
- Bug Fixes
- More predictable show/hide behavior with timestamp-based removal and smoother fade-out for a cleaner user experience.
- New
- Added clearer lifecycle controls for updating and removing the minimap.