-
Notifications
You must be signed in to change notification settings - Fork 0
[URH-25] useMousePosition 신규 #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
작성해주신 코드 잘 보았습니다.
옵션을 통해 개발자가 유연하게 사용할 수 있는 부분과, delayTime 옵션 값을 지정하고 animationMode를 활성화하면 에러 문구를 보여주는 로직이 인상적입니다.
고생하셨습니다👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@foresec jsdoc 작성하신 이후에 머지 부탁드려요🙌🏻🙌🏻
👾 Pull Request
1️⃣ Spec
2️⃣ 변경 사항
3️⃣ 예시 코드
1. MouseEvent 기본 속성
viewX
: 뷰포트에서의 마우스 x 좌표viewY
: 뷰포트에서의 마우스 y 좌표pageX
: 페이지에서의 마우스 x 좌표pageY
: 페이지에서의 마우스 y 좌표screenX
: 화면에서의 마우스 x 좌표screenY
: 화면에서의 마우스 y 좌표2. Element를 지정하여 상대 좌표 및 Element 크기
elementX
: 지정된 Element left 기준의 마우스 x 좌표elementY
: 지정된 Element top 기준의 마우스 y 좌표-refW
: 지정된 Element의 너비refH
: 지정된 Element의 높이3. 이벤트핸들링 빈도 및 애니메이션 옵션
delayTime
: 이벤트 핸들링을 throttling할 시간 간격 (ms 단위, default=1000/60 ms)animationMode
: 부드러운 이동 혹은 애니메이션 효과를 위해 애니메이션 모드를 활성화할지 여부4️⃣ 관련 문서 (선택 사항)