@antdv-next/x 1.2.0 → 1.2.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/attachments/index.js +1 -2
- 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 +76 -4
- package/dist/code-highlighter/style/index.js +54 -29
- package/dist/folder/Folder.js +2 -1
- package/dist/index.umd.js +82 -49
- 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/theme/themes/seed.js +3 -0
- package/dist/thought-chain/ThoughtChain.js +2 -2
- package/es/Serializer-Sc9uEpQk.js +262 -0
- package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-BL4DHvHb.js} +2 -2
- package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-CyFYmJd-.js} +3 -3
- package/es/antdv-next-x.esm.js +2708 -2688
- package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
- package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +52 -52
- package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +20 -18
- package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-B7y07WFn.js} +6 -6
- package/es/{channel-DFgF_2F7.js → channel-CxLj88Pg.js} +1 -1
- package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
- package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
- package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-mKY502R8.js} +8 -6
- package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
- package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-oBEpn5hN.js} +7 -7
- package/es/{chunk-GLR3WWYH-DiXcKb5Y.js → chunk-GLR3WWYH-B2D9kjtF.js} +9 -9
- package/es/{chunk-HHEYEP7N-Cxc7E4dX.js → chunk-HHEYEP7N-DcZkCke2.js} +2 -2
- package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
- package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
- package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-33-uii7Y.js} +7 -7
- package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
- package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-CprADZhD.js} +7 -7
- package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-DBAvycZ-.js} +10 -10
- package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
- package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-DIl8TkGX.js} +5 -5
- package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
- package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-Bhp_3T_o.js} +12 -10
- package/es/{chunk-XPW4576I-B0KVSHwE.js → chunk-XPW4576I-255j2Rgd.js} +2 -2
- package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-kjAdbx6i.js} +1589 -1541
- package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-C2IdGsg8.js} +3 -3
- package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
- package/es/{clone-r3YukIBB.js → clone-DIGEZsKS.js} +1 -1
- package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +20 -20
- package/es/css-CRY9BUqw.js +2 -0
- package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-DBPri10E.js} +121 -124
- package/es/{dagre-5aGJFKmT.js → dagre-BHOjJWBG.js} +6 -6
- package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-CnJPDj7X.js} +18 -15
- package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-CBOCgbMd.js} +63 -63
- package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BtubJp0H.js} +20 -20
- package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-CI30BBYG.js} +17 -17
- package/es/{dist-BX_roQzC.js → dist-BpM0Gz7z.js} +1 -1
- package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-C8hYuPxm.js} +14 -14
- package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +18 -18
- package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +25 -26
- package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +20 -20
- package/es/{graphlib-dRkI1OCL.js → graphlib-DqWOhV4K.js} +4 -4
- package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
- package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +9 -9
- package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
- package/es/{isEmpty-CmA-HYrg.js → isEmpty-BJdINx-6.js} +1 -1
- package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +6 -6
- package/es/javascript--0qAxhnA.js +2 -0
- package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +9 -9
- package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +11 -11
- package/es/{katex-DCMiIo1z.js → katex-olkKUfKs.js} +16 -16
- package/es/{line-Cu9NTacD.js → line-Cm2n2y9Z.js} +3 -3
- package/es/{linear-C0rAYYmp.js → linear-D-yDc6KG.js} +3 -3
- package/es/mermaid-parser.core-DFgQn74w.js +259 -0
- package/es/{mermaid.core-Bvy_Q6Hu.js → mermaid.core-BzgA0NbC.js} +45 -45
- package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +14 -14
- package/es/{ordinal-F3U6aXtP.js → ordinal-95c16pGC.js} +1 -1
- package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
- package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
- package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +48 -48
- package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +4 -4
- package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +13 -13
- package/es/{chunk-WQLz0Won.js → rolldown-runtime-Dv1pqm0U.js} +8 -1
- package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +4 -4
- package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +98 -98
- package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-BlKUZiZP.js} +944 -952
- package/es/{src-CUQ6oOYk.js → src-3T61hYex.js} +26 -26
- package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-153LjStx.js} +16 -16
- package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
- package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +4 -4
- package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +8 -8
- package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +10 -10
- 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-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/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/javascript-CjdDmufJ.js +0 -2
- package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
- 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/{defaultLocale-bckJcYh1.js → defaultLocale-aSMWOJHq.js} +0 -0
- /package/es/{init-B75p2clj.js → init-Co4dhKfe.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,6 +1,6 @@
|
|
|
1
|
-
import { h as e, p as t } from "./src-
|
|
2
|
-
import { B as n, C as r, K as i, V as a, W as o, _ as s, a as c, b as l, s as u, u as d, v as f } from "./chunk-7R4GIKGN-
|
|
3
|
-
import { t as p } from "./ordinal-
|
|
1
|
+
import { h as e, p as t } from "./src-3T61hYex.js";
|
|
2
|
+
import { B as n, C as r, K as i, V as a, W as o, _ as s, a as c, b as l, s as u, u as d, v as f } from "./chunk-7R4GIKGN-mKY502R8.js";
|
|
3
|
+
import { t as p } from "./ordinal-95c16pGC.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.js
|
|
5
5
|
function m(e) {
|
|
6
6
|
for (var t = e.length / 6 | 0, n = Array(t), r = 0; r < t;) n[r] = "#" + e.slice(r * 6, ++r * 6);
|
|
@@ -718,7 +718,7 @@ var J = (function() {
|
|
|
718
718
|
} else return !1;
|
|
719
719
|
} else if (!this.options.flex) break;
|
|
720
720
|
}
|
|
721
|
-
return t ? (e = this.test_match(t, i[r]), e
|
|
721
|
+
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(), {
|
|
722
722
|
text: "",
|
|
723
723
|
token: null,
|
|
724
724
|
line: this.yylineno
|
|
@@ -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 { n as A, t as j } from "./chunk-XPW4576I-
|
|
7
|
-
import { t as M } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-3T61hYex.js";
|
|
2
|
+
import { f as r, h as i } from "./chunk-GEFDOKGD-oBEpn5hN.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-mKY502R8.js";
|
|
4
|
+
import { t as C } from "./dist-BpM0Gz7z.js";
|
|
5
|
+
import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-BbVOaXjl.js";
|
|
6
|
+
import { n as A, t as j } from "./chunk-XPW4576I-255j2Rgd.js";
|
|
7
|
+
import { t as M } from "./chunk-QZHKN3VN-Cg0ROtzE.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,
|
|
@@ -1180,18 +1180,18 @@ var N = C(), P = (function() {
|
|
|
1180
1180
|
69: 78,
|
|
1181
1181
|
72: [1, 79],
|
|
1182
1182
|
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:
|
|
1183
|
+
79: L,
|
|
1184
|
+
80: ne,
|
|
1185
|
+
81: re,
|
|
1186
|
+
82: R,
|
|
1187
|
+
83: z,
|
|
1188
|
+
84: B,
|
|
1189
|
+
85: V,
|
|
1190
|
+
86: H,
|
|
1191
|
+
87: U,
|
|
1192
|
+
88: ie,
|
|
1193
|
+
89: ae,
|
|
1194
|
+
90: oe,
|
|
1195
1195
|
91: W,
|
|
1196
1196
|
92: se,
|
|
1197
1197
|
93: G,
|
|
@@ -1330,18 +1330,18 @@ var N = C(), P = (function() {
|
|
|
1330
1330
|
{
|
|
1331
1331
|
69: 146,
|
|
1332
1332
|
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:
|
|
1333
|
+
79: L,
|
|
1334
|
+
80: ne,
|
|
1335
|
+
81: re,
|
|
1336
|
+
82: R,
|
|
1337
|
+
83: z,
|
|
1338
|
+
84: B,
|
|
1339
|
+
85: V,
|
|
1340
|
+
86: H,
|
|
1341
|
+
87: U,
|
|
1342
|
+
88: ie,
|
|
1343
|
+
89: ae,
|
|
1344
|
+
90: oe,
|
|
1345
1345
|
91: W,
|
|
1346
1346
|
92: se,
|
|
1347
1347
|
93: G,
|
|
@@ -2060,7 +2060,7 @@ var N = C(), P = (function() {
|
|
|
2060
2060
|
} else return !1;
|
|
2061
2061
|
} else 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,7 +2497,7 @@ var F = P, I = {
|
|
|
2497
2497
|
ENTITY: "entity",
|
|
2498
2498
|
PARTICIPANT: "participant",
|
|
2499
2499
|
QUEUE: "queue"
|
|
2500
|
-
},
|
|
2500
|
+
}, ne = class {
|
|
2501
2501
|
constructor() {
|
|
2502
2502
|
this.state = new M(() => ({
|
|
2503
2503
|
prevActor: void 0,
|
|
@@ -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
|
|
@@ -2884,7 +2884,7 @@ var F = P, I = {
|
|
|
2884
2884
|
getConfig() {
|
|
2885
2885
|
return h().sequence;
|
|
2886
2886
|
}
|
|
2887
|
-
},
|
|
2887
|
+
}, re = /* @__PURE__ */ t((e) => `.actor {
|
|
2888
2888
|
stroke: ${e.actorBorder};
|
|
2889
2889
|
fill: ${e.actorBkg};
|
|
2890
2890
|
}
|
|
@@ -3006,9 +3006,9 @@ var F = P, I = {
|
|
|
3006
3006
|
stroke-width: 2px;
|
|
3007
3007
|
}
|
|
3008
3008
|
|
|
3009
|
-
`, "getStyles"),
|
|
3009
|
+
`, "getStyles"), R = 36, z = "actor-top", B = "actor-bottom", V = "actor-box", H = "actor-man", U = /* @__PURE__ */ t(function(e, t) {
|
|
3010
3010
|
return w(e, t);
|
|
3011
|
-
}, "drawRect"),
|
|
3011
|
+
}, "drawRect"), ie = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
3012
3012
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
|
|
3013
3013
|
height: 0,
|
|
3014
3014
|
width: 0
|
|
@@ -3032,9 +3032,9 @@ var F = P, I = {
|
|
|
3032
3032
|
height: s.height + p,
|
|
3033
3033
|
width: d
|
|
3034
3034
|
};
|
|
3035
|
-
}, "drawPopup"),
|
|
3035
|
+
}, "drawPopup"), ae = /* @__PURE__ */ t(function(e) {
|
|
3036
3036
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3037
|
-
}, "popupMenuToggle"),
|
|
3037
|
+
}, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
|
|
3038
3038
|
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
3039
|
if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
|
|
3040
3040
|
let n = e.node().firstChild;
|
|
@@ -3107,16 +3107,16 @@ var F = P, I = {
|
|
|
3107
3107
|
}, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3108
3108
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
|
|
3109
3109
|
var c = s;
|
|
3110
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3110
|
+
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
3111
|
let l = k();
|
|
3112
3112
|
var u = "actor";
|
|
3113
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${
|
|
3114
|
-
let d =
|
|
3113
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${B}` : u += ` ${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;
|
|
3114
|
+
let d = U(c, l);
|
|
3115
3115
|
if (t.rectData = l, t.properties?.icon) {
|
|
3116
3116
|
let e = t.properties.icon.trim();
|
|
3117
3117
|
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
3118
|
}
|
|
3119
|
-
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${
|
|
3119
|
+
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3120
3120
|
let f = t.height;
|
|
3121
3121
|
if (d.node) {
|
|
3122
3122
|
let e = d.node().getBBox();
|
|
@@ -3126,21 +3126,21 @@ var F = P, I = {
|
|
|
3126
3126
|
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3127
3127
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
|
|
3128
3128
|
var c = s;
|
|
3129
|
-
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick",
|
|
3129
|
+
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
3130
|
let l = k();
|
|
3131
3131
|
var u = "actor";
|
|
3132
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${
|
|
3132
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${B}` : u += ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
|
|
3133
3133
|
let d = {
|
|
3134
3134
|
...l,
|
|
3135
3135
|
x: l.x + -6,
|
|
3136
3136
|
y: l.y + 6,
|
|
3137
3137
|
class: "actor"
|
|
3138
|
-
}, f =
|
|
3139
|
-
if (
|
|
3138
|
+
}, f = U(c, l);
|
|
3139
|
+
if (U(c, d), t.rectData = l, t.properties?.icon) {
|
|
3140
3140
|
let e = t.properties.icon.trim();
|
|
3141
3141
|
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
3142
|
}
|
|
3143
|
-
J(n, v(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${
|
|
3143
|
+
J(n, v(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3144
3144
|
let p = t.height;
|
|
3145
3145
|
if (f.node) {
|
|
3146
3146
|
let e = f.node().getBBox();
|
|
@@ -3149,9 +3149,9 @@ var F = P, I = {
|
|
|
3149
3149
|
return p;
|
|
3150
3150
|
}, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3151
3151
|
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",
|
|
3152
|
+
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
3153
|
let l = k(), u = "actor";
|
|
3154
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${
|
|
3154
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${B}` : u += ` ${z}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
|
|
3155
3155
|
let d = l.height / 2, f = d / (2.5 + l.height / 50), p = c.append("g"), m = c.append("g");
|
|
3156
3156
|
if (p.append("path").attr("d", `M ${l.x},${l.y + d}
|
|
3157
3157
|
a ${f},${d} 0 0 0 0,${l.height}
|
|
@@ -3163,7 +3163,7 @@ var F = P, I = {
|
|
|
3163
3163
|
let e = t.properties.icon.trim(), n = l.x + l.width - 20, r = l.y + 10;
|
|
3164
3164
|
e.charAt(0) === "@" ? O(c, n, r, e.substr(1)) : E(c, n, r, e);
|
|
3165
3165
|
}
|
|
3166
|
-
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${
|
|
3166
|
+
J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${V}` }, n);
|
|
3167
3167
|
let h = t.height, g = p.select("path:last-child");
|
|
3168
3168
|
if (g.node()) {
|
|
3169
3169
|
let e = g.node().getBBox();
|
|
@@ -3173,24 +3173,24 @@ var F = P, I = {
|
|
|
3173
3173
|
}, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3174
3174
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower();
|
|
3175
3175
|
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 ? l += ` ${
|
|
3176
|
+
let c = e.append("g"), l = H;
|
|
3177
|
+
r ? l += ` ${B}` : l += ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3178
3178
|
let u = k();
|
|
3179
3179
|
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
|
|
3180
3180
|
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 ${
|
|
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 ${H}` }, n), t.height;
|
|
3182
3182
|
}, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3183
3183
|
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 ? l += ` ${
|
|
3184
|
+
r ? l += ` ${B}` : l += ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3185
3185
|
let u = k();
|
|
3186
3186
|
u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
|
|
3187
3187
|
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 ${
|
|
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 ${H}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
|
|
3189
3189
|
}, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3190
3190
|
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",
|
|
3191
|
+
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
3192
|
let l = k(), u = "actor";
|
|
3193
|
-
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${
|
|
3193
|
+
t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${B}` : u += ` ${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
3194
|
let d = l.width / 3, f = l.width / 3, p = d / 2, m = p / (2.5 + d / 50), h = c.append("g"), g = `
|
|
3195
3195
|
M ${l.x},${l.y + m}
|
|
3196
3196
|
a ${p},${m} 0 0 0 ${d},0
|
|
@@ -3199,25 +3199,25 @@ var F = P, I = {
|
|
|
3199
3199
|
a ${p},${m} 0 0 0 ${d},0
|
|
3200
3200
|
l 0,-${f - 2 * m}
|
|
3201
3201
|
`;
|
|
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 ${
|
|
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 ${V}` }, n);
|
|
3203
3203
|
let _ = h.select("path:last-child");
|
|
3204
3204
|
return _.node() && (t.height = _.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), t.height;
|
|
3205
3205
|
}, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3206
3206
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
|
|
3207
3207
|
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 ? l += ` ${
|
|
3208
|
+
let c = e.append("g"), l = H;
|
|
3209
|
+
r ? l += ` ${B}` : l += ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3210
3210
|
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 - 22 * 2.5).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 - 22 * 2.5).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).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 ${
|
|
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 - 22 * 2.5).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 - 22 * 2.5).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).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
3212
|
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3213
3213
|
let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
|
|
3214
3214
|
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 ? l += ` ${
|
|
3215
|
+
let c = e.append("g"), l = H;
|
|
3216
|
+
r ? l += ` ${B}` : l += ` ${z}`, c.attr("class", l), c.attr("name", t.name);
|
|
3217
3217
|
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 -
|
|
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 - 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
3219
|
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 ${
|
|
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 ${H}` }, n), t.height;
|
|
3221
3221
|
}, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r) {
|
|
3222
3222
|
switch (t.type) {
|
|
3223
3223
|
case "actor": return await ge(e, t, n, r);
|
|
@@ -3236,7 +3236,7 @@ var F = P, I = {
|
|
|
3236
3236
|
return e.append("g");
|
|
3237
3237
|
}, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
3238
3238
|
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,
|
|
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, U(o, a);
|
|
3240
3240
|
}, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, r, i) {
|
|
3241
3241
|
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
3242
|
return f.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
|
|
@@ -3246,10 +3246,10 @@ var F = P, I = {
|
|
|
3246
3246
|
});
|
|
3247
3247
|
let m = T();
|
|
3248
3248
|
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
|
|
3249
|
+
let h = v(m.text) ? await oe(f, m, n) : W(f, m);
|
|
3250
3250
|
if (n.sectionTitles !== void 0) {
|
|
3251
3251
|
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
|
|
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 oe(f, m, n)) : W(f, m);
|
|
3253
3253
|
let r = Math.round(h.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3254
3254
|
n.sections[e].height += r - (a + o);
|
|
3255
3255
|
}
|
|
@@ -3352,12 +3352,12 @@ var F = P, I = {
|
|
|
3352
3352
|
return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
|
|
3353
3353
|
};
|
|
3354
3354
|
})(), Y = {
|
|
3355
|
-
drawRect:
|
|
3355
|
+
drawRect: U,
|
|
3356
3356
|
drawText: W,
|
|
3357
3357
|
drawLabel: se,
|
|
3358
3358
|
drawActor: _e,
|
|
3359
3359
|
drawBox: ve,
|
|
3360
|
-
drawPopup:
|
|
3360
|
+
drawPopup: ie,
|
|
3361
3361
|
anchorElement: ye,
|
|
3362
3362
|
drawActivation: be,
|
|
3363
3363
|
drawLoop: xe,
|
|
@@ -3539,35 +3539,35 @@ var F = P, I = {
|
|
|
3539
3539
|
n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
|
|
3540
3540
|
let r = e.append("g"), i = Y.drawRect(r, n), a = T();
|
|
3541
3541
|
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
|
|
3542
|
+
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
3543
|
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
3544
|
}, "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 ?
|
|
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"), _ = /* @__PURE__ */ t((e, t) => {
|
|
3546
|
+
let n = e ? 16.5 : -16.5;
|
|
3547
3547
|
return t ? -n : n;
|
|
3548
|
-
}, "getCircleOffset"),
|
|
3548
|
+
}, "getCircleOffset"), v = /* @__PURE__ */ t((e) => {
|
|
3549
3549
|
g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3550
|
-
}, "drawCircle"), { CENTRAL_CONNECTION:
|
|
3550
|
+
}, "drawCircle"), { CENTRAL_CONNECTION: y, CENTRAL_CONNECTION_REVERSE: b, CENTRAL_CONNECTION_DUAL: x } = i.db.LINETYPE;
|
|
3551
3551
|
if (d) switch (n.centralConnection) {
|
|
3552
|
+
case y:
|
|
3553
|
+
h && (p += _(m, !0));
|
|
3554
|
+
break;
|
|
3552
3555
|
case b:
|
|
3553
|
-
h
|
|
3556
|
+
h || (f += _(m, !1));
|
|
3554
3557
|
break;
|
|
3555
3558
|
case x:
|
|
3556
|
-
h
|
|
3557
|
-
break;
|
|
3558
|
-
case S:
|
|
3559
|
-
h ? p += v(m, !0) : f += v(m, !1);
|
|
3559
|
+
h ? p += _(m, !0) : f += _(m, !1);
|
|
3560
3560
|
break;
|
|
3561
3561
|
}
|
|
3562
3562
|
switch (n.centralConnection) {
|
|
3563
|
+
case y:
|
|
3564
|
+
v(p);
|
|
3565
|
+
break;
|
|
3563
3566
|
case b:
|
|
3564
|
-
|
|
3567
|
+
v(f);
|
|
3565
3568
|
break;
|
|
3566
3569
|
case x:
|
|
3567
|
-
|
|
3568
|
-
break;
|
|
3569
|
-
case S:
|
|
3570
|
-
y(f), y(p);
|
|
3570
|
+
v(f), v(p);
|
|
3571
3571
|
break;
|
|
3572
3572
|
}
|
|
3573
3573
|
}, "drawCentralConnection"), Q = /* @__PURE__ */ t((e) => ({
|
|
@@ -3601,7 +3601,7 @@ async function Fe(e, t) {
|
|
|
3601
3601
|
t(Fe, "boundMessage");
|
|
3602
3602
|
var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
|
|
3603
3603
|
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
|
|
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 oe(e, h, {
|
|
3605
3605
|
startx: o,
|
|
3606
3606
|
stopx: c,
|
|
3607
3607
|
starty: n
|
|
@@ -3687,20 +3687,20 @@ function Ue(e, n, r, i, a, o, s) {
|
|
|
3687
3687
|
}
|
|
3688
3688
|
t(l, "senderAdjustment");
|
|
3689
3689
|
let u = [
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3690
|
+
L.ACTOR,
|
|
3691
|
+
L.CONTROL,
|
|
3692
|
+
L.ENTITY,
|
|
3693
|
+
L.DATABASE
|
|
3694
3694
|
];
|
|
3695
3695
|
if (o.get(e.to) == i) {
|
|
3696
3696
|
let t = a.get(e.to);
|
|
3697
|
-
c(t, u.includes(t.type) ?
|
|
3697
|
+
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
3698
|
} else if (s.get(e.from) == i) {
|
|
3699
3699
|
let t = a.get(e.from);
|
|
3700
|
-
X.mirrorActors && l(t, u.includes(t.type) ?
|
|
3700
|
+
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
3701
|
} else if (s.get(e.to) == i) {
|
|
3702
3702
|
let t = a.get(e.to);
|
|
3703
|
-
X.mirrorActors && c(t, u.includes(t.type) ?
|
|
3703
|
+
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
3704
|
}
|
|
3705
3705
|
}
|
|
3706
3706
|
t(Ue, "adjustCreatedDestroyedData");
|
|
@@ -4091,7 +4091,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4091
4091
|
}, "calculateLoopBounds"), rt = {
|
|
4092
4092
|
parser: F,
|
|
4093
4093
|
get db() {
|
|
4094
|
-
return new
|
|
4094
|
+
return new ne();
|
|
4095
4095
|
},
|
|
4096
4096
|
renderer: {
|
|
4097
4097
|
bounds: Z,
|
|
@@ -4100,7 +4100,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4100
4100
|
setConf: Be,
|
|
4101
4101
|
draw: We
|
|
4102
4102
|
},
|
|
4103
|
-
styles:
|
|
4103
|
+
styles: re,
|
|
4104
4104
|
init: /* @__PURE__ */ t((e) => {
|
|
4105
4105
|
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, u({ sequence: { wrap: e.wrap } }));
|
|
4106
4106
|
}, "init")
|