feat: 노트 크기·테두리 두께 등 수치 값 소수 입력 지원#86
Merged
Merged
Conversation
note_width, note_border_radius, note_glow_size를 u32에서 f64로 변경해 소수 입력을 받을 수 있도록 모델 타입 확장. 기존 정수 저장값은 serde가 그대로 역직렬화하므로 별도 변환 불필요. 레거시 borderRadius 마이그레이션은 f64 캐스트 추가
키/노트 크기, 테두리 두께·라운딩, 글로우 크기, 오프셋, 폰트 크기 등 시각적 px 값에 0.1 단위 소수 입력을 허용. 카운트·투명도 등은 정수 유지 - OptionalNumberInput에 allowDecimal/decimalScale 추가 (NumberInput과 동일한 소수 sanitize·precision 처리, numpad Decimal 키, inputMode decimal) - Note/Style/Batch 탭의 px 입력에 allowDecimal 적용 - zod 스키마에서 noteWidth/noteBorderRadius/noteGlowSize의 정수 제약 해제 - noteWidth 렌더 시 Math.round 제거로 소수 폭 반영 - 구형 키 설정 모달의 글로우 크기 입력도 소수 지원 - 빈 값만 unset, 부호·소수점 중간 입력은 commit 보류 zod·serde 회귀 테스트 추가
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.
요약
noteWidth,noteBorderRadius,noteGlowSize)를 정수 전용에서 소수(f64) 지원으로 확장OptionalNumberInput에allowDecimal/decimalScaleprop 추가 (소수점 1자리,inputMode="decimal")Math.round제거로 소수 px 그대로 반영 (키 지오메트리는 기존부터 f64)검증
npx tsc --noEmit통과npm test75개 통과 (신규 keys.test.ts 포함)npm run lint통과cargo test12개 통과,cargo clippy클린🤖 Generated with Claude Code