fix: removePitchText가 경사 텍스트를 삭제하지 못하던 버그 수정
[작업내용] : - canvas.remove()에 배열을 통째로 넘겨 Fabric이 무시(silent no-op)하던 것을 spread로 개별 전달하도록 수정 - addPitchText의 중복 방지가 무력화되어 같은 자리에 경사/출폭 텍스트가 겹겹이 쌓이던 문제 해결 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
e17af8f4b4
commit
7900b2e67b
@ -148,7 +148,7 @@ export const useLine = () => {
|
||||
|
||||
// 기존 pitchText가 있으면 삭제
|
||||
if (pitchText.length > 0) {
|
||||
canvas.remove(pitchText)
|
||||
canvas.remove(...pitchText)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user