@antdv-next/x 1.2.0 → 1.2.1-beta.1
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/actions/ActionsFeedback.js +1 -1
- package/dist/actions/ActionsItem.js +1 -1
- package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +2 -1
- package/dist/code-highlighter/shiki.js +1 -1
- package/dist/code-highlighter/style/index.d.ts +40 -0
- package/dist/code-highlighter/style/index.js +25 -13
- package/dist/folder/Folder.js +2 -1
- package/dist/index.umd.js +63 -40
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/sender/components/SlotTextArea.js +3 -2
- package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
- package/dist/sender/hooks/use-speech.js +2 -1
- package/dist/suggestion/useActive.js +0 -2
- package/dist/theme/themes/seed.js +3 -0
- package/dist/theme/util/alias.js +5 -5
- package/dist/think/Think.js +3 -2
- package/dist/thought-chain/Node.js +3 -2
- package/dist/thought-chain/ThoughtChain.js +2 -2
- package/dist/x-provider/index.js +3 -2
- package/es/Serializer-Sc9uEpQk.js +262 -0
- package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-CrbncDqR.js} +2 -2
- package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-B-qU_Imh.js} +9 -9
- package/es/antdv-next-x.esm.js +2887 -2875
- package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
- package/es/architecture-PBZL5I3N-BRGGaMu3.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-OvuktNfv.js} +100 -110
- package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-CS-kh74L.js} +42 -43
- package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-BZGIF4Dk.js} +17 -25
- package/es/{channel-DFgF_2F7.js → channel-DrSSYyxp.js} +1 -1
- package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-Rm8-te6i.js} +1 -1
- package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-Tre45n-8.js} +1 -1
- package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-scch4dXY.js} +10 -10
- package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-JmekSPZP.js} +1 -1
- package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-BEzc6NZw.js} +31 -71
- package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-_l_UVbaa.js} +3 -3
- package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-BUWM8pJz.js} +2 -2
- package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-BSgb_E0Q.js} +11 -11
- package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D602L8pU.js} +1 -1
- package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-BPQV0i93.js} +41 -45
- package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-BMqc3iYa.js} +15 -14
- package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-DcYrzB1X.js} +2 -2
- package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-TuGY6X1n.js} +28 -24
- package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-CKbD02cl.js} +1 -1
- package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-B31ErTFp.js} +19 -17
- package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-DYKLwCEy.js} +1888 -1785
- package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-CRiKEIiS.js} +5 -5
- package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +29 -0
- package/es/{clone-r3YukIBB.js → clone-yzFtXY5G.js} +1 -1
- package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-BM90wTBk.js} +43 -48
- package/es/css-CRY9BUqw.js +2 -0
- package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-B_-hKv4-.js} +276 -321
- package/es/{dagre-5aGJFKmT.js → dagre-DCYVBij1.js} +25 -27
- package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-Ced70SgJ.js} +21 -17
- package/es/{defaultLocale-bckJcYh1.js → defaultLocale-yzzuPw6P.js} +1 -4
- package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-xZCloH_i.js} +72 -70
- package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BTmFZhvz.js} +21 -21
- package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-DX_3B0LB.js} +16 -16
- package/es/{dist-BX_roQzC.js → dist-h4ggShny.js} +1 -1
- package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-MJ_HVY-7.js} +22 -22
- package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-CQIRy1sx.js} +35 -42
- package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-Dw9bjWjx.js} +39 -52
- package/es/gitGraph-HDMCJU4V-oForq_Vw.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js} +21 -21
- package/es/{graphlib-dRkI1OCL.js → graphlib-BMvIh7N7.js} +4 -4
- package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
- package/es/info-3K5VOQVL-0F-ZLEMx.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-CS64-uil.js} +9 -9
- package/es/{init-B75p2clj.js → init-sjaVZO3f.js} +1 -3
- package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
- package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-C_Hw5UnV.js} +13 -13
- package/es/javascript--0qAxhnA.js +2 -0
- package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-CFFyM4Ar.js} +16 -16
- package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-B_R-mA10.js} +27 -28
- package/es/{katex-DCMiIo1z.js → katex-C-qdUNlg.js} +78 -68
- package/es/{line-Cu9NTacD.js → line-D05MESIS.js} +3 -3
- package/es/{linear-C0rAYYmp.js → linear-B8tPH2Pw.js} +4 -6
- package/es/mermaid-parser.core-C_69nk7j.js +259 -0
- package/es/mermaid.core-BVGVwWcu.js +1914 -0
- package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-qgGUYYe3.js} +26 -28
- package/es/{ordinal-F3U6aXtP.js → ordinal-CNQzPcrr.js} +1 -1
- package/es/packet-RMMSAZCW-CeqtQQ_e.js +3 -0
- package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
- package/es/pie-UPGHQEXC-BI60FhK4.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-B8-AVOmP.js} +47 -47
- package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-C2Z0CN4Z.js} +10 -10
- package/es/radar-KQ55EAFF-CRwOOFw0.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-Cdj7PwWC.js} +19 -19
- package/es/{chunk-WQLz0Won.js → rolldown-runtime-CEY2VRuR.js} +10 -3
- package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BNmU-dM1.js} +10 -10
- package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-pj0uPf22.js} +114 -126
- package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-7QG17np_.js} +978 -983
- package/es/{src-CUQ6oOYk.js → src-Dynw_Lub.js} +26 -26
- package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-BgCfMnGb.js} +18 -18
- package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +27 -0
- package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-Bj5QKnBI.js} +10 -10
- package/es/treemap-KZPCXAKY-BlOAFUbR.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-lpWcIvN6.js} +16 -16
- package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-De1M-7Yz.js} +26 -30
- package/package.json +1 -1
- package/es/Serializer-D1JYN1kI.js +0 -262
- package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
- package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
- package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
- package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +0 -41
- package/es/chunk-HHEYEP7N-Cxc7E4dX.js +0 -9
- package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
- package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
- package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
- package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
- package/es/chunk-XPW4576I-B0KVSHwE.js +0 -1146
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
- package/es/css-Bi5OTYo2.js +0 -2
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
- package/es/info-3K5VOQVL-COqdvM99.js +0 -3
- package/es/isEmpty-CmA-HYrg.js +0 -35
- package/es/javascript-CjdDmufJ.js +0 -2
- package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
- package/es/mermaid.core-Bvy_Q6Hu.js +0 -680
- package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
- package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
- /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
- /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
- /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
- /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
- /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
- /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
- /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as e, h as t, p as n } from "./src-
|
|
2
|
-
import { f as r, h as i } from "./chunk-GEFDOKGD-
|
|
3
|
-
import { B as a, C as o, D as s, L as c, P as l, U as u, V as d, W as f, _ as p, a as m, b as h, c as g, i as _, k as v, r as y, s as b, v as x, y as S } from "./chunk-7R4GIKGN-
|
|
4
|
-
import { t as C } from "./dist-
|
|
5
|
-
import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-
|
|
6
|
-
import {
|
|
7
|
-
import { t as M } from "./
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
|
|
2
|
+
import { f as r, h as i } from "./chunk-GEFDOKGD-BEzc6NZw.js";
|
|
3
|
+
import { B as a, C as o, D as s, L as c, P as l, U as u, V as d, W as f, _ as p, a as m, b as h, c as g, i as _, k as v, r as y, s as b, v as x, y as S } from "./chunk-7R4GIKGN-scch4dXY.js";
|
|
4
|
+
import { t as C } from "./dist-h4ggShny.js";
|
|
5
|
+
import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-_l_UVbaa.js";
|
|
6
|
+
import { t as A } from "./chunk-QZHKN3VN-CKbD02cl.js";
|
|
7
|
+
import { n as j, t as M } from "./mermaid.core-BVGVwWcu.js";
|
|
8
8
|
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
|
|
9
9
|
var N = C(), P = (function() {
|
|
10
10
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
@@ -46,7 +46,7 @@ var N = C(), P = (function() {
|
|
|
46
46
|
63,
|
|
47
47
|
64,
|
|
48
48
|
73
|
|
49
|
-
], ee = [1, 74], te = [1, 80],
|
|
49
|
+
], ee = [1, 74], te = [1, 80], L = [1, 81], ne = [1, 82], re = [1, 83], R = [1, 84], z = [1, 85], B = [1, 86], V = [1, 87], H = [1, 88], U = [1, 89], ie = [1, 90], ae = [1, 91], oe = [1, 92], W = [1, 93], se = [1, 94], G = [1, 95], ce = [1, 96], le = [1, 97], ue = [1, 98], de = [1, 99], fe = [1, 100], pe = [1, 101], me = [1, 102], he = [1, 103], ge = [1, 104], _e = [1, 105], ve = [2, 78], ye = [
|
|
50
50
|
4,
|
|
51
51
|
5,
|
|
52
52
|
17,
|
|
@@ -977,9 +977,7 @@ var N = C(), P = (function() {
|
|
|
977
977
|
case 104:
|
|
978
978
|
this.$ = r.LINETYPE.DOTTED_POINT;
|
|
979
979
|
break;
|
|
980
|
-
case 105:
|
|
981
|
-
this.$ = r.parseMessage(a[s].trim().substring(1));
|
|
982
|
-
break;
|
|
980
|
+
case 105: this.$ = r.parseMessage(a[s].trim().substring(1));
|
|
983
981
|
}
|
|
984
982
|
}, "anonymous"),
|
|
985
983
|
table: [
|
|
@@ -1180,18 +1178,18 @@ var N = C(), P = (function() {
|
|
|
1180
1178
|
69: 78,
|
|
1181
1179
|
72: [1, 79],
|
|
1182
1180
|
78: te,
|
|
1183
|
-
79:
|
|
1184
|
-
80:
|
|
1185
|
-
81:
|
|
1186
|
-
82:
|
|
1187
|
-
83:
|
|
1188
|
-
84:
|
|
1189
|
-
85:
|
|
1190
|
-
86:
|
|
1191
|
-
87:
|
|
1192
|
-
88:
|
|
1193
|
-
89:
|
|
1194
|
-
90:
|
|
1181
|
+
79: L,
|
|
1182
|
+
80: ne,
|
|
1183
|
+
81: re,
|
|
1184
|
+
82: R,
|
|
1185
|
+
83: z,
|
|
1186
|
+
84: B,
|
|
1187
|
+
85: V,
|
|
1188
|
+
86: H,
|
|
1189
|
+
87: U,
|
|
1190
|
+
88: ie,
|
|
1191
|
+
89: ae,
|
|
1192
|
+
90: oe,
|
|
1195
1193
|
91: W,
|
|
1196
1194
|
92: se,
|
|
1197
1195
|
93: G,
|
|
@@ -1330,18 +1328,18 @@ var N = C(), P = (function() {
|
|
|
1330
1328
|
{
|
|
1331
1329
|
69: 146,
|
|
1332
1330
|
78: te,
|
|
1333
|
-
79:
|
|
1334
|
-
80:
|
|
1335
|
-
81:
|
|
1336
|
-
82:
|
|
1337
|
-
83:
|
|
1338
|
-
84:
|
|
1339
|
-
85:
|
|
1340
|
-
86:
|
|
1341
|
-
87:
|
|
1342
|
-
88:
|
|
1343
|
-
89:
|
|
1344
|
-
90:
|
|
1331
|
+
79: L,
|
|
1332
|
+
80: ne,
|
|
1333
|
+
81: re,
|
|
1334
|
+
82: R,
|
|
1335
|
+
83: z,
|
|
1336
|
+
84: B,
|
|
1337
|
+
85: V,
|
|
1338
|
+
86: H,
|
|
1339
|
+
87: U,
|
|
1340
|
+
88: ie,
|
|
1341
|
+
89: ae,
|
|
1342
|
+
90: oe,
|
|
1345
1343
|
91: W,
|
|
1346
1344
|
92: se,
|
|
1347
1345
|
93: G,
|
|
@@ -1904,7 +1902,7 @@ var N = C(), P = (function() {
|
|
|
1904
1902
|
var v = h.yylloc;
|
|
1905
1903
|
o.push(v);
|
|
1906
1904
|
var y = h.options && h.options.ranges;
|
|
1907
|
-
typeof g.yy.parseError == "function" ?
|
|
1905
|
+
this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
|
|
1908
1906
|
function b(e) {
|
|
1909
1907
|
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1910
1908
|
}
|
|
@@ -2057,10 +2055,12 @@ var N = C(), P = (function() {
|
|
|
2057
2055
|
if (this._backtrack) {
|
|
2058
2056
|
t = !1;
|
|
2059
2057
|
continue;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2058
|
+
}
|
|
2059
|
+
return !1;
|
|
2060
|
+
}
|
|
2061
|
+
if (!this.options.flex) break;
|
|
2062
2062
|
}
|
|
2063
|
-
return t ? (e = this.test_match(t, i[r]), e
|
|
2063
|
+
return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
2064
2064
|
text: "",
|
|
2065
2065
|
token: null,
|
|
2066
2066
|
line: this.yylineno
|
|
@@ -2488,7 +2488,7 @@ var F = P, I = {
|
|
|
2488
2488
|
LEFTOF: 0,
|
|
2489
2489
|
RIGHTOF: 1,
|
|
2490
2490
|
OVER: 2
|
|
2491
|
-
},
|
|
2491
|
+
}, L = {
|
|
2492
2492
|
ACTOR: "actor",
|
|
2493
2493
|
BOUNDARY: "boundary",
|
|
2494
2494
|
COLLECTIONS: "collections",
|
|
@@ -2497,9 +2497,9 @@ var F = P, I = {
|
|
|
2497
2497
|
ENTITY: "entity",
|
|
2498
2498
|
PARTICIPANT: "participant",
|
|
2499
2499
|
QUEUE: "queue"
|
|
2500
|
-
},
|
|
2500
|
+
}, ne = class {
|
|
2501
2501
|
constructor() {
|
|
2502
|
-
this.state = new
|
|
2502
|
+
this.state = new A(() => ({
|
|
2503
2503
|
prevActor: void 0,
|
|
2504
2504
|
actors: /* @__PURE__ */ new Map(),
|
|
2505
2505
|
createdActors: /* @__PURE__ */ new Map(),
|
|
@@ -2529,7 +2529,7 @@ var F = P, I = {
|
|
|
2529
2529
|
let a = this.state.records.currentBox, o;
|
|
2530
2530
|
if (i !== void 0) {
|
|
2531
2531
|
let e;
|
|
2532
|
-
e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o =
|
|
2532
|
+
e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = j(e, { schema: M });
|
|
2533
2533
|
}
|
|
2534
2534
|
r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
|
|
2535
2535
|
text: o.alias,
|
|
@@ -2649,7 +2649,7 @@ var F = P, I = {
|
|
|
2649
2649
|
extractWrap(e) {
|
|
2650
2650
|
if (e === void 0) return {};
|
|
2651
2651
|
e = e.trim();
|
|
2652
|
-
let t = /^:?wrap:/.exec(e)
|
|
2652
|
+
let t = /^:?wrap:/.exec(e) !== null || /^:?nowrap:/.exec(e) === null && void 0;
|
|
2653
2653
|
return {
|
|
2654
2654
|
cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
|
|
2655
2655
|
wrap: t
|
|
@@ -2876,15 +2876,13 @@ var F = P, I = {
|
|
|
2876
2876
|
case "breakStart":
|
|
2877
2877
|
this.addSignal(void 0, void 0, e.breakText, e.signalType);
|
|
2878
2878
|
break;
|
|
2879
|
-
case "breakEnd":
|
|
2880
|
-
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
2881
|
-
break;
|
|
2879
|
+
case "breakEnd": this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
2882
2880
|
}
|
|
2883
2881
|
}
|
|
2884
2882
|
getConfig() {
|
|
2885
2883
|
return h().sequence;
|
|
2886
2884
|
}
|
|
2887
|
-
},
|
|
2885
|
+
}, re = /* @__PURE__ */ t((e) => `.actor {
|
|
2888
2886
|
stroke: ${e.actorBorder};
|
|
2889
2887
|
fill: ${e.actorBkg};
|
|
2890
2888
|
}
|
|
@@ -3006,9 +3004,9 @@ var F = P, I = {
|
|
|
3006
3004
|
stroke-width: 2px;
|
|
3007
3005
|
}
|
|
3008
3006
|
|
|
3009
|
-
`, "getStyles"),
|
|
3007
|
+
`, "getStyles"), R = 36, z = "actor-top", B = "actor-bottom", V = "actor-box", H = "actor-man", U = /* @__PURE__ */ t(function(e, t) {
|
|
3010
3008
|
return w(e, t);
|
|
3011
|
-
}, "drawRect"),
|
|
3009
|
+
}, "drawRect"), ie = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
3012
3010
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
|
|
3013
3011
|
height: 0,
|
|
3014
3012
|
width: 0
|
|
@@ -3032,9 +3030,9 @@ var F = P, I = {
|
|
|
3032
3030
|
height: s.height + p,
|
|
3033
3031
|
width: d
|
|
3034
3032
|
};
|
|
3035
|
-
}, "drawPopup"),
|
|
3033
|
+
}, "drawPopup"), ae = /* @__PURE__ */ t(function(e) {
|
|
3036
3034
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3037
|
-
}, "popupMenuToggle"),
|
|
3035
|
+
}, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
|
|
3038
3036
|
let r = e.append("foreignObject"), i = await l(t.text, S()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
|
|
3039
3037
|
if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
|
|
3040
3038
|
let n = e.node().firstChild;
|
|
@@ -3062,9 +3060,7 @@ var F = P, I = {
|
|
|
3062
3060
|
d = /* @__PURE__ */ t(() => Math.round(n.y + (i + a + n.textMargin) / 2), "yfunc");
|
|
3063
3061
|
break;
|
|
3064
3062
|
case "bottom":
|
|
3065
|
-
case "end":
|
|
3066
|
-
d = /* @__PURE__ */ t(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
|
|
3067
|
-
break;
|
|
3063
|
+
case "end": d = /* @__PURE__ */ t(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
|
|
3068
3064
|
}
|
|
3069
3065
|
if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
|
|
3070
3066
|
case "left":
|
|
@@ -3076,9 +3072,7 @@ var F = P, I = {
|
|
|
3076
3072
|
n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3077
3073
|
break;
|
|
3078
3074
|
case "right":
|
|
3079
|
-
case "end":
|
|
3080
|
-
n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3081
|
-
break;
|
|
3075
|
+
case "end": n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3082
3076
|
}
|
|
3083
3077
|
for (let [t, r] of o.entries()) {
|
|
3084
3078
|
n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = t * s);
|
|
@@ -3107,16 +3101,16 @@ var F = P, I = {
|
|
|
3107
3101
|
}, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3108
3102
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
|
|
3109
3103
|
var c = s;
|
|
3110
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3104
|
+
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", ae(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
|
|
3111
3105
|
let l = k();
|
|
3112
3106
|
var u = "actor";
|
|
3113
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ?
|
|
3114
|
-
let d =
|
|
3107
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", u += r ? ` ${B}` : ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.rx = 3, l.ry = 3, l.name = t.name;
|
|
3108
|
+
let d = U(c, l);
|
|
3115
3109
|
if (t.rectData = l, t.properties?.icon) {
|
|
3116
3110
|
let e = t.properties.icon.trim();
|
|
3117
3111
|
e.charAt(0) === "@" ? O(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : E(c, l.x + l.width - 20, l.y + 10, e);
|
|
3118
3112
|
}
|
|
3119
|
-
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${
|
|
3113
|
+
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3120
3114
|
let f = t.height;
|
|
3121
3115
|
if (d.node) {
|
|
3122
3116
|
let e = d.node().getBBox();
|
|
@@ -3126,21 +3120,21 @@ var F = P, I = {
|
|
|
3126
3120
|
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3127
3121
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
|
|
3128
3122
|
var c = s;
|
|
3129
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3123
|
+
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", ae(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
|
|
3130
3124
|
let l = k();
|
|
3131
3125
|
var u = "actor";
|
|
3132
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ?
|
|
3126
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", u += r ? ` ${B}` : ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
|
|
3133
3127
|
let d = {
|
|
3134
3128
|
...l,
|
|
3135
3129
|
x: l.x + -6,
|
|
3136
3130
|
y: l.y + 6,
|
|
3137
3131
|
class: "actor"
|
|
3138
|
-
}, f =
|
|
3139
|
-
if (
|
|
3132
|
+
}, f = U(c, l);
|
|
3133
|
+
if (U(c, d), t.rectData = l, t.properties?.icon) {
|
|
3140
3134
|
let e = t.properties.icon.trim();
|
|
3141
3135
|
e.charAt(0) === "@" ? O(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : E(c, l.x + l.width - 20, l.y + 10, e);
|
|
3142
3136
|
}
|
|
3143
|
-
J(n, v(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${
|
|
3137
|
+
J(n, v(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3144
3138
|
let p = t.height;
|
|
3145
3139
|
if (f.node) {
|
|
3146
3140
|
let e = f.node().getBBox();
|
|
@@ -3149,9 +3143,9 @@ var F = P, I = {
|
|
|
3149
3143
|
return p;
|
|
3150
3144
|
}, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3151
3145
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower(), c = s;
|
|
3152
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3146
|
+
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", ae(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
|
|
3153
3147
|
let l = k(), u = "actor";
|
|
3154
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ?
|
|
3148
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", u += r ? ` ${B}` : ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
|
|
3155
3149
|
let d = l.height / 2, f = d / (2.5 + l.height / 50), p = c.append("g"), m = c.append("g");
|
|
3156
3150
|
if (p.append("path").attr("d", `M ${l.x},${l.y + d}
|
|
3157
3151
|
a ${f},${d} 0 0 0 0,${l.height}
|
|
@@ -3163,7 +3157,7 @@ var F = P, I = {
|
|
|
3163
3157
|
let e = t.properties.icon.trim(), n = l.x + l.width - 20, r = l.y + 10;
|
|
3164
3158
|
e.charAt(0) === "@" ? O(c, n, r, e.substr(1)) : E(c, n, r, e);
|
|
3165
3159
|
}
|
|
3166
|
-
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${
|
|
3160
|
+
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3167
3161
|
let h = t.height, g = p.select("path:last-child");
|
|
3168
3162
|
if (g.node()) {
|
|
3169
3163
|
let e = g.node().getBBox();
|
|
@@ -3173,24 +3167,24 @@ var F = P, I = {
|
|
|
3173
3167
|
}, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3174
3168
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower();
|
|
3175
3169
|
r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
|
|
3176
|
-
let c = e.append("g"), l =
|
|
3177
|
-
r ?
|
|
3170
|
+
let c = e.append("g"), l = H;
|
|
3171
|
+
l += r ? ` ${B}` : ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3178
3172
|
let u = k();
|
|
3179
3173
|
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
|
|
3180
3174
|
let d = t.x + t.width / 2, f = i + 32;
|
|
3181
|
-
return c.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), c.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${d}, ${f - 22})`), t.height = c.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 22 + (r ? 5 : 12), u.width, u.height, { class: `actor ${
|
|
3175
|
+
return c.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), c.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${d}, ${f - 22})`), t.height = c.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 22 + (r ? 5 : 12), u.width, u.height, { class: `actor ${H}` }, n), t.height;
|
|
3182
3176
|
}, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3183
3177
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower(), c = e.append("g"), l = "actor";
|
|
3184
|
-
r ?
|
|
3178
|
+
l += r ? ` ${B}` : ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3185
3179
|
let u = k();
|
|
3186
3180
|
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
|
|
3187
3181
|
let d = t.x + t.width / 2, f = i + (r ? 10 : 25);
|
|
3188
|
-
return c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), c.append("line").attr("x1", d - 22).attr("x2", d + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), t.height = c.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G), J(n, v(t.description))(t.description, c, u.x, u.y + (r ? 15 : 30), u.width, u.height, { class: `actor ${
|
|
3182
|
+
return c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), c.append("line").attr("x1", d - 22).attr("x2", d + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), t.height = c.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G), J(n, v(t.description))(t.description, c, u.x, u.y + (r ? 15 : 30), u.width, u.height, { class: `actor ${H}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
|
|
3189
3183
|
}, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3190
3184
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height + 2 * n.boxTextMargin, s = e.append("g").lower(), c = s;
|
|
3191
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3185
|
+
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", ae(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
|
|
3192
3186
|
let l = k(), u = "actor";
|
|
3193
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ?
|
|
3187
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", u += r ? ` ${B}` : ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name, l.x = t.x, l.y = i;
|
|
3194
3188
|
let d = l.width / 3, f = l.width / 3, p = d / 2, m = p / (2.5 + d / 50), h = c.append("g"), g = `
|
|
3195
3189
|
M ${l.x},${l.y + m}
|
|
3196
3190
|
a ${p},${m} 0 0 0 ${d},0
|
|
@@ -3199,25 +3193,25 @@ var F = P, I = {
|
|
|
3199
3193
|
a ${p},${m} 0 0 0 ${d},0
|
|
3200
3194
|
l 0,-${f - 2 * m}
|
|
3201
3195
|
`;
|
|
3202
|
-
h.append("path").attr("d", g).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", u), h.attr("transform", `translate(${d}, ${m})`), t.rectData = l, J(n, v(t.description))(t.description, c, l.x, l.y + 35, l.width, l.height, { class: `actor ${
|
|
3196
|
+
h.append("path").attr("d", g).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", u), h.attr("transform", `translate(${d}, ${m})`), t.rectData = l, J(n, v(t.description))(t.description, c, l.x, l.y + 35, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3203
3197
|
let _ = h.select("path:last-child");
|
|
3204
3198
|
return _.node() && (t.height = _.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), t.height;
|
|
3205
3199
|
}, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3206
3200
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
|
|
3207
3201
|
r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
|
|
3208
|
-
let c = e.append("g"), l =
|
|
3209
|
-
r ?
|
|
3202
|
+
let c = e.append("g"), l = H;
|
|
3203
|
+
l += r ? ` ${B}` : ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3210
3204
|
let u = k();
|
|
3211
|
-
return u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", c.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 -
|
|
3205
|
+
return u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", c.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 55).attr("y1", i + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", i + 12), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 55).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 55).attr("y2", i + 22), c.append("circle").attr("cx", t.x + t.width / 2).attr("cy", i + 12).attr("r", 22), t.height = c.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 15, u.width, u.height, { class: `actor ${H}` }, n), c.attr("transform", "translate(0,21)"), t.height;
|
|
3212
3206
|
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3213
3207
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
|
|
3214
3208
|
r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
|
|
3215
|
-
let c = e.append("g"), l =
|
|
3216
|
-
r ?
|
|
3209
|
+
let c = e.append("g"), l = H;
|
|
3210
|
+
l += r ? ` ${B}` : ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3217
3211
|
let u = k();
|
|
3218
|
-
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", u.rx = 3, u.ry = 3, c.append("line").attr("id", "actor-man-torso" + G).attr("x1", a).attr("y1", i + 25).attr("x2", a).attr("y2", i + 45), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", a -
|
|
3212
|
+
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", u.rx = 3, u.ry = 3, c.append("line").attr("id", "actor-man-torso" + G).attr("x1", a).attr("y1", i + 25).attr("x2", a).attr("y2", i + 45), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", a - R / 2).attr("y1", i + 33).attr("x2", a + R / 2).attr("y2", i + 33), c.append("line").attr("x1", a - R / 2).attr("y1", i + 60).attr("x2", a).attr("y2", i + 45), c.append("line").attr("x1", a).attr("y1", i + 45).attr("x2", a + R / 2 - 2).attr("y2", i + 60);
|
|
3219
3213
|
let d = c.append("circle");
|
|
3220
|
-
return d.attr("cx", t.x + t.width / 2), d.attr("cy", i + 10), d.attr("r", 15), d.attr("width", t.width), d.attr("height", t.height), t.height = c.node().getBBox().height, J(n, v(t.description))(t.description, c, u.x, u.y + 35, u.width, u.height, { class: `actor ${
|
|
3214
|
+
return d.attr("cx", t.x + t.width / 2), d.attr("cy", i + 10), d.attr("r", 15), d.attr("width", t.width), d.attr("height", t.height), t.height = c.node().getBBox().height, J(n, v(t.description))(t.description, c, u.x, u.y + 35, u.width, u.height, { class: `actor ${H}` }, n), t.height;
|
|
3221
3215
|
}, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r) {
|
|
3222
3216
|
switch (t.type) {
|
|
3223
3217
|
case "actor": return await ge(e, t, n, r);
|
|
@@ -3236,7 +3230,7 @@ var F = P, I = {
|
|
|
3236
3230
|
return e.append("g");
|
|
3237
3231
|
}, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
3238
3232
|
let a = k(), o = t.anchored;
|
|
3239
|
-
a.x = t.startx, a.y = t.starty, a.class = "activation" + i % 3, a.width = t.stopx - t.startx, a.height = n - t.starty,
|
|
3233
|
+
a.x = t.startx, a.y = t.starty, a.class = "activation" + i % 3, a.width = t.stopx - t.startx, a.height = n - t.starty, U(o, a);
|
|
3240
3234
|
}, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, r, i) {
|
|
3241
3235
|
let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3242
3236
|
return f.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
|
|
@@ -3246,10 +3240,10 @@ var F = P, I = {
|
|
|
3246
3240
|
});
|
|
3247
3241
|
let m = T();
|
|
3248
3242
|
m.text = r, m.x = n.startx, m.y = n.starty, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = c || 50, m.height = s || 20, m.textMargin = o, m.class = "labelText", se(f, m), m = Oe(), m.text = n.title, m.x = n.startx + c / 2 + (n.stopx - n.startx) / 2, m.y = n.starty + a + o, m.anchor = "middle", m.valign = "middle", m.textMargin = o, m.class = "loopText", m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = !0;
|
|
3249
|
-
let h = v(m.text) ? await
|
|
3243
|
+
let h = v(m.text) ? await oe(f, m, n) : W(f, m);
|
|
3250
3244
|
if (n.sectionTitles !== void 0) {
|
|
3251
3245
|
for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
|
|
3252
|
-
m.text = t.message, m.x = n.startx + (n.stopx - n.startx) / 2, m.y = n.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = n.wrap, v(m.text) ? (n.starty = n.sections[e].y, await
|
|
3246
|
+
m.text = t.message, m.x = n.startx + (n.stopx - n.startx) / 2, m.y = n.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = n.wrap, v(m.text) ? (n.starty = n.sections[e].y, await oe(f, m, n)) : W(f, m);
|
|
3253
3247
|
let r = Math.round(h.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3254
3248
|
n.sections[e].height += r - (a + o);
|
|
3255
3249
|
}
|
|
@@ -3352,12 +3346,12 @@ var F = P, I = {
|
|
|
3352
3346
|
return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
|
|
3353
3347
|
};
|
|
3354
3348
|
})(), Y = {
|
|
3355
|
-
drawRect:
|
|
3349
|
+
drawRect: U,
|
|
3356
3350
|
drawText: W,
|
|
3357
3351
|
drawLabel: se,
|
|
3358
3352
|
drawActor: _e,
|
|
3359
3353
|
drawBox: ve,
|
|
3360
|
-
drawPopup:
|
|
3354
|
+
drawPopup: ie,
|
|
3361
3355
|
anchorElement: ye,
|
|
3362
3356
|
drawActivation: be,
|
|
3363
3357
|
drawLoop: xe,
|
|
@@ -3444,7 +3438,7 @@ var F = P, I = {
|
|
|
3444
3438
|
}, this.verticalPos = 0, Be(h());
|
|
3445
3439
|
}, "init"),
|
|
3446
3440
|
updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3447
|
-
e[t] === void 0 ?
|
|
3441
|
+
e[t] = e[t] === void 0 ? n : r(n, e[t]);
|
|
3448
3442
|
}, "updateVal"),
|
|
3449
3443
|
updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
|
|
3450
3444
|
let a = this, o = 0;
|
|
@@ -3539,36 +3533,32 @@ var F = P, I = {
|
|
|
3539
3533
|
n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
|
|
3540
3534
|
let r = e.append("g"), i = Y.drawRect(r, n), a = T();
|
|
3541
3535
|
a.x = t.startx, a.y = t.starty, a.width = n.width, a.dy = "1em", a.text = t.message, a.class = "noteText", a.fontFamily = X.noteFontFamily, a.fontSize = X.noteFontSize, a.fontWeight = X.noteFontWeight, a.anchor = X.noteAlign, a.textMargin = X.noteMargin, a.valign = "center";
|
|
3542
|
-
let o = v(a.text) ? await
|
|
3536
|
+
let o = v(a.text) ? await oe(r, a) : W(r, a), s = Math.round(o.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3543
3537
|
i.attr("height", s + 2 * X.noteMargin), t.height += s + 2 * X.noteMargin, Z.bumpVerticalPos(s + 2 * X.noteMargin), t.stopy = t.starty + s + 2 * X.noteMargin, t.stopx = t.startx + n.width, Z.insert(t.startx, t.starty, t.stopx, t.stopy), Z.models.addNote(t);
|
|
3544
3538
|
}, "drawNote"), Me = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
|
|
3545
|
-
let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(n, i), g = e.append("g"), _ =
|
|
3546
|
-
let n = e ?
|
|
3539
|
+
let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(n, i), g = e.append("g"), _ = /* @__PURE__ */ t((e, t) => {
|
|
3540
|
+
let n = e ? 16.5 : -16.5;
|
|
3547
3541
|
return t ? -n : n;
|
|
3548
|
-
}, "getCircleOffset"),
|
|
3542
|
+
}, "getCircleOffset"), v = /* @__PURE__ */ t((e) => {
|
|
3549
3543
|
g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3550
|
-
}, "drawCircle"), { CENTRAL_CONNECTION:
|
|
3544
|
+
}, "drawCircle"), { CENTRAL_CONNECTION: y, CENTRAL_CONNECTION_REVERSE: b, CENTRAL_CONNECTION_DUAL: x } = i.db.LINETYPE;
|
|
3551
3545
|
if (d) switch (n.centralConnection) {
|
|
3552
|
-
case
|
|
3553
|
-
h && (p +=
|
|
3554
|
-
break;
|
|
3555
|
-
case x:
|
|
3556
|
-
h || (f += v(m, !1));
|
|
3546
|
+
case y:
|
|
3547
|
+
h && (p += _(m, !0));
|
|
3557
3548
|
break;
|
|
3558
|
-
case
|
|
3559
|
-
h
|
|
3549
|
+
case b:
|
|
3550
|
+
h || (f += _(m, !1));
|
|
3560
3551
|
break;
|
|
3552
|
+
case x: h ? p += _(m, !0) : f += _(m, !1);
|
|
3561
3553
|
}
|
|
3562
3554
|
switch (n.centralConnection) {
|
|
3563
|
-
case
|
|
3564
|
-
|
|
3555
|
+
case y:
|
|
3556
|
+
v(p);
|
|
3565
3557
|
break;
|
|
3566
|
-
case
|
|
3567
|
-
|
|
3568
|
-
break;
|
|
3569
|
-
case S:
|
|
3570
|
-
y(f), y(p);
|
|
3558
|
+
case b:
|
|
3559
|
+
v(f);
|
|
3571
3560
|
break;
|
|
3561
|
+
case x: v(f), v(p);
|
|
3572
3562
|
}
|
|
3573
3563
|
}, "drawCentralConnection"), Q = /* @__PURE__ */ t((e) => ({
|
|
3574
3564
|
fontFamily: e.messageFontFamily,
|
|
@@ -3601,7 +3591,7 @@ async function Fe(e, t) {
|
|
|
3601
3591
|
t(Fe, "boundMessage");
|
|
3602
3592
|
var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
|
|
3603
3593
|
let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = t, m = i.calculateTextDimensions(u, Q(X)), h = T();
|
|
3604
|
-
h.x = o, h.y = l + 10, h.width = c - o, h.class = "messageText", h.dy = "1em", h.text = u, h.fontFamily = X.messageFontFamily, h.fontSize = X.messageFontSize, h.fontWeight = X.messageFontWeight, h.anchor = X.messageAlign, h.valign = "center", h.textMargin = X.wrapPadding, h.tspan = !1, v(h.text) ? await
|
|
3594
|
+
h.x = o, h.y = l + 10, h.width = c - o, h.class = "messageText", h.dy = "1em", h.text = u, h.fontFamily = X.messageFontFamily, h.fontSize = X.messageFontSize, h.fontWeight = X.messageFontWeight, h.anchor = X.messageAlign, h.valign = "center", h.textMargin = X.wrapPadding, h.tspan = !1, v(h.text) ? await oe(e, h, {
|
|
3605
3595
|
startx: o,
|
|
3606
3596
|
stopx: c,
|
|
3607
3597
|
starty: n
|
|
@@ -3687,20 +3677,20 @@ function Ue(e, n, r, i, a, o, s) {
|
|
|
3687
3677
|
}
|
|
3688
3678
|
t(l, "senderAdjustment");
|
|
3689
3679
|
let u = [
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3680
|
+
L.ACTOR,
|
|
3681
|
+
L.CONTROL,
|
|
3682
|
+
L.ENTITY,
|
|
3683
|
+
L.DATABASE
|
|
3694
3684
|
];
|
|
3695
3685
|
if (o.get(e.to) == i) {
|
|
3696
3686
|
let t = a.get(e.to);
|
|
3697
|
-
c(t, u.includes(t.type) ?
|
|
3687
|
+
c(t, u.includes(t.type) ? R / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
|
|
3698
3688
|
} else if (s.get(e.from) == i) {
|
|
3699
3689
|
let t = a.get(e.from);
|
|
3700
|
-
X.mirrorActors && l(t, u.includes(t.type) ?
|
|
3690
|
+
X.mirrorActors && l(t, u.includes(t.type) ? R / 2 : t.width / 2), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
|
|
3701
3691
|
} else if (s.get(e.to) == i) {
|
|
3702
3692
|
let t = a.get(e.to);
|
|
3703
|
-
X.mirrorActors && c(t, u.includes(t.type) ?
|
|
3693
|
+
X.mirrorActors && c(t, u.includes(t.type) ? R / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
|
|
3704
3694
|
}
|
|
3705
3695
|
}
|
|
3706
3696
|
t(Ue, "adjustCreatedDestroyedData");
|
|
@@ -4071,12 +4061,10 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4071
4061
|
Z.activations.push(a);
|
|
4072
4062
|
}
|
|
4073
4063
|
break;
|
|
4074
|
-
case i.db.LINETYPE.ACTIVE_END:
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
}
|
|
4079
|
-
break;
|
|
4064
|
+
case i.db.LINETYPE.ACTIVE_END: {
|
|
4065
|
+
let t = Z.activations.map((e) => e.actor).lastIndexOf(e.from);
|
|
4066
|
+
Z.activations.splice(t, 1).splice(0, 1);
|
|
4067
|
+
}
|
|
4080
4068
|
}
|
|
4081
4069
|
e.placement === void 0 ? (l = tt(e, n, i), e.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((t) => {
|
|
4082
4070
|
if (s = t, l.startx === l.stopx) {
|
|
@@ -4091,7 +4079,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4091
4079
|
}, "calculateLoopBounds"), rt = {
|
|
4092
4080
|
parser: F,
|
|
4093
4081
|
get db() {
|
|
4094
|
-
return new
|
|
4082
|
+
return new ne();
|
|
4095
4083
|
},
|
|
4096
4084
|
renderer: {
|
|
4097
4085
|
bounds: Z,
|
|
@@ -4100,7 +4088,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4100
4088
|
setConf: Be,
|
|
4101
4089
|
draw: We
|
|
4102
4090
|
},
|
|
4103
|
-
styles:
|
|
4091
|
+
styles: re,
|
|
4104
4092
|
init: /* @__PURE__ */ t((e) => {
|
|
4105
4093
|
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, u({ sequence: { wrap: e.wrap } }));
|
|
4106
4094
|
}, "init")
|