@kong-ui-public/documentation 0.7.11 → 0.7.13
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/{arc-DV7YacTO-BuVHIJg9.js → arc-CinmSIDH-xgjhF5JM.js} +30 -30
- package/dist/{blockDiagram-6b2b5046-BaoEJc6D-Cy9O-1ZT.js → blockDiagram-6b2b5046-lWu5MHZ2-BV0fChjb.js} +5 -5
- package/dist/{c4Diagram-b947cdbb-BJYyVIoS-BfLQE-Bs.js → c4Diagram-b947cdbb-_2ZSBCRj-DsVtFzGl.js} +2 -2
- package/dist/{channel-B0mMhQB--9z5Qz0yl.js → channel-DxVjAaZy-CRrui-5B.js} +1 -1
- package/dist/{classDiagram-35230388-Dc1FeiVu-9SLJZ_zF.js → classDiagram-35230388-C7cMop8F-DRMii3vX.js} +5 -5
- package/dist/{classDiagram-v2-412acd34-CCHNuq3s-ERBtEgJi.js → classDiagram-v2-412acd34-Sr_pGTUt-B5XidFft.js} +5 -5
- package/dist/{clone-DCouqj07-CtER8Ceo.js → clone-BaxuDe_X-BxD7U_1o.js} +1 -1
- package/dist/{createText-423428c9-wIPueJaZ-DrHAiBNP.js → createText-423428c9-DSXJlj3p-27R-kZcE.js} +1 -1
- package/dist/documentation.es.js +2 -2
- package/dist/documentation.umd.js +122 -122
- package/dist/{edges-d417c7a0-D3EPioug-BX9wZ1IY.js → edges-d417c7a0-D20zX-94-Dhrfy1WO.js} +14 -14
- package/dist/{erDiagram-0ea73325-DY9v3vqj-CV-N1VkL.js → erDiagram-0ea73325-p8FwyJvU-DVFt-LEM.js} +320 -314
- package/dist/{flowDb-d35e309a-DJwmSO92-DkHuU771.js → flowDb-d35e309a-Ca4FSAVM-DOsp0Vte.js} +1 -1
- package/dist/{flowDiagram-d949d7c1-BdlSpX05-C89vCCFN.js → flowDiagram-d949d7c1-OwxKQJQE-CNj1eG9t.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-CMx7p7a1-CjIU-hoQ.js → flowDiagram-v2-49332944-CmJFqFX3-Dmvt7Fvy.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-CQgAF7oO-0yWVu_cu.js → flowchart-elk-definition-27cc417a-BK-QJI5S-C83-zjaL.js} +4 -4
- package/dist/{ganttDiagram-5c869e3b-CFdSz7-F-DLdDNczn.js → ganttDiagram-5c869e3b-DsJMAz4f-CiGlJW0L.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-DLrslp_g-_HNyyguC.js → gitGraphDiagram-b9d81de9-CgW7vwTs-B8681ggb.js} +31 -31
- package/dist/{graph-DDKwjgNV-CHoG5key.js → graph-_GyIwSxm-SJ7bw9Y3.js} +2 -2
- package/dist/{index-8fae9850-CXAONDQ5-Byt_-ZIo.js → index-8fae9850-CyqCz_ca-KiPjjzFu.js} +6 -6
- package/dist/{index-DdB0jRF1.js → index-BcjpWjSF.js} +1191 -1174
- package/dist/{infoDiagram-db7b18fc-uyeDrELi-8QA75iom.js → infoDiagram-db7b18fc-0P3OTShw-_GrSz1Bt.js} +7 -7
- package/dist/{journeyDiagram-d5636530-BQCHCJnM-C3OOwoQp.js → journeyDiagram-d5636530-DaBgA-aj-BpdCViqB.js} +3 -3
- package/dist/{layout-BgNLyoWW-CgBWmYzI.js → layout-Bk7AdqJz-BBmLLAeS.js} +2 -2
- package/dist/{line-m2yY3Y1V-BlkVWaqq.js → line-B7Dd0TiT-SkA5nzKI.js} +1 -1
- package/dist/{linear-BliVwsum-C61YI4UC.js → linear-bMW21eJn-nLz6oKS7.js} +39 -39
- package/dist/{mindmap-definition-377f8f1f-B0xusmpj-du7ZMm4a.js → mindmap-definition-377f8f1f-ufN3tUA6-CN-aI3_R.js} +291 -291
- package/dist/{pieDiagram-b0208e96-DkMh39v_-B_Jy5oaR.js → pieDiagram-b0208e96-DrO8Y6_Q-Bj7x7QvQ.js} +18 -18
- package/dist/{quadrantDiagram-0332be45-DLRQ0XFP-Dq_5O-GK.js → quadrantDiagram-0332be45-DIp67xs6-BFfVz4eq.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-Dm79SiEu-rUdImlsN.js → requirementDiagram-bf7890df-BSzVPfZD-DviSmVdF.js} +30 -30
- package/dist/{sankeyDiagram-0acdec17-DdsU0AU3-BGeFh2Xv.js → sankeyDiagram-0acdec17-prPA1qqX-CEt_LwwN.js} +1 -1
- package/dist/{sequenceDiagram-c18d009d-CuFa0QMQ-DR9Xfluz.js → sequenceDiagram-c18d009d-BAWs2OYL-D76fPCF4.js} +152 -152
- package/dist/{stateDiagram-43596fc0-OHGmKLJG-Ceu1nG4Y.js → stateDiagram-43596fc0-DXEJ0R4o-uUCWdrcA.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-tj0rBZDA-DPtpRcSa.js → stateDiagram-v2-2ead4f9c-DnzyCUgr-BdP2xqfq.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{styles-6860f46c-CRDU4Xm3-ssXGHdP6.js → styles-6860f46c-DzVPBoYT-DIdoKSW2.js} +11 -11
- package/dist/{styles-7383a064-367fcP_o-DhZV74oF.js → styles-7383a064-BL-LjhLx-DyayPgnv.js} +4 -4
- package/dist/{styles-b2c874b6-B9uj3N1G-Br32x_mb.js → styles-b2c874b6-BCYk3bdu-CuPAsrKI.js} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-BMdgToFS-B5DyT5kn.js → svgDrawCommon-0ee1b4e9-CUz2naLo-DOD8u-To.js} +1 -1
- package/dist/{timeline-definition-d977decf-BsiOuCJk-ByOSOQEv.js → timeline-definition-d977decf-BSETSy08-dDvvimKr.js} +2 -2
- package/dist/types/external-links.d.ts.map +1 -1
- package/dist/{xychartDiagram-e50adddc-C3PuUh_C-Dy5TpJjQ.js → xychartDiagram-e50adddc-C82b8cby-Z76__7nm.js} +38 -38
- package/package.json +5 -5
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { m as Kt, g as me, x as
|
|
2
|
-
import { c as ke, x as
|
|
1
|
+
import { m as Kt, g as me, x as ye, v as be, c as lt, s as Ut, b as fe, a as Ee, j as P, aL as Gt, z as Te, l as j, d as kt, a$ as we, e as Pe, h as vt, i as ve, y as $ } from "./index-BcjpWjSF.js";
|
|
2
|
+
import { c as ke, x as Le, y as _e, h as Ie, p as Yt, g as Lt } from "./svgDrawCommon-0ee1b4e9-CUz2naLo-DOD8u-To.js";
|
|
3
3
|
var Dt = function() {
|
|
4
|
-
var t = function(at, f, k,
|
|
5
|
-
for (k = k || {},
|
|
4
|
+
var t = function(at, f, k, y) {
|
|
5
|
+
for (k = k || {}, y = at.length; y--; k[at[y]] = f)
|
|
6
6
|
;
|
|
7
7
|
return k;
|
|
8
|
-
}, e = [1, 2], c = [1, 3], a = [1, 4], s = [2, 4], i = [1, 9], l = [1, 11], d = [1, 13], p = [1, 14], r = [1, 16], x = [1, 17], E = [1, 18], g = [1, 24], m = [1, 25], w = [1, 26],
|
|
8
|
+
}, e = [1, 2], c = [1, 3], a = [1, 4], s = [2, 4], i = [1, 9], l = [1, 11], d = [1, 13], p = [1, 14], r = [1, 16], x = [1, 17], E = [1, 18], g = [1, 24], m = [1, 25], w = [1, 26], L = [1, 27], I = [1, 28], O = [1, 29], M = [1, 30], V = [1, 31], S = [1, 32], tt = [1, 33], F = [1, 34], X = [1, 35], G = [1, 36], W = [1, 37], B = [1, 38], C = [1, 39], K = [1, 41], q = [1, 42], U = [1, 43], J = [1, 44], Z = [1, 45], b = [1, 46], v = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], _ = [4, 5, 16, 50, 52, 53], dt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], et = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], N = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], Wt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], ct = [68, 69, 70], it = [1, 120], It = {
|
|
9
9
|
trace: function() {
|
|
10
10
|
},
|
|
11
11
|
yy: {},
|
|
12
12
|
symbols_: { error: 2, start: 3, SPACE: 4, NEWLINE: 5, SD: 6, document: 7, line: 8, statement: 9, box_section: 10, box_line: 11, participant_statement: 12, create: 13, box: 14, restOfLine: 15, end: 16, signal: 17, autonumber: 18, NUM: 19, off: 20, activate: 21, actor: 22, deactivate: 23, note_statement: 24, links_statement: 25, link_statement: 26, properties_statement: 27, details_statement: 28, title: 29, legacy_title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, loop: 36, rect: 37, opt: 38, alt: 39, else_sections: 40, par: 41, par_sections: 42, par_over: 43, critical: 44, option_sections: 45, break: 46, option: 47, and: 48, else: 49, participant: 50, AS: 51, participant_actor: 52, destroy: 53, note: 54, placement: 55, text2: 56, over: 57, actor_pair: 58, links: 59, link: 60, properties: 61, details: 62, spaceList: 63, ",": 64, left_of: 65, right_of: 66, signaltype: 67, "+": 68, "-": 69, ACTOR: 70, SOLID_OPEN_ARROW: 71, DOTTED_OPEN_ARROW: 72, SOLID_ARROW: 73, DOTTED_ARROW: 74, SOLID_CROSS: 75, DOTTED_CROSS: 76, SOLID_POINT: 77, DOTTED_POINT: 78, TXT: 79, $accept: 0, $end: 1 },
|
|
13
13
|
terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 54: "note", 57: "over", 59: "links", 60: "link", 61: "properties", 62: "details", 64: ",", 65: "left_of", 66: "right_of", 68: "+", 69: "-", 70: "ACTOR", 71: "SOLID_OPEN_ARROW", 72: "DOTTED_OPEN_ARROW", 73: "SOLID_ARROW", 74: "DOTTED_ARROW", 75: "SOLID_CROSS", 76: "DOTTED_CROSS", 77: "SOLID_POINT", 78: "DOTTED_POINT", 79: "TXT" },
|
|
14
14
|
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [63, 2], [63, 1], [58, 3], [58, 1], [55, 1], [55, 1], [17, 5], [17, 5], [17, 4], [22, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [56, 1]],
|
|
15
|
-
performAction: function(at, f, k,
|
|
15
|
+
performAction: function(at, f, k, y, A, n, z) {
|
|
16
16
|
var h = n.length - 1;
|
|
17
17
|
switch (A) {
|
|
18
18
|
case 3:
|
|
19
|
-
return
|
|
19
|
+
return y.apply(n[h]), n[h];
|
|
20
20
|
case 4:
|
|
21
21
|
case 9:
|
|
22
22
|
this.$ = [];
|
|
@@ -39,80 +39,80 @@ var Dt = function() {
|
|
|
39
39
|
n[h].type = "createParticipant", this.$ = n[h];
|
|
40
40
|
break;
|
|
41
41
|
case 16:
|
|
42
|
-
n[h - 1].unshift({ type: "boxStart", boxData:
|
|
42
|
+
n[h - 1].unshift({ type: "boxStart", boxData: y.parseBoxData(n[h - 2]) }), n[h - 1].push({ type: "boxEnd", boxText: n[h - 2] }), this.$ = n[h - 1];
|
|
43
43
|
break;
|
|
44
44
|
case 18:
|
|
45
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(n[h - 2]), sequenceIndexStep: Number(n[h - 1]), sequenceVisible: !0, signalType:
|
|
45
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(n[h - 2]), sequenceIndexStep: Number(n[h - 1]), sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
46
46
|
break;
|
|
47
47
|
case 19:
|
|
48
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(n[h - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType:
|
|
48
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(n[h - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
49
49
|
break;
|
|
50
50
|
case 20:
|
|
51
|
-
this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType:
|
|
51
|
+
this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: y.LINETYPE.AUTONUMBER };
|
|
52
52
|
break;
|
|
53
53
|
case 21:
|
|
54
|
-
this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType:
|
|
54
|
+
this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
55
55
|
break;
|
|
56
56
|
case 22:
|
|
57
|
-
this.$ = { type: "activeStart", signalType:
|
|
57
|
+
this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: n[h - 1] };
|
|
58
58
|
break;
|
|
59
59
|
case 23:
|
|
60
|
-
this.$ = { type: "activeEnd", signalType:
|
|
60
|
+
this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: n[h - 1] };
|
|
61
61
|
break;
|
|
62
62
|
case 29:
|
|
63
|
-
|
|
63
|
+
y.setDiagramTitle(n[h].substring(6)), this.$ = n[h].substring(6);
|
|
64
64
|
break;
|
|
65
65
|
case 30:
|
|
66
|
-
|
|
66
|
+
y.setDiagramTitle(n[h].substring(7)), this.$ = n[h].substring(7);
|
|
67
67
|
break;
|
|
68
68
|
case 31:
|
|
69
|
-
this.$ = n[h].trim(),
|
|
69
|
+
this.$ = n[h].trim(), y.setAccTitle(this.$);
|
|
70
70
|
break;
|
|
71
71
|
case 32:
|
|
72
72
|
case 33:
|
|
73
|
-
this.$ = n[h].trim(),
|
|
73
|
+
this.$ = n[h].trim(), y.setAccDescription(this.$);
|
|
74
74
|
break;
|
|
75
75
|
case 34:
|
|
76
|
-
n[h - 1].unshift({ type: "loopStart", loopText:
|
|
76
|
+
n[h - 1].unshift({ type: "loopStart", loopText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.LOOP_START }), n[h - 1].push({ type: "loopEnd", loopText: n[h - 2], signalType: y.LINETYPE.LOOP_END }), this.$ = n[h - 1];
|
|
77
77
|
break;
|
|
78
78
|
case 35:
|
|
79
|
-
n[h - 1].unshift({ type: "rectStart", color:
|
|
79
|
+
n[h - 1].unshift({ type: "rectStart", color: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.RECT_START }), n[h - 1].push({ type: "rectEnd", color: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.RECT_END }), this.$ = n[h - 1];
|
|
80
80
|
break;
|
|
81
81
|
case 36:
|
|
82
|
-
n[h - 1].unshift({ type: "optStart", optText:
|
|
82
|
+
n[h - 1].unshift({ type: "optStart", optText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.OPT_START }), n[h - 1].push({ type: "optEnd", optText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.OPT_END }), this.$ = n[h - 1];
|
|
83
83
|
break;
|
|
84
84
|
case 37:
|
|
85
|
-
n[h - 1].unshift({ type: "altStart", altText:
|
|
85
|
+
n[h - 1].unshift({ type: "altStart", altText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.ALT_START }), n[h - 1].push({ type: "altEnd", signalType: y.LINETYPE.ALT_END }), this.$ = n[h - 1];
|
|
86
86
|
break;
|
|
87
87
|
case 38:
|
|
88
|
-
n[h - 1].unshift({ type: "parStart", parText:
|
|
88
|
+
n[h - 1].unshift({ type: "parStart", parText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.PAR_START }), n[h - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = n[h - 1];
|
|
89
89
|
break;
|
|
90
90
|
case 39:
|
|
91
|
-
n[h - 1].unshift({ type: "parStart", parText:
|
|
91
|
+
n[h - 1].unshift({ type: "parStart", parText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.PAR_OVER_START }), n[h - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = n[h - 1];
|
|
92
92
|
break;
|
|
93
93
|
case 40:
|
|
94
|
-
n[h - 1].unshift({ type: "criticalStart", criticalText:
|
|
94
|
+
n[h - 1].unshift({ type: "criticalStart", criticalText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.CRITICAL_START }), n[h - 1].push({ type: "criticalEnd", signalType: y.LINETYPE.CRITICAL_END }), this.$ = n[h - 1];
|
|
95
95
|
break;
|
|
96
96
|
case 41:
|
|
97
|
-
n[h - 1].unshift({ type: "breakStart", breakText:
|
|
97
|
+
n[h - 1].unshift({ type: "breakStart", breakText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.BREAK_START }), n[h - 1].push({ type: "breakEnd", optText: y.parseMessage(n[h - 2]), signalType: y.LINETYPE.BREAK_END }), this.$ = n[h - 1];
|
|
98
98
|
break;
|
|
99
99
|
case 43:
|
|
100
|
-
this.$ = n[h - 3].concat([{ type: "option", optionText:
|
|
100
|
+
this.$ = n[h - 3].concat([{ type: "option", optionText: y.parseMessage(n[h - 1]), signalType: y.LINETYPE.CRITICAL_OPTION }, n[h]]);
|
|
101
101
|
break;
|
|
102
102
|
case 45:
|
|
103
|
-
this.$ = n[h - 3].concat([{ type: "and", parText:
|
|
103
|
+
this.$ = n[h - 3].concat([{ type: "and", parText: y.parseMessage(n[h - 1]), signalType: y.LINETYPE.PAR_AND }, n[h]]);
|
|
104
104
|
break;
|
|
105
105
|
case 47:
|
|
106
|
-
this.$ = n[h - 3].concat([{ type: "else", altText:
|
|
106
|
+
this.$ = n[h - 3].concat([{ type: "else", altText: y.parseMessage(n[h - 1]), signalType: y.LINETYPE.ALT_ELSE }, n[h]]);
|
|
107
107
|
break;
|
|
108
108
|
case 48:
|
|
109
|
-
n[h - 3].draw = "participant", n[h - 3].type = "addParticipant", n[h - 3].description =
|
|
109
|
+
n[h - 3].draw = "participant", n[h - 3].type = "addParticipant", n[h - 3].description = y.parseMessage(n[h - 1]), this.$ = n[h - 3];
|
|
110
110
|
break;
|
|
111
111
|
case 49:
|
|
112
112
|
n[h - 1].draw = "participant", n[h - 1].type = "addParticipant", this.$ = n[h - 1];
|
|
113
113
|
break;
|
|
114
114
|
case 50:
|
|
115
|
-
n[h - 3].draw = "actor", n[h - 3].type = "addParticipant", n[h - 3].description =
|
|
115
|
+
n[h - 3].draw = "actor", n[h - 3].type = "addParticipant", n[h - 3].description = y.parseMessage(n[h - 1]), this.$ = n[h - 3];
|
|
116
116
|
break;
|
|
117
117
|
case 51:
|
|
118
118
|
n[h - 1].draw = "actor", n[h - 1].type = "addParticipant", this.$ = n[h - 1];
|
|
@@ -124,7 +124,7 @@ var Dt = function() {
|
|
|
124
124
|
this.$ = [n[h - 1], { type: "addNote", placement: n[h - 2], actor: n[h - 1].actor, text: n[h] }];
|
|
125
125
|
break;
|
|
126
126
|
case 54:
|
|
127
|
-
n[h - 2] = [].concat(n[h - 1], n[h - 1]).slice(0, 2), n[h - 2][0] = n[h - 2][0].actor, n[h - 2][1] = n[h - 2][1].actor, this.$ = [n[h - 1], { type: "addNote", placement:
|
|
127
|
+
n[h - 2] = [].concat(n[h - 1], n[h - 1]).slice(0, 2), n[h - 2][0] = n[h - 2][0].actor, n[h - 2][1] = n[h - 2][1].actor, this.$ = [n[h - 1], { type: "addNote", placement: y.PLACEMENT.OVER, actor: n[h - 2].slice(0, 2), text: n[h] }];
|
|
128
128
|
break;
|
|
129
129
|
case 55:
|
|
130
130
|
this.$ = [n[h - 1], { type: "addLinks", actor: n[h - 1].actor, text: n[h] }];
|
|
@@ -145,17 +145,17 @@ var Dt = function() {
|
|
|
145
145
|
this.$ = n[h];
|
|
146
146
|
break;
|
|
147
147
|
case 63:
|
|
148
|
-
this.$ =
|
|
148
|
+
this.$ = y.PLACEMENT.LEFTOF;
|
|
149
149
|
break;
|
|
150
150
|
case 64:
|
|
151
|
-
this.$ =
|
|
151
|
+
this.$ = y.PLACEMENT.RIGHTOF;
|
|
152
152
|
break;
|
|
153
153
|
case 65:
|
|
154
154
|
this.$ = [
|
|
155
155
|
n[h - 4],
|
|
156
156
|
n[h - 1],
|
|
157
157
|
{ type: "addMessage", from: n[h - 4].actor, to: n[h - 1].actor, signalType: n[h - 3], msg: n[h], activate: !0 },
|
|
158
|
-
{ type: "activeStart", signalType:
|
|
158
|
+
{ type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: n[h - 1] }
|
|
159
159
|
];
|
|
160
160
|
break;
|
|
161
161
|
case 66:
|
|
@@ -163,7 +163,7 @@ var Dt = function() {
|
|
|
163
163
|
n[h - 4],
|
|
164
164
|
n[h - 1],
|
|
165
165
|
{ type: "addMessage", from: n[h - 4].actor, to: n[h - 1].actor, signalType: n[h - 3], msg: n[h] },
|
|
166
|
-
{ type: "activeEnd", signalType:
|
|
166
|
+
{ type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: n[h - 4] }
|
|
167
167
|
];
|
|
168
168
|
break;
|
|
169
169
|
case 67:
|
|
@@ -173,35 +173,35 @@ var Dt = function() {
|
|
|
173
173
|
this.$ = { type: "addParticipant", actor: n[h] };
|
|
174
174
|
break;
|
|
175
175
|
case 69:
|
|
176
|
-
this.$ =
|
|
176
|
+
this.$ = y.LINETYPE.SOLID_OPEN;
|
|
177
177
|
break;
|
|
178
178
|
case 70:
|
|
179
|
-
this.$ =
|
|
179
|
+
this.$ = y.LINETYPE.DOTTED_OPEN;
|
|
180
180
|
break;
|
|
181
181
|
case 71:
|
|
182
|
-
this.$ =
|
|
182
|
+
this.$ = y.LINETYPE.SOLID;
|
|
183
183
|
break;
|
|
184
184
|
case 72:
|
|
185
|
-
this.$ =
|
|
185
|
+
this.$ = y.LINETYPE.DOTTED;
|
|
186
186
|
break;
|
|
187
187
|
case 73:
|
|
188
|
-
this.$ =
|
|
188
|
+
this.$ = y.LINETYPE.SOLID_CROSS;
|
|
189
189
|
break;
|
|
190
190
|
case 74:
|
|
191
|
-
this.$ =
|
|
191
|
+
this.$ = y.LINETYPE.DOTTED_CROSS;
|
|
192
192
|
break;
|
|
193
193
|
case 75:
|
|
194
|
-
this.$ =
|
|
194
|
+
this.$ = y.LINETYPE.SOLID_POINT;
|
|
195
195
|
break;
|
|
196
196
|
case 76:
|
|
197
|
-
this.$ =
|
|
197
|
+
this.$ = y.LINETYPE.DOTTED_POINT;
|
|
198
198
|
break;
|
|
199
199
|
case 77:
|
|
200
|
-
this.$ =
|
|
200
|
+
this.$ = y.parseMessage(n[h].trim().substring(1));
|
|
201
201
|
break;
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
table: [{ 3: 1, 4: e, 5: c, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: c, 6: a }, { 3: 6, 4: e, 5: c, 6: a }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], s, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33:
|
|
204
|
+
table: [{ 3: 1, 4: e, 5: c, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: c, 6: a }, { 3: 6, 4: e, 5: c, 6: a }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], s, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, t(v, [2, 5]), { 9: 47, 12: 12, 13: d, 14: p, 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, t(v, [2, 7]), t(v, [2, 8]), t(v, [2, 14]), { 12: 48, 50: W, 52: B, 53: C }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: b }, { 22: 55, 70: b }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(v, [2, 29]), t(v, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(v, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: b }, { 22: 72, 70: b }, { 22: 73, 70: b }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82] }, { 55: 83, 57: [1, 84], 65: [1, 85], 66: [1, 86] }, { 22: 87, 70: b }, { 22: 88, 70: b }, { 22: 89, 70: b }, { 22: 90, 70: b }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79], [2, 68]), t(v, [2, 6]), t(v, [2, 15]), t(_, [2, 9], { 10: 91 }), t(v, [2, 17]), { 5: [1, 93], 19: [1, 92] }, { 5: [1, 94] }, t(v, [2, 21]), { 5: [1, 95] }, { 5: [1, 96] }, t(v, [2, 24]), t(v, [2, 25]), t(v, [2, 26]), t(v, [2, 27]), t(v, [2, 28]), t(v, [2, 31]), t(v, [2, 32]), t(dt, s, { 7: 97 }), t(dt, s, { 7: 98 }), t(dt, s, { 7: 99 }), t(et, s, { 40: 100, 7: 101 }), t(N, s, { 42: 102, 7: 103 }), t(N, s, { 7: 103, 42: 104 }), t(Wt, s, { 45: 105, 7: 106 }), t(dt, s, { 7: 107 }), { 5: [1, 109], 51: [1, 108] }, { 5: [1, 111], 51: [1, 110] }, { 5: [1, 112] }, { 22: 115, 68: [1, 113], 69: [1, 114], 70: b }, t(ct, [2, 69]), t(ct, [2, 70]), t(ct, [2, 71]), t(ct, [2, 72]), t(ct, [2, 73]), t(ct, [2, 74]), t(ct, [2, 75]), t(ct, [2, 76]), { 22: 116, 70: b }, { 22: 118, 58: 117, 70: b }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 119, 79: it }, { 56: 121, 79: it }, { 56: 122, 79: it }, { 56: 123, 79: it }, { 4: [1, 126], 5: [1, 128], 11: 125, 12: 127, 16: [1, 124], 50: W, 52: B, 53: C }, { 5: [1, 129] }, t(v, [2, 19]), t(v, [2, 20]), t(v, [2, 22]), t(v, [2, 23]), { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [1, 130], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [1, 131], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [1, 132], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 16: [1, 133] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [2, 46], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 49: [1, 134], 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 16: [1, 135] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [2, 44], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 48: [1, 136], 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 16: [1, 137] }, { 16: [1, 138] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [2, 42], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 47: [1, 139], 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: d, 14: p, 16: [1, 140], 17: 15, 18: r, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: m, 31: w, 33: L, 35: I, 36: O, 37: M, 38: V, 39: S, 41: tt, 43: F, 44: X, 46: G, 50: W, 52: B, 53: C, 54: K, 59: q, 60: U, 61: J, 62: Z, 70: b }, { 15: [1, 141] }, t(v, [2, 49]), { 15: [1, 142] }, t(v, [2, 51]), t(v, [2, 52]), { 22: 143, 70: b }, { 22: 144, 70: b }, { 56: 145, 79: it }, { 56: 146, 79: it }, { 56: 147, 79: it }, { 64: [1, 148], 79: [2, 62] }, { 5: [2, 55] }, { 5: [2, 77] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(v, [2, 16]), t(_, [2, 10]), { 12: 149, 50: W, 52: B, 53: C }, t(_, [2, 12]), t(_, [2, 13]), t(v, [2, 18]), t(v, [2, 34]), t(v, [2, 35]), t(v, [2, 36]), t(v, [2, 37]), { 15: [1, 150] }, t(v, [2, 38]), { 15: [1, 151] }, t(v, [2, 39]), t(v, [2, 40]), { 15: [1, 152] }, t(v, [2, 41]), { 5: [1, 153] }, { 5: [1, 154] }, { 56: 155, 79: it }, { 56: 156, 79: it }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 157, 70: b }, t(_, [2, 11]), t(et, s, { 7: 101, 40: 158 }), t(N, s, { 7: 103, 42: 159 }), t(Wt, s, { 7: 106, 45: 160 }), t(v, [2, 48]), t(v, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 79: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
|
|
205
205
|
defaultActions: { 5: [2, 1], 6: [2, 2], 85: [2, 63], 86: [2, 64], 119: [2, 55], 120: [2, 77], 121: [2, 56], 122: [2, 57], 123: [2, 58], 145: [2, 67], 146: [2, 53], 147: [2, 54], 155: [2, 65], 156: [2, 66], 157: [2, 61], 158: [2, 47], 159: [2, 45], 160: [2, 43] },
|
|
206
206
|
parseError: function(at, f) {
|
|
207
207
|
if (f.recoverable)
|
|
@@ -212,7 +212,7 @@ var Dt = function() {
|
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
parse: function(at) {
|
|
215
|
-
var f = this, k = [0],
|
|
215
|
+
var f = this, k = [0], y = [], A = [null], n = [], z = this.table, h = "", Tt = 0, qt = 0, pe = 2, zt = 1, ge = n.slice.call(arguments, 1), Y = Object.create(this.lexer), ht = { yy: {} };
|
|
216
216
|
for (var Mt in this.yy)
|
|
217
217
|
Object.prototype.hasOwnProperty.call(this.yy, Mt) && (ht.yy[Mt] = this.yy[Mt]);
|
|
218
218
|
Y.setInput(at, ht.yy), ht.yy.lexer = Y, ht.yy.parser = this, typeof Y.yylloc > "u" && (Y.yylloc = {});
|
|
@@ -222,7 +222,7 @@ var Dt = function() {
|
|
|
222
222
|
typeof ht.yy.parseError == "function" ? this.parseError = ht.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
223
223
|
function xe() {
|
|
224
224
|
var nt;
|
|
225
|
-
return nt =
|
|
225
|
+
return nt = y.pop() || Y.lex() || zt, typeof nt != "number" && (nt instanceof Array && (y = nt, nt = y.pop()), nt = f.symbols_[nt] || nt), nt;
|
|
226
226
|
}
|
|
227
227
|
for (var H, pt, Q, St, mt = {}, wt, ot, Ht, Pt; ; ) {
|
|
228
228
|
if (pt = k[k.length - 1], this.defaultActions[pt] ? Q = this.defaultActions[pt] : ((H === null || typeof H > "u") && (H = xe()), Q = z[pt] && z[pt][H]), typeof Q > "u" || !Q.length || !Q[0]) {
|
|
@@ -300,16 +300,16 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Ot =
|
|
|
300
300
|
},
|
|
301
301
|
// unshifts one char (or a string) into the input
|
|
302
302
|
unput: function(f) {
|
|
303
|
-
var k = f.length,
|
|
303
|
+
var k = f.length, y = f.split(/(?:\r\n?|\n)/g);
|
|
304
304
|
this._input = f + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - k), this.offset -= k;
|
|
305
305
|
var A = this.match.split(/(?:\r\n?|\n)/g);
|
|
306
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
306
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
307
307
|
var n = this.yylloc.range;
|
|
308
308
|
return this.yylloc = {
|
|
309
309
|
first_line: this.yylloc.first_line,
|
|
310
310
|
last_line: this.yylineno + 1,
|
|
311
311
|
first_column: this.yylloc.first_column,
|
|
312
|
-
last_column:
|
|
312
|
+
last_column: y ? (y.length === A.length ? this.yylloc.first_column : 0) + A[A.length - y.length].length - y[0].length : this.yylloc.first_column - k
|
|
313
313
|
}, this.options.ranges && (this.yylloc.range = [n[0], n[0] + this.yyleng - k]), this.yyleng = this.yytext.length, this;
|
|
314
314
|
},
|
|
315
315
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -351,7 +351,7 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Ot =
|
|
|
351
351
|
},
|
|
352
352
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
353
353
|
test_match: function(f, k) {
|
|
354
|
-
var
|
|
354
|
+
var y, A, n;
|
|
355
355
|
if (this.options.backtrack_lexer && (n = {
|
|
356
356
|
yylineno: this.yylineno,
|
|
357
357
|
yylloc: {
|
|
@@ -376,8 +376,8 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Ot =
|
|
|
376
376
|
last_line: this.yylineno + 1,
|
|
377
377
|
first_column: this.yylloc.last_column,
|
|
378
378
|
last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + f[0].length
|
|
379
|
-
}, this.yytext += f[0], this.match += f[0], this.matches = f, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(f[0].length), this.matched += f[0],
|
|
380
|
-
return
|
|
379
|
+
}, this.yytext += f[0], this.match += f[0], this.matches = f, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(f[0].length), this.matched += f[0], y = this.performAction.call(this, this.yy, this, k, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
|
|
380
|
+
return y;
|
|
381
381
|
if (this._backtrack) {
|
|
382
382
|
for (var z in n)
|
|
383
383
|
this[z] = n[z];
|
|
@@ -390,12 +390,12 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Ot =
|
|
|
390
390
|
if (this.done)
|
|
391
391
|
return this.EOF;
|
|
392
392
|
this._input || (this.done = !0);
|
|
393
|
-
var f, k,
|
|
393
|
+
var f, k, y, A;
|
|
394
394
|
this._more || (this.yytext = "", this.match = "");
|
|
395
395
|
for (var n = this._currentRules(), z = 0; z < n.length; z++)
|
|
396
|
-
if (
|
|
397
|
-
if (k =
|
|
398
|
-
if (f = this.test_match(
|
|
396
|
+
if (y = this._input.match(this.rules[n[z]]), y && (!k || y[0].length > k[0].length)) {
|
|
397
|
+
if (k = y, A = z, this.options.backtrack_lexer) {
|
|
398
|
+
if (f = this.test_match(y, n[z]), f !== !1)
|
|
399
399
|
return f;
|
|
400
400
|
if (this._backtrack) {
|
|
401
401
|
k = !1;
|
|
@@ -443,8 +443,8 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Ot =
|
|
|
443
443
|
return this.conditionStack.length;
|
|
444
444
|
},
|
|
445
445
|
options: { "case-insensitive": !0 },
|
|
446
|
-
performAction: function(f, k,
|
|
447
|
-
switch (
|
|
446
|
+
performAction: function(f, k, y, A) {
|
|
447
|
+
switch (y) {
|
|
448
448
|
case 0:
|
|
449
449
|
return 5;
|
|
450
450
|
case 1:
|
|
@@ -992,8 +992,8 @@ const ee = function(t, e) {
|
|
|
992
992
|
getActorProperty: Qe,
|
|
993
993
|
getAccTitle: me,
|
|
994
994
|
getBoxes: $e,
|
|
995
|
-
getDiagramTitle:
|
|
996
|
-
setDiagramTitle:
|
|
995
|
+
getDiagramTitle: ye,
|
|
996
|
+
setDiagramTitle: be,
|
|
997
997
|
getConfig: () => lt().sequence,
|
|
998
998
|
clear: je,
|
|
999
999
|
parseMessage: Xe,
|
|
@@ -1141,8 +1141,8 @@ const ee = function(t, e) {
|
|
|
1141
1141
|
if (g.attr("class", "actorPopupMenuPanel" + x), g.attr("x", d.x), g.attr("y", d.height), g.attr("fill", d.fill), g.attr("stroke", d.stroke), g.attr("width", E), g.attr("height", d.height), g.attr("rx", d.rx), g.attr("ry", d.ry), i != null) {
|
|
1142
1142
|
var m = 20;
|
|
1143
1143
|
for (let I in i) {
|
|
1144
|
-
var w = r.append("a"),
|
|
1145
|
-
w.attr("xlink:href",
|
|
1144
|
+
var w = r.append("a"), L = Kt.sanitizeUrl(i[I]);
|
|
1145
|
+
w.attr("xlink:href", L), w.attr("target", "_blank"), f0(a)(
|
|
1146
1146
|
I,
|
|
1147
1147
|
w,
|
|
1148
1148
|
d.x + 10,
|
|
@@ -1157,7 +1157,7 @@ const ee = function(t, e) {
|
|
|
1157
1157
|
return g.attr("height", m), { height: d.height + m, width: E };
|
|
1158
1158
|
}, r0 = function(t) {
|
|
1159
1159
|
return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
1160
|
-
},
|
|
1160
|
+
}, bt = function(t, e) {
|
|
1161
1161
|
let c = 0, a = 0;
|
|
1162
1162
|
const s = e.text.split(P.lineBreakRegex), [i, l] = Gt(e.fontSize);
|
|
1163
1163
|
let d = [], p = 0, r = () => e.y;
|
|
@@ -1211,7 +1211,7 @@ const ee = function(t, e) {
|
|
|
1211
1211
|
return s + "," + i + " " + (s + l) + "," + i + " " + (s + l) + "," + (i + d - p) + " " + (s + l - p * 1.2) + "," + (i + d) + " " + s + "," + (i + d);
|
|
1212
1212
|
}
|
|
1213
1213
|
const a = t.append("polygon");
|
|
1214
|
-
return a.attr("points", c(e.x, e.y, e.width, e.height, 7)), a.attr("class", "labelBox"), e.y = e.y + e.height / 2,
|
|
1214
|
+
return a.attr("points", c(e.x, e.y, e.width, e.height, 7)), a.attr("class", "labelBox"), e.y = e.y + e.height / 2, bt(t, e), a;
|
|
1215
1215
|
};
|
|
1216
1216
|
let st = -1;
|
|
1217
1217
|
const oe = (t, e, c, a) => {
|
|
@@ -1223,13 +1223,13 @@ const oe = (t, e, c, a) => {
|
|
|
1223
1223
|
const s = a ? e.stopy : e.starty, i = e.x + e.width / 2, l = s + 5, d = t.append("g").lower();
|
|
1224
1224
|
var p = d;
|
|
1225
1225
|
a || (st++, Object.keys(e.links || {}).length && !c.forceMenus && p.attr("onclick", r0(`actor${st}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + st).attr("x1", i).attr("y1", l).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), p = d.append("g"), e.actorCnt = st, e.links != null && p.attr("id", "root-" + st));
|
|
1226
|
-
const r =
|
|
1226
|
+
const r = Lt();
|
|
1227
1227
|
var x = "actor";
|
|
1228
1228
|
e.properties != null && e.properties.class ? x = e.properties.class : r.fill = "#eaeaea", a ? x += ` ${se}` : x += ` ${re}`, r.x = e.x, r.y = s, r.width = e.width, r.height = e.height, r.class = x, r.rx = 3, r.ry = 3;
|
|
1229
1229
|
const E = Vt(p, r);
|
|
1230
1230
|
if (e.rectData = r, e.properties != null && e.properties.icon) {
|
|
1231
1231
|
const m = e.properties.icon.trim();
|
|
1232
|
-
m.charAt(0) === "@" ?
|
|
1232
|
+
m.charAt(0) === "@" ? _e(p, r.x + r.width - 20, r.y + 10, m.substr(1)) : Ie(p, r.x + r.width - 20, r.y + 10, m);
|
|
1233
1233
|
}
|
|
1234
1234
|
Ft(c)(
|
|
1235
1235
|
e.description,
|
|
@@ -1253,7 +1253,7 @@ const oe = (t, e, c, a) => {
|
|
|
1253
1253
|
const d = t.append("g");
|
|
1254
1254
|
let p = "actor-man";
|
|
1255
1255
|
a ? p += ` ${se}` : p += ` ${re}`, d.attr("class", p);
|
|
1256
|
-
const r =
|
|
1256
|
+
const r = Lt();
|
|
1257
1257
|
r.x = e.x, r.y = s, r.fill = "#eaeaea", r.width = e.width, r.height = e.height, r.class = "actor", r.rx = 3, r.ry = 3, d.append("line").attr("id", "actor-man-torso" + st).attr("x1", i).attr("y1", s + 25).attr("x2", i).attr("y2", s + 45), d.append("line").attr("id", "actor-man-arms" + st).attr("x1", i - gt / 2).attr("y1", s + 33).attr("x2", i + gt / 2).attr("y2", s + 33), d.append("line").attr("x1", i - gt / 2).attr("y1", s + 60).attr("x2", i).attr("y2", s + 45), d.append("line").attr("x1", i).attr("y1", s + 45).attr("x2", i + gt / 2 - 2).attr("y2", s + 60);
|
|
1258
1258
|
const x = d.append("circle");
|
|
1259
1259
|
x.attr("cx", e.x + e.width / 2), x.attr("cy", s + 10), x.attr("r", 15), x.attr("width", e.width), x.attr("height", e.height);
|
|
@@ -1290,7 +1290,7 @@ const oe = (t, e, c, a) => {
|
|
|
1290
1290
|
}, c0 = function(t) {
|
|
1291
1291
|
return t.append("g");
|
|
1292
1292
|
}, l0 = function(t, e, c, a, s) {
|
|
1293
|
-
const i =
|
|
1293
|
+
const i = Lt(), l = e.anchored;
|
|
1294
1294
|
i.x = e.startx, i.y = e.starty, i.class = "activation" + s % 3, i.width = e.stopx - e.startx, i.height = c - e.starty, Vt(l, i);
|
|
1295
1295
|
}, d0 = function(t, e, c, a) {
|
|
1296
1296
|
const {
|
|
@@ -1301,21 +1301,21 @@ const oe = (t, e, c, a) => {
|
|
|
1301
1301
|
messageFontFamily: p,
|
|
1302
1302
|
messageFontSize: r,
|
|
1303
1303
|
messageFontWeight: x
|
|
1304
|
-
} = a, E = t.append("g"), g = function(
|
|
1305
|
-
return E.append("line").attr("x1",
|
|
1304
|
+
} = a, E = t.append("g"), g = function(L, I, O, M) {
|
|
1305
|
+
return E.append("line").attr("x1", L).attr("y1", I).attr("x2", O).attr("y2", M).attr("class", "loopLine");
|
|
1306
1306
|
};
|
|
1307
|
-
g(e.startx, e.starty, e.stopx, e.starty), g(e.stopx, e.starty, e.stopx, e.stopy), g(e.startx, e.stopy, e.stopx, e.stopy), g(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(
|
|
1308
|
-
g(e.startx,
|
|
1307
|
+
g(e.startx, e.starty, e.stopx, e.starty), g(e.stopx, e.starty, e.stopx, e.stopy), g(e.startx, e.stopy, e.stopx, e.stopy), g(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(L) {
|
|
1308
|
+
g(e.startx, L.y, e.stopx, L.y).style(
|
|
1309
1309
|
"stroke-dasharray",
|
|
1310
1310
|
"3, 3"
|
|
1311
1311
|
);
|
|
1312
1312
|
});
|
|
1313
1313
|
let m = Yt();
|
|
1314
1314
|
m.text = c, m.x = e.startx, m.y = e.starty, m.fontFamily = p, m.fontSize = r, m.fontWeight = x, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = d || 50, m.height = l || 20, m.textMargin = i, m.class = "labelText", ie(E, m), m = ce(), m.text = e.title, m.x = e.startx + d / 2 + (e.stopx - e.startx) / 2, m.y = e.starty + s + i, m.anchor = "middle", m.valign = "middle", m.textMargin = i, m.class = "loopText", m.fontFamily = p, m.fontSize = r, m.fontWeight = x, m.wrap = !0;
|
|
1315
|
-
let w =
|
|
1316
|
-
return e.sectionTitles !== void 0 && e.sectionTitles.forEach(function(
|
|
1317
|
-
if (
|
|
1318
|
-
m.text =
|
|
1315
|
+
let w = bt(E, m);
|
|
1316
|
+
return e.sectionTitles !== void 0 && e.sectionTitles.forEach(function(L, I) {
|
|
1317
|
+
if (L.message) {
|
|
1318
|
+
m.text = L.message, m.x = e.startx + (e.stopx - e.startx) / 2, m.y = e.sections[I].y + s + i, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = p, m.fontSize = r, m.fontWeight = x, m.wrap = e.wrap, w = bt(E, m);
|
|
1319
1319
|
let O = Math.round(
|
|
1320
1320
|
w.map((M) => (M._groups || M)[0][0].getBBox().height).reduce((M, V) => M + V)
|
|
1321
1321
|
);
|
|
@@ -1323,7 +1323,7 @@ const oe = (t, e, c, a) => {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
}), e.height = Math.round(e.stopy - e.starty), E;
|
|
1325
1325
|
}, ne = function(t, e) {
|
|
1326
|
-
|
|
1326
|
+
Le(t, e);
|
|
1327
1327
|
}, h0 = function(t) {
|
|
1328
1328
|
t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1329
1329
|
"d",
|
|
@@ -1345,7 +1345,7 @@ const oe = (t, e, c, a) => {
|
|
|
1345
1345
|
t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1346
1346
|
}, m0 = function(t) {
|
|
1347
1347
|
t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
|
|
1348
|
-
},
|
|
1348
|
+
}, y0 = function(t) {
|
|
1349
1349
|
t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
|
|
1350
1350
|
}, ce = function() {
|
|
1351
1351
|
return {
|
|
@@ -1362,7 +1362,7 @@ const oe = (t, e, c, a) => {
|
|
|
1362
1362
|
tspan: !0,
|
|
1363
1363
|
valign: void 0
|
|
1364
1364
|
};
|
|
1365
|
-
},
|
|
1365
|
+
}, b0 = function() {
|
|
1366
1366
|
return {
|
|
1367
1367
|
x: 0,
|
|
1368
1368
|
y: 0,
|
|
@@ -1380,9 +1380,9 @@ const oe = (t, e, c, a) => {
|
|
|
1380
1380
|
a(E, x);
|
|
1381
1381
|
}
|
|
1382
1382
|
function e(s, i, l, d, p, r, x, E) {
|
|
1383
|
-
const { actorFontSize: g, actorFontFamily: m, actorFontWeight: w } = E, [
|
|
1383
|
+
const { actorFontSize: g, actorFontFamily: m, actorFontWeight: w } = E, [L, I] = Gt(g), O = s.split(P.lineBreakRegex);
|
|
1384
1384
|
for (let M = 0; M < O.length; M++) {
|
|
1385
|
-
const V = M *
|
|
1385
|
+
const V = M * L - L * (O.length - 1) / 2, S = i.append("text").attr("x", l + p / 2).attr("y", d).style("text-anchor", "middle").style("font-size", I).style("font-weight", w).style("font-family", m);
|
|
1386
1386
|
S.append("tspan").attr("x", l + p / 2).attr("dy", V).text(O[M]), S.attr("y", d + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(S, x);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
@@ -1403,10 +1403,10 @@ const oe = (t, e, c, a) => {
|
|
|
1403
1403
|
a(E, x);
|
|
1404
1404
|
}
|
|
1405
1405
|
function e(s, i, l, d, p, r, x, E) {
|
|
1406
|
-
const { actorFontSize: g, actorFontFamily: m, actorFontWeight: w } = E,
|
|
1407
|
-
for (let I = 0; I <
|
|
1408
|
-
const O = I * g - g * (
|
|
1409
|
-
M.append("tspan").attr("x", l).attr("dy", O).text(
|
|
1406
|
+
const { actorFontSize: g, actorFontFamily: m, actorFontWeight: w } = E, L = s.split(P.lineBreakRegex);
|
|
1407
|
+
for (let I = 0; I < L.length; I++) {
|
|
1408
|
+
const O = I * g - g * (L.length - 1) / 2, M = i.append("text").attr("x", l).attr("y", d).style("text-anchor", "start").style("font-size", g).style("font-weight", w).style("font-family", m);
|
|
1409
|
+
M.append("tspan").attr("x", l).attr("dy", O).text(L[I]), M.attr("y", d + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(M, x);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
function c(s, i, l, d, p, r, x, E) {
|
|
@@ -1422,7 +1422,7 @@ const oe = (t, e, c, a) => {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
}(), R = {
|
|
1424
1424
|
drawRect: Vt,
|
|
1425
|
-
drawText:
|
|
1425
|
+
drawText: bt,
|
|
1426
1426
|
drawLabel: ie,
|
|
1427
1427
|
drawActor: o0,
|
|
1428
1428
|
drawBox: n0,
|
|
@@ -1434,12 +1434,12 @@ const oe = (t, e, c, a) => {
|
|
|
1434
1434
|
insertArrowHead: u0,
|
|
1435
1435
|
insertArrowFilledHead: x0,
|
|
1436
1436
|
insertSequenceNumber: m0,
|
|
1437
|
-
insertArrowCrossHead:
|
|
1437
|
+
insertArrowCrossHead: y0,
|
|
1438
1438
|
insertDatabaseIcon: h0,
|
|
1439
1439
|
insertComputerIcon: p0,
|
|
1440
1440
|
insertClockIcon: g0,
|
|
1441
1441
|
getTextObj: ce,
|
|
1442
|
-
getNoteRect:
|
|
1442
|
+
getNoteRect: b0,
|
|
1443
1443
|
fixLifeLineHeights: oe,
|
|
1444
1444
|
sanitizeUrl: Kt.sanitizeUrl
|
|
1445
1445
|
};
|
|
@@ -1525,7 +1525,7 @@ const u = {
|
|
|
1525
1525
|
this.updateVal(u.data, "startx", s, Math.min), this.updateVal(u.data, "starty", l, Math.min), this.updateVal(u.data, "stopx", i, Math.max), this.updateVal(u.data, "stopy", d, Math.max), this.updateBounds(s, l, i, d);
|
|
1526
1526
|
},
|
|
1527
1527
|
newActivation: function(t, e, c) {
|
|
1528
|
-
const a = c[t.from.actor], s =
|
|
1528
|
+
const a = c[t.from.actor], s = _t(t.from.actor).length || 0, i = a.x + a.width / 2 + (s - 1) * o.activationWidth / 2;
|
|
1529
1529
|
this.activations.push({
|
|
1530
1530
|
startx: i,
|
|
1531
1531
|
starty: this.verticalPos + 2,
|
|
@@ -1584,11 +1584,11 @@ const u = {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
}, E0 = function(t, e) {
|
|
1586
1586
|
u.bumpVerticalPos(o.boxMargin), e.height = o.boxMargin, e.starty = u.getVerticalPos();
|
|
1587
|
-
const c =
|
|
1587
|
+
const c = Lt();
|
|
1588
1588
|
c.x = e.startx, c.y = e.starty, c.width = e.width || o.width, c.class = "note";
|
|
1589
1589
|
const a = t.append("g"), s = R.drawRect(a, c), i = Yt();
|
|
1590
1590
|
i.x = e.startx, i.y = e.starty, i.width = c.width, i.dy = "1em", i.text = e.message, i.class = "noteText", i.fontFamily = o.noteFontFamily, i.fontSize = o.noteFontSize, i.fontWeight = o.noteFontWeight, i.anchor = o.noteAlign, i.textMargin = o.noteMargin, i.valign = "center";
|
|
1591
|
-
const l =
|
|
1591
|
+
const l = bt(a, i), d = Math.round(
|
|
1592
1592
|
l.map((p) => (p._groups || p)[0][0].getBBox().height).reduce((p, r) => p + r)
|
|
1593
1593
|
);
|
|
1594
1594
|
s.attr("height", d + 2 * o.noteMargin), e.height += d + 2 * o.noteMargin, u.bumpVerticalPos(d + 2 * o.noteMargin), e.stopy = e.starty + d + 2 * o.noteMargin, e.stopx = e.startx + c.width, u.insert(e.startx, e.starty, e.stopx, e.stopy), u.models.addNote(e);
|
|
@@ -1596,7 +1596,7 @@ const u = {
|
|
|
1596
1596
|
fontFamily: t.messageFontFamily,
|
|
1597
1597
|
fontSize: t.messageFontSize,
|
|
1598
1598
|
fontWeight: t.messageFontWeight
|
|
1599
|
-
}),
|
|
1599
|
+
}), yt = (t) => ({
|
|
1600
1600
|
fontFamily: t.noteFontFamily,
|
|
1601
1601
|
fontSize: t.noteFontSize,
|
|
1602
1602
|
fontWeight: t.noteFontWeight
|
|
@@ -1626,7 +1626,7 @@ function T0(t, e) {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
const w0 = function(t, e, c, a) {
|
|
1628
1628
|
const { startx: s, stopx: i, starty: l, message: d, type: p, sequenceIndex: r, sequenceVisible: x } = e, E = $.calculateTextDimensions(d, xt(o)), g = Yt();
|
|
1629
|
-
g.x = s, g.y = l + 10, g.width = i - s, g.class = "messageText", g.dy = "1em", g.text = d, g.fontFamily = o.messageFontFamily, g.fontSize = o.messageFontSize, g.fontWeight = o.messageFontWeight, g.anchor = o.messageAlign, g.valign = "center", g.textMargin = o.wrapPadding, g.tspan = !1,
|
|
1629
|
+
g.x = s, g.y = l + 10, g.width = i - s, g.class = "messageText", g.dy = "1em", g.text = d, g.fontFamily = o.messageFontFamily, g.fontSize = o.messageFontSize, g.fontWeight = o.messageFontWeight, g.anchor = o.messageAlign, g.valign = "center", g.textMargin = o.wrapPadding, g.tspan = !1, bt(t, g);
|
|
1630
1630
|
const m = E.width;
|
|
1631
1631
|
let w;
|
|
1632
1632
|
s === i ? o.rightAngles ? w = t.append("path").attr(
|
|
@@ -1636,8 +1636,8 @@ const w0 = function(t, e, c, a) {
|
|
|
1636
1636
|
"d",
|
|
1637
1637
|
"M " + s + "," + c + " C " + (s + 60) + "," + (c - 10) + " " + (s + 60) + "," + (c + 30) + " " + s + "," + (c + 20)
|
|
1638
1638
|
) : (w = t.append("line"), w.attr("x1", s), w.attr("y1", c), w.attr("x2", i), w.attr("y2", c)), p === a.db.LINETYPE.DOTTED || p === a.db.LINETYPE.DOTTED_CROSS || p === a.db.LINETYPE.DOTTED_POINT || p === a.db.LINETYPE.DOTTED_OPEN ? (w.style("stroke-dasharray", "3, 3"), w.attr("class", "messageLine1")) : w.attr("class", "messageLine0");
|
|
1639
|
-
let
|
|
1640
|
-
o.arrowMarkerAbsolute && (
|
|
1639
|
+
let L = "";
|
|
1640
|
+
o.arrowMarkerAbsolute && (L = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, L = L.replace(/\(/g, "\\("), L = L.replace(/\)/g, "\\)")), w.attr("stroke-width", 2), w.attr("stroke", "none"), w.style("fill", "none"), (p === a.db.LINETYPE.SOLID || p === a.db.LINETYPE.DOTTED) && w.attr("marker-end", "url(" + L + "#arrowhead)"), (p === a.db.LINETYPE.SOLID_POINT || p === a.db.LINETYPE.DOTTED_POINT) && w.attr("marker-end", "url(" + L + "#filled-head)"), (p === a.db.LINETYPE.SOLID_CROSS || p === a.db.LINETYPE.DOTTED_CROSS) && w.attr("marker-end", "url(" + L + "#crosshead)"), (x || o.showSequenceNumbers) && (w.attr("marker-start", "url(" + L + "#sequencenumber)"), t.append("text").attr("x", s).attr("y", c + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(r));
|
|
1641
1641
|
}, P0 = function(t, e, c, a, s, i, l) {
|
|
1642
1642
|
let d = 0, p = 0, r, x = 0;
|
|
1643
1643
|
for (const E of a) {
|
|
@@ -1664,7 +1664,7 @@ const w0 = function(t, e, c, a) {
|
|
|
1664
1664
|
}, le = function(t, e, c, a) {
|
|
1665
1665
|
let s = 0, i = 0;
|
|
1666
1666
|
for (const l of c) {
|
|
1667
|
-
const d = e[l], p =
|
|
1667
|
+
const d = e[l], p = _0(d), r = R.drawPopup(
|
|
1668
1668
|
t,
|
|
1669
1669
|
d,
|
|
1670
1670
|
p,
|
|
@@ -1677,12 +1677,12 @@ const w0 = function(t, e, c, a) {
|
|
|
1677
1677
|
return { maxHeight: s, maxWidth: i };
|
|
1678
1678
|
}, de = function(t) {
|
|
1679
1679
|
Pe(o, t), t.fontFamily && (o.actorFontFamily = o.noteFontFamily = o.messageFontFamily = t.fontFamily), t.fontSize && (o.actorFontSize = o.noteFontSize = o.messageFontSize = t.fontSize), t.fontWeight && (o.actorFontWeight = o.noteFontWeight = o.messageFontWeight = t.fontWeight);
|
|
1680
|
-
},
|
|
1680
|
+
}, _t = function(t) {
|
|
1681
1681
|
return u.activations.filter(function(e) {
|
|
1682
1682
|
return e.actor === t;
|
|
1683
1683
|
});
|
|
1684
1684
|
}, Xt = function(t, e) {
|
|
1685
|
-
const c = e[t], a =
|
|
1685
|
+
const c = e[t], a = _t(t), s = a.reduce(function(l, d) {
|
|
1686
1686
|
return P.getMin(l, d.startx);
|
|
1687
1687
|
}, c.x + c.width / 2 - 1), i = a.reduce(function(l, d) {
|
|
1688
1688
|
return P.getMax(l, d.stopx);
|
|
@@ -1755,80 +1755,80 @@ const k0 = function(t, e, c, a) {
|
|
|
1755
1755
|
u.init(), j.debug(a.db);
|
|
1756
1756
|
const r = s === "sandbox" ? d.select(`[id="${e}"]`) : vt(`[id="${e}"]`), x = a.db.getActors(), E = a.db.getCreatedActors(), g = a.db.getDestroyedActors(), m = a.db.getBoxes();
|
|
1757
1757
|
let w = a.db.getActorKeys();
|
|
1758
|
-
const
|
|
1758
|
+
const L = a.db.getMessages(), I = a.db.getDiagramTitle(), O = a.db.hasAtLeastOneBox(), M = a.db.hasAtLeastOneBoxWithTitle(), V = L0(x, L, a);
|
|
1759
1759
|
if (o.height = I0(x, V, m), R.insertComputerIcon(r), R.insertDatabaseIcon(r), R.insertClockIcon(r), O && (u.bumpVerticalPos(o.boxMargin), M && u.bumpVerticalPos(m[0].textMaxHeight)), o.hideUnusedParticipants === !0) {
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}), w = w.filter((v) =>
|
|
1760
|
+
const b = /* @__PURE__ */ new Set();
|
|
1761
|
+
L.forEach((v) => {
|
|
1762
|
+
b.add(v.from), b.add(v.to);
|
|
1763
|
+
}), w = w.filter((v) => b.has(v));
|
|
1764
1764
|
}
|
|
1765
|
-
P0(r, x, E, w, 0,
|
|
1766
|
-
const S = A0(
|
|
1765
|
+
P0(r, x, E, w, 0, L, !1);
|
|
1766
|
+
const S = A0(L, x, V, a);
|
|
1767
1767
|
R.insertArrowHead(r), R.insertArrowCrossHead(r), R.insertArrowFilledHead(r), R.insertSequenceNumber(r);
|
|
1768
|
-
function tt(
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1768
|
+
function tt(b, v) {
|
|
1769
|
+
const _ = u.endActivation(b);
|
|
1770
|
+
_.starty + 18 > v && (_.starty = v - 6, v += 12), R.drawActivation(
|
|
1771
1771
|
r,
|
|
1772
|
-
|
|
1772
|
+
_,
|
|
1773
1773
|
v,
|
|
1774
1774
|
o,
|
|
1775
|
-
|
|
1776
|
-
), u.insert(
|
|
1775
|
+
_t(b.from.actor).length
|
|
1776
|
+
), u.insert(_.startx, v - 10, _.stopx, v);
|
|
1777
1777
|
}
|
|
1778
1778
|
let F = 1, X = 1;
|
|
1779
1779
|
const G = [], W = [];
|
|
1780
|
-
|
|
1781
|
-
let
|
|
1782
|
-
switch (
|
|
1780
|
+
L.forEach(function(b, v) {
|
|
1781
|
+
let _, dt, et;
|
|
1782
|
+
switch (b.type) {
|
|
1783
1783
|
case a.db.LINETYPE.NOTE:
|
|
1784
|
-
u.resetVerticalPos(), dt =
|
|
1784
|
+
u.resetVerticalPos(), dt = b.noteModel, E0(r, dt);
|
|
1785
1785
|
break;
|
|
1786
1786
|
case a.db.LINETYPE.ACTIVE_START:
|
|
1787
|
-
u.newActivation(
|
|
1787
|
+
u.newActivation(b, r, x);
|
|
1788
1788
|
break;
|
|
1789
1789
|
case a.db.LINETYPE.ACTIVE_END:
|
|
1790
|
-
tt(
|
|
1790
|
+
tt(b, u.getVerticalPos());
|
|
1791
1791
|
break;
|
|
1792
1792
|
case a.db.LINETYPE.LOOP_START:
|
|
1793
1793
|
rt(
|
|
1794
1794
|
S,
|
|
1795
|
-
|
|
1795
|
+
b,
|
|
1796
1796
|
o.boxMargin,
|
|
1797
1797
|
o.boxMargin + o.boxTextMargin,
|
|
1798
1798
|
(N) => u.newLoop(N)
|
|
1799
1799
|
);
|
|
1800
1800
|
break;
|
|
1801
1801
|
case a.db.LINETYPE.LOOP_END:
|
|
1802
|
-
|
|
1802
|
+
_ = u.endLoop(), R.drawLoop(r, _, "loop", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1803
1803
|
break;
|
|
1804
1804
|
case a.db.LINETYPE.RECT_START:
|
|
1805
1805
|
rt(
|
|
1806
1806
|
S,
|
|
1807
|
-
|
|
1807
|
+
b,
|
|
1808
1808
|
o.boxMargin,
|
|
1809
1809
|
o.boxMargin,
|
|
1810
1810
|
(N) => u.newLoop(void 0, N.message)
|
|
1811
1811
|
);
|
|
1812
1812
|
break;
|
|
1813
1813
|
case a.db.LINETYPE.RECT_END:
|
|
1814
|
-
|
|
1814
|
+
_ = u.endLoop(), W.push(_), u.models.addLoop(_), u.bumpVerticalPos(_.stopy - u.getVerticalPos());
|
|
1815
1815
|
break;
|
|
1816
1816
|
case a.db.LINETYPE.OPT_START:
|
|
1817
1817
|
rt(
|
|
1818
1818
|
S,
|
|
1819
|
-
|
|
1819
|
+
b,
|
|
1820
1820
|
o.boxMargin,
|
|
1821
1821
|
o.boxMargin + o.boxTextMargin,
|
|
1822
1822
|
(N) => u.newLoop(N)
|
|
1823
1823
|
);
|
|
1824
1824
|
break;
|
|
1825
1825
|
case a.db.LINETYPE.OPT_END:
|
|
1826
|
-
|
|
1826
|
+
_ = u.endLoop(), R.drawLoop(r, _, "opt", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1827
1827
|
break;
|
|
1828
1828
|
case a.db.LINETYPE.ALT_START:
|
|
1829
1829
|
rt(
|
|
1830
1830
|
S,
|
|
1831
|
-
|
|
1831
|
+
b,
|
|
1832
1832
|
o.boxMargin,
|
|
1833
1833
|
o.boxMargin + o.boxTextMargin,
|
|
1834
1834
|
(N) => u.newLoop(N)
|
|
@@ -1837,20 +1837,20 @@ const k0 = function(t, e, c, a) {
|
|
|
1837
1837
|
case a.db.LINETYPE.ALT_ELSE:
|
|
1838
1838
|
rt(
|
|
1839
1839
|
S,
|
|
1840
|
-
|
|
1840
|
+
b,
|
|
1841
1841
|
o.boxMargin + o.boxTextMargin,
|
|
1842
1842
|
o.boxMargin,
|
|
1843
1843
|
(N) => u.addSectionToLoop(N)
|
|
1844
1844
|
);
|
|
1845
1845
|
break;
|
|
1846
1846
|
case a.db.LINETYPE.ALT_END:
|
|
1847
|
-
|
|
1847
|
+
_ = u.endLoop(), R.drawLoop(r, _, "alt", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1848
1848
|
break;
|
|
1849
1849
|
case a.db.LINETYPE.PAR_START:
|
|
1850
1850
|
case a.db.LINETYPE.PAR_OVER_START:
|
|
1851
1851
|
rt(
|
|
1852
1852
|
S,
|
|
1853
|
-
|
|
1853
|
+
b,
|
|
1854
1854
|
o.boxMargin,
|
|
1855
1855
|
o.boxMargin + o.boxTextMargin,
|
|
1856
1856
|
(N) => u.newLoop(N)
|
|
@@ -1859,22 +1859,22 @@ const k0 = function(t, e, c, a) {
|
|
|
1859
1859
|
case a.db.LINETYPE.PAR_AND:
|
|
1860
1860
|
rt(
|
|
1861
1861
|
S,
|
|
1862
|
-
|
|
1862
|
+
b,
|
|
1863
1863
|
o.boxMargin + o.boxTextMargin,
|
|
1864
1864
|
o.boxMargin,
|
|
1865
1865
|
(N) => u.addSectionToLoop(N)
|
|
1866
1866
|
);
|
|
1867
1867
|
break;
|
|
1868
1868
|
case a.db.LINETYPE.PAR_END:
|
|
1869
|
-
|
|
1869
|
+
_ = u.endLoop(), R.drawLoop(r, _, "par", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1870
1870
|
break;
|
|
1871
1871
|
case a.db.LINETYPE.AUTONUMBER:
|
|
1872
|
-
F =
|
|
1872
|
+
F = b.message.start || F, X = b.message.step || X, b.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
|
|
1873
1873
|
break;
|
|
1874
1874
|
case a.db.LINETYPE.CRITICAL_START:
|
|
1875
1875
|
rt(
|
|
1876
1876
|
S,
|
|
1877
|
-
|
|
1877
|
+
b,
|
|
1878
1878
|
o.boxMargin,
|
|
1879
1879
|
o.boxMargin + o.boxTextMargin,
|
|
1880
1880
|
(N) => u.newLoop(N)
|
|
@@ -1883,33 +1883,33 @@ const k0 = function(t, e, c, a) {
|
|
|
1883
1883
|
case a.db.LINETYPE.CRITICAL_OPTION:
|
|
1884
1884
|
rt(
|
|
1885
1885
|
S,
|
|
1886
|
-
|
|
1886
|
+
b,
|
|
1887
1887
|
o.boxMargin + o.boxTextMargin,
|
|
1888
1888
|
o.boxMargin,
|
|
1889
1889
|
(N) => u.addSectionToLoop(N)
|
|
1890
1890
|
);
|
|
1891
1891
|
break;
|
|
1892
1892
|
case a.db.LINETYPE.CRITICAL_END:
|
|
1893
|
-
|
|
1893
|
+
_ = u.endLoop(), R.drawLoop(r, _, "critical", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1894
1894
|
break;
|
|
1895
1895
|
case a.db.LINETYPE.BREAK_START:
|
|
1896
1896
|
rt(
|
|
1897
1897
|
S,
|
|
1898
|
-
|
|
1898
|
+
b,
|
|
1899
1899
|
o.boxMargin,
|
|
1900
1900
|
o.boxMargin + o.boxTextMargin,
|
|
1901
1901
|
(N) => u.newLoop(N)
|
|
1902
1902
|
);
|
|
1903
1903
|
break;
|
|
1904
1904
|
case a.db.LINETYPE.BREAK_END:
|
|
1905
|
-
|
|
1905
|
+
_ = u.endLoop(), R.drawLoop(r, _, "break", o), u.bumpVerticalPos(_.stopy - u.getVerticalPos()), u.models.addLoop(_);
|
|
1906
1906
|
break;
|
|
1907
1907
|
default:
|
|
1908
1908
|
try {
|
|
1909
|
-
et =
|
|
1909
|
+
et = b.msgModel, et.starty = u.getVerticalPos(), et.sequenceIndex = F, et.sequenceVisible = a.db.showSequenceNumbers();
|
|
1910
1910
|
const N = T0(r, et);
|
|
1911
1911
|
v0(
|
|
1912
|
-
|
|
1912
|
+
b,
|
|
1913
1913
|
et,
|
|
1914
1914
|
N,
|
|
1915
1915
|
v,
|
|
@@ -1930,9 +1930,9 @@ const k0 = function(t, e, c, a) {
|
|
|
1930
1930
|
a.db.LINETYPE.DOTTED_CROSS,
|
|
1931
1931
|
a.db.LINETYPE.SOLID_POINT,
|
|
1932
1932
|
a.db.LINETYPE.DOTTED_POINT
|
|
1933
|
-
].includes(
|
|
1934
|
-
}), j.debug("createdActors", E), j.debug("destroyedActors", g), $t(r, x, w, !1), G.forEach((
|
|
1935
|
-
|
|
1933
|
+
].includes(b.type) && (F = F + X);
|
|
1934
|
+
}), j.debug("createdActors", E), j.debug("destroyedActors", g), $t(r, x, w, !1), G.forEach((b) => w0(r, b.messageModel, b.lineStartY, a)), o.mirrorActors && $t(r, x, w, !0), W.forEach((b) => R.drawBackgroundRect(r, b)), oe(r, x, w, o), u.models.boxes.forEach(function(b) {
|
|
1935
|
+
b.height = u.getVerticalPos() - b.y, u.insert(b.x, b.y, b.x + b.width, b.height), b.startx = b.x, b.starty = b.y, b.stopx = b.startx + b.width, b.stopy = b.starty + b.height, b.stroke = "rgb(0,0,0, 0.5)", R.drawBox(r, b, o);
|
|
1936
1936
|
}), O && u.bumpVerticalPos(o.boxMargin);
|
|
1937
1937
|
const B = le(r, x, w, p), { bounds: C } = u.getBounds();
|
|
1938
1938
|
let K = C.stopy - C.starty;
|
|
@@ -1949,14 +1949,14 @@ const k0 = function(t, e, c, a) {
|
|
|
1949
1949
|
C.startx - o.diagramMarginX + " -" + (o.diagramMarginY + Z) + " " + J + " " + (q + Z)
|
|
1950
1950
|
), j.debug("models:", u.models);
|
|
1951
1951
|
};
|
|
1952
|
-
function
|
|
1952
|
+
function L0(t, e, c) {
|
|
1953
1953
|
const a = {};
|
|
1954
1954
|
return e.forEach(function(s) {
|
|
1955
1955
|
if (t[s.to] && t[s.from]) {
|
|
1956
1956
|
const i = t[s.to];
|
|
1957
1957
|
if (s.placement === c.db.PLACEMENT.LEFTOF && !i.prevActor || s.placement === c.db.PLACEMENT.RIGHTOF && !i.nextActor)
|
|
1958
1958
|
return;
|
|
1959
|
-
const l = s.placement !== void 0, d = !l, p = l ?
|
|
1959
|
+
const l = s.placement !== void 0, d = !l, p = l ? yt(o) : xt(o), r = s.wrap ? $.wrapLabel(s.message, o.width - 2 * o.wrapPadding, p) : s.message, x = $.calculateTextDimensions(r, p).width + 2 * o.wrapPadding;
|
|
1960
1960
|
d && s.from === i.nextActor ? a[s.to] = P.getMax(
|
|
1961
1961
|
a[s.to] || 0,
|
|
1962
1962
|
x
|
|
@@ -1985,7 +1985,7 @@ function _0(t, e, c) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}), j.debug("maxMessageWidthPerActor:", a), a;
|
|
1987
1987
|
}
|
|
1988
|
-
const
|
|
1988
|
+
const _0 = function(t) {
|
|
1989
1989
|
let e = 0;
|
|
1990
1990
|
const c = Ct(o);
|
|
1991
1991
|
for (const a in t.links) {
|
|
@@ -2036,8 +2036,8 @@ function I0(t, e, c) {
|
|
|
2036
2036
|
const N0 = function(t, e, c) {
|
|
2037
2037
|
const a = e[t.from].x, s = e[t.to].x, i = t.wrap && t.message;
|
|
2038
2038
|
let l = $.calculateTextDimensions(
|
|
2039
|
-
i ? $.wrapLabel(t.message, o.width,
|
|
2040
|
-
|
|
2039
|
+
i ? $.wrapLabel(t.message, o.width, yt(o)) : t.message,
|
|
2040
|
+
yt(o)
|
|
2041
2041
|
);
|
|
2042
2042
|
const d = {
|
|
2043
2043
|
width: i ? o.width : P.getMax(o.width, l.width + 2 * o.noteMargin),
|
|
@@ -2058,9 +2058,9 @@ const N0 = function(t, e, c) {
|
|
|
2058
2058
|
i ? $.wrapLabel(
|
|
2059
2059
|
t.message,
|
|
2060
2060
|
P.getMax(o.width, e[t.from].width),
|
|
2061
|
-
|
|
2061
|
+
yt(o)
|
|
2062
2062
|
) : t.message,
|
|
2063
|
-
|
|
2063
|
+
yt(o)
|
|
2064
2064
|
), d.width = i ? P.getMax(o.width, e[t.from].width) : P.getMax(
|
|
2065
2065
|
e[t.from].width,
|
|
2066
2066
|
o.width,
|
|
@@ -2068,7 +2068,7 @@ const N0 = function(t, e, c) {
|
|
|
2068
2068
|
), d.startx = a + (e[t.from].width - d.width) / 2) : (d.width = Math.abs(a + e[t.from].width / 2 - (s + e[t.to].width / 2)) + o.actorMargin, d.startx = a < s ? a + e[t.from].width / 2 - o.actorMargin / 2 : s + e[t.to].width / 2 - o.actorMargin / 2), i && (d.message = $.wrapLabel(
|
|
2069
2069
|
t.message,
|
|
2070
2070
|
d.width - 2 * o.wrapPadding,
|
|
2071
|
-
|
|
2071
|
+
yt(o)
|
|
2072
2072
|
)), j.debug(
|
|
2073
2073
|
`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`
|
|
2074
2074
|
), d;
|
|
@@ -2086,7 +2086,7 @@ const N0 = function(t, e, c) {
|
|
|
2086
2086
|
return {};
|
|
2087
2087
|
const [a, s] = Xt(t.from, e), [i, l] = Xt(t.to, e), d = a <= i, p = d ? s : a;
|
|
2088
2088
|
let r = d ? i : l;
|
|
2089
|
-
const x = Math.abs(i - l) > 2, E = (
|
|
2089
|
+
const x = Math.abs(i - l) > 2, E = (L) => d ? -L : L;
|
|
2090
2090
|
t.from === t.to ? r = p : (t.activate && !x && (r += E(o.activationWidth / 2 - 1)), [c.db.LINETYPE.SOLID_OPEN, c.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (r += E(3)));
|
|
2091
2091
|
const g = [a, s, i, l], m = Math.abs(p - r);
|
|
2092
2092
|
t.wrap && t.message && (t.message = $.wrapLabel(
|
|
@@ -2147,7 +2147,7 @@ const N0 = function(t, e, c) {
|
|
|
2147
2147
|
break;
|
|
2148
2148
|
case a.db.LINETYPE.ACTIVE_START:
|
|
2149
2149
|
{
|
|
2150
|
-
const x = e[r.from ? r.from.actor : r.to.actor], E =
|
|
2150
|
+
const x = e[r.from ? r.from.actor : r.to.actor], E = _t(r.from ? r.from.actor : r.to.actor).length, g = x.x + x.width / 2 + (E - 1) * o.activationWidth / 2, m = {
|
|
2151
2151
|
startx: g,
|
|
2152
2152
|
stopx: g + o.activationWidth,
|
|
2153
2153
|
actor: r.from.actor,
|