[refactor/MAT-900] DrawingCanvas wrapTextToLines 공통 헬퍼 + 텍스트 정책 cleanup#349
Draft
b0nsu wants to merge 3 commits into
Draft
[refactor/MAT-900] DrawingCanvas wrapTextToLines 공통 헬퍼 + 텍스트 정책 cleanup#349b0nsu wants to merge 3 commits into
b0nsu wants to merge 3 commits into
Conversation
- wrapTextToLines: paragraph(\n) + word 단위 줄바꿈을 통합한 순수 함수 - calculateTextLineCount / renderedTexts 양쪽이 공유 → drift 방지 - isNearExistingText (32px Y-band 필기 차단) 제거 — 구 기획 정리 - addPoint / startStroke 의 차단 가드 + deps 정리 - addText 자동 배치 (필기/텍스트 아래 32px) 제거 — 탭한 좌표에 그대로 생성 props/imperative API 변경 없음. develop 독립 base (MAT-898 미의존). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- wrapTextToLines 를 file-level export (단위 테스트 / 외부 활용 대비)
- textIdCounterRef 도입, ID 를 \`text-{Date.now()}-{counter}\` 형식으로 — 같은 ms 안 더블 탭으로 발생 가능한 React key 충돌 방지
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
실제 변경은 별도 PR. 향후 작업자에게 컨텍스트 남기는 주석만 추가. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
`wrapTextToLines` 공통 헬퍼 추출 + 옛 기획 텍스트 정책 제거.
Linear
Changes
Testing
Risk / Impact