QLine padding 추가. 기본값 5

This commit is contained in:
Jaeyoung Lee 2024-11-28 14:09:19 +09:00
parent be2de96fbb
commit d45b25bc9f

View File

@ -12,6 +12,7 @@ export const QLine = fabric.util.createClass(fabric.Line, {
idx: 0,
area: 0,
children: [],
padding: 5,
initialize: function (points, options, length = 0) {
// 소수점 전부 제거
points = points.map((point) => Number(point.toFixed(1)))