@antdv-next/x 1.0.2-beta.1 → 1.0.2-beta.3
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/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +24 -7
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +73 -32
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/context.d.ts +5 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/dist/x-provider/index.d.ts +47 -0
- package/dist/x-provider/index.js +25 -0
- package/{dist-browser/Serializer-y_SfSPKv.js → es/Serializer-D1JYN1kI.js} +4 -4
- package/{dist-browser/_basePickBy-Cy7KVmkk.js → es/_basePickBy-DZiMKfOQ.js} +23 -23
- package/{dist-browser/_baseUniq-Ch3HuHeT.js → es/_baseUniq-DY3uHjSO.js} +83 -83
- package/es/antdv-next-x.esm.js +21009 -0
- package/{dist-browser/arc-caEkbRYF.js → es/arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-BdQzc3t9.js +3 -0
- package/{dist-browser/architectureDiagram-2XIMDMQ5-D3IYLROv.js → es/architectureDiagram-2XIMDMQ5-C8x7stcr.js} +85 -85
- package/{dist-browser/blockDiagram-WCTKOSBZ-nXanZ0sc.js → es/blockDiagram-WCTKOSBZ-DA-s3zoq.js} +530 -530
- package/{dist-browser/c4Diagram-IC4MRINW-C-gVp6th.js → es/c4Diagram-IC4MRINW-DD81dyS8.js} +170 -170
- package/es/channel-DZcPzDuw.js +5 -0
- package/{dist-browser/chunk-4BX2VUAB-fLFD6XW0.js → es/chunk-4BX2VUAB-B3zzxglQ.js} +2 -2
- package/{dist-browser/chunk-55IACEB6-OtyKJzCH.js → es/chunk-55IACEB6-CA9CRLkM.js} +2 -2
- package/{dist-browser/chunk-7E7YKBS2-C1dd36rm.js → es/chunk-7E7YKBS2-C_F-WOLQ.js} +2 -2
- package/{dist-browser/chunk-7R4GIKGN-DuTRhdsf.js → es/chunk-7R4GIKGN-CaI-1szl.js} +3 -3
- package/{dist-browser/chunk-C72U2L5F-ClmZGhFC.js → es/chunk-C72U2L5F-l6RZhGri.js} +2 -2
- package/{dist-browser/chunk-EGIJ26TM-Bar_u1MN.js → es/chunk-EGIJ26TM-Be42NeHw.js} +2 -2
- package/{dist-browser/chunk-FMBD7UC4-C_uJ_JJA.js → es/chunk-FMBD7UC4-DJh0L322.js} +2 -2
- package/{dist-browser/chunk-GEFDOKGD-P7WhyrTU.js → es/chunk-GEFDOKGD-BWt_f4io.js} +278 -278
- package/es/chunk-GLR3WWYH-B30PgFZZ.js +41 -0
- package/{dist-browser/chunk-HHEYEP7N-rv5s5WD4.js → es/chunk-HHEYEP7N-DkMnkoQX.js} +3 -3
- package/{dist-browser/chunk-JSJVCQXG-89HUGe9V.js → es/chunk-JSJVCQXG-ddNKdfu8.js} +4 -4
- package/{dist-browser/chunk-KX2RTZJC-pMHnNRQg.js → es/chunk-KX2RTZJC-BbnGQVgL.js} +3 -3
- package/{dist-browser/chunk-KYZI473N-DJmSs1gK.js → es/chunk-KYZI473N-B2rmiORt.js} +573 -573
- package/{dist-browser/chunk-L3YUKLVL-Ck54qytQ.js → es/chunk-L3YUKLVL-CmAZrf2E.js} +2 -2
- package/{dist-browser/chunk-MX3YWQON-MkpK3uBD.js → es/chunk-MX3YWQON-B3_AxMM1.js} +2 -2
- package/{dist-browser/chunk-NQ4KR5QH-DGshodQv.js → es/chunk-NQ4KR5QH-CmCG9ow3.js} +120 -120
- package/{dist-browser/chunk-O4XLMI2P-e-ZzDQwg.js → es/chunk-O4XLMI2P-CTLwv925.js} +238 -238
- package/{dist-browser/chunk-OZEHJAEY-DULNd43V.js → es/chunk-OZEHJAEY-CtONdvqY.js} +2 -2
- package/{dist-browser/chunk-PQ6SQG4A-CQ9Csv7s.js → es/chunk-PQ6SQG4A-Dx7no2mb.js} +3 -3
- package/{dist-browser/chunk-PU5JKC2W-DkEFvrjH.js → es/chunk-PU5JKC2W-O9_8B7zU.js} +76 -76
- package/{dist-browser/chunk-QZHKN3VN-qww1plfw.js → es/chunk-QZHKN3VN-BbuqVxkO.js} +2 -2
- package/{dist-browser/chunk-R5LLSJPH-BERXSDGJ.js → es/chunk-R5LLSJPH-CpwKqyBY.js} +2 -2
- package/{dist-browser/chunk-WL4C6EOR-C-d8WPS7.js → es/chunk-WL4C6EOR-BXrjoxmr.js} +120 -120
- package/{dist-browser/chunk-XIRO2GV7-CFHofxVB.js → es/chunk-XIRO2GV7-4kMze38t.js} +2 -2
- package/{dist-browser/chunk-XPW4576I-DgvoNZkW.js → es/chunk-XPW4576I-DG6JendS.js} +2 -2
- package/{dist-browser/chunk-XZSTWKYB-k8_EXrSa.js → es/chunk-XZSTWKYB-DjOnj3KP.js} +93 -93
- package/{dist-browser/chunk-YBOYWFTD-BUW4AzEX.js → es/chunk-YBOYWFTD-DVAsFYJ-.js} +8 -8
- package/es/classDiagram-VBA2DB6C-wt_pcvEN.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-B8Bw4b3n.js +29 -0
- package/es/clone-CtpnpaZq.js +8 -0
- package/{dist-browser/cose-bilkent-S5V4N54A-CnrS2OC1.js → es/cose-bilkent-S5V4N54A-IRlkXPnk.js} +3 -3
- package/{dist-browser/css-Dh17kjFY.js → es/css-DyS1hwc1.js} +1 -1
- package/es/css-HrHT_VUz.js +2 -0
- package/{dist-browser/cytoscape.esm-BY3wHcbp.js → es/cytoscape.esm-i2CZcWd-.js} +1 -1
- package/{dist-browser/dagre-BJOzGlhW.js → es/dagre-Dm2PNtRY.js} +57 -57
- package/es/dagre-KLK3FWXG-DLgOeqbz.js +294 -0
- package/{dist-browser/defaultLocale-BaPFSbai.js → es/defaultLocale-bckJcYh1.js} +12 -12
- package/{dist-browser/diagram-E7M64L7V-DxuJj8ZG.js → es/diagram-E7M64L7V-Cdek_47s.js} +83 -83
- package/{dist-browser/diagram-IFDJBPK2-BOpPZ6pu.js → es/diagram-IFDJBPK2-DzCaWPW3.js} +31 -31
- package/{dist-browser/diagram-P4PSJMXO--ChDmcya.js → es/diagram-P4PSJMXO-B7pPaer-.js} +32 -32
- package/{dist-browser/dist-DltyvPj3.js → es/dist-BX_roQzC.js} +1 -1
- package/{dist-browser/erDiagram-INFDFZHY-BA3m-v87.js → es/erDiagram-INFDFZHY-BZHMCNB3.js} +128 -128
- package/{dist-browser/flowDiagram-PKNHOUZH-BCq6k3kr.js → es/flowDiagram-PKNHOUZH-BBJx8-jP.js} +156 -156
- package/{dist-browser/ganttDiagram-A5KZAMGK-DdMePS21.js → es/ganttDiagram-A5KZAMGK-4TJAHJUF.js} +622 -625
- package/es/gitGraph-HDMCJU4V-CGPcRI5K.js +3 -0
- package/{dist-browser/gitGraphDiagram-K3NZZRJ6-CLbRwChG.js → es/gitGraphDiagram-K3NZZRJ6-CSATib_y.js} +176 -176
- package/{dist-browser/graphlib-C7ysKz4u.js → es/graphlib-WtNUGuyd.js} +4 -4
- package/{dist-browser/html-BmZO1Eoo.js → es/html-B6UxjOv0.js} +2 -2
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-D6bOjfim.js +3 -0
- package/{dist-browser/infoDiagram-LFFYTUFH-DQAZ-vFk.js → es/infoDiagram-LFFYTUFH-ahqynRAA.js} +5 -5
- package/{dist-browser/init-PAs0hR-b.js → es/init-B75p2clj.js} +1 -1
- package/{dist-browser/isArrayLikeObject-y3HlYDaX.js → es/isArrayLikeObject-D4gDJaEW.js} +80 -80
- package/{dist-browser/isEmpty-2JxdWtc-.js → es/isEmpty-BgdRybYg.js} +3 -3
- package/{dist-browser/ishikawaDiagram-PHBUUO56-B0r2IgGz.js → es/ishikawaDiagram-PHBUUO56-B9NWp429.js} +67 -67
- package/{dist-browser/journeyDiagram-4ABVD52K-DnMUhOvg.js → es/journeyDiagram-4ABVD52K-CXmYa8OF.js} +6 -6
- package/{dist-browser/kanban-definition-K7BYSVSG-Da5Y-nJy.js → es/kanban-definition-K7BYSVSG-g9tToeab.js} +11 -11
- package/{dist-browser/katex-b-xdokOf.js → es/katex-Bvh2oRWI.js} +1 -1
- package/{dist-browser/line-h2iCTGsE.js → es/line-DETnb8Mr.js} +4 -4
- package/{dist-browser/linear-Bv7XrZCH.js → es/linear-DGQDIL28.js} +23 -23
- package/{dist-browser/math-DPzKeDKn.js → es/math-CoDOuve-.js} +1 -1
- package/{dist-browser/mermaid-parser.core-kTgpNO7M.js → es/mermaid-parser.core-DXn-0ev4.js} +16 -16
- package/{dist-browser/mermaid.core-DRuUNxpC.js → es/mermaid.core-W4vXivv8.js} +208 -208
- package/{dist-browser/mindmap-definition-YRQLILUH-CYeqnCde.js → es/mindmap-definition-YRQLILUH-x9QfilEP.js} +16 -16
- package/{dist-browser/ordinal-D8PKtxfM.js → es/ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-CW6reTze.js +3 -0
- package/{dist-browser/path-DZ-6AyWK.js → es/path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-ByJXXnsc.js +3 -0
- package/{dist-browser/pieDiagram-SKSYHLDU-DAsfTGvY.js → es/pieDiagram-SKSYHLDU-CG2GOW6Z.js} +32 -32
- package/{dist-browser/quadrantDiagram-337W2JSQ-CZLbmQS4.js → es/quadrantDiagram-337W2JSQ-C81pfz0c.js} +4 -4
- package/es/radar-KQ55EAFF-DLq-eYVH.js +3 -0
- package/{dist-browser/requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js → es/requirementDiagram-Z7DCOOCP-J-tc0fnw.js} +59 -59
- package/{dist-browser/rough.esm-C_hJ3ICT.js → es/rough.esm-BhGP2Udb.js} +1 -1
- package/{dist-browser/sankeyDiagram-WA2Y5GQK-DBe5YfW4.js → es/sankeyDiagram-WA2Y5GQK-BfGyH2f1.js} +18 -18
- package/{dist-browser/sequenceDiagram-2WXFIKYE-C_KUoojT.js → es/sequenceDiagram-2WXFIKYE-m6aSnjku.js} +390 -390
- package/{dist-browser/src-BukXhifV.js → es/src-CFVe5TPD.js} +86 -86
- package/{dist-browser/stateDiagram-RAJIS63D-boG6DyfW.js → es/stateDiagram-RAJIS63D-CPJuOh-s.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-uxSkj8dH.js +27 -0
- package/{dist-browser/timeline-definition-YZTLITO2-pFt6rZ6S.js → es/timeline-definition-YZTLITO2-C7Vz32PK.js} +4 -4
- package/es/treemap-KZPCXAKY-BhLuAwPA.js +3 -0
- package/{dist-browser/vennDiagram-LZ73GAT5-VaCO6k4H.js → es/vennDiagram-LZ73GAT5-BWloH3fI.js} +107 -107
- package/{dist-browser/vue-BJ0ov2CZ.js → es/vue-2aJw7p5p.js} +3 -3
- package/{dist-browser/vue-html-D0gyDbfn.js → es/vue-html-DEjI8X9t.js} +1 -1
- package/{dist-browser/xychartDiagram-JWTSCODW-xS5ybemA.js → es/xychartDiagram-JWTSCODW-l-SVBlqB.js} +103 -103
- package/package.json +13 -11
- package/dist/index.esm.js +0 -11377
- package/dist-browser/architecture-PBZL5I3N-DHfBr78A.js +0 -3
- package/dist-browser/channel-DoEe9DF9.js +0 -5
- package/dist-browser/chunk-GLR3WWYH-BvazRgdo.js +0 -41
- package/dist-browser/classDiagram-VBA2DB6C-DWTAs0Zm.js +0 -29
- package/dist-browser/classDiagram-v2-RAHNMMFH-CoxCdmrt.js +0 -29
- package/dist-browser/clone-BXDbKCDu.js +0 -8
- package/dist-browser/css-D9vrnIUE.js +0 -2
- package/dist-browser/dagre-KLK3FWXG-CFC0naVr.js +0 -294
- package/dist-browser/gitGraph-HDMCJU4V-DbzpICZW.js +0 -3
- package/dist-browser/html-DnTYsv5k.js +0 -2
- package/dist-browser/index.es.js +0 -56150
- package/dist-browser/index.umd.js +0 -3281
- package/dist-browser/info-3K5VOQVL-CpUiQuel.js +0 -3
- package/dist-browser/packet-RMMSAZCW-UTFQ0FQx.js +0 -3
- package/dist-browser/pie-UPGHQEXC-CarAcBSi.js +0 -3
- package/dist-browser/radar-KQ55EAFF-NXK5PC9R.js +0 -3
- package/dist-browser/stateDiagram-v2-FVOUBMTO-DHCajhrN.js +0 -27
- package/dist-browser/treemap-KZPCXAKY-Cj9QakFB.js +0 -3
- /package/{dist-browser → es}/array-CWNufkl9.js +0 -0
- /package/{dist-browser → es}/bash-CXEwhtGQ.js +0 -0
- /package/{dist-browser → es}/chunk-WQLz0Won.js +0 -0
- /package/{dist-browser → es}/diff-BSu5dsa2.js +0 -0
- /package/{dist-browser → es}/javascript-BXHK_bZ2.js +0 -0
- /package/{dist-browser → es}/javascript-NV_FQBab.js +0 -0
- /package/{dist-browser → es}/json-C8Y9C4Ne.js +0 -0
- /package/{dist-browser → es}/json-DZ_9-j3Q.js +0 -0
- /package/{dist-browser → es}/jsx-CxlNNvOI.js +0 -0
- /package/{dist-browser → es}/markdown-BKwT7HWz.js +0 -0
- /package/{dist-browser → es}/mermaid-C1RUu_Iw.js +0 -0
- /package/{dist-browser → es}/python-BQM8giqx.js +0 -0
- /package/{dist-browser → es}/tsx-DIYEV_g7.js +0 -0
- /package/{dist-browser → es}/typescript-B6MWEsBH.js +0 -0
- /package/{dist-browser → es}/typescript-CR48gG1F.js +0 -0
- /package/{dist-browser → es}/yaml-Y0CqUPTQ.js +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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-
|
|
8
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
|
|
1
|
+
import { f as e, h as t } from "./chunk-GEFDOKGD-BWt_f4io.js";
|
|
2
|
+
import { g as n, h as r, p as i } from "./src-CFVe5TPD.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-CaI-1szl.js";
|
|
4
|
+
import { t as C } from "./dist-BX_roQzC.js";
|
|
5
|
+
import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-ddNKdfu8.js";
|
|
6
|
+
import { n as A, t as j } from "./chunk-XPW4576I-DG6JendS.js";
|
|
7
|
+
import { t as M } from "./chunk-QZHKN3VN-BbuqVxkO.js";
|
|
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
|
-
var e = /* @__PURE__ */
|
|
10
|
+
var e = /* @__PURE__ */ r(function(e, t, n, r) {
|
|
11
11
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
12
12
|
return n;
|
|
13
|
-
}, "o"),
|
|
13
|
+
}, "o"), t = [1, 2], n = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
|
|
14
14
|
1,
|
|
15
15
|
4,
|
|
16
16
|
5,
|
|
@@ -190,7 +190,7 @@ var N = C(), P = (function() {
|
|
|
190
190
|
72,
|
|
191
191
|
73
|
|
192
192
|
], q = [1, 151], Te = {
|
|
193
|
-
trace: /* @__PURE__ */
|
|
193
|
+
trace: /* @__PURE__ */ r(function() {}, "trace"),
|
|
194
194
|
yy: {},
|
|
195
195
|
symbols_: {
|
|
196
196
|
error: 2,
|
|
@@ -488,7 +488,7 @@ var N = C(), P = (function() {
|
|
|
488
488
|
[69, 1],
|
|
489
489
|
[58, 1]
|
|
490
490
|
],
|
|
491
|
-
performAction: /* @__PURE__ */
|
|
491
|
+
performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
|
|
492
492
|
var s = a.length - 1;
|
|
493
493
|
switch (i) {
|
|
494
494
|
case 3: return r.apply(a[s]), a[s];
|
|
@@ -985,21 +985,21 @@ var N = C(), P = (function() {
|
|
|
985
985
|
table: [
|
|
986
986
|
{
|
|
987
987
|
3: 1,
|
|
988
|
-
4:
|
|
989
|
-
5:
|
|
988
|
+
4: t,
|
|
989
|
+
5: n,
|
|
990
990
|
6: i
|
|
991
991
|
},
|
|
992
992
|
{ 1: [3] },
|
|
993
993
|
{
|
|
994
994
|
3: 5,
|
|
995
|
-
4:
|
|
996
|
-
5:
|
|
995
|
+
4: t,
|
|
996
|
+
5: n,
|
|
997
997
|
6: i
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
3: 6,
|
|
1001
|
-
4:
|
|
1002
|
-
5:
|
|
1001
|
+
4: t,
|
|
1002
|
+
5: n,
|
|
1003
1003
|
6: i
|
|
1004
1004
|
},
|
|
1005
1005
|
e([
|
|
@@ -1890,15 +1890,15 @@ var N = C(), P = (function() {
|
|
|
1890
1890
|
203: [2, 44],
|
|
1891
1891
|
204: [2, 74]
|
|
1892
1892
|
},
|
|
1893
|
-
parseError: /* @__PURE__ */
|
|
1893
|
+
parseError: /* @__PURE__ */ r(function(e, t) {
|
|
1894
1894
|
if (t.recoverable) this.trace(e);
|
|
1895
1895
|
else {
|
|
1896
1896
|
var n = Error(e);
|
|
1897
1897
|
throw n.hash = t, n;
|
|
1898
1898
|
}
|
|
1899
1899
|
}, "parseError"),
|
|
1900
|
-
parse: /* @__PURE__ */
|
|
1901
|
-
var
|
|
1900
|
+
parse: /* @__PURE__ */ r(function(e) {
|
|
1901
|
+
var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
1902
1902
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
1903
1903
|
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
1904
1904
|
var v = h.yylloc;
|
|
@@ -1906,16 +1906,16 @@ var N = C(), P = (function() {
|
|
|
1906
1906
|
var y = h.options && h.options.ranges;
|
|
1907
1907
|
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1908
1908
|
function b(e) {
|
|
1909
|
-
|
|
1909
|
+
n.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
r(b, "popStack");
|
|
1912
1912
|
function x() {
|
|
1913
1913
|
var e = i.pop() || h.lex() || p;
|
|
1914
|
-
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e =
|
|
1914
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
|
|
1915
1915
|
}
|
|
1916
|
-
|
|
1916
|
+
r(x, "lex");
|
|
1917
1917
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1918
|
-
if (w =
|
|
1918
|
+
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1919
1919
|
var M = "";
|
|
1920
1920
|
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
1921
1921
|
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
@@ -1929,7 +1929,7 @@ var N = C(), P = (function() {
|
|
|
1929
1929
|
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
1930
1930
|
switch (T[0]) {
|
|
1931
1931
|
case 1:
|
|
1932
|
-
|
|
1932
|
+
n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
1933
1933
|
break;
|
|
1934
1934
|
case 2:
|
|
1935
1935
|
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
@@ -1946,7 +1946,7 @@ var N = C(), P = (function() {
|
|
|
1946
1946
|
a,
|
|
1947
1947
|
o
|
|
1948
1948
|
].concat(m)), E !== void 0) return E;
|
|
1949
|
-
k && (
|
|
1949
|
+
k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
|
|
1950
1950
|
break;
|
|
1951
1951
|
case 3: return !0;
|
|
1952
1952
|
}
|
|
@@ -1957,11 +1957,11 @@ var N = C(), P = (function() {
|
|
|
1957
1957
|
Te.lexer = /* @__PURE__ */ (function() {
|
|
1958
1958
|
return {
|
|
1959
1959
|
EOF: 1,
|
|
1960
|
-
parseError: /* @__PURE__ */
|
|
1960
|
+
parseError: /* @__PURE__ */ r(function(e, t) {
|
|
1961
1961
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1962
1962
|
else throw Error(e);
|
|
1963
1963
|
}, "parseError"),
|
|
1964
|
-
setInput: /* @__PURE__ */
|
|
1964
|
+
setInput: /* @__PURE__ */ r(function(e, t) {
|
|
1965
1965
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1966
1966
|
first_line: 1,
|
|
1967
1967
|
first_column: 0,
|
|
@@ -1969,11 +1969,11 @@ var N = C(), P = (function() {
|
|
|
1969
1969
|
last_column: 0
|
|
1970
1970
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1971
1971
|
}, "setInput"),
|
|
1972
|
-
input: /* @__PURE__ */
|
|
1972
|
+
input: /* @__PURE__ */ r(function() {
|
|
1973
1973
|
var e = this._input[0];
|
|
1974
1974
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
1975
1975
|
}, "input"),
|
|
1976
|
-
unput: /* @__PURE__ */
|
|
1976
|
+
unput: /* @__PURE__ */ r(function(e) {
|
|
1977
1977
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1978
1978
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1979
1979
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1986,10 +1986,10 @@ var N = C(), P = (function() {
|
|
|
1986
1986
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
1987
1987
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1988
1988
|
}, "unput"),
|
|
1989
|
-
more: /* @__PURE__ */
|
|
1989
|
+
more: /* @__PURE__ */ r(function() {
|
|
1990
1990
|
return this._more = !0, this;
|
|
1991
1991
|
}, "more"),
|
|
1992
|
-
reject: /* @__PURE__ */
|
|
1992
|
+
reject: /* @__PURE__ */ r(function() {
|
|
1993
1993
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1994
1994
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1995
1995
|
text: "",
|
|
@@ -1998,22 +1998,22 @@ var N = C(), P = (function() {
|
|
|
1998
1998
|
});
|
|
1999
1999
|
return this;
|
|
2000
2000
|
}, "reject"),
|
|
2001
|
-
less: /* @__PURE__ */
|
|
2001
|
+
less: /* @__PURE__ */ r(function(e) {
|
|
2002
2002
|
this.unput(this.match.slice(e));
|
|
2003
2003
|
}, "less"),
|
|
2004
|
-
pastInput: /* @__PURE__ */
|
|
2004
|
+
pastInput: /* @__PURE__ */ r(function() {
|
|
2005
2005
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
2006
2006
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
2007
2007
|
}, "pastInput"),
|
|
2008
|
-
upcomingInput: /* @__PURE__ */
|
|
2008
|
+
upcomingInput: /* @__PURE__ */ r(function() {
|
|
2009
2009
|
var e = this.match;
|
|
2010
2010
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
2011
2011
|
}, "upcomingInput"),
|
|
2012
|
-
showPosition: /* @__PURE__ */
|
|
2012
|
+
showPosition: /* @__PURE__ */ r(function() {
|
|
2013
2013
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
2014
2014
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
2015
2015
|
}, "showPosition"),
|
|
2016
|
-
test_match: /* @__PURE__ */
|
|
2016
|
+
test_match: /* @__PURE__ */ r(function(e, t) {
|
|
2017
2017
|
var n, r, i;
|
|
2018
2018
|
if (this.options.backtrack_lexer && (i = {
|
|
2019
2019
|
yylineno: this.yylineno,
|
|
@@ -2046,7 +2046,7 @@ var N = C(), P = (function() {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
return !1;
|
|
2048
2048
|
}, "test_match"),
|
|
2049
|
-
next: /* @__PURE__ */
|
|
2049
|
+
next: /* @__PURE__ */ r(function() {
|
|
2050
2050
|
if (this.done) return this.EOF;
|
|
2051
2051
|
this._input || (this.done = !0);
|
|
2052
2052
|
var e, t, n, r;
|
|
@@ -2066,29 +2066,29 @@ var N = C(), P = (function() {
|
|
|
2066
2066
|
line: this.yylineno
|
|
2067
2067
|
});
|
|
2068
2068
|
}, "next"),
|
|
2069
|
-
lex: /* @__PURE__ */
|
|
2069
|
+
lex: /* @__PURE__ */ r(function() {
|
|
2070
2070
|
return this.next() || this.lex();
|
|
2071
2071
|
}, "lex"),
|
|
2072
|
-
begin: /* @__PURE__ */
|
|
2072
|
+
begin: /* @__PURE__ */ r(function(e) {
|
|
2073
2073
|
this.conditionStack.push(e);
|
|
2074
2074
|
}, "begin"),
|
|
2075
|
-
popState: /* @__PURE__ */
|
|
2075
|
+
popState: /* @__PURE__ */ r(function() {
|
|
2076
2076
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
2077
2077
|
}, "popState"),
|
|
2078
|
-
_currentRules: /* @__PURE__ */
|
|
2078
|
+
_currentRules: /* @__PURE__ */ r(function() {
|
|
2079
2079
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
2080
2080
|
}, "_currentRules"),
|
|
2081
|
-
topState: /* @__PURE__ */
|
|
2081
|
+
topState: /* @__PURE__ */ r(function(e) {
|
|
2082
2082
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
2083
2083
|
}, "topState"),
|
|
2084
|
-
pushState: /* @__PURE__ */
|
|
2084
|
+
pushState: /* @__PURE__ */ r(function(e) {
|
|
2085
2085
|
this.begin(e);
|
|
2086
2086
|
}, "pushState"),
|
|
2087
|
-
stateStackSize: /* @__PURE__ */
|
|
2087
|
+
stateStackSize: /* @__PURE__ */ r(function() {
|
|
2088
2088
|
return this.conditionStack.length;
|
|
2089
2089
|
}, "stateStackSize"),
|
|
2090
2090
|
options: { "case-insensitive": !0 },
|
|
2091
|
-
performAction: /* @__PURE__ */
|
|
2091
|
+
performAction: /* @__PURE__ */ r(function(e, t, n, r) {
|
|
2092
2092
|
switch (n) {
|
|
2093
2093
|
case 0: return 5;
|
|
2094
2094
|
case 1: break;
|
|
@@ -2426,7 +2426,7 @@ var N = C(), P = (function() {
|
|
|
2426
2426
|
function Ee() {
|
|
2427
2427
|
this.yy = {};
|
|
2428
2428
|
}
|
|
2429
|
-
return
|
|
2429
|
+
return r(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
|
|
2430
2430
|
})();
|
|
2431
2431
|
P.parser = P;
|
|
2432
2432
|
var F = P, I = {
|
|
@@ -2515,7 +2515,7 @@ var F = P, I = {
|
|
|
2515
2515
|
})), this.setAccTitle = d, this.setAccDescription = a, this.setDiagramTitle = f, this.getAccTitle = x, this.getAccDescription = p, this.getDiagramTitle = o, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(h().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = te;
|
|
2516
2516
|
}
|
|
2517
2517
|
static {
|
|
2518
|
-
|
|
2518
|
+
r(this, "SequenceDB");
|
|
2519
2519
|
}
|
|
2520
2520
|
addBox(e) {
|
|
2521
2521
|
this.state.records.boxes.push({
|
|
@@ -2661,12 +2661,12 @@ var F = P, I = {
|
|
|
2661
2661
|
clear() {
|
|
2662
2662
|
this.state.reset(), m();
|
|
2663
2663
|
}
|
|
2664
|
-
parseMessage(
|
|
2665
|
-
let
|
|
2664
|
+
parseMessage(e) {
|
|
2665
|
+
let t = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(t), a = {
|
|
2666
2666
|
text: i,
|
|
2667
2667
|
wrap: r
|
|
2668
2668
|
};
|
|
2669
|
-
return
|
|
2669
|
+
return n.debug(`parseMessage: ${JSON.stringify(a)}`), a;
|
|
2670
2670
|
}
|
|
2671
2671
|
parseBoxData(e) {
|
|
2672
2672
|
let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
|
|
@@ -2699,39 +2699,39 @@ var F = P, I = {
|
|
|
2699
2699
|
placement: t
|
|
2700
2700
|
});
|
|
2701
2701
|
}
|
|
2702
|
-
addLinks(
|
|
2703
|
-
let r = this.getActor(
|
|
2702
|
+
addLinks(e, t) {
|
|
2703
|
+
let r = this.getActor(e);
|
|
2704
2704
|
try {
|
|
2705
|
-
let e = c(
|
|
2705
|
+
let e = c(t.text, h());
|
|
2706
2706
|
e = e.replace(/=/g, "="), e = e.replace(/&/g, "&");
|
|
2707
|
-
let
|
|
2708
|
-
this.insertLinks(r,
|
|
2709
|
-
} catch (
|
|
2710
|
-
|
|
2707
|
+
let n = JSON.parse(e);
|
|
2708
|
+
this.insertLinks(r, n);
|
|
2709
|
+
} catch (e) {
|
|
2710
|
+
n.error("error while parsing actor link text", e);
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
|
-
addALink(
|
|
2714
|
-
let r = this.getActor(
|
|
2713
|
+
addALink(e, t) {
|
|
2714
|
+
let r = this.getActor(e);
|
|
2715
2715
|
try {
|
|
2716
|
-
let e = {},
|
|
2717
|
-
|
|
2718
|
-
let a =
|
|
2719
|
-
e[a] =
|
|
2720
|
-
} catch (
|
|
2721
|
-
|
|
2716
|
+
let e = {}, n = c(t.text, h()), i = n.indexOf("@");
|
|
2717
|
+
n = n.replace(/=/g, "="), n = n.replace(/&/g, "&");
|
|
2718
|
+
let a = n.slice(0, i - 1).trim();
|
|
2719
|
+
e[a] = n.slice(i + 1).trim(), this.insertLinks(r, e);
|
|
2720
|
+
} catch (e) {
|
|
2721
|
+
n.error("error while parsing actor link text", e);
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
2724
|
insertLinks(e, t) {
|
|
2725
2725
|
if (e.links == null) e.links = t;
|
|
2726
2726
|
else for (let n in t) e.links[n] = t[n];
|
|
2727
2727
|
}
|
|
2728
|
-
addProperties(
|
|
2729
|
-
let r = this.getActor(
|
|
2728
|
+
addProperties(e, t) {
|
|
2729
|
+
let r = this.getActor(e);
|
|
2730
2730
|
try {
|
|
2731
|
-
let e = c(
|
|
2732
|
-
this.insertProperties(r,
|
|
2733
|
-
} catch (
|
|
2734
|
-
|
|
2731
|
+
let e = c(t.text, h()), n = JSON.parse(e);
|
|
2732
|
+
this.insertProperties(r, n);
|
|
2733
|
+
} catch (e) {
|
|
2734
|
+
n.error("error while parsing actor properties text", e);
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
2737
|
insertProperties(e, t) {
|
|
@@ -2741,13 +2741,13 @@ var F = P, I = {
|
|
|
2741
2741
|
boxEnd() {
|
|
2742
2742
|
this.state.records.currentBox = void 0;
|
|
2743
2743
|
}
|
|
2744
|
-
addDetails(
|
|
2745
|
-
let r = this.getActor(
|
|
2744
|
+
addDetails(e, t) {
|
|
2745
|
+
let r = this.getActor(e), i = document.getElementById(t.text);
|
|
2746
2746
|
try {
|
|
2747
2747
|
let e = i.innerHTML, t = JSON.parse(e);
|
|
2748
2748
|
t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
|
|
2749
|
-
} catch (
|
|
2750
|
-
|
|
2749
|
+
} catch (e) {
|
|
2750
|
+
n.error("error while parsing actor details text", e);
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
getActorProperty(e, t) {
|
|
@@ -2884,7 +2884,7 @@ var F = P, I = {
|
|
|
2884
2884
|
getConfig() {
|
|
2885
2885
|
return h().sequence;
|
|
2886
2886
|
}
|
|
2887
|
-
}, ie = /* @__PURE__ */
|
|
2887
|
+
}, ie = /* @__PURE__ */ r((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"), L = 36, R = "actor-top", z = "actor-bottom", ae = "actor-box", B = "actor-man", V = /* @__PURE__ */
|
|
3009
|
+
`, "getStyles"), L = 36, R = "actor-top", z = "actor-bottom", ae = "actor-box", B = "actor-man", V = /* @__PURE__ */ r(function(e, t) {
|
|
3010
3010
|
return w(e, t);
|
|
3011
|
-
}, "drawRect"), oe = /* @__PURE__ */
|
|
3011
|
+
}, "drawRect"), oe = /* @__PURE__ */ r(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"), H = /* @__PURE__ */
|
|
3035
|
+
}, "drawPopup"), H = /* @__PURE__ */ r(function(e) {
|
|
3036
3036
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3037
|
-
}, "popupMenuToggle"), U = /* @__PURE__ */
|
|
3037
|
+
}, "popupMenuToggle"), U = /* @__PURE__ */ r(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;
|
|
@@ -3050,20 +3050,20 @@ var F = P, I = {
|
|
|
3050
3050
|
r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
|
|
3051
3051
|
}
|
|
3052
3052
|
return [r];
|
|
3053
|
-
}, "drawKatex"), W = /* @__PURE__ */
|
|
3054
|
-
let i = 0, a = 0, o = n.text.split(b.lineBreakRegex), [s, c] =
|
|
3053
|
+
}, "drawKatex"), W = /* @__PURE__ */ r(function(t, n) {
|
|
3054
|
+
let i = 0, a = 0, o = n.text.split(b.lineBreakRegex), [s, c] = e(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ r(() => n.y, "yfunc");
|
|
3055
3055
|
if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
|
|
3056
3056
|
case "top":
|
|
3057
3057
|
case "start":
|
|
3058
|
-
d = /* @__PURE__ */
|
|
3058
|
+
d = /* @__PURE__ */ r(() => Math.round(n.y + n.textMargin), "yfunc");
|
|
3059
3059
|
break;
|
|
3060
3060
|
case "middle":
|
|
3061
3061
|
case "center":
|
|
3062
|
-
d = /* @__PURE__ */
|
|
3062
|
+
d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + n.textMargin) / 2), "yfunc");
|
|
3063
3063
|
break;
|
|
3064
3064
|
case "bottom":
|
|
3065
3065
|
case "end":
|
|
3066
|
-
d = /* @__PURE__ */
|
|
3066
|
+
d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
|
|
3067
3067
|
break;
|
|
3068
3068
|
}
|
|
3069
3069
|
if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
|
|
@@ -3080,9 +3080,9 @@ var F = P, I = {
|
|
|
3080
3080
|
n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3081
3081
|
break;
|
|
3082
3082
|
}
|
|
3083
|
-
for (let [
|
|
3084
|
-
n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u =
|
|
3085
|
-
let o =
|
|
3083
|
+
for (let [e, r] of o.entries()) {
|
|
3084
|
+
n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = e * s);
|
|
3085
|
+
let o = t.append("text");
|
|
3086
3086
|
o.attr("x", n.x), o.attr("y", d()), n.anchor !== void 0 && o.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o.style("font-family", n.fontFamily), c !== void 0 && o.style("font-size", c), n.fontWeight !== void 0 && o.style("font-weight", n.fontWeight), n.fill !== void 0 && o.attr("fill", n.fill), n.class !== void 0 && o.attr("class", n.class), n.dy === void 0 ? u !== 0 && o.attr("dy", u) : o.attr("dy", n.dy);
|
|
3087
3087
|
let f = r || "";
|
|
3088
3088
|
if (n.tspan) {
|
|
@@ -3092,19 +3092,19 @@ var F = P, I = {
|
|
|
3092
3092
|
n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (a += (o._groups || o)[0][0].getBBox().height, i = a), l.push(o);
|
|
3093
3093
|
}
|
|
3094
3094
|
return l;
|
|
3095
|
-
}, "drawText"), se = /* @__PURE__ */
|
|
3096
|
-
function
|
|
3095
|
+
}, "drawText"), se = /* @__PURE__ */ r(function(e, t) {
|
|
3096
|
+
function n(e, t, n, r, i) {
|
|
3097
3097
|
return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
|
|
3098
3098
|
}
|
|
3099
|
-
|
|
3099
|
+
r(n, "genPoints");
|
|
3100
3100
|
let i = e.append("polygon");
|
|
3101
|
-
return i.attr("points",
|
|
3102
|
-
}, "drawLabel"), G = -1, ce = /* @__PURE__ */
|
|
3101
|
+
return i.attr("points", n(t.x, t.y, t.width, t.height, 7)), i.attr("class", "labelBox"), t.y += t.height / 2, W(e, t), i;
|
|
3102
|
+
}, "drawLabel"), G = -1, ce = /* @__PURE__ */ r((e, t, n, r) => {
|
|
3103
3103
|
e.select && n.forEach((n) => {
|
|
3104
3104
|
let i = t.get(n), a = e.select("#actor" + i.actorCnt);
|
|
3105
3105
|
!r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
|
|
3106
3106
|
});
|
|
3107
|
-
}, "fixLifeLineHeights"), le = /* @__PURE__ */
|
|
3107
|
+
}, "fixLifeLineHeights"), le = /* @__PURE__ */ r(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
3110
|
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`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));
|
|
@@ -3123,7 +3123,7 @@ var F = P, I = {
|
|
|
3123
3123
|
t.height = e.height, f = e.height;
|
|
3124
3124
|
}
|
|
3125
3125
|
return f;
|
|
3126
|
-
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */
|
|
3126
|
+
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */ r(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
3129
|
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`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));
|
|
@@ -3147,7 +3147,7 @@ var F = P, I = {
|
|
|
3147
3147
|
t.height = e.height, p = e.height;
|
|
3148
3148
|
}
|
|
3149
3149
|
return p;
|
|
3150
|
-
}, "drawActorTypeCollections"), de = /* @__PURE__ */
|
|
3150
|
+
}, "drawActorTypeCollections"), de = /* @__PURE__ */ r(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
3152
|
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`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";
|
|
@@ -3170,7 +3170,7 @@ var F = P, I = {
|
|
|
3170
3170
|
t.height = e.height, h = e.height;
|
|
3171
3171
|
}
|
|
3172
3172
|
return h;
|
|
3173
|
-
}, "drawActorTypeQueue"), fe = /* @__PURE__ */
|
|
3173
|
+
}, "drawActorTypeQueue"), fe = /* @__PURE__ */ r(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
3176
|
let c = e.append("g"), l = B;
|
|
@@ -3179,14 +3179,14 @@ var F = P, I = {
|
|
|
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
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 ${B}` }, n), t.height;
|
|
3182
|
-
}, "drawActorTypeControl"), pe = /* @__PURE__ */
|
|
3182
|
+
}, "drawActorTypeControl"), pe = /* @__PURE__ */ r(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
3184
|
r ? l += ` ${z}` : l += ` ${R}`, 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
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 ${B}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
|
|
3189
|
-
}, "drawActorTypeEntity"), me = /* @__PURE__ */
|
|
3189
|
+
}, "drawActorTypeEntity"), me = /* @__PURE__ */ r(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
3191
|
r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`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";
|
|
@@ -3202,14 +3202,14 @@ var F = P, I = {
|
|
|
3202
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 ${ae}` }, 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
|
-
}, "drawActorTypeDatabase"), he = /* @__PURE__ */
|
|
3205
|
+
}, "drawActorTypeDatabase"), he = /* @__PURE__ */ r(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
3208
|
let c = e.append("g"), l = B;
|
|
3209
3209
|
r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
|
|
3210
3210
|
let u = k();
|
|
3211
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 ${B}` }, n), c.attr("transform", "translate(0,21)"), t.height;
|
|
3212
|
-
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */
|
|
3212
|
+
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */ r(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
3215
|
let c = e.append("g"), l = B;
|
|
@@ -3218,7 +3218,7 @@ var F = P, I = {
|
|
|
3218
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 - L / 2).attr("y1", i + 33).attr("x2", a + L / 2).attr("y2", i + 33), c.append("line").attr("x1", a - L / 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 + L / 2 - 2).attr("y2", i + 60);
|
|
3219
3219
|
let d = c.append("circle");
|
|
3220
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 ${B}` }, n), t.height;
|
|
3221
|
-
}, "drawActorTypeActor"), _e = /* @__PURE__ */
|
|
3221
|
+
}, "drawActorTypeActor"), _e = /* @__PURE__ */ r(async function(e, t, n, r) {
|
|
3222
3222
|
switch (t.type) {
|
|
3223
3223
|
case "actor": return await ge(e, t, n, r);
|
|
3224
3224
|
case "participant": return await le(e, t, n, r);
|
|
@@ -3229,49 +3229,49 @@ var F = P, I = {
|
|
|
3229
3229
|
case "collections": return await ue(e, t, n, r);
|
|
3230
3230
|
case "queue": return await de(e, t, n, r);
|
|
3231
3231
|
}
|
|
3232
|
-
}, "drawActor"), ve = /* @__PURE__ */
|
|
3232
|
+
}, "drawActor"), ve = /* @__PURE__ */ r(function(e, t, n) {
|
|
3233
3233
|
let r = e.append("g");
|
|
3234
3234
|
Se(r, t), t.name && J(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
|
|
3235
|
-
}, "drawBox"), ye = /* @__PURE__ */
|
|
3235
|
+
}, "drawBox"), ye = /* @__PURE__ */ r(function(e) {
|
|
3236
3236
|
return e.append("g");
|
|
3237
|
-
}, "anchorElement"), be = /* @__PURE__ */
|
|
3237
|
+
}, "anchorElement"), be = /* @__PURE__ */ r(function(e, t, n, r, i) {
|
|
3238
3238
|
let a = k(), o = t.anchored;
|
|
3239
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, V(o, a);
|
|
3240
|
-
}, "drawActivation"), xe = /* @__PURE__ */
|
|
3241
|
-
let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */
|
|
3240
|
+
}, "drawActivation"), xe = /* @__PURE__ */ r(async function(e, t, n, i) {
|
|
3241
|
+
let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ r(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");
|
|
3243
3243
|
}, "drawLoopLine");
|
|
3244
|
-
p(
|
|
3245
|
-
p(
|
|
3244
|
+
p(t.startx, t.starty, t.stopx, t.starty), p(t.stopx, t.starty, t.stopx, t.stopy), p(t.startx, t.stopy, t.stopx, t.stopy), p(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
|
|
3245
|
+
p(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
|
|
3246
3246
|
});
|
|
3247
3247
|
let m = T();
|
|
3248
|
-
m.text =
|
|
3249
|
-
let h = v(m.text) ? await U(f, m,
|
|
3250
|
-
if (
|
|
3251
|
-
for (let [e,
|
|
3252
|
-
m.text =
|
|
3248
|
+
m.text = n, m.x = t.startx, m.y = t.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 = t.title, m.x = t.startx + c / 2 + (t.stopx - t.startx) / 2, m.y = t.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 U(f, m, t) : W(f, m);
|
|
3250
|
+
if (t.sectionTitles !== void 0) {
|
|
3251
|
+
for (let [e, n] of Object.entries(t.sectionTitles)) if (n.message) {
|
|
3252
|
+
m.text = n.message, m.x = t.startx + (t.stopx - t.startx) / 2, m.y = t.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 = t.wrap, v(m.text) ? (t.starty = t.sections[e].y, await U(f, m, t)) : 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
|
+
t.sections[e].height += r - (a + o);
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
-
return
|
|
3258
|
-
}, "drawLoop"), Se = /* @__PURE__ */
|
|
3257
|
+
return t.height = Math.round(t.stopy - t.starty), f;
|
|
3258
|
+
}, "drawLoop"), Se = /* @__PURE__ */ r(function(e, t) {
|
|
3259
3259
|
D(e, t);
|
|
3260
|
-
}, "drawBackgroundRect"), Ce = /* @__PURE__ */
|
|
3260
|
+
}, "drawBackgroundRect"), Ce = /* @__PURE__ */ r(function(e) {
|
|
3261
3261
|
e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
|
|
3262
|
-
}, "insertDatabaseIcon"), we = /* @__PURE__ */
|
|
3262
|
+
}, "insertDatabaseIcon"), we = /* @__PURE__ */ r(function(e) {
|
|
3263
3263
|
e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
|
|
3264
|
-
}, "insertComputerIcon"), K = /* @__PURE__ */
|
|
3264
|
+
}, "insertComputerIcon"), K = /* @__PURE__ */ r(function(e) {
|
|
3265
3265
|
e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
|
|
3266
|
-
}, "insertClockIcon"), q = /* @__PURE__ */
|
|
3266
|
+
}, "insertClockIcon"), q = /* @__PURE__ */ r(function(e) {
|
|
3267
3267
|
e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
|
|
3268
|
-
}, "insertArrowHead"), Te = /* @__PURE__ */
|
|
3268
|
+
}, "insertArrowHead"), Te = /* @__PURE__ */ r(function(e) {
|
|
3269
3269
|
e.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");
|
|
3270
|
-
}, "insertArrowFilledHead"), Ee = /* @__PURE__ */
|
|
3270
|
+
}, "insertArrowFilledHead"), Ee = /* @__PURE__ */ r(function(e) {
|
|
3271
3271
|
e.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);
|
|
3272
|
-
}, "insertSequenceNumber"), De = /* @__PURE__ */
|
|
3272
|
+
}, "insertSequenceNumber"), De = /* @__PURE__ */ r(function(e) {
|
|
3273
3273
|
e.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");
|
|
3274
|
-
}, "insertArrowCrossHead"), Oe = /* @__PURE__ */
|
|
3274
|
+
}, "insertArrowCrossHead"), Oe = /* @__PURE__ */ r(function() {
|
|
3275
3275
|
return {
|
|
3276
3276
|
x: 0,
|
|
3277
3277
|
y: 0,
|
|
@@ -3286,7 +3286,7 @@ var F = P, I = {
|
|
|
3286
3286
|
tspan: !0,
|
|
3287
3287
|
valign: void 0
|
|
3288
3288
|
};
|
|
3289
|
-
}, "getTextObj"), ke = /* @__PURE__ */
|
|
3289
|
+
}, "getTextObj"), ke = /* @__PURE__ */ r(function() {
|
|
3290
3290
|
return {
|
|
3291
3291
|
x: 0,
|
|
3292
3292
|
y: 0,
|
|
@@ -3299,57 +3299,57 @@ var F = P, I = {
|
|
|
3299
3299
|
ry: 0
|
|
3300
3300
|
};
|
|
3301
3301
|
}, "getNoteRect"), J = /* @__PURE__ */ (function() {
|
|
3302
|
-
function
|
|
3302
|
+
function t(e, t, n, r, i, a, s) {
|
|
3303
3303
|
o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
3304
3304
|
}
|
|
3305
|
-
t
|
|
3306
|
-
function n(
|
|
3307
|
-
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] =
|
|
3305
|
+
r(t, "byText");
|
|
3306
|
+
function n(t, n, r, i, a, s, c, l) {
|
|
3307
|
+
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = e(u), h = t.split(b.lineBreakRegex);
|
|
3308
3308
|
for (let e = 0; e < h.length; e++) {
|
|
3309
|
-
let
|
|
3310
|
-
l.append("tspan").attr("x",
|
|
3309
|
+
let t = e * p - p * (h.length - 1) / 2, l = n.append("text").attr("x", r + a / 2).attr("y", i).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
|
|
3310
|
+
l.append("tspan").attr("x", r + a / 2).attr("dy", t).text(h[e]), l.attr("y", i + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, c);
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
|
-
|
|
3313
|
+
r(n, "byTspan");
|
|
3314
3314
|
function i(e, t, r, i, a, s, c, l) {
|
|
3315
3315
|
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3316
3316
|
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
|
|
3317
3317
|
}
|
|
3318
|
-
|
|
3318
|
+
r(i, "byFo");
|
|
3319
3319
|
async function a(e, t, r, i, a, s, c, u) {
|
|
3320
3320
|
let d = await _(e, S()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r + a / 2 - d.width / 2).attr("y", i + s / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
3321
3321
|
p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await l(e, S())), n(e, f, r, i, a, s, c, u), o(p, c);
|
|
3322
3322
|
}
|
|
3323
|
-
|
|
3323
|
+
r(a, "byKatex");
|
|
3324
3324
|
function o(e, t) {
|
|
3325
3325
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3326
3326
|
}
|
|
3327
|
-
return
|
|
3328
|
-
return r ? a :
|
|
3327
|
+
return r(o, "_setTextAttrs"), function(e, r = !1) {
|
|
3328
|
+
return r ? a : e.textPlacement === "fo" ? i : e.textPlacement === "old" ? t : n;
|
|
3329
3329
|
};
|
|
3330
3330
|
})(), Ae = /* @__PURE__ */ (function() {
|
|
3331
3331
|
function e(e, t, n, r, a, o, s) {
|
|
3332
3332
|
i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
|
|
3333
3333
|
}
|
|
3334
|
-
|
|
3335
|
-
function
|
|
3334
|
+
r(e, "byText");
|
|
3335
|
+
function t(e, t, n, r, a, o, s, c) {
|
|
3336
3336
|
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(b.lineBreakRegex);
|
|
3337
3337
|
for (let e = 0; e < f.length; e++) {
|
|
3338
3338
|
let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
|
|
3339
3339
|
c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
|
|
3340
3340
|
}
|
|
3341
3341
|
}
|
|
3342
|
-
t
|
|
3343
|
-
function
|
|
3344
|
-
let u =
|
|
3345
|
-
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e),
|
|
3342
|
+
r(t, "byTspan");
|
|
3343
|
+
function n(e, n, r, a, o, s, c, l) {
|
|
3344
|
+
let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3345
|
+
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, a, o, s, c, l), i(d, c);
|
|
3346
3346
|
}
|
|
3347
|
-
|
|
3347
|
+
r(n, "byFo");
|
|
3348
3348
|
function i(e, t) {
|
|
3349
3349
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3350
3350
|
}
|
|
3351
|
-
return
|
|
3352
|
-
return
|
|
3351
|
+
return r(i, "_setTextAttrs"), function(r) {
|
|
3352
|
+
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
3353
3353
|
};
|
|
3354
3354
|
})(), Y = {
|
|
3355
3355
|
drawRect: V,
|
|
@@ -3373,16 +3373,16 @@ var F = P, I = {
|
|
|
3373
3373
|
getNoteRect: ke,
|
|
3374
3374
|
fixLifeLineHeights: ce,
|
|
3375
3375
|
sanitizeUrl: N.sanitizeUrl,
|
|
3376
|
-
insertSolidTopArrowHead: /* @__PURE__ */
|
|
3376
|
+
insertSolidTopArrowHead: /* @__PURE__ */ r(function(e) {
|
|
3377
3377
|
e.append("defs").append("marker").attr("id", "solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
|
|
3378
3378
|
}, "insertSolidTopArrowHead"),
|
|
3379
|
-
insertSolidBottomArrowHead: /* @__PURE__ */
|
|
3379
|
+
insertSolidBottomArrowHead: /* @__PURE__ */ r(function(e) {
|
|
3380
3380
|
e.append("defs").append("marker").attr("id", "solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
|
|
3381
3381
|
}, "insertSolidBottomArrowHead"),
|
|
3382
|
-
insertStickTopArrowHead: /* @__PURE__ */
|
|
3382
|
+
insertStickTopArrowHead: /* @__PURE__ */ r(function(e) {
|
|
3383
3383
|
e.append("defs").append("marker").attr("id", "stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3384
3384
|
}, "insertStickTopArrowHead"),
|
|
3385
|
-
insertStickBottomArrowHead: /* @__PURE__ */
|
|
3385
|
+
insertStickBottomArrowHead: /* @__PURE__ */ r(function(e) {
|
|
3386
3386
|
e.append("defs").append("marker").attr("id", "stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3387
3387
|
}, "insertStickBottomArrowHead")
|
|
3388
3388
|
}, X = {}, Z = {
|
|
@@ -3396,37 +3396,37 @@ var F = P, I = {
|
|
|
3396
3396
|
sequenceItems: [],
|
|
3397
3397
|
activations: [],
|
|
3398
3398
|
models: {
|
|
3399
|
-
getHeight: /* @__PURE__ */
|
|
3399
|
+
getHeight: /* @__PURE__ */ r(function() {
|
|
3400
3400
|
return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
|
|
3401
3401
|
}, "getHeight"),
|
|
3402
|
-
clear: /* @__PURE__ */
|
|
3402
|
+
clear: /* @__PURE__ */ r(function() {
|
|
3403
3403
|
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
3404
3404
|
}, "clear"),
|
|
3405
|
-
addBox: /* @__PURE__ */
|
|
3405
|
+
addBox: /* @__PURE__ */ r(function(e) {
|
|
3406
3406
|
this.boxes.push(e);
|
|
3407
3407
|
}, "addBox"),
|
|
3408
|
-
addActor: /* @__PURE__ */
|
|
3408
|
+
addActor: /* @__PURE__ */ r(function(e) {
|
|
3409
3409
|
this.actors.push(e);
|
|
3410
3410
|
}, "addActor"),
|
|
3411
|
-
addLoop: /* @__PURE__ */
|
|
3411
|
+
addLoop: /* @__PURE__ */ r(function(e) {
|
|
3412
3412
|
this.loops.push(e);
|
|
3413
3413
|
}, "addLoop"),
|
|
3414
|
-
addMessage: /* @__PURE__ */
|
|
3414
|
+
addMessage: /* @__PURE__ */ r(function(e) {
|
|
3415
3415
|
this.messages.push(e);
|
|
3416
3416
|
}, "addMessage"),
|
|
3417
|
-
addNote: /* @__PURE__ */
|
|
3417
|
+
addNote: /* @__PURE__ */ r(function(e) {
|
|
3418
3418
|
this.notes.push(e);
|
|
3419
3419
|
}, "addNote"),
|
|
3420
|
-
lastActor: /* @__PURE__ */
|
|
3420
|
+
lastActor: /* @__PURE__ */ r(function() {
|
|
3421
3421
|
return this.actors[this.actors.length - 1];
|
|
3422
3422
|
}, "lastActor"),
|
|
3423
|
-
lastLoop: /* @__PURE__ */
|
|
3423
|
+
lastLoop: /* @__PURE__ */ r(function() {
|
|
3424
3424
|
return this.loops[this.loops.length - 1];
|
|
3425
3425
|
}, "lastLoop"),
|
|
3426
|
-
lastMessage: /* @__PURE__ */
|
|
3426
|
+
lastMessage: /* @__PURE__ */ r(function() {
|
|
3427
3427
|
return this.messages[this.messages.length - 1];
|
|
3428
3428
|
}, "lastMessage"),
|
|
3429
|
-
lastNote: /* @__PURE__ */
|
|
3429
|
+
lastNote: /* @__PURE__ */ r(function() {
|
|
3430
3430
|
return this.notes[this.notes.length - 1];
|
|
3431
3431
|
}, "lastNote"),
|
|
3432
3432
|
actors: [],
|
|
@@ -3435,7 +3435,7 @@ var F = P, I = {
|
|
|
3435
3435
|
messages: [],
|
|
3436
3436
|
notes: []
|
|
3437
3437
|
},
|
|
3438
|
-
init: /* @__PURE__ */
|
|
3438
|
+
init: /* @__PURE__ */ r(function() {
|
|
3439
3439
|
this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
|
|
3440
3440
|
startx: void 0,
|
|
3441
3441
|
stopx: void 0,
|
|
@@ -3443,25 +3443,25 @@ var F = P, I = {
|
|
|
3443
3443
|
stopy: void 0
|
|
3444
3444
|
}, this.verticalPos = 0, Be(h());
|
|
3445
3445
|
}, "init"),
|
|
3446
|
-
updateVal: /* @__PURE__ */
|
|
3446
|
+
updateVal: /* @__PURE__ */ r(function(e, t, n, r) {
|
|
3447
3447
|
e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
|
|
3448
3448
|
}, "updateVal"),
|
|
3449
|
-
updateBounds: /* @__PURE__ */
|
|
3449
|
+
updateBounds: /* @__PURE__ */ r(function(e, t, n, i) {
|
|
3450
3450
|
let a = this, o = 0;
|
|
3451
3451
|
function s(s) {
|
|
3452
|
-
return /* @__PURE__ */
|
|
3452
|
+
return /* @__PURE__ */ r(function(r) {
|
|
3453
3453
|
o++;
|
|
3454
3454
|
let c = a.sequenceItems.length - o + 1;
|
|
3455
|
-
a.updateVal(
|
|
3455
|
+
a.updateVal(r, "starty", t - c * X.boxMargin, Math.min), a.updateVal(r, "stopy", i + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", n + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(r, "startx", e - c * X.boxMargin, Math.min), a.updateVal(r, "stopx", n + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", t - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
|
|
3456
3456
|
}, "updateItemBounds");
|
|
3457
3457
|
}
|
|
3458
|
-
|
|
3458
|
+
r(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
|
|
3459
3459
|
}, "updateBounds"),
|
|
3460
|
-
insert: /* @__PURE__ */
|
|
3460
|
+
insert: /* @__PURE__ */ r(function(e, t, n, r) {
|
|
3461
3461
|
let i = b.getMin(e, n), a = b.getMax(e, n), o = b.getMin(t, r), s = b.getMax(t, r);
|
|
3462
3462
|
this.updateVal(Z.data, "startx", i, Math.min), this.updateVal(Z.data, "starty", o, Math.min), this.updateVal(Z.data, "stopx", a, Math.max), this.updateVal(Z.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
|
|
3463
3463
|
}, "insert"),
|
|
3464
|
-
newActivation: /* @__PURE__ */
|
|
3464
|
+
newActivation: /* @__PURE__ */ r(function(e, t, n) {
|
|
3465
3465
|
let r = n.get(e.from), i = Ve(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * X.activationWidth / 2;
|
|
3466
3466
|
this.activations.push({
|
|
3467
3467
|
startx: a,
|
|
@@ -3472,13 +3472,13 @@ var F = P, I = {
|
|
|
3472
3472
|
anchored: Y.anchorElement(t)
|
|
3473
3473
|
});
|
|
3474
3474
|
}, "newActivation"),
|
|
3475
|
-
endActivation: /* @__PURE__ */
|
|
3475
|
+
endActivation: /* @__PURE__ */ r(function(e) {
|
|
3476
3476
|
let t = this.activations.map(function(e) {
|
|
3477
3477
|
return e.actor;
|
|
3478
3478
|
}).lastIndexOf(e.from);
|
|
3479
3479
|
return this.activations.splice(t, 1)[0];
|
|
3480
3480
|
}, "endActivation"),
|
|
3481
|
-
createLoop: /* @__PURE__ */
|
|
3481
|
+
createLoop: /* @__PURE__ */ r(function(e = {
|
|
3482
3482
|
message: void 0,
|
|
3483
3483
|
wrap: !1,
|
|
3484
3484
|
width: void 0
|
|
@@ -3495,45 +3495,45 @@ var F = P, I = {
|
|
|
3495
3495
|
fill: t
|
|
3496
3496
|
};
|
|
3497
3497
|
}, "createLoop"),
|
|
3498
|
-
newLoop: /* @__PURE__ */
|
|
3498
|
+
newLoop: /* @__PURE__ */ r(function(e = {
|
|
3499
3499
|
message: void 0,
|
|
3500
3500
|
wrap: !1,
|
|
3501
3501
|
width: void 0
|
|
3502
3502
|
}, t) {
|
|
3503
3503
|
this.sequenceItems.push(this.createLoop(e, t));
|
|
3504
3504
|
}, "newLoop"),
|
|
3505
|
-
endLoop: /* @__PURE__ */
|
|
3505
|
+
endLoop: /* @__PURE__ */ r(function() {
|
|
3506
3506
|
return this.sequenceItems.pop();
|
|
3507
3507
|
}, "endLoop"),
|
|
3508
|
-
isLoopOverlap: /* @__PURE__ */
|
|
3508
|
+
isLoopOverlap: /* @__PURE__ */ r(function() {
|
|
3509
3509
|
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
|
|
3510
3510
|
}, "isLoopOverlap"),
|
|
3511
|
-
addSectionToLoop: /* @__PURE__ */
|
|
3511
|
+
addSectionToLoop: /* @__PURE__ */ r(function(e) {
|
|
3512
3512
|
let t = this.sequenceItems.pop();
|
|
3513
3513
|
t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
|
|
3514
3514
|
y: Z.getVerticalPos(),
|
|
3515
3515
|
height: 0
|
|
3516
3516
|
}), t.sectionTitles.push(e), this.sequenceItems.push(t);
|
|
3517
3517
|
}, "addSectionToLoop"),
|
|
3518
|
-
saveVerticalPos: /* @__PURE__ */
|
|
3518
|
+
saveVerticalPos: /* @__PURE__ */ r(function() {
|
|
3519
3519
|
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
3520
3520
|
}, "saveVerticalPos"),
|
|
3521
|
-
resetVerticalPos: /* @__PURE__ */
|
|
3521
|
+
resetVerticalPos: /* @__PURE__ */ r(function() {
|
|
3522
3522
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
3523
3523
|
}, "resetVerticalPos"),
|
|
3524
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
3524
|
+
bumpVerticalPos: /* @__PURE__ */ r(function(e) {
|
|
3525
3525
|
this.verticalPos += e, this.data.stopy = b.getMax(this.data.stopy, this.verticalPos);
|
|
3526
3526
|
}, "bumpVerticalPos"),
|
|
3527
|
-
getVerticalPos: /* @__PURE__ */
|
|
3527
|
+
getVerticalPos: /* @__PURE__ */ r(function() {
|
|
3528
3528
|
return this.verticalPos;
|
|
3529
3529
|
}, "getVerticalPos"),
|
|
3530
|
-
getBounds: /* @__PURE__ */
|
|
3530
|
+
getBounds: /* @__PURE__ */ r(function() {
|
|
3531
3531
|
return {
|
|
3532
3532
|
bounds: this.data,
|
|
3533
3533
|
models: this.models
|
|
3534
3534
|
};
|
|
3535
3535
|
}, "getBounds")
|
|
3536
|
-
}, je = /* @__PURE__ */
|
|
3536
|
+
}, je = /* @__PURE__ */ r(async function(e, t) {
|
|
3537
3537
|
Z.bumpVerticalPos(X.boxMargin), t.height = X.boxMargin, t.starty = Z.getVerticalPos();
|
|
3538
3538
|
let n = k();
|
|
3539
3539
|
n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
|
|
@@ -3541,14 +3541,14 @@ var F = P, I = {
|
|
|
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
3542
|
let o = v(a.text) ? await U(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
|
-
}, "drawNote"), Me = /* @__PURE__ */
|
|
3545
|
-
let c = i.db.getActors(), l = c.get(
|
|
3544
|
+
}, "drawNote"), Me = /* @__PURE__ */ r(function(e, t, n, i, a, o, s) {
|
|
3545
|
+
let c = i.db.getActors(), l = c.get(t.from), u = c.get(t.to), d = n.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(t, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ r((e, t) => {
|
|
3546
3546
|
let n = e ? _ : -_;
|
|
3547
3547
|
return t ? -n : n;
|
|
3548
|
-
}, "getCircleOffset"), y = /* @__PURE__ */
|
|
3548
|
+
}, "getCircleOffset"), y = /* @__PURE__ */ r((e) => {
|
|
3549
3549
|
g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3550
3550
|
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
|
|
3551
|
-
if (d) switch (
|
|
3551
|
+
if (d) switch (t.centralConnection) {
|
|
3552
3552
|
case b:
|
|
3553
3553
|
h && (p += v(m, !0));
|
|
3554
3554
|
break;
|
|
@@ -3559,7 +3559,7 @@ var F = P, I = {
|
|
|
3559
3559
|
h ? p += v(m, !0) : f += v(m, !1);
|
|
3560
3560
|
break;
|
|
3561
3561
|
}
|
|
3562
|
-
switch (
|
|
3562
|
+
switch (t.centralConnection) {
|
|
3563
3563
|
case b:
|
|
3564
3564
|
y(p);
|
|
3565
3565
|
break;
|
|
@@ -3570,63 +3570,63 @@ var F = P, I = {
|
|
|
3570
3570
|
y(f), y(p);
|
|
3571
3571
|
break;
|
|
3572
3572
|
}
|
|
3573
|
-
}, "drawCentralConnection"), Q = /* @__PURE__ */
|
|
3573
|
+
}, "drawCentralConnection"), Q = /* @__PURE__ */ r((e) => ({
|
|
3574
3574
|
fontFamily: e.messageFontFamily,
|
|
3575
3575
|
fontSize: e.messageFontSize,
|
|
3576
3576
|
fontWeight: e.messageFontWeight
|
|
3577
|
-
}), "messageFont"), Ne = /* @__PURE__ */
|
|
3577
|
+
}), "messageFont"), Ne = /* @__PURE__ */ r((e) => ({
|
|
3578
3578
|
fontFamily: e.noteFontFamily,
|
|
3579
3579
|
fontSize: e.noteFontSize,
|
|
3580
3580
|
fontWeight: e.noteFontWeight
|
|
3581
|
-
}), "noteFont"), Pe = /* @__PURE__ */
|
|
3581
|
+
}), "noteFont"), Pe = /* @__PURE__ */ r((e) => ({
|
|
3582
3582
|
fontFamily: e.actorFontFamily,
|
|
3583
3583
|
fontSize: e.actorFontSize,
|
|
3584
3584
|
fontWeight: e.actorFontWeight
|
|
3585
3585
|
}), "actorFont");
|
|
3586
|
-
async function Fe(e,
|
|
3586
|
+
async function Fe(e, n) {
|
|
3587
3587
|
Z.bumpVerticalPos(10);
|
|
3588
|
-
let { startx:
|
|
3588
|
+
let { startx: r, stopx: i, message: a } = n, o = b.splitBreaks(a).length, s = v(a), c = s ? await _(a, h()) : t.calculateTextDimensions(a, Q(X));
|
|
3589
3589
|
if (!s) {
|
|
3590
3590
|
let e = c.height / o;
|
|
3591
|
-
|
|
3591
|
+
n.height += e, Z.bumpVerticalPos(e);
|
|
3592
3592
|
}
|
|
3593
3593
|
let l, u = c.height - 10, d = c.width;
|
|
3594
|
-
if (
|
|
3594
|
+
if (r === i) {
|
|
3595
3595
|
l = Z.getVerticalPos() + u, X.rightAngles || (u += X.boxMargin, l = Z.getVerticalPos() + u), u += 30;
|
|
3596
3596
|
let e = b.getMax(d / 2, X.width / 2);
|
|
3597
|
-
Z.insert(
|
|
3598
|
-
} else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(
|
|
3599
|
-
return Z.bumpVerticalPos(u),
|
|
3597
|
+
Z.insert(r - e, Z.getVerticalPos() - 10 + u, i + e, Z.getVerticalPos() + 30 + u);
|
|
3598
|
+
} else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(r, l - 10, i, l);
|
|
3599
|
+
return Z.bumpVerticalPos(u), n.height += u, n.stopy = n.starty + n.height, Z.insert(n.fromBounds, n.starty, n.toBounds, n.stopy), l;
|
|
3600
3600
|
}
|
|
3601
|
-
|
|
3602
|
-
var Ie = /* @__PURE__ */
|
|
3603
|
-
let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } =
|
|
3601
|
+
r(Fe, "boundMessage");
|
|
3602
|
+
var Ie = /* @__PURE__ */ r(async function(e, n, r, i, a) {
|
|
3603
|
+
let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = n, m = t.calculateTextDimensions(u, Q(X)), h = T();
|
|
3604
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 U(e, h, {
|
|
3605
3605
|
startx: o,
|
|
3606
3606
|
stopx: c,
|
|
3607
|
-
starty:
|
|
3607
|
+
starty: r
|
|
3608
3608
|
}) : W(e, h);
|
|
3609
3609
|
let g = m.width, _;
|
|
3610
3610
|
if (o === c) {
|
|
3611
|
-
let t = p || X.showSequenceNumbers,
|
|
3612
|
-
_ = X.rightAngles ? e.append("path").attr("d", `M ${c},${
|
|
3613
|
-
} else _ = e.append("line"), _.attr("x1", o), _.attr("y1",
|
|
3614
|
-
d ===
|
|
3611
|
+
let t = p || X.showSequenceNumbers, n = $e(a, i), s = et(a, i), c = o + (t && (n || s) ? 10 : 0);
|
|
3612
|
+
_ = X.rightAngles ? e.append("path").attr("d", `M ${c},${r} H ${o + b.getMax(X.width / 2, g / 2)} V ${r + 25} H ${o}`) : e.append("path").attr("d", "M " + c + "," + r + " C " + (c + 60) + "," + (r - 10) + " " + (o + 60) + "," + (r + 30) + " " + o + "," + (r + 20));
|
|
3613
|
+
} else _ = e.append("line"), _.attr("x1", o), _.attr("y1", r), _.attr("x2", c), _.attr("y2", r), Ze(a, i) && Me(e, a, n, i, o, c, r);
|
|
3614
|
+
d === i.db.LINETYPE.DOTTED || d === i.db.LINETYPE.DOTTED_CROSS || d === i.db.LINETYPE.DOTTED_POINT || d === i.db.LINETYPE.DOTTED_OPEN || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === i.db.LINETYPE.SOLID_TOP_DOTTED || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === i.db.LINETYPE.STICK_TOP_DOTTED || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0");
|
|
3615
3615
|
let y = "";
|
|
3616
|
-
if (X.arrowMarkerAbsolute && (y = s(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (d ===
|
|
3617
|
-
let
|
|
3618
|
-
|
|
3616
|
+
if (X.arrowMarkerAbsolute && (y = s(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (d === i.db.LINETYPE.SOLID_TOP || d === i.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.SOLID_BOTTOM || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.STICK_TOP || d === i.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.STICK_BOTTOM || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.SOLID || d === i.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + y + "#arrowhead)"), (d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + y + "#arrowhead)"), _.attr("marker-end", "url(" + y + "#arrowhead)")), (d === i.db.LINETYPE.SOLID_POINT || d === i.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + y + "#filled-head)"), (d === i.db.LINETYPE.SOLID_CROSS || d === i.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + y + "#crosshead)"), p || X.showSequenceNumbers) {
|
|
3617
|
+
let t = d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, s = d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, l = Ze(a, i), u = o, p = c;
|
|
3618
|
+
t ? (o < c ? u = o + 12 : (u = o - 6 + (l ? -5 : 0), u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", u)) : s ? (c > o ? p = c - 12 : (p = c - 6, u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += l ? 15 : 0, _.attr("x2", p), _.attr("x1", u)) : _.attr("x1", o + 6);
|
|
3619
3619
|
let m = 0, h = o === c, g = o <= c;
|
|
3620
|
-
m = h ?
|
|
3620
|
+
m = h ? n.fromBounds + 1 : s ? g ? n.toBounds - 1 : n.fromBounds + 1 : g ? n.fromBounds + 1 : n.toBounds - 1, e.append("line").attr("x1", m).attr("y1", r).attr("x2", m).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + y + "#sequencenumber)"), e.append("text").attr("x", m).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
|
|
3621
3621
|
}
|
|
3622
|
-
}, "drawMessage"), Le = /* @__PURE__ */
|
|
3622
|
+
}, "drawMessage"), Le = /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
|
|
3623
3623
|
let s = 0, c = 0, l, u = 0;
|
|
3624
3624
|
for (let e of r) {
|
|
3625
3625
|
let r = t.get(e), a = r.box;
|
|
3626
3626
|
l && l != a && (o || Z.models.addBox(l), c += X.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = r.width || X.width, r.height = b.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = b.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Z.getVerticalPos(), Z.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Z.models.addActor(r);
|
|
3627
3627
|
}
|
|
3628
3628
|
l && !o && Z.models.addBox(l), Z.bumpVerticalPos(u);
|
|
3629
|
-
}, "addActorRenderingData"), Re = /* @__PURE__ */
|
|
3629
|
+
}, "addActorRenderingData"), Re = /* @__PURE__ */ r(async function(e, t, n, r) {
|
|
3630
3630
|
if (r) {
|
|
3631
3631
|
let r = 0;
|
|
3632
3632
|
Z.bumpVerticalPos(X.boxMargin * 2);
|
|
@@ -3641,7 +3641,7 @@ var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
|
|
|
3641
3641
|
let n = t.get(r);
|
|
3642
3642
|
await Y.drawActor(e, n, X, !1);
|
|
3643
3643
|
}
|
|
3644
|
-
}, "drawActors"), ze = /* @__PURE__ */
|
|
3644
|
+
}, "drawActors"), ze = /* @__PURE__ */ r(function(e, t, n, r) {
|
|
3645
3645
|
let i = 0, a = 0;
|
|
3646
3646
|
for (let o of n) {
|
|
3647
3647
|
let n = t.get(o), s = Ke(n), c = Y.drawPopup(e, n, s, X, X.forceMenus, r);
|
|
@@ -3651,13 +3651,13 @@ var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
|
|
|
3651
3651
|
maxHeight: i,
|
|
3652
3652
|
maxWidth: a
|
|
3653
3653
|
};
|
|
3654
|
-
}, "drawActorsPopup"), Be = /* @__PURE__ */
|
|
3654
|
+
}, "drawActorsPopup"), Be = /* @__PURE__ */ r(function(e) {
|
|
3655
3655
|
y(X, e), e.fontFamily && (X.actorFontFamily = X.noteFontFamily = X.messageFontFamily = e.fontFamily), e.fontSize && (X.actorFontSize = X.noteFontSize = X.messageFontSize = e.fontSize), e.fontWeight && (X.actorFontWeight = X.noteFontWeight = X.messageFontWeight = e.fontWeight);
|
|
3656
|
-
}, "setConf"), Ve = /* @__PURE__ */
|
|
3656
|
+
}, "setConf"), Ve = /* @__PURE__ */ r(function(e) {
|
|
3657
3657
|
return Z.activations.filter(function(t) {
|
|
3658
3658
|
return t.actor === e;
|
|
3659
3659
|
});
|
|
3660
|
-
}, "actorActivations"), He = /* @__PURE__ */
|
|
3660
|
+
}, "actorActivations"), He = /* @__PURE__ */ r(function(e, t) {
|
|
3661
3661
|
let n = t.get(e), r = Ve(e);
|
|
3662
3662
|
return [r.reduce(function(e, t) {
|
|
3663
3663
|
return b.getMin(e, t.startx);
|
|
@@ -3665,27 +3665,27 @@ var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
|
|
|
3665
3665
|
return b.getMax(e, t.stopx);
|
|
3666
3666
|
}, n.x + n.width / 2 + 1)];
|
|
3667
3667
|
}, "activationBounds");
|
|
3668
|
-
function $(
|
|
3669
|
-
Z.bumpVerticalPos(
|
|
3668
|
+
function $(e, r, i, a, o) {
|
|
3669
|
+
Z.bumpVerticalPos(i);
|
|
3670
3670
|
let s = a;
|
|
3671
|
-
if (
|
|
3672
|
-
let
|
|
3673
|
-
|
|
3674
|
-
let c =
|
|
3675
|
-
s = a + l,
|
|
3671
|
+
if (r.id && r.message && e[r.id]) {
|
|
3672
|
+
let i = e[r.id].width, o = Q(X);
|
|
3673
|
+
r.message = t.wrapLabel(`[${r.message}]`, i - 2 * X.wrapPadding, o), r.width = i, r.wrap = !0;
|
|
3674
|
+
let c = t.calculateTextDimensions(r.message, o), l = b.getMax(c.height, X.labelBoxHeight);
|
|
3675
|
+
s = a + l, n.debug(`${l} - ${r.message}`);
|
|
3676
3676
|
}
|
|
3677
|
-
o(
|
|
3677
|
+
o(r), Z.bumpVerticalPos(s);
|
|
3678
3678
|
}
|
|
3679
|
-
|
|
3680
|
-
function Ue(e,
|
|
3681
|
-
function c(
|
|
3682
|
-
|
|
3679
|
+
r($, "adjustLoopHeightForWrap");
|
|
3680
|
+
function Ue(e, t, n, i, a, o, s) {
|
|
3681
|
+
function c(n, r) {
|
|
3682
|
+
n.x < a.get(e.from).x ? (Z.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + X.noteMargin), t.stopx += r) : (Z.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + X.noteMargin), t.stopx -= r);
|
|
3683
3683
|
}
|
|
3684
|
-
|
|
3685
|
-
function l(
|
|
3686
|
-
|
|
3684
|
+
r(c, "receiverAdjustment");
|
|
3685
|
+
function l(n, r) {
|
|
3686
|
+
n.x < a.get(e.to).x ? (Z.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + X.noteMargin), t.startx += r) : (Z.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + X.noteMargin), t.startx -= r);
|
|
3687
3687
|
}
|
|
3688
|
-
|
|
3688
|
+
r(l, "senderAdjustment");
|
|
3689
3689
|
let u = [
|
|
3690
3690
|
ne.ACTOR,
|
|
3691
3691
|
ne.CONTROL,
|
|
@@ -3694,24 +3694,24 @@ function Ue(e, n, r, i, a, o, s) {
|
|
|
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) ? L / 2 + 3 : t.width / 2 + 3), t.starty =
|
|
3697
|
+
c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.starty = n - 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) ? L / 2 : t.width / 2), t.stopy =
|
|
3700
|
+
X.mirrorActors && l(t, u.includes(t.type) ? L / 2 : t.width / 2), t.stopy = n - 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) ? L / 2 + 3 : t.width / 2 + 3), t.stopy =
|
|
3703
|
+
X.mirrorActors && c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
|
|
3707
|
-
var We = /* @__PURE__ */
|
|
3706
|
+
r(Ue, "adjustCreatedDestroyedData");
|
|
3707
|
+
var We = /* @__PURE__ */ r(async function(e, t, a, o) {
|
|
3708
3708
|
let { securityLevel: s, sequence: c } = h();
|
|
3709
3709
|
X = c;
|
|
3710
3710
|
let l;
|
|
3711
|
-
s === "sandbox" && (l =
|
|
3712
|
-
let u =
|
|
3713
|
-
Z.init(),
|
|
3714
|
-
let f = s === "sandbox" ? u.select(`[id="${
|
|
3711
|
+
s === "sandbox" && (l = i("#i" + t));
|
|
3712
|
+
let u = i(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = s === "sandbox" ? l.nodes()[0].contentDocument : document;
|
|
3713
|
+
Z.init(), n.debug(o.db);
|
|
3714
|
+
let f = s === "sandbox" ? u.select(`[id="${t}"]`) : i(`[id="${t}"]`), p = o.db.getActors(), m = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), v = o.db.getBoxes(), y = o.db.getActorKeys(), b = o.db.getMessages(), x = o.db.getDiagramTitle(), S = o.db.hasAtLeastOneBox(), C = o.db.hasAtLeastOneBoxWithTitle(), w = await Ge(p, b, o);
|
|
3715
3715
|
if (X.height = await qe(p, w, v), Y.insertComputerIcon(f), Y.insertDatabaseIcon(f), Y.insertClockIcon(f), S && (Z.bumpVerticalPos(X.boxMargin), C && Z.bumpVerticalPos(v[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
|
|
3716
3716
|
let e = /* @__PURE__ */ new Set();
|
|
3717
3717
|
b.forEach((t) => {
|
|
@@ -3725,91 +3725,91 @@ var We = /* @__PURE__ */ t(async function(r, i, a, o) {
|
|
|
3725
3725
|
let n = Z.endActivation(e);
|
|
3726
3726
|
n.starty + 18 > t && (n.starty = t - 6, t += 12), Y.drawActivation(f, n, t, X, Ve(e.from).length), Z.insert(n.startx, t - 10, n.stopx, t);
|
|
3727
3727
|
}
|
|
3728
|
-
|
|
3728
|
+
r(E, "activeEnd");
|
|
3729
3729
|
let D = 1, O = 1, k = [], A = [], j = 0;
|
|
3730
|
-
for (let
|
|
3731
|
-
let
|
|
3732
|
-
switch (
|
|
3730
|
+
for (let e of b) {
|
|
3731
|
+
let t, r, i;
|
|
3732
|
+
switch (e.type) {
|
|
3733
3733
|
case o.db.LINETYPE.NOTE:
|
|
3734
|
-
Z.resetVerticalPos(), r =
|
|
3734
|
+
Z.resetVerticalPos(), r = e.noteModel, await je(f, r);
|
|
3735
3735
|
break;
|
|
3736
3736
|
case o.db.LINETYPE.ACTIVE_START:
|
|
3737
|
-
Z.newActivation(
|
|
3737
|
+
Z.newActivation(e, f, p);
|
|
3738
3738
|
break;
|
|
3739
3739
|
case o.db.LINETYPE.CENTRAL_CONNECTION:
|
|
3740
|
-
Z.newActivation(
|
|
3740
|
+
Z.newActivation(e, f, p);
|
|
3741
3741
|
break;
|
|
3742
3742
|
case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
3743
|
-
Z.newActivation(
|
|
3743
|
+
Z.newActivation(e, f, p);
|
|
3744
3744
|
break;
|
|
3745
3745
|
case o.db.LINETYPE.ACTIVE_END:
|
|
3746
|
-
E(
|
|
3746
|
+
E(e, Z.getVerticalPos());
|
|
3747
3747
|
break;
|
|
3748
3748
|
case o.db.LINETYPE.LOOP_START:
|
|
3749
|
-
$(T,
|
|
3749
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
|
|
3750
3750
|
break;
|
|
3751
3751
|
case o.db.LINETYPE.LOOP_END:
|
|
3752
|
-
|
|
3752
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "loop", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3753
3753
|
break;
|
|
3754
3754
|
case o.db.LINETYPE.RECT_START:
|
|
3755
|
-
$(T,
|
|
3755
|
+
$(T, e, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
|
|
3756
3756
|
break;
|
|
3757
3757
|
case o.db.LINETYPE.RECT_END:
|
|
3758
|
-
|
|
3758
|
+
t = Z.endLoop(), A.push(t), Z.models.addLoop(t), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos());
|
|
3759
3759
|
break;
|
|
3760
3760
|
case o.db.LINETYPE.OPT_START:
|
|
3761
|
-
$(T,
|
|
3761
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
|
|
3762
3762
|
break;
|
|
3763
3763
|
case o.db.LINETYPE.OPT_END:
|
|
3764
|
-
|
|
3764
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "opt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3765
3765
|
break;
|
|
3766
3766
|
case o.db.LINETYPE.ALT_START:
|
|
3767
|
-
$(T,
|
|
3767
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
|
|
3768
3768
|
break;
|
|
3769
3769
|
case o.db.LINETYPE.ALT_ELSE:
|
|
3770
|
-
$(T,
|
|
3770
|
+
$(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
|
|
3771
3771
|
break;
|
|
3772
3772
|
case o.db.LINETYPE.ALT_END:
|
|
3773
|
-
|
|
3773
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "alt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3774
3774
|
break;
|
|
3775
3775
|
case o.db.LINETYPE.PAR_START:
|
|
3776
3776
|
case o.db.LINETYPE.PAR_OVER_START:
|
|
3777
|
-
$(T,
|
|
3777
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e)), Z.saveVerticalPos();
|
|
3778
3778
|
break;
|
|
3779
3779
|
case o.db.LINETYPE.PAR_AND:
|
|
3780
|
-
$(T,
|
|
3780
|
+
$(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
|
|
3781
3781
|
break;
|
|
3782
3782
|
case o.db.LINETYPE.PAR_END:
|
|
3783
|
-
|
|
3783
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "par", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3784
3784
|
break;
|
|
3785
3785
|
case o.db.LINETYPE.AUTONUMBER:
|
|
3786
|
-
D =
|
|
3786
|
+
D = e.message.start || D, O = e.message.step || O, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
|
|
3787
3787
|
break;
|
|
3788
3788
|
case o.db.LINETYPE.CRITICAL_START:
|
|
3789
|
-
$(T,
|
|
3789
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
|
|
3790
3790
|
break;
|
|
3791
3791
|
case o.db.LINETYPE.CRITICAL_OPTION:
|
|
3792
|
-
$(T,
|
|
3792
|
+
$(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
|
|
3793
3793
|
break;
|
|
3794
3794
|
case o.db.LINETYPE.CRITICAL_END:
|
|
3795
|
-
|
|
3795
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "critical", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3796
3796
|
break;
|
|
3797
3797
|
case o.db.LINETYPE.BREAK_START:
|
|
3798
|
-
$(T,
|
|
3798
|
+
$(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
|
|
3799
3799
|
break;
|
|
3800
3800
|
case o.db.LINETYPE.BREAK_END:
|
|
3801
|
-
|
|
3801
|
+
t = Z.endLoop(), await Y.drawLoop(f, t, "break", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
|
|
3802
3802
|
break;
|
|
3803
3803
|
default: try {
|
|
3804
|
-
i =
|
|
3805
|
-
let
|
|
3806
|
-
Ue(
|
|
3804
|
+
i = e.msgModel, i.starty = Z.getVerticalPos(), i.sequenceIndex = D, i.sequenceVisible = o.db.showSequenceNumbers();
|
|
3805
|
+
let t = await Fe(f, i);
|
|
3806
|
+
Ue(e, i, t, j, p, m, _), k.push({
|
|
3807
3807
|
messageModel: i,
|
|
3808
|
-
lineStartY:
|
|
3809
|
-
msg:
|
|
3808
|
+
lineStartY: t,
|
|
3809
|
+
msg: e
|
|
3810
3810
|
}), Z.models.addMessage(i);
|
|
3811
|
-
} catch (
|
|
3812
|
-
|
|
3811
|
+
} catch (e) {
|
|
3812
|
+
n.error("error while drawing message", e);
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
3815
|
[
|
|
@@ -3839,9 +3839,9 @@ var We = /* @__PURE__ */ t(async function(r, i, a, o) {
|
|
|
3839
3839
|
o.db.LINETYPE.DOTTED_POINT,
|
|
3840
3840
|
o.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3841
3841
|
o.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3842
|
-
].includes(
|
|
3842
|
+
].includes(e.type) && (D += O), j++;
|
|
3843
3843
|
}
|
|
3844
|
-
|
|
3844
|
+
n.debug("createdActors", m), n.debug("destroyedActors", _), await Re(f, p, y, !1);
|
|
3845
3845
|
for (let e of k) await Ie(f, e.messageModel, e.lineStartY, o, e.msg);
|
|
3846
3846
|
X.mirrorActors && await Re(f, p, y, !0), A.forEach((e) => Y.drawBackgroundRect(f, e)), ce(f, p, y, X);
|
|
3847
3847
|
for (let e of Z.models.boxes) {
|
|
@@ -3861,83 +3861,83 @@ var We = /* @__PURE__ */ t(async function(r, i, a, o) {
|
|
|
3861
3861
|
let ee = I + 2 * X.diagramMarginX;
|
|
3862
3862
|
x && f.append("text").text(x).attr("x", (N.stopx - N.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), g(f, F, ee, X.useMaxWidth);
|
|
3863
3863
|
let te = x ? 40 : 0;
|
|
3864
|
-
f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)),
|
|
3864
|
+
f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)), n.debug("models:", Z.models);
|
|
3865
3865
|
}, "draw");
|
|
3866
|
-
async function Ge(
|
|
3866
|
+
async function Ge(e, r, i) {
|
|
3867
3867
|
let a = {};
|
|
3868
|
-
for (let
|
|
3869
|
-
let
|
|
3870
|
-
if (
|
|
3871
|
-
let o =
|
|
3872
|
-
s &&
|
|
3868
|
+
for (let n of r) if (e.get(n.to) && e.get(n.from)) {
|
|
3869
|
+
let r = e.get(n.to);
|
|
3870
|
+
if (n.placement === i.db.PLACEMENT.LEFTOF && !r.prevActor || n.placement === i.db.PLACEMENT.RIGHTOF && !r.nextActor) continue;
|
|
3871
|
+
let o = n.placement !== void 0, s = !o, c = o ? Ne(X) : Q(X), l = n.wrap ? t.wrapLabel(n.message, X.width - 2 * X.wrapPadding, c) : n.message, u = (v(l) ? await _(n.message, h()) : t.calculateTextDimensions(l, c)).width + 2 * X.wrapPadding;
|
|
3872
|
+
s && n.from === r.nextActor ? a[n.to] = b.getMax(a[n.to] || 0, u) : s && n.from === r.prevActor ? a[n.from] = b.getMax(a[n.from] || 0, u) : s && n.from === n.to ? (a[n.from] = b.getMax(a[n.from] || 0, u / 2), a[n.to] = b.getMax(a[n.to] || 0, u / 2)) : n.placement === i.db.PLACEMENT.RIGHTOF ? a[n.from] = b.getMax(a[n.from] || 0, u) : n.placement === i.db.PLACEMENT.LEFTOF ? a[r.prevActor] = b.getMax(a[r.prevActor] || 0, u) : n.placement === i.db.PLACEMENT.OVER && (r.prevActor && (a[r.prevActor] = b.getMax(a[r.prevActor] || 0, u / 2)), r.nextActor && (a[n.from] = b.getMax(a[n.from] || 0, u / 2)));
|
|
3873
3873
|
}
|
|
3874
|
-
return
|
|
3874
|
+
return n.debug("maxMessageWidthPerActor:", a), a;
|
|
3875
3875
|
}
|
|
3876
|
-
|
|
3877
|
-
var Ke = /* @__PURE__ */
|
|
3878
|
-
let
|
|
3879
|
-
for (let
|
|
3880
|
-
let e =
|
|
3881
|
-
|
|
3876
|
+
r(Ge, "getMaxMessageWidthPerActor");
|
|
3877
|
+
var Ke = /* @__PURE__ */ r(function(e) {
|
|
3878
|
+
let n = 0, r = Pe(X);
|
|
3879
|
+
for (let i in e.links) {
|
|
3880
|
+
let e = t.calculateTextDimensions(i, r).width + 2 * X.wrapPadding + 2 * X.boxMargin;
|
|
3881
|
+
n < e && (n = e);
|
|
3882
3882
|
}
|
|
3883
|
-
return
|
|
3883
|
+
return n;
|
|
3884
3884
|
}, "getRequiredPopupWidth");
|
|
3885
|
-
async function qe(e,
|
|
3886
|
-
let
|
|
3887
|
-
for (let
|
|
3888
|
-
let n = e.get(t);
|
|
3889
|
-
n.wrap && (n.description = i.wrapLabel(n.description, X.width - 2 * X.wrapPadding, Pe(X)));
|
|
3890
|
-
let a = v(n.description) ? await _(n.description, h()) : i.calculateTextDimensions(n.description, Pe(X));
|
|
3891
|
-
n.width = n.wrap ? X.width : b.getMax(X.width, a.width + 2 * X.wrapPadding), n.height = n.wrap ? b.getMax(a.height, X.height) : X.height, r = b.getMax(r, n.height);
|
|
3892
|
-
}
|
|
3893
|
-
for (let n in t) {
|
|
3885
|
+
async function qe(e, n, r) {
|
|
3886
|
+
let i = 0;
|
|
3887
|
+
for (let n of e.keys()) {
|
|
3894
3888
|
let r = e.get(n);
|
|
3889
|
+
r.wrap && (r.description = t.wrapLabel(r.description, X.width - 2 * X.wrapPadding, Pe(X)));
|
|
3890
|
+
let a = v(r.description) ? await _(r.description, h()) : t.calculateTextDimensions(r.description, Pe(X));
|
|
3891
|
+
r.width = r.wrap ? X.width : b.getMax(X.width, a.width + 2 * X.wrapPadding), r.height = r.wrap ? b.getMax(a.height, X.height) : X.height, i = b.getMax(i, r.height);
|
|
3892
|
+
}
|
|
3893
|
+
for (let t in n) {
|
|
3894
|
+
let r = e.get(t);
|
|
3895
3895
|
if (!r) continue;
|
|
3896
3896
|
let i = e.get(r.nextActor);
|
|
3897
3897
|
if (!i) {
|
|
3898
|
-
let e = t
|
|
3898
|
+
let e = n[t] + X.actorMargin - r.width / 2;
|
|
3899
3899
|
r.margin = b.getMax(e, X.actorMargin);
|
|
3900
3900
|
continue;
|
|
3901
3901
|
}
|
|
3902
|
-
let a = t
|
|
3902
|
+
let a = n[t] + X.actorMargin - r.width / 2 - i.width / 2;
|
|
3903
3903
|
r.margin = b.getMax(a, X.actorMargin);
|
|
3904
3904
|
}
|
|
3905
3905
|
let a = 0;
|
|
3906
|
-
return
|
|
3907
|
-
let
|
|
3908
|
-
|
|
3909
|
-
let s =
|
|
3906
|
+
return r.forEach((n) => {
|
|
3907
|
+
let r = Q(X), i = n.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), o = X.boxMargin * 8;
|
|
3908
|
+
i += o, i -= 2 * X.boxTextMargin, n.wrap && (n.name = t.wrapLabel(n.name, i - 2 * X.wrapPadding, r));
|
|
3909
|
+
let s = t.calculateTextDimensions(n.name, r);
|
|
3910
3910
|
a = b.getMax(s.height, a);
|
|
3911
|
-
let c = b.getMax(
|
|
3912
|
-
if (
|
|
3913
|
-
let e = (c -
|
|
3914
|
-
|
|
3911
|
+
let c = b.getMax(i, s.width + 2 * X.wrapPadding);
|
|
3912
|
+
if (n.margin = X.boxTextMargin, i < c) {
|
|
3913
|
+
let e = (c - i) / 2;
|
|
3914
|
+
n.margin += e;
|
|
3915
3915
|
}
|
|
3916
|
-
}),
|
|
3916
|
+
}), r.forEach((e) => e.textMaxHeight = a), b.getMax(i, X.height);
|
|
3917
3917
|
}
|
|
3918
|
-
|
|
3919
|
-
var Je = /* @__PURE__ */
|
|
3920
|
-
let a =
|
|
3918
|
+
r(qe, "calculateActorMargins");
|
|
3919
|
+
var Je = /* @__PURE__ */ r(async function(e, r, i) {
|
|
3920
|
+
let a = r.get(e.from), o = r.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = v(e.message) ? await _(e.message, h()) : t.calculateTextDimensions(l ? t.wrapLabel(e.message, X.width, Ne(X)) : e.message, Ne(X)), d = {
|
|
3921
3921
|
width: l ? X.width : b.getMax(X.width, u.width + 2 * X.noteMargin),
|
|
3922
3922
|
height: 0,
|
|
3923
3923
|
startx: a.x,
|
|
3924
3924
|
stopx: 0,
|
|
3925
3925
|
starty: 0,
|
|
3926
3926
|
stopy: 0,
|
|
3927
|
-
message:
|
|
3927
|
+
message: e.message
|
|
3928
3928
|
};
|
|
3929
|
-
return
|
|
3930
|
-
}, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */
|
|
3929
|
+
return e.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? b.getMax(X.width, u.width) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s + (a.width + X.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? b.getMax(X.width, u.width + 2 * X.noteMargin) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s - d.width + (a.width - X.actorMargin) / 2) : e.to === e.from ? (u = t.calculateTextDimensions(l ? t.wrapLabel(e.message, b.getMax(X.width, a.width), Ne(X)) : e.message, Ne(X)), d.width = l ? b.getMax(X.width, a.width) : b.getMax(a.width, X.width, u.width + 2 * X.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + X.actorMargin, d.startx = s < c ? s + a.width / 2 - X.actorMargin / 2 : c + o.width / 2 - X.actorMargin / 2), l && (d.message = t.wrapLabel(e.message, d.width - 2 * X.wrapPadding, Ne(X))), n.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
|
|
3930
|
+
}, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */ r(function(e, t) {
|
|
3931
3931
|
let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
|
|
3932
3932
|
return [
|
|
3933
3933
|
n,
|
|
3934
3934
|
r,
|
|
3935
3935
|
i
|
|
3936
3936
|
].includes(e.centralConnection);
|
|
3937
|
-
}, "hasCentralConnection"), Qe = /* @__PURE__ */
|
|
3937
|
+
}, "hasCentralConnection"), Qe = /* @__PURE__ */ r(function(e, t, n) {
|
|
3938
3938
|
let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
|
|
3939
3939
|
return (e.centralConnection === r || e.centralConnection === i) && (s += Ye), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Xe), s;
|
|
3940
|
-
}, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */
|
|
3940
|
+
}, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */ r(function(e, t) {
|
|
3941
3941
|
let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
|
|
3942
3942
|
return [
|
|
3943
3943
|
n,
|
|
@@ -3949,63 +3949,63 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
3949
3949
|
c,
|
|
3950
3950
|
l
|
|
3951
3951
|
].includes(e.type);
|
|
3952
|
-
}, "isReverseArrowType"), et = /* @__PURE__ */
|
|
3952
|
+
}, "isReverseArrowType"), et = /* @__PURE__ */ r(function(e, t) {
|
|
3953
3953
|
let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
|
|
3954
3954
|
return [n, r].includes(e.type);
|
|
3955
|
-
}, "isBidirectionalArrowType"), tt = /* @__PURE__ */
|
|
3955
|
+
}, "isBidirectionalArrowType"), tt = /* @__PURE__ */ r(function(e, n, i) {
|
|
3956
3956
|
if (![
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3957
|
+
i.db.LINETYPE.SOLID_OPEN,
|
|
3958
|
+
i.db.LINETYPE.DOTTED_OPEN,
|
|
3959
|
+
i.db.LINETYPE.SOLID,
|
|
3960
|
+
i.db.LINETYPE.SOLID_TOP,
|
|
3961
|
+
i.db.LINETYPE.SOLID_BOTTOM,
|
|
3962
|
+
i.db.LINETYPE.STICK_TOP,
|
|
3963
|
+
i.db.LINETYPE.STICK_BOTTOM,
|
|
3964
|
+
i.db.LINETYPE.SOLID_TOP_DOTTED,
|
|
3965
|
+
i.db.LINETYPE.SOLID_BOTTOM_DOTTED,
|
|
3966
|
+
i.db.LINETYPE.STICK_TOP_DOTTED,
|
|
3967
|
+
i.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
3968
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
3969
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
|
|
3970
|
+
i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
3971
|
+
i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
3972
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
3973
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3974
|
+
i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
3975
|
+
i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3976
|
+
i.db.LINETYPE.DOTTED,
|
|
3977
|
+
i.db.LINETYPE.SOLID_CROSS,
|
|
3978
|
+
i.db.LINETYPE.DOTTED_CROSS,
|
|
3979
|
+
i.db.LINETYPE.SOLID_POINT,
|
|
3980
|
+
i.db.LINETYPE.DOTTED_POINT,
|
|
3981
|
+
i.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3982
|
+
i.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3983
3983
|
].includes(e.type)) return {};
|
|
3984
3984
|
let [a, o] = He(e.from, n), [s, c] = He(e.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
|
|
3985
|
-
u += Qe(e,
|
|
3986
|
-
let f = Math.abs(s - c) > 2, p = /* @__PURE__ */
|
|
3985
|
+
u += Qe(e, i, l);
|
|
3986
|
+
let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ r((e) => l ? -e : e, "adjustValue");
|
|
3987
3987
|
e.from === e.to ? d = u : (e.activate && !f && (d += p(X.activationWidth / 2 - 1)), [
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
3988
|
+
i.db.LINETYPE.SOLID_OPEN,
|
|
3989
|
+
i.db.LINETYPE.DOTTED_OPEN,
|
|
3990
|
+
i.db.LINETYPE.STICK_TOP,
|
|
3991
|
+
i.db.LINETYPE.STICK_BOTTOM,
|
|
3992
|
+
i.db.LINETYPE.STICK_TOP_DOTTED,
|
|
3993
|
+
i.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
3994
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
3995
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3996
|
+
i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
3997
|
+
i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
3998
|
+
i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
3999
|
+
i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4000
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4001
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4002
4002
|
].includes(e.type) || (d += p(3)), [
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4003
|
+
i.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4004
|
+
i.db.LINETYPE.BIDIRECTIONAL_DOTTED,
|
|
4005
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
4006
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4007
|
+
i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4008
|
+
i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4009
4009
|
].includes(e.type) && (u -= p(3)));
|
|
4010
4010
|
let m = [
|
|
4011
4011
|
a,
|
|
@@ -4013,8 +4013,8 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4013
4013
|
s,
|
|
4014
4014
|
c
|
|
4015
4015
|
], h = Math.abs(u - d);
|
|
4016
|
-
e.wrap && e.message && (e.message =
|
|
4017
|
-
let g =
|
|
4016
|
+
e.wrap && e.message && (e.message = t.wrapLabel(e.message, b.getMax(h + 2 * X.wrapPadding, X.width), Q(X)));
|
|
4017
|
+
let g = t.calculateTextDimensions(e.message, Q(X));
|
|
4018
4018
|
return {
|
|
4019
4019
|
width: b.getMax(e.wrap ? 0 : g.width + 2 * X.wrapPadding, h + 2 * X.wrapPadding, X.width),
|
|
4020
4020
|
height: 0,
|
|
@@ -4028,10 +4028,10 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4028
4028
|
fromBounds: Math.min.apply(null, m),
|
|
4029
4029
|
toBounds: Math.max.apply(null, m)
|
|
4030
4030
|
};
|
|
4031
|
-
}, "buildMessageModel"), nt = /* @__PURE__ */
|
|
4031
|
+
}, "buildMessageModel"), nt = /* @__PURE__ */ r(async function(e, t, r, i) {
|
|
4032
4032
|
let a = {}, o = [], s, c, l;
|
|
4033
|
-
for (let
|
|
4034
|
-
switch (
|
|
4033
|
+
for (let n of e) {
|
|
4034
|
+
switch (n.type) {
|
|
4035
4035
|
case i.db.LINETYPE.LOOP_START:
|
|
4036
4036
|
case i.db.LINETYPE.ALT_START:
|
|
4037
4037
|
case i.db.LINETYPE.OPT_START:
|
|
@@ -4040,8 +4040,8 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4040
4040
|
case i.db.LINETYPE.CRITICAL_START:
|
|
4041
4041
|
case i.db.LINETYPE.BREAK_START:
|
|
4042
4042
|
o.push({
|
|
4043
|
-
id:
|
|
4044
|
-
msg:
|
|
4043
|
+
id: n.id,
|
|
4044
|
+
msg: n.message,
|
|
4045
4045
|
from: 2 ** 53 - 1,
|
|
4046
4046
|
to: -(2 ** 53 - 1),
|
|
4047
4047
|
width: 0
|
|
@@ -4050,7 +4050,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4050
4050
|
case i.db.LINETYPE.ALT_ELSE:
|
|
4051
4051
|
case i.db.LINETYPE.PAR_AND:
|
|
4052
4052
|
case i.db.LINETYPE.CRITICAL_OPTION:
|
|
4053
|
-
|
|
4053
|
+
n.message && (s = o.pop(), a[s.id] = s, a[n.id] = s, o.push(s));
|
|
4054
4054
|
break;
|
|
4055
4055
|
case i.db.LINETYPE.LOOP_END:
|
|
4056
4056
|
case i.db.LINETYPE.ALT_END:
|
|
@@ -4062,10 +4062,10 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4062
4062
|
break;
|
|
4063
4063
|
case i.db.LINETYPE.ACTIVE_START:
|
|
4064
4064
|
{
|
|
4065
|
-
let
|
|
4065
|
+
let e = t.get(n.from ? n.from : n.to.actor), r = Ve(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * X.activationWidth / 2, a = {
|
|
4066
4066
|
startx: i,
|
|
4067
4067
|
stopx: i + X.activationWidth,
|
|
4068
|
-
actor:
|
|
4068
|
+
actor: n.from,
|
|
4069
4069
|
enabled: !0
|
|
4070
4070
|
};
|
|
4071
4071
|
Z.activations.push(a);
|
|
@@ -4073,21 +4073,21 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4073
4073
|
break;
|
|
4074
4074
|
case i.db.LINETYPE.ACTIVE_END:
|
|
4075
4075
|
{
|
|
4076
|
-
let
|
|
4077
|
-
Z.activations.splice(
|
|
4076
|
+
let e = Z.activations.map((e) => e.actor).lastIndexOf(n.from);
|
|
4077
|
+
Z.activations.splice(e, 1).splice(0, 1);
|
|
4078
4078
|
}
|
|
4079
4079
|
break;
|
|
4080
4080
|
}
|
|
4081
|
-
|
|
4082
|
-
if (s =
|
|
4083
|
-
let
|
|
4084
|
-
s.from = b.getMin(
|
|
4081
|
+
n.placement === void 0 ? (l = tt(n, t, i), n.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
|
|
4082
|
+
if (s = e, l.startx === l.stopx) {
|
|
4083
|
+
let e = t.get(n.from), r = t.get(n.to);
|
|
4084
|
+
s.from = b.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = b.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = b.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
|
|
4085
4085
|
} else s.from = b.getMin(l.startx, s.from), s.to = b.getMax(l.stopx, s.to), s.width = b.getMax(s.width, l.width) - X.labelBoxWidth;
|
|
4086
|
-
})) : (c = await Je(
|
|
4086
|
+
})) : (c = await Je(n, t, i), n.noteModel = c, o.forEach((e) => {
|
|
4087
4087
|
s = e, s.from = b.getMin(s.from, c.startx), s.to = b.getMax(s.to, c.startx + c.width), s.width = b.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
|
|
4088
4088
|
}));
|
|
4089
4089
|
}
|
|
4090
|
-
return Z.activations = [],
|
|
4090
|
+
return Z.activations = [], n.debug("Loop type widths:", a), a;
|
|
4091
4091
|
}, "calculateLoopBounds"), rt = {
|
|
4092
4092
|
parser: F,
|
|
4093
4093
|
get db() {
|
|
@@ -4101,7 +4101,7 @@ var Je = /* @__PURE__ */ t(async function(t, n, r) {
|
|
|
4101
4101
|
draw: We
|
|
4102
4102
|
},
|
|
4103
4103
|
styles: ie,
|
|
4104
|
-
init: /* @__PURE__ */
|
|
4104
|
+
init: /* @__PURE__ */ r((e) => {
|
|
4105
4105
|
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, u({ sequence: { wrap: e.wrap } }));
|
|
4106
4106
|
}, "init")
|
|
4107
4107
|
};
|