오류수정

This commit is contained in:
hyojun.choi 2024-09-04 16:30:35 +09:00
parent 6c86b1181c
commit 10b88ede0f

View File

@ -594,13 +594,12 @@ export default function Roof2(props) {
}
const changeLength = (e) => {
setScale(e)
const polygon = canvas?.getActiveObject()
if (polygon.type !== 'QPolygon') {
if (polygon?.type !== 'QPolygon') {
return
}
setScale(e)
polygon.setScaleX(e)
canvas?.renderAll()