offset 0일 경우 NaN 처리
This commit is contained in:
parent
6e3587f201
commit
4d8fad93f2
@ -87,6 +87,9 @@ export const useLine = () => {
|
|||||||
removePitchText(line)
|
removePitchText(line)
|
||||||
const { startPoint, endPoint, direction, attributes } = line
|
const { startPoint, endPoint, direction, attributes } = line
|
||||||
const { offset, onlyOffset = false } = attributes
|
const { offset, onlyOffset = false } = attributes
|
||||||
|
if (offset === 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let left, top
|
let left, top
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user