@g1cloud/bpmn-modeler-next 5.0.0-alpha.36 → 5.0.0-alpha.38
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/agent/resolver/lower.d.ts +43 -0
- package/dist/bpmn-modeler.js +8340 -8238
- package/dist/bpmn-modeler.umd.cjs +74 -74
- package/package.json +2 -1
|
@@ -6,7 +6,10 @@ import { default as ElementRegistry } from 'diagram-js/lib/core/ElementRegistry'
|
|
|
6
6
|
import { default as Canvas } from 'diagram-js/lib/core/Canvas';
|
|
7
7
|
import { default as AutoPlace } from 'diagram-js/lib/features/auto-place/AutoPlace';
|
|
8
8
|
import { default as BpmnReplace } from 'bpmn-js/lib/features/replace/BpmnReplace';
|
|
9
|
+
import { Shape } from 'bpmn-js/lib/model/Types';
|
|
9
10
|
import { SymbolicOp } from '../symbolicOp';
|
|
11
|
+
import { BwlSide } from '../../core/hints';
|
|
12
|
+
import { GeometryFinding } from '../geometryAudit';
|
|
10
13
|
/** resolver 가 대면하는 bpmn-js 서비스 표면 — 하강은 이 묶음만 사용한다. */
|
|
11
14
|
export interface ResolverServices {
|
|
12
15
|
modeling: Modeling;
|
|
@@ -18,5 +21,45 @@ export interface ResolverServices {
|
|
|
18
21
|
bpmnReplace: BpmnReplace;
|
|
19
22
|
}
|
|
20
23
|
export declare function resolverServicesOf(modeler: BpmnModelerLike): ResolverServices;
|
|
24
|
+
/**
|
|
25
|
+
* ── B-40. 주석 자리 산출 — **add·update·기존 주석 보정 공유** ──
|
|
26
|
+
*
|
|
27
|
+
* 선언 방위 → 실제 좌표(풀 안 클램프 B-20 ⓑ · 앵커 회피 · 형제·간선 B-21 · 외부 라벨 B-24 ⓑ 회피 ·
|
|
28
|
+
* 대안 방위 좌 우선 B-26 ⓐ). 힌트가 없으면 휴리스틱 자리를 같은 규칙으로 클램프·비낀다.
|
|
29
|
+
*
|
|
30
|
+
* 종전에는 이 전부가 `annotation.add` 루프 안에 인라인이었고 `annotation.update` 는 **원시 계산**만 했다.
|
|
31
|
+
* 표본 34 실측: 에이전트가 `annotation-over-label` 을 playbook §6 대로 `annotation.update` 로 고치려 하자
|
|
32
|
+
* 주석이 풀 위로 65px 나갔고(`shape-outside-container` 신규), **배치 1 과 완전히 같은 placement 를 다시
|
|
33
|
+
* 보내도 되돌아가지 않았다**(add 810 = 클램프 / update 775 = 원시값). 같은 입력이 경로에 따라 다른 좌표를
|
|
34
|
+
* 내는 것 자체가 결함이고, 규약대로 행동한 에이전트가 문서를 나쁘게 만들었다.
|
|
35
|
+
* B-33 → B-34 ⓐ 가 그룹 경계 보정에서 닫은 것과 같은 클래스다.
|
|
36
|
+
*
|
|
37
|
+
* `selfId` = 이미 존재하는 주석(update)의 자기 도형·자기 연관을 장애물에서 뺀다 — 안 빼면 늘 "막힘"이다.
|
|
38
|
+
*/
|
|
39
|
+
export declare function annotationSpot(elementRegistry: ElementRegistry, anchor: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
}, dims: {
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
}, box: Shape, opts: {
|
|
48
|
+
placement?: {
|
|
49
|
+
side: BwlSide;
|
|
50
|
+
offset?: number | null;
|
|
51
|
+
} | null;
|
|
52
|
+
from?: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
};
|
|
56
|
+
selfId?: string;
|
|
57
|
+
}): {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
};
|
|
21
61
|
/** 검증 통과가 전제 — 참조 해소 실패는 여기서 프로그래밍 오류로 throw 되고 applyBpmnOps 가 롤백한다. */
|
|
22
62
|
export declare function lowerOps(ops: readonly SymbolicOp[], services: ResolverServices): void;
|
|
63
|
+
/** 주석 도형이 소유자로 등장할 수 있는 finding 의 소유 도형 id. */
|
|
64
|
+
export declare function annotationOwnersOf(finding: GeometryFinding): readonly string[];
|
|
65
|
+
export declare function repairIntroducedAnnotationOverlaps(services: Pick<ResolverServices, 'elementRegistry' | 'modeling'>, beforeKeys: ReadonlySet<string>, beforeShapeIds: ReadonlySet<string>): void;
|