소수점 제거

This commit is contained in:
hyojun.choi 2024-07-18 16:23:31 +09:00
parent 40952da92a
commit 2a3f9080ca

View File

@ -16,6 +16,11 @@ export class QLine extends fabric.Group {
#lengthTxt = 0 #lengthTxt = 0
constructor(points, option = { isActiveLengthText: true }, lengthTxt) { constructor(points, option = { isActiveLengthText: true }, lengthTxt) {
// 소수점 전부 제거
points.forEach((point) => {
point = Math.round(point)
})
const [x1, y1, x2, y2] = points const [x1, y1, x2, y2] = points
if (!option.fontSize) { if (!option.fontSize) {