QLine padding 추가. 기본값 5
This commit is contained in:
parent
be2de96fbb
commit
d45b25bc9f
@ -12,6 +12,7 @@ export const QLine = fabric.util.createClass(fabric.Line, {
|
|||||||
idx: 0,
|
idx: 0,
|
||||||
area: 0,
|
area: 0,
|
||||||
children: [],
|
children: [],
|
||||||
|
padding: 5,
|
||||||
initialize: function (points, options, length = 0) {
|
initialize: function (points, options, length = 0) {
|
||||||
// 소수점 전부 제거
|
// 소수점 전부 제거
|
||||||
points = points.map((point) => Number(point.toFixed(1)))
|
points = points.map((point) => Number(point.toFixed(1)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user