@g1cloud/entity-modeler-next 5.0.0-beta.18 → 5.0.0-beta.19
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/adapter/diagramAdapter.d.ts +6 -0
- package/dist/adapter/healBackfill.d.ts +20 -0
- package/dist/entity-modeler.js +2411 -2373
- package/dist/entity-modeler.umd.cjs +14 -14
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -27,6 +27,12 @@ export interface DiagramMeta {
|
|
|
27
27
|
/**
|
|
28
28
|
* 마커 분기 파서 — `schemaVersion`을 보고 v1(legacy flat) vs v2(logical/layout) 경로 선택(B-0).
|
|
29
29
|
* reload(프리즈 후 재적재)도 이 진입점을 경유해 동일 분기를 탄다.
|
|
30
|
+
*
|
|
31
|
+
* 산출 state는 입력 doc과 **참조 비공유**(계약) — 진입 시 deep-clone한다. 로드 자가치유
|
|
32
|
+
* (heal/normalize)와 이후 편집(commands의 in-place 변형)이 모두 사본 위에서 일어나므로,
|
|
33
|
+
* 호출자 소유 객체(호스트 useFetch payload 등 리액티브 소스)를 오염시키지 않는다.
|
|
34
|
+
* reactive proxy에 structuredClone은 throw할 수 있어 JSON deep-clone(controller 클립보드와
|
|
35
|
+
* 동일 패턴). undefined 값 키는 탈락하나 부재와 의미 동치.
|
|
30
36
|
*/
|
|
31
37
|
export declare function fromPersisted(doc: PDiagram | PDiagramV2): {
|
|
32
38
|
state: EditorState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ModelId } from '../core/types';
|
|
2
|
+
import { OpShape } from '../command/op';
|
|
3
|
+
import { PDiagram, PDiagramV2 } from './persisted';
|
|
4
|
+
export interface HealBackfillPlan {
|
|
5
|
+
/** backfill op 배치 (비면 치유 대상 없음 — 문서 skip). */
|
|
6
|
+
ops: OpShape[];
|
|
7
|
+
/** raw doc의 컨테이너 rev 스냅샷 — `buildAgentBatch(diagramId, revs, ops)` CAS base. */
|
|
8
|
+
revs: Record<ModelId, number>;
|
|
9
|
+
/** dry-run 리포트용 집계. */
|
|
10
|
+
summary: {
|
|
11
|
+
navAdds: number;
|
|
12
|
+
navRefPatches: number;
|
|
13
|
+
identifyingPatches: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* v2 doc 하나에 대한 heal backfill 계획을 산출한다. v1 doc(마이그레이션이 hydration에서
|
|
18
|
+
* 치유하므로 스윕 비대상)이면 빈 계획을 반환한다.
|
|
19
|
+
*/
|
|
20
|
+
export declare function planHealBackfillOps(doc: PDiagram | PDiagramV2): HealBackfillPlan;
|