cv-frontend-vue icon indicating copy to clipboard operation
cv-frontend-vue copied to clipboard

refactor:minimap.js to ts

Open ShinichiShi opened this issue 1 month ago • 2 comments

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.

ShinichiShi avatar Oct 20 '25 13:10 ShinichiShi