@g1cloud/bpmn-modeler-next 5.0.0-alpha.16 → 5.0.0-alpha.17

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.
@@ -22,6 +22,11 @@ export interface GeometryShape {
22
22
  * 판정의 근거: 노드가 자기 풀 밖에 그려져 있으면 좌표만 보는 사람은 **남의 풀 노드로 읽는다.**
23
23
  */
24
24
  parent?: string;
25
+ /**
26
+ * 도형의 **외부 이름 라벨** bounds(이벤트·게이트웨이의 이름은 도형 밖에 그려진다 — 있을 때만).
27
+ * `annotation-over-label` 의 입력(B-24 ⓑ): 주석 상자가 이 위에 놓이면 텍스트가 겹쳐 둘 다 읽을 수 없다.
28
+ */
29
+ label?: GeometryLabel;
25
30
  }
26
31
  /** 간선 외부 라벨의 bounds — 라벨은 판정 대상 도형이 아니지만 **어느 간선의 것으로 읽히는가**는 판정한다(B-15). */
27
32
  export interface GeometryLabel {
@@ -125,6 +130,17 @@ export type GeometryFinding =
125
130
  kind: 'label-over-line';
126
131
  edge: string;
127
132
  line: string;
133
+ }
134
+ /**
135
+ * 텍스트 주석 상자가 다른 요소의 **외부 라벨**(게이트웨이·이벤트 이름, 간선 라벨) 위에 놓였다 — 두 텍스트가
136
+ * 겹쳐 어느 쪽도 읽을 수 없다(열여덟 번째 표본: `top` 주석이 `처리 결과?` 게이트웨이의 이름 라벨을 덮었고
137
+ * 사용자는 "라벨과 코멘트가 비슷한 위치" 라며 주석을 옆으로 옮겼다). 주석 배치가 도형·간선 구간만 피하고
138
+ * 라벨은 보지 않던 공백. `label` = 그 라벨을 소유한 요소 id(도형 또는 간선).
139
+ */
140
+ | {
141
+ kind: 'annotation-over-label';
142
+ annotation: string;
143
+ label: string;
128
144
  };
129
145
  /** 발견을 전후 비교(배치가 새로 만든 것 가려내기)할 수 있게 하는 안정 키. */
130
146
  export declare function geometryFindingKey(finding: GeometryFinding): string;
@@ -210,6 +226,11 @@ export declare function sceneCrossingCost(scene: GeometryScene): number;
210
226
  export declare function edgeCrossingPairsOf(scene: GeometryScene): Array<[string, string]>;
211
227
  /** 컨테이너를 뺀 판정 대상 도형 — 관통·겹침 양쪽의 공통 모집단. */
212
228
  export declare const auditTargetsOf: (scene: GeometryScene) => GeometryShape[];
229
+ /** 장면의 외부 라벨 전부(도형 이름 라벨 + 간선 라벨)와 그 소유자 — 판정과 주석 배치(6단계 장애물)가 같은 목록을 쓴다. */
230
+ export declare function labelRectsOf(scene: GeometryScene): Array<{
231
+ owner: string;
232
+ rect: GeometryLabel;
233
+ }>;
213
234
  /**
214
235
  * 기하 판정 (순수). 결과는 **결정론적 순서**로 정렬해 반환한다 — 전후 diff·골든 비교·회귀
215
236
  * 고정이 전부 순서에 의존한다.