#662 처마 커버 설치 위치 확인 요청

This commit is contained in:
hyojun.choi 2025-02-07 16:34:26 +09:00
parent 5e50f16f88
commit 771df798c5

View File

@ -80,6 +80,7 @@ export const useTrestle = () => {
const modules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE)
modules.forEach((module) => {
module.fire('polygonMoved')
const { x, y } = module.getCenterPoint()
const isExposedBottom = result.exposedBottomPoints.some((point) => Math.abs(point.x - x) < 2 && Math.abs(point.y - y) < 2)
const isLeftExposedHalfBottom = result.leftExposedHalfBottomPoints.some((point) => Math.abs(point.x - x) < 2 && Math.abs(point.y - y) < 2)