오류수정
This commit is contained in:
parent
6c86b1181c
commit
10b88ede0f
@ -594,13 +594,12 @@ export default function Roof2(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const changeLength = (e) => {
|
const changeLength = (e) => {
|
||||||
setScale(e)
|
|
||||||
const polygon = canvas?.getActiveObject()
|
const polygon = canvas?.getActiveObject()
|
||||||
|
|
||||||
if (polygon.type !== 'QPolygon') {
|
if (polygon?.type !== 'QPolygon') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
setScale(e)
|
||||||
polygon.setScaleX(e)
|
polygon.setScaleX(e)
|
||||||
|
|
||||||
canvas?.renderAll()
|
canvas?.renderAll()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user