- 배치면 확정 후 지붕선 속성 설정 팝업 추가

This commit is contained in:
김민식 2025-02-19 14:26:29 +09:00
parent dfccb51693
commit f0a9c5963f

View File

@ -34,6 +34,7 @@ import { usePopup } from '@/hooks/usePopup'
import { roofDisplaySelector } from '@/store/settingAtom' import { roofDisplaySelector } from '@/store/settingAtom'
import { useRoofFn } from '@/hooks/common/useRoofFn' import { useRoofFn } from '@/hooks/common/useRoofFn'
import PlacementSurfaceLineProperty from '@/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty'
// 면형상 배치 // 면형상 배치
export function usePlacementShapeDrawing(id) { export function usePlacementShapeDrawing(id) {
@ -76,7 +77,7 @@ export function usePlacementShapeDrawing(id) {
const isFix = useRef(false) const isFix = useRef(false)
const { closePopup } = usePopup() const { closePopup, addPopup } = usePopup()
const globalPitch = useRecoilValue(globalPitchState) const globalPitch = useRecoilValue(globalPitchState)
@ -244,7 +245,8 @@ export function usePlacementShapeDrawing(id) {
setPoints([]) setPoints([])
canvas?.renderAll() canvas?.renderAll()
closePopup(id)
addPopup(id, 1, <PlacementSurfaceLineProperty id={id} roof={roof} />, false)
} }
if (points.length < 3) { if (points.length < 3) {