fontsize 값 수정
This commit is contained in:
parent
63a965d118
commit
84e95a29df
@ -80,7 +80,7 @@ export function useMode() {
|
|||||||
distanceText = new fabric.Text(`${minDistance.toFixed(2)}`, {
|
distanceText = new fabric.Text(`${minDistance.toFixed(2)}`, {
|
||||||
left: pointer.x,
|
left: pointer.x,
|
||||||
top: pointer.y,
|
top: pointer.y,
|
||||||
fontSize: 16,
|
fontSize: fontSize,
|
||||||
})
|
})
|
||||||
canvas?.add(distanceText)
|
canvas?.add(distanceText)
|
||||||
}
|
}
|
||||||
@ -217,7 +217,7 @@ export function useMode() {
|
|||||||
left: pointer.x,
|
left: pointer.x,
|
||||||
top: pointer.y,
|
top: pointer.y,
|
||||||
width: 150, // 텍스트박스의 너비를 설정합니다.
|
width: 150, // 텍스트박스의 너비를 설정합니다.
|
||||||
fontSize: 16, // 텍스트의 크기를 설정합니다.
|
fontSize: fontSize, // 텍스트의 크기를 설정합니다.
|
||||||
})
|
})
|
||||||
|
|
||||||
canvas?.add(textbox)
|
canvas?.add(textbox)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user