@g1cloud/bpmn-modeler-next 5.0.0-beta.47 → 5.0.0-beta.49

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.
@@ -11,9 +11,17 @@ export declare function inferScriptLocale(text: string): ScriptInference;
11
11
  /**
12
12
  * 루트 판정의 근거.
13
13
  * `kept` 이미 있다 · `matched` 번역 칸과 같은 이름들의 공통 언어 · `script` 문자 체계가 한 언어로 모인다 ·
14
- * `ambiguous` 공통 언어가 여럿이고 문자 체계로도 못 고른다 · `mixed` 근거가 서로 다른 언어 · `no-evidence` 근거 없음
14
+ * `ambiguous` 공통 언어가 여럿이고 문자 체계로도 못 고른다 · `mixed` 근거가 서로 다른 언어 · `no-evidence` 근거 없음 ·
15
+ * `non-design` 근거가 설계 언어 아닌 언어를 가리킨다 — 루트로 쓰지 않는다(그 언어 이름은 요소 칸으로 · B-177)
15
16
  */
16
- export type RootLocaleReason = 'kept' | 'matched' | 'script' | 'ambiguous' | 'mixed' | 'no-evidence';
17
+ export type RootLocaleReason = 'kept' | 'matched' | 'script' | 'ambiguous' | 'mixed' | 'no-evidence' | 'non-design';
18
+ export interface LocaleBackfillOptions {
19
+ /**
20
+ * 그룹의 설계 언어 — 주면 그와 다른 루트는 쓰지 않는다(`non-design`). 없으면 종전 판정 그대로.
21
+ * 루트가 없으면 표시 판정이 이름을 설계 언어로 읽으므로, 루트는 설계 언어일 때만 말할 것이 있다.
22
+ */
23
+ designLocale?: string;
24
+ }
17
25
  /** 계획 항목이 가리키는 요소 — 미리보기 화면이 사람에게 보여 줄 최소 정보. */
18
26
  export interface LocaleBackfillElement {
19
27
  id: string;
@@ -55,7 +63,7 @@ export interface LocaleBackfillPlan {
55
63
  }>;
56
64
  }
57
65
  /** 언어 백필 계획 — 문서를 바꾸지 않는다. */
58
- export declare function planLocaleBackfill(definitions: Any): LocaleBackfillPlan;
66
+ export declare function planLocaleBackfill(definitions: Any, options?: LocaleBackfillOptions): LocaleBackfillPlan;
59
67
  /**
60
68
  * 계획을 문서에 쓴다 — 바꾼 곳 수를 돌려준다. **멱등**이고 계획 뒤 문서가 바뀌었어도 덮지 않는다:
61
69
  * 루트가 이미 있으면 루트를 건너뛰고, 요소는 지금도 「언어 기록 없음 + 이름이 계획 때 그대로」일 때만 쓴다.
@@ -235,7 +235,9 @@ export declare function repairIntroducedBoundaryHugging(services: Pick<ResolverS
235
235
  * 종류 다른 중첩(B-17 ⓐ)의 보정 = 도킹 편이 — "가급적 중심에 도킹하되 어쩔 수 없을 땐 약간 비껴서"
236
236
  * (사용자 프레이밍). 기본은 중심이고, finding 이 났을 때만, 최소 편이(±25)부터 본다.
237
237
  */
238
- export declare function planOppositeOverlapRepair(edge: GeometryEdge, scene: GeometryScene): GeometryPoint[] | null;
238
+ export declare function planOppositeOverlapRepair(edge: GeometryEdge, scene: GeometryScene, options?: {
239
+ sideEntry?: boolean;
240
+ }): GeometryPoint[] | null;
239
241
  /**
240
242
  * 이 간선의 **가짜 합류**(B-77)를 없애는 경로(순수). 못 찾으면 `null`.
241
243
  *
@@ -274,7 +276,13 @@ export declare function planChainOverlapRepair(edge: GeometryEdge, scene: Geomet
274
276
  * 짝 중 **새 간선만** 손댄다(안전 성질 2).
275
277
  */
276
278
  export declare function repairIntroducedChainOverlaps(services: Pick<ResolverServices, 'elementRegistry' | 'modeling'>, beforeKeys: ReadonlySet<string>, beforeEdgeIds: ReadonlySet<string>): void;
277
- export declare function repairIntroducedOppositeOverlaps(services: Pick<ResolverServices, 'elementRegistry' | 'modeling'>, beforeKeys: ReadonlySet<string>, beforeEdgeIds: ReadonlySet<string>): void;
279
+ /**
280
+ * B-14 ⓒ1 — 이 배치가 새로 낸 읽을 수 없는 중첩을 고친다. `beforeEdgeIds` 에 든 간선(배치 전부터 있던 것)은 손대지 않는다.
281
+ * 🔴 **B-178** — `sideEntryEdgeIds` 에 든 간선에만 빈 옆면 진입 후보를 연다(호출자 = 「이 배치가 경로를 다시 깐 기존 간선」).
282
+ * 🔴 **반환 = 실제로 경로를 바꾼 간선** — 뒤의 라벨-선 보정이 그 간선의 라벨을 이 배치 몫으로 다뤄야 한다(안 그러면
283
+ * 다시 깐 기존 간선의 라벨이 새 경로 위에 남는다 — N20 실측 +9).
284
+ */
285
+ export declare function repairIntroducedOppositeOverlaps(services: Pick<ResolverServices, 'elementRegistry' | 'modeling'>, beforeKeys: ReadonlySet<string>, beforeEdgeIds: ReadonlySet<string>, sideEntryEdgeIds?: ReadonlySet<string>): ReadonlySet<string>;
278
286
  /**
279
287
  * 라벨의 새 bounds(순수). 라벨이 공유 구간 위에 없으면 `null`(옮길 이유가 없다). 고유 구간을 못
280
288
  * 찾거나 옮긴 자리가 도형과 겹치면 `null`(손대지 않고 보고에 맡긴다).