dev #314
@ -122,7 +122,7 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
canvas.set({ zoom: 1 })
|
canvas.set({ zoom: 1 })
|
||||||
|
|
||||||
// roof 객체들을 찾아서 중앙점 계산
|
// 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) {
|
if (roofs.length > 0) {
|
||||||
// 모든 roof의 x, y 좌표를 수집
|
// 모든 roof의 x, y 좌표를 수집
|
||||||
|
|||||||
@ -27,6 +27,9 @@ export function useRoofFn() {
|
|||||||
if (!polygon) {
|
if (!polygon) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (polygon.wall) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (polygon.points.length < 3) {
|
if (polygon.points.length < 3) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user