[1480]사의 각도 설정을 "각도"로 했을 때 발생하는 문제2
This commit is contained in:
parent
2514fc9214
commit
4a270ba57e
@ -266,14 +266,15 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
|
|||||||
}, { skipSideEffects: true })
|
}, { skipSideEffects: true })
|
||||||
|
|
||||||
const roofs = canvas.getObjects().filter((obj) => obj.roofMaterial?.index === 0)
|
const roofs = canvas.getObjects().filter((obj) => obj.roofMaterial?.index === 0)
|
||||||
|
const firstRoof = roofs[0]
|
||||||
|
|
||||||
roofs.forEach((roof) => {
|
if (firstRoof) {
|
||||||
/** 모양 패턴 설정 */
|
/** 모양 패턴 설정 */
|
||||||
setSurfaceShapePattern(roof, roofDisplay.column, false, { ...roofInfo })
|
setSurfaceShapePattern(firstRoof, roofDisplay.column, false, { ...roofInfo })
|
||||||
roof.roofMaterial = { ...roofInfo }
|
firstRoof.roofMaterial = { ...roofInfo }
|
||||||
drawDirectionArrow(roof)
|
drawDirectionArrow(firstRoof)
|
||||||
setPolygonLinesActualSize(roof, true)
|
setPolygonLinesActualSize(firstRoof, true)
|
||||||
})
|
}
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
|
|
||||||
/** 지붕면 존재 여부에 따라 메뉴 설정 */
|
/** 지붕면 존재 여부에 따라 메뉴 설정 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user