Open
Conversation
- 프로그레스바의 최소 및 최대 상수 추가 - 애니메이션 완료 시간 상수 추가 - 매개변수 타입 및 반환 타입 수정 - animate 로직 분리 - 애니메이션 로직 최적화 - duration, initialProgress, targetProgress 매개변수 값 유효성 검사 로직 추가 - 문서 주석 업데이트 및 설명 보강
- useProgress 훅의 초기 진행률, 목표 진행률, 완료 함수에 대한 테스트 케이스 작성 - 각 테스트는 애니메이션 진행 상황을 검증하고, 예상 결과를 확인함
- 진행률을 시각적으로 표시하는 Progressbar 컴포넌트 구현 - 다양한 스타일 속성(너비, 높이, 배경색, 바 색상, 모서리 둥글기) 지원 - React.memo를 사용하여 성능 최적화
- Progressbar 컴포넌트의 사용법 및 속성 설명 추가 - 기본 사용법, 커스텀 스타일링, 수동 진행률 제어 예제 포함 - 컴포넌트의 최적화 및 참고 사항 명시
- `useProgress` 훅의 설명을 보강하여 `@hookdle/components`의 `Progressbar` 컴포넌트와의 연계 사용법 추가 - `complete` 함수 사용법 및 애니메이션 최적화 관련 세부사항 명시 - 목표 진행률을 100으로 수정하고, CSS 스타일링 섹션 제거 - 새로운 특징 및 활용 사례 추가
hoyyChoi
reviewed
Sep 15, 2025
| * | ||
| * @param {number} currentTime - 현재 시간 (performance.now()의 반환값) | ||
| */ | ||
| const animationFrame = (currentTime: number) => { |
Collaborator
There was a problem hiding this comment.
이름좀 변경해주세요!
은소인터벌
updateProgress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
#99
📝 훅 간단 사용 설명
React.memo로 최적화되어 불필요한 리렌더링 방지useProgress훅과 연동하여 자동 애니메이션 지원기본 사용법
커스텀 스타일링
스크린샷 (선택)