fix: removePitchText가 경사 텍스트를 삭제하지 못하던 버그 수정

[작업내용] :
- canvas.remove()에 배열을 통째로 넘겨 Fabric이 무시(silent no-op)하던 것을 spread로 개별 전달하도록 수정
- addPitchText의 중복 방지가 무력화되어 같은 자리에 경사/출폭 텍스트가 겹겹이 쌓이던 문제 해결

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jaeyoung Lee 2026-06-11 14:52:19 +09:00
parent e17af8f4b4
commit 7900b2e67b

View File

@ -148,7 +148,7 @@ export const useLine = () => {
// 기존 pitchText가 있으면 삭제 // 기존 pitchText가 있으면 삭제
if (pitchText.length > 0) { if (pitchText.length > 0) {
canvas.remove(pitchText) canvas.remove(...pitchText)
} }
} }