cv-frontend-vue
cv-frontend-vue copied to clipboard
changed the embedListeners.js to embedListeners.ts
Fixes #661
Describe the changes you have made in this PR -
All changes: added missing simulationArea properties (mouseRawX, mouseRawY, mouseDownRawX, mouseDownRawY, mouseXf, mouseYf), declared globalScope, DPR, width, height, typed event parameters/DOM elements, and updated prompt() to check for null and convert input to number with Number(), keeping all original logic intact.
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.
Summary by CodeRabbit
- Bug Fixes
- Improved input validation and error handling to prevent invalid values from being processed.