offset 0일 경우 NaN 처리

This commit is contained in:
hyojun.choi 2025-01-13 10:52:28 +09:00
parent 6e3587f201
commit 4d8fad93f2

View File

@ -87,6 +87,9 @@ export const useLine = () => {
removePitchText(line)
const { startPoint, endPoint, direction, attributes } = line
const { offset, onlyOffset = false } = attributes
if (offset === 0) {
return
}
let left, top