- 배치면 그리기 팝업 close - point 제거
- 배치면 그리기 hook 주석 수정
This commit is contained in:
parent
4998dbc6d3
commit
4b469c4b1c
@ -49,7 +49,7 @@ export const useTrestle = () => {
|
||||
const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
||||
const roofMaterialIndex = parent.roofMaterial.index
|
||||
if (+roofSizeSet === 3) {
|
||||
return true
|
||||
return
|
||||
}
|
||||
const construction = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex).construction
|
||||
if (!construction) {
|
||||
|
||||
@ -37,7 +37,7 @@ import { roofDisplaySelector } from '@/store/settingAtom'
|
||||
import { useRoofFn } from '@/hooks/common/useRoofFn'
|
||||
import PlacementSurfaceLineProperty from '@/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty'
|
||||
|
||||
// 면형상 배치
|
||||
// 배치면 그리기
|
||||
export function usePlacementShapeDrawing(id) {
|
||||
const canvas = useRecoilValue(canvasState)
|
||||
const roofDisplay = useRecoilValue(roofDisplaySelector)
|
||||
@ -93,6 +93,12 @@ export function usePlacementShapeDrawing(id) {
|
||||
|
||||
useEffect(() => {
|
||||
setPoints([])
|
||||
|
||||
return () => {
|
||||
const placementShapeDrawingStartPoint = canvas.getObjects().find((obj) => obj.name === 'placementShapeDrawingStartPoint')
|
||||
|
||||
canvas.remove(placementShapeDrawingStartPoint)
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user