소수점 제거
This commit is contained in:
parent
40952da92a
commit
2a3f9080ca
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user