QLine관련 오류 수정

This commit is contained in:
hyojun.choi 2025-01-13 11:28:53 +09:00
parent 4d8fad93f2
commit 41f91b4e00

View File

@ -15,7 +15,8 @@ export const QLine = fabric.util.createClass(fabric.Line, {
padding: 5,
initialize: function (points, options, length = 0) {
// 소수점 전부 제거
points = points.map((point) => Number(point.toFixed(1)))
points = points.map((point) => Number(point?.toFixed(1)))
this.callSuper('initialize', points, { ...options, selectable: options.selectable ?? true })
if (options.id) {