@g1cloud/entity-modeler-next 5.2.40 → 5.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/commands.d.ts +12 -0
- package/dist/entity-modeler.js +2574 -2536
- package/dist/entity-modeler.umd.cjs +15 -15
- package/package.json +1 -1
|
@@ -97,6 +97,18 @@ export declare function translateWaypoints(assocId: ModelId, dx: number, dy: num
|
|
|
97
97
|
export declare function clearWaypoints(assocId: ModelId): Command;
|
|
98
98
|
export declare function addWaypoint(assocId: ModelId, index: number, point: Point): Command;
|
|
99
99
|
export declare function addNote(note: Note): Command;
|
|
100
|
+
/**
|
|
101
|
+
* 노트 삭제.
|
|
102
|
+
*
|
|
103
|
+
* ★**노트 축의 필드는 «둘»이다** — `layout.notes` 와 그 노트를 든 `GroupLayout.memberNoteRefs`.
|
|
104
|
+
* 종전엔 앞엣것만 지워 그룹에 **죽은 노트 ref** 가 남았다(2026-09-10 프로덕션 실측: 전수 81 중 고아 1 —
|
|
105
|
+
* 사용자가 방금 지운 그 노트였다). 설계 불변식 *「축이 사라지면 그 축의 «모든» 필드를 함께 정리한다」* 의
|
|
106
|
+
* 위반이고, 반대 방향(`removeGroup`)은 groupLayout 을 통째로 지워 고아가 안 생겨 **한쪽만 비대칭**이었다.
|
|
107
|
+
* ⚠️무신호였다 — `validation.ts` 에 `memberNoteRefs` 를 보는 규칙이 없고, 유일한 소비처
|
|
108
|
+
* (`resolve.ts` 의 groupOfNote 맵)는 죽은 키를 조용히 무시해 렌더에도 안 나타난다.
|
|
109
|
+
*
|
|
110
|
+
* cascade 는 `removeEntity` 와 같은 관용구다 — apply 가 계산한 memento 를 emitOps 가 그대로 op 으로 낸다.
|
|
111
|
+
*/
|
|
100
112
|
export declare function removeNote(noteId: ModelId): Command;
|
|
101
113
|
export declare function moveNote(noteId: ModelId, location: Point): Command;
|
|
102
114
|
export declare function resizeNote(noteId: ModelId, size: {
|