Merge pull request 'dev' (#314) from dev into dev-deploy
Reviewed-on: #314
This commit is contained in:
commit
ee3f0b9fd4
@ -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 좌표를 수집
|
||||
|
||||
@ -27,6 +27,9 @@ export function useRoofFn() {
|
||||
if (!polygon) {
|
||||
return
|
||||
}
|
||||
if (polygon.wall) {
|
||||
return
|
||||
}
|
||||
if (polygon.points.length < 3) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user