wall이 있는 roof는 사진에서 제외
This commit is contained in:
parent
3d67e5eec8
commit
bad50e11b1
@ -122,7 +122,7 @@ export default function CircuitTrestleSetting({ id }) {
|
||||
canvas.set({ zoom: 1 })
|
||||
|
||||
// roof 객체들을 찾아서 중앙점 계산
|
||||
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
|
||||
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof' && !obj.wall)
|
||||
|
||||
if (roofs.length > 0) {
|
||||
// 모든 roof의 x, y 좌표를 수집
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user