Compare commits
No commits in common. "bcd73e4f96970e2a3a46587edf0a69f0cded3a6e" and "7846d729c85d104e31b6bb83286205dbfc40c0e8" have entirely different histories.
bcd73e4f96
...
7846d729c8
@ -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' && !obj.wall)
|
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
|
||||||
|
|
||||||
if (roofs.length > 0) {
|
if (roofs.length > 0) {
|
||||||
// 모든 roof의 x, y 좌표를 수집
|
// 모든 roof의 x, y 좌표를 수집
|
||||||
|
|||||||
@ -27,9 +27,6 @@ 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