feat(pop-designer): 반응형 레이아웃 시스템 구현
모드별(4/6/8/12칸) 컴포넌트 위치/크기 오버라이드 저장 화면 밖 컴포넌트 오른쪽 패널 표시 및 드래그 재배치 컴포넌트 숨김 기능 (드래그/H키/클릭, 드래그로 해제) 리사이즈 겹침 검사 추가 드롭 위치 그리드 범위 초과 시 자동 조정 숨김 컴포넌트 드래그 안됨 버그 수정 (상태 업데이트 통합)
This commit is contained in:
14
frontend/components/pop/designer/constants/dnd.ts
Normal file
14
frontend/components/pop/designer/constants/dnd.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* DnD(Drag and Drop) 관련 상수
|
||||
*/
|
||||
|
||||
// DnD 아이템 타입
|
||||
export const DND_ITEM_TYPES = {
|
||||
/** 팔레트에서 새 컴포넌트 드래그 */
|
||||
COMPONENT: "POP_COMPONENT",
|
||||
/** 캔버스 내 기존 컴포넌트 이동 */
|
||||
MOVE_COMPONENT: "POP_MOVE_COMPONENT",
|
||||
} as const;
|
||||
|
||||
// 타입 추출
|
||||
export type DndItemType = typeof DND_ITEM_TYPES[keyof typeof DND_ITEM_TYPES];
|
||||
1
frontend/components/pop/designer/constants/index.ts
Normal file
1
frontend/components/pop/designer/constants/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./dnd";
|
||||
Reference in New Issue
Block a user