@readme/markdown 11.1.1 → 11.2.0
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/components/Code/index.tsx +4 -3
- package/components/CodeTabs/index.tsx +5 -2
- package/dist/10.node.js +419 -207
- package/dist/10.node.js.map +1 -1
- package/dist/101.node.js +23 -0
- package/dist/101.node.js.map +1 -0
- package/dist/109.node.js +63 -0
- package/dist/109.node.js.map +1 -0
- package/dist/197.node.js +63 -0
- package/dist/197.node.js.map +1 -0
- package/dist/213.node.js +23 -0
- package/dist/213.node.js.map +1 -0
- package/dist/{580.node.js → 259.node.js} +98 -79
- package/dist/259.node.js.map +1 -0
- package/dist/339.node.js +4 -4
- package/dist/{912.node.js → 356.node.js} +154 -150
- package/dist/356.node.js.map +1 -0
- package/dist/357.node.js +1352 -0
- package/dist/357.node.js.map +1 -0
- package/dist/387.node.js +23 -0
- package/dist/387.node.js.map +1 -0
- package/dist/398.node.js +63 -0
- package/dist/398.node.js.map +1 -0
- package/dist/{805.node.js → 405.node.js} +110 -91
- package/dist/405.node.js.map +1 -0
- package/dist/{23.node.js → 434.node.js} +178 -118
- package/dist/434.node.js.map +1 -0
- package/dist/{550.node.js → 470.node.js} +105 -80
- package/dist/470.node.js.map +1 -0
- package/dist/{870.node.js → 474.node.js} +84 -77
- package/dist/474.node.js.map +1 -0
- package/dist/{649.node.js → 483.node.js} +70 -67
- package/dist/483.node.js.map +1 -0
- package/dist/486.node.js +23865 -25247
- package/dist/486.node.js.map +1 -1
- package/dist/{982.node.js → 524.node.js} +124 -88
- package/dist/524.node.js.map +1 -0
- package/dist/53.node.js +506 -0
- package/dist/53.node.js.map +1 -0
- package/dist/{898.node.js → 561.node.js} +54 -52
- package/dist/561.node.js.map +1 -0
- package/dist/579.node.js +23 -0
- package/dist/579.node.js.map +1 -0
- package/dist/{881.node.js → 680.node.js} +202 -142
- package/dist/680.node.js.map +1 -0
- package/dist/{915.node.js → 7.node.js} +265 -1210
- package/dist/7.node.js.map +1 -0
- package/dist/{188.node.js → 705.node.js} +135 -132
- package/dist/705.node.js.map +1 -0
- package/dist/713.node.js +23 -0
- package/dist/713.node.js.map +1 -0
- package/dist/{135.node.js → 720.node.js} +230 -138
- package/dist/720.node.js.map +1 -0
- package/dist/{364.node.js → 763.node.js} +488 -432
- package/dist/763.node.js.map +1 -0
- package/dist/{572.node.js → 828.node.js} +229 -185
- package/dist/828.node.js.map +1 -0
- package/dist/{311.node.js → 834.node.js} +106 -104
- package/dist/834.node.js.map +1 -0
- package/dist/{359.node.js → 863.node.js} +290 -236
- package/dist/863.node.js.map +1 -0
- package/dist/872.node.js +630 -0
- package/dist/872.node.js.map +1 -0
- package/dist/879.node.js +61 -0
- package/dist/879.node.js.map +1 -0
- package/dist/{371.node.js → 880.node.js} +401 -400
- package/dist/880.node.js.map +1 -0
- package/dist/{214.node.js → 894.node.js} +116 -114
- package/dist/894.node.js.map +1 -0
- package/dist/{890.node.js → 90.node.js} +134 -129
- package/dist/90.node.js.map +1 -0
- package/dist/{855.node.js → 901.node.js} +510 -522
- package/dist/901.node.js.map +1 -0
- package/dist/903.node.js +23 -0
- package/dist/903.node.js.map +1 -0
- package/dist/{38.node.js → 929.node.js} +920 -442
- package/dist/929.node.js.map +1 -0
- package/dist/941.node.js +23 -0
- package/dist/941.node.js.map +1 -0
- package/dist/995.node.js +2 -2
- package/dist/hooks/useHydrated/index.d.ts +6 -0
- package/dist/main.js +26 -8
- package/dist/main.node.js +32 -6
- package/dist/main.node.js.map +1 -1
- package/package.json +3 -3
- package/dist/122.node.js +0 -23
- package/dist/122.node.js.map +0 -1
- package/dist/135.node.js.map +0 -1
- package/dist/136.node.js +0 -23
- package/dist/136.node.js.map +0 -1
- package/dist/188.node.js.map +0 -1
- package/dist/214.node.js.map +0 -1
- package/dist/23.node.js.map +0 -1
- package/dist/311.node.js.map +0 -1
- package/dist/354.node.js +0 -23
- package/dist/354.node.js.map +0 -1
- package/dist/359.node.js.map +0 -1
- package/dist/364.node.js.map +0 -1
- package/dist/371.node.js.map +0 -1
- package/dist/38.node.js.map +0 -1
- package/dist/391.node.js +0 -522
- package/dist/391.node.js.map +0 -1
- package/dist/462.node.js +0 -23
- package/dist/462.node.js.map +0 -1
- package/dist/48.node.js +0 -57
- package/dist/48.node.js.map +0 -1
- package/dist/537.node.js +0 -59
- package/dist/537.node.js.map +0 -1
- package/dist/550.node.js.map +0 -1
- package/dist/572.node.js.map +0 -1
- package/dist/580.node.js.map +0 -1
- package/dist/649.node.js.map +0 -1
- package/dist/740.node.js +0 -23
- package/dist/740.node.js.map +0 -1
- package/dist/741.node.js +0 -23
- package/dist/741.node.js.map +0 -1
- package/dist/779.node.js +0 -57
- package/dist/779.node.js.map +0 -1
- package/dist/805.node.js.map +0 -1
- package/dist/855.node.js.map +0 -1
- package/dist/870.node.js.map +0 -1
- package/dist/874.node.js +0 -57
- package/dist/874.node.js.map +0 -1
- package/dist/881.node.js.map +0 -1
- package/dist/890.node.js.map +0 -1
- package/dist/898.node.js.map +0 -1
- package/dist/912.node.js.map +0 -1
- package/dist/915.node.js.map +0 -1
- package/dist/982.node.js.map +0 -1
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 929;
|
|
3
|
+
exports.ids = [929];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 5463:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ m: () => (/* binding */ ImperativeState)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var _chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(416);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// src/utils/imperativeState.ts
|
|
16
|
+
var ImperativeState = class {
|
|
17
|
+
/**
|
|
18
|
+
* @param init - Function that creates the default state.
|
|
19
|
+
*/
|
|
20
|
+
constructor(init) {
|
|
21
|
+
this.init = init;
|
|
22
|
+
this.records = this.init();
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(this, "ImperativeState");
|
|
26
|
+
}
|
|
27
|
+
reset() {
|
|
28
|
+
this.records = this.init();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/***/ }),
|
|
36
|
+
|
|
37
|
+
/***/ 242:
|
|
7
38
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
39
|
|
|
9
40
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -15,13 +46,15 @@ exports.modules = {
|
|
|
15
46
|
/* harmony export */ m: () => (/* binding */ drawText),
|
|
16
47
|
/* harmony export */ tk: () => (/* binding */ drawRect)
|
|
17
48
|
/* harmony export */ });
|
|
18
|
-
/* harmony import */ var
|
|
19
|
-
/* harmony import */ var
|
|
49
|
+
/* harmony import */ var _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6399);
|
|
50
|
+
/* harmony import */ var _chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(416);
|
|
51
|
+
/* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6750);
|
|
52
|
+
|
|
20
53
|
|
|
21
54
|
|
|
22
55
|
// src/diagrams/common/svgDrawCommon.ts
|
|
23
56
|
|
|
24
|
-
var drawRect = /* @__PURE__ */ (0,
|
|
57
|
+
var drawRect = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)((element, rectData) => {
|
|
25
58
|
const rectElement = element.append("rect");
|
|
26
59
|
rectElement.attr("x", rectData.x);
|
|
27
60
|
rectElement.attr("y", rectData.y);
|
|
@@ -48,7 +81,7 @@ var drawRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0
|
|
|
48
81
|
}
|
|
49
82
|
return rectElement;
|
|
50
83
|
}, "drawRect");
|
|
51
|
-
var drawBackgroundRect = /* @__PURE__ */ (0,
|
|
84
|
+
var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)((element, bounds) => {
|
|
52
85
|
const rectData = {
|
|
53
86
|
x: bounds.startx,
|
|
54
87
|
y: bounds.starty,
|
|
@@ -61,8 +94,8 @@ var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTE
|
|
|
61
94
|
const rectElement = drawRect(element, rectData);
|
|
62
95
|
rectElement.lower();
|
|
63
96
|
}, "drawBackgroundRect");
|
|
64
|
-
var drawText = /* @__PURE__ */ (0,
|
|
65
|
-
const nText = textData.text.replace(
|
|
97
|
+
var drawText = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)((element, textData) => {
|
|
98
|
+
const nText = textData.text.replace(_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_0__/* .lineBreakRegex */ .H1, " ");
|
|
66
99
|
const textElem = element.append("text");
|
|
67
100
|
textElem.attr("x", textData.x);
|
|
68
101
|
textElem.attr("y", textData.y);
|
|
@@ -76,21 +109,21 @@ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0
|
|
|
76
109
|
tspan.text(nText);
|
|
77
110
|
return textElem;
|
|
78
111
|
}, "drawText");
|
|
79
|
-
var drawImage = /* @__PURE__ */ (0,
|
|
112
|
+
var drawImage = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)((elem, x, y, link) => {
|
|
80
113
|
const imageElement = elem.append("image");
|
|
81
114
|
imageElement.attr("x", x);
|
|
82
115
|
imageElement.attr("y", y);
|
|
83
|
-
const sanitizedLink = (0,
|
|
116
|
+
const sanitizedLink = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__/* .sanitizeUrl */ .J)(link);
|
|
84
117
|
imageElement.attr("xlink:href", sanitizedLink);
|
|
85
118
|
}, "drawImage");
|
|
86
|
-
var drawEmbeddedImage = /* @__PURE__ */ (0,
|
|
119
|
+
var drawEmbeddedImage = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)((element, x, y, link) => {
|
|
87
120
|
const imageElement = element.append("use");
|
|
88
121
|
imageElement.attr("x", x);
|
|
89
122
|
imageElement.attr("y", y);
|
|
90
|
-
const sanitizedLink = (0,
|
|
123
|
+
const sanitizedLink = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__/* .sanitizeUrl */ .J)(link);
|
|
91
124
|
imageElement.attr("xlink:href", `#${sanitizedLink}`);
|
|
92
125
|
}, "drawEmbeddedImage");
|
|
93
|
-
var getNoteRect = /* @__PURE__ */ (0,
|
|
126
|
+
var getNoteRect = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)(() => {
|
|
94
127
|
const noteRectData = {
|
|
95
128
|
x: 0,
|
|
96
129
|
y: 0,
|
|
@@ -104,7 +137,7 @@ var getNoteRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
104
137
|
};
|
|
105
138
|
return noteRectData;
|
|
106
139
|
}, "getNoteRect");
|
|
107
|
-
var getTextObj = /* @__PURE__ */ (0,
|
|
140
|
+
var getTextObj = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_1__/* .__name */ .K2)(() => {
|
|
108
141
|
const testObject = {
|
|
109
142
|
x: 0,
|
|
110
143
|
y: 0,
|
|
@@ -125,68 +158,41 @@ var getTextObj = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE
|
|
|
125
158
|
|
|
126
159
|
/***/ }),
|
|
127
160
|
|
|
128
|
-
/***/
|
|
161
|
+
/***/ 5929:
|
|
129
162
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
130
163
|
|
|
131
164
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
132
|
-
/* harmony export */
|
|
165
|
+
/* harmony export */ diagram: () => (/* binding */ diagram)
|
|
133
166
|
/* harmony export */ });
|
|
134
|
-
/* harmony import */ var
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
constructor(init) {
|
|
143
|
-
this.init = init;
|
|
144
|
-
this.records = this.init();
|
|
145
|
-
}
|
|
146
|
-
static {
|
|
147
|
-
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(this, "ImperativeState");
|
|
148
|
-
}
|
|
149
|
-
reset() {
|
|
150
|
-
this.records = this.init();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
167
|
+
/* harmony import */ var _chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(242);
|
|
168
|
+
/* harmony import */ var _chunk_MI3HLSF2_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7028);
|
|
169
|
+
/* harmony import */ var _chunk_QZHKN3VN_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5463);
|
|
170
|
+
/* harmony import */ var _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9131);
|
|
171
|
+
/* harmony import */ var _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6399);
|
|
172
|
+
/* harmony import */ var _chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(416);
|
|
173
|
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(796);
|
|
174
|
+
/* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6750);
|
|
153
175
|
|
|
154
176
|
|
|
155
177
|
|
|
156
178
|
|
|
157
|
-
/***/ }),
|
|
158
|
-
|
|
159
|
-
/***/ 8038:
|
|
160
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
161
|
-
|
|
162
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
163
|
-
/* harmony export */ diagram: () => (/* binding */ diagram)
|
|
164
|
-
/* harmony export */ });
|
|
165
|
-
/* harmony import */ var _chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(148);
|
|
166
|
-
/* harmony import */ var _chunk_XZIHB7SX_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3249);
|
|
167
|
-
/* harmony import */ var _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8430);
|
|
168
|
-
/* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3804);
|
|
169
|
-
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8066);
|
|
170
|
-
/* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6750);
|
|
171
|
-
|
|
172
|
-
|
|
173
179
|
|
|
174
180
|
|
|
175
181
|
|
|
176
182
|
// src/diagrams/sequence/parser/sequenceDiagram.jison
|
|
177
|
-
var parser = function() {
|
|
178
|
-
var o = /* @__PURE__ */ (0,
|
|
183
|
+
var parser = (function() {
|
|
184
|
+
var o = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(k, v, o2, l) {
|
|
179
185
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
180
186
|
return o2;
|
|
181
|
-
}, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 13], $V7 = [1, 14], $V8 = [1, 16], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 24], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 41], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53,
|
|
187
|
+
}, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 13], $V7 = [1, 14], $V8 = [1, 16], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 24], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 41], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], $Vy = [2, 71], $Vz = [4, 5, 16, 50, 52, 53], $VA = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VB = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VC = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VD = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VE = [69, 70, 71], $VF = [1, 127];
|
|
182
188
|
var parser2 = {
|
|
183
|
-
trace: /* @__PURE__ */ (0,
|
|
189
|
+
trace: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function trace() {
|
|
184
190
|
}, "trace"),
|
|
185
191
|
yy: {},
|
|
186
|
-
symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "
|
|
187
|
-
terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy",
|
|
188
|
-
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [
|
|
189
|
-
performAction: /* @__PURE__ */ (0,
|
|
192
|
+
symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "actor_with_config": 54, "note": 55, "placement": 56, "text2": 57, "over": 58, "actor_pair": 59, "links": 60, "link": 61, "properties": 62, "details": 63, "spaceList": 64, ",": 65, "left_of": 66, "right_of": 67, "signaltype": 68, "+": 69, "-": 70, "ACTOR": 71, "config_object": 72, "CONFIG_START": 73, "CONFIG_CONTENT": 74, "CONFIG_END": 75, "SOLID_OPEN_ARROW": 76, "DOTTED_OPEN_ARROW": 77, "SOLID_ARROW": 78, "BIDIRECTIONAL_SOLID_ARROW": 79, "DOTTED_ARROW": 80, "BIDIRECTIONAL_DOTTED_ARROW": 81, "SOLID_CROSS": 82, "DOTTED_CROSS": 83, "SOLID_POINT": 84, "DOTTED_POINT": 85, "TXT": 86, "$accept": 0, "$end": 1 },
|
|
193
|
+
terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 55: "note", 58: "over", 60: "links", 61: "link", 62: "properties", 63: "details", 65: ",", 66: "left_of", 67: "right_of", 69: "+", 70: "-", 71: "ACTOR", 73: "CONFIG_START", 74: "CONFIG_CONTENT", 75: "CONFIG_END", 76: "SOLID_OPEN_ARROW", 77: "DOTTED_OPEN_ARROW", 78: "SOLID_ARROW", 79: "BIDIRECTIONAL_SOLID_ARROW", 80: "DOTTED_ARROW", 81: "BIDIRECTIONAL_DOTTED_ARROW", 82: "SOLID_CROSS", 83: "DOTTED_CROSS", 84: "SOLID_POINT", 85: "DOTTED_POINT", 86: "TXT" },
|
|
194
|
+
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [64, 2], [64, 1], [59, 3], [59, 1], [56, 1], [56, 1], [17, 5], [17, 5], [17, 4], [54, 2], [72, 3], [22, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [57, 1]],
|
|
195
|
+
performAction: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
190
196
|
var $0 = $$.length - 1;
|
|
191
197
|
switch (yystate) {
|
|
192
198
|
case 3:
|
|
@@ -332,39 +338,44 @@ var parser = function() {
|
|
|
332
338
|
this.$ = $$[$0 - 1];
|
|
333
339
|
break;
|
|
334
340
|
case 53:
|
|
335
|
-
|
|
341
|
+
$$[$0 - 1].draw = "participant";
|
|
342
|
+
$$[$0 - 1].type = "addParticipant";
|
|
343
|
+
this.$ = $$[$0 - 1];
|
|
336
344
|
break;
|
|
337
345
|
case 54:
|
|
346
|
+
this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
|
|
347
|
+
break;
|
|
348
|
+
case 55:
|
|
338
349
|
$$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
|
|
339
350
|
$$[$0 - 2][0] = $$[$0 - 2][0].actor;
|
|
340
351
|
$$[$0 - 2][1] = $$[$0 - 2][1].actor;
|
|
341
352
|
this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
|
|
342
353
|
break;
|
|
343
|
-
case
|
|
354
|
+
case 56:
|
|
344
355
|
this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
|
|
345
356
|
break;
|
|
346
|
-
case
|
|
357
|
+
case 57:
|
|
347
358
|
this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
|
|
348
359
|
break;
|
|
349
|
-
case
|
|
360
|
+
case 58:
|
|
350
361
|
this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
|
|
351
362
|
break;
|
|
352
|
-
case
|
|
363
|
+
case 59:
|
|
353
364
|
this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
|
|
354
365
|
break;
|
|
355
|
-
case
|
|
366
|
+
case 62:
|
|
356
367
|
this.$ = [$$[$0 - 2], $$[$0]];
|
|
357
368
|
break;
|
|
358
|
-
case
|
|
369
|
+
case 63:
|
|
359
370
|
this.$ = $$[$0];
|
|
360
371
|
break;
|
|
361
|
-
case
|
|
372
|
+
case 64:
|
|
362
373
|
this.$ = yy.PLACEMENT.LEFTOF;
|
|
363
374
|
break;
|
|
364
|
-
case
|
|
375
|
+
case 65:
|
|
365
376
|
this.$ = yy.PLACEMENT.RIGHTOF;
|
|
366
377
|
break;
|
|
367
|
-
case
|
|
378
|
+
case 66:
|
|
368
379
|
this.$ = [
|
|
369
380
|
$$[$0 - 4],
|
|
370
381
|
$$[$0 - 1],
|
|
@@ -372,7 +383,7 @@ var parser = function() {
|
|
|
372
383
|
{ type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
|
|
373
384
|
];
|
|
374
385
|
break;
|
|
375
|
-
case
|
|
386
|
+
case 67:
|
|
376
387
|
this.$ = [
|
|
377
388
|
$$[$0 - 4],
|
|
378
389
|
$$[$0 - 1],
|
|
@@ -380,50 +391,60 @@ var parser = function() {
|
|
|
380
391
|
{ type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
|
|
381
392
|
];
|
|
382
393
|
break;
|
|
383
|
-
case
|
|
394
|
+
case 68:
|
|
384
395
|
this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
|
|
385
396
|
break;
|
|
386
|
-
case
|
|
397
|
+
case 69:
|
|
398
|
+
this.$ = {
|
|
399
|
+
type: "addParticipant",
|
|
400
|
+
actor: $$[$0 - 1],
|
|
401
|
+
config: $$[$0]
|
|
402
|
+
};
|
|
403
|
+
break;
|
|
404
|
+
case 70:
|
|
405
|
+
this.$ = $$[$0 - 1].trim();
|
|
406
|
+
break;
|
|
407
|
+
case 71:
|
|
387
408
|
this.$ = { type: "addParticipant", actor: $$[$0] };
|
|
388
409
|
break;
|
|
389
|
-
case
|
|
410
|
+
case 72:
|
|
390
411
|
this.$ = yy.LINETYPE.SOLID_OPEN;
|
|
391
412
|
break;
|
|
392
|
-
case
|
|
413
|
+
case 73:
|
|
393
414
|
this.$ = yy.LINETYPE.DOTTED_OPEN;
|
|
394
415
|
break;
|
|
395
|
-
case
|
|
416
|
+
case 74:
|
|
396
417
|
this.$ = yy.LINETYPE.SOLID;
|
|
397
418
|
break;
|
|
398
|
-
case
|
|
419
|
+
case 75:
|
|
399
420
|
this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
|
|
400
421
|
break;
|
|
401
|
-
case
|
|
422
|
+
case 76:
|
|
402
423
|
this.$ = yy.LINETYPE.DOTTED;
|
|
403
424
|
break;
|
|
404
|
-
case
|
|
425
|
+
case 77:
|
|
405
426
|
this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
|
|
406
427
|
break;
|
|
407
|
-
case
|
|
428
|
+
case 78:
|
|
408
429
|
this.$ = yy.LINETYPE.SOLID_CROSS;
|
|
409
430
|
break;
|
|
410
|
-
case
|
|
431
|
+
case 79:
|
|
411
432
|
this.$ = yy.LINETYPE.DOTTED_CROSS;
|
|
412
433
|
break;
|
|
413
|
-
case
|
|
434
|
+
case 80:
|
|
414
435
|
this.$ = yy.LINETYPE.SOLID_POINT;
|
|
415
436
|
break;
|
|
416
|
-
case
|
|
437
|
+
case 81:
|
|
417
438
|
this.$ = yy.LINETYPE.DOTTED_POINT;
|
|
418
439
|
break;
|
|
419
|
-
case
|
|
440
|
+
case 82:
|
|
420
441
|
this.$ = yy.parseMessage($$[$0].trim().substring(1));
|
|
421
442
|
break;
|
|
422
443
|
}
|
|
423
444
|
}, "anonymous"),
|
|
424
|
-
table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53,
|
|
425
|
-
defaultActions: { 5: [2, 1], 6: [2, 2],
|
|
426
|
-
parseError: /* @__PURE__ */ (0,
|
|
445
|
+
table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, o($Vx, [2, 5]), { 9: 47, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, o($Vx, [2, 7]), o($Vx, [2, 8]), o($Vx, [2, 14]), { 12: 48, 50: $Vo, 52: $Vp, 53: $Vq }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 71: $Vw }, { 22: 55, 71: $Vw }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, o($Vx, [2, 29]), o($Vx, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, o($Vx, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 54: 72, 71: [1, 73] }, { 22: 74, 71: $Vw }, { 22: 75, 71: $Vw }, { 68: 76, 76: [1, 77], 77: [1, 78], 78: [1, 79], 79: [1, 80], 80: [1, 81], 81: [1, 82], 82: [1, 83], 83: [1, 84], 84: [1, 85], 85: [1, 86] }, { 56: 87, 58: [1, 88], 66: [1, 89], 67: [1, 90] }, { 22: 91, 71: $Vw }, { 22: 92, 71: $Vw }, { 22: 93, 71: $Vw }, { 22: 94, 71: $Vw }, o([5, 51, 65, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86], $Vy), o($Vx, [2, 6]), o($Vx, [2, 15]), o($Vz, [2, 9], { 10: 95 }), o($Vx, [2, 17]), { 5: [1, 97], 19: [1, 96] }, { 5: [1, 98] }, o($Vx, [2, 21]), { 5: [1, 99] }, { 5: [1, 100] }, o($Vx, [2, 24]), o($Vx, [2, 25]), o($Vx, [2, 26]), o($Vx, [2, 27]), o($Vx, [2, 28]), o($Vx, [2, 31]), o($Vx, [2, 32]), o($VA, $V3, { 7: 101 }), o($VA, $V3, { 7: 102 }), o($VA, $V3, { 7: 103 }), o($VB, $V3, { 40: 104, 7: 105 }), o($VC, $V3, { 42: 106, 7: 107 }), o($VC, $V3, { 7: 107, 42: 108 }), o($VD, $V3, { 45: 109, 7: 110 }), o($VA, $V3, { 7: 111 }), { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, o([5, 51], $Vy, { 72: 115, 73: [1, 116] }), { 5: [1, 118], 51: [1, 117] }, { 5: [1, 119] }, { 22: 122, 69: [1, 120], 70: [1, 121], 71: $Vw }, o($VE, [2, 72]), o($VE, [2, 73]), o($VE, [2, 74]), o($VE, [2, 75]), o($VE, [2, 76]), o($VE, [2, 77]), o($VE, [2, 78]), o($VE, [2, 79]), o($VE, [2, 80]), o($VE, [2, 81]), { 22: 123, 71: $Vw }, { 22: 125, 59: 124, 71: $Vw }, { 71: [2, 64] }, { 71: [2, 65] }, { 57: 126, 86: $VF }, { 57: 128, 86: $VF }, { 57: 129, 86: $VF }, { 57: 130, 86: $VF }, { 4: [1, 133], 5: [1, 135], 11: 132, 12: 134, 16: [1, 131], 50: $Vo, 52: $Vp, 53: $Vq }, { 5: [1, 136] }, o($Vx, [2, 19]), o($Vx, [2, 20]), o($Vx, [2, 22]), o($Vx, [2, 23]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 137], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 138], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 139], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 140] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 46], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 49: [1, 141], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 142] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 44], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 48: [1, 143], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 144] }, { 16: [1, 145] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 42], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 47: [1, 146], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 147], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 15: [1, 148] }, o($Vx, [2, 49]), o($Vx, [2, 53]), { 5: [2, 69] }, { 74: [1, 149] }, { 15: [1, 150] }, o($Vx, [2, 51]), o($Vx, [2, 52]), { 22: 151, 71: $Vw }, { 22: 152, 71: $Vw }, { 57: 153, 86: $VF }, { 57: 154, 86: $VF }, { 57: 155, 86: $VF }, { 65: [1, 156], 86: [2, 63] }, { 5: [2, 56] }, { 5: [2, 82] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: [2, 59] }, o($Vx, [2, 16]), o($Vz, [2, 10]), { 12: 157, 50: $Vo, 52: $Vp, 53: $Vq }, o($Vz, [2, 12]), o($Vz, [2, 13]), o($Vx, [2, 18]), o($Vx, [2, 34]), o($Vx, [2, 35]), o($Vx, [2, 36]), o($Vx, [2, 37]), { 15: [1, 158] }, o($Vx, [2, 38]), { 15: [1, 159] }, o($Vx, [2, 39]), o($Vx, [2, 40]), { 15: [1, 160] }, o($Vx, [2, 41]), { 5: [1, 161] }, { 75: [1, 162] }, { 5: [1, 163] }, { 57: 164, 86: $VF }, { 57: 165, 86: $VF }, { 5: [2, 68] }, { 5: [2, 54] }, { 5: [2, 55] }, { 22: 166, 71: $Vw }, o($Vz, [2, 11]), o($VB, $V3, { 7: 105, 40: 167 }), o($VC, $V3, { 7: 107, 42: 168 }), o($VD, $V3, { 7: 110, 45: 169 }), o($Vx, [2, 48]), { 5: [2, 70] }, o($Vx, [2, 50]), { 5: [2, 66] }, { 5: [2, 67] }, { 86: [2, 62] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
|
|
446
|
+
defaultActions: { 5: [2, 1], 6: [2, 2], 89: [2, 64], 90: [2, 65], 115: [2, 69], 126: [2, 56], 127: [2, 82], 128: [2, 57], 129: [2, 58], 130: [2, 59], 153: [2, 68], 154: [2, 54], 155: [2, 55], 162: [2, 70], 164: [2, 66], 165: [2, 67], 166: [2, 62], 167: [2, 47], 168: [2, 45], 169: [2, 43] },
|
|
447
|
+
parseError: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function parseError(str, hash) {
|
|
427
448
|
if (hash.recoverable) {
|
|
428
449
|
this.trace(str);
|
|
429
450
|
} else {
|
|
@@ -432,7 +453,7 @@ var parser = function() {
|
|
|
432
453
|
throw error;
|
|
433
454
|
}
|
|
434
455
|
}, "parseError"),
|
|
435
|
-
parse: /* @__PURE__ */ (0,
|
|
456
|
+
parse: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function parse(input) {
|
|
436
457
|
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
437
458
|
var args = lstack.slice.call(arguments, 1);
|
|
438
459
|
var lexer2 = Object.create(this.lexer);
|
|
@@ -461,7 +482,7 @@ var parser = function() {
|
|
|
461
482
|
vstack.length = vstack.length - n;
|
|
462
483
|
lstack.length = lstack.length - n;
|
|
463
484
|
}
|
|
464
|
-
(0,
|
|
485
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(popStack, "popStack");
|
|
465
486
|
function lex() {
|
|
466
487
|
var token;
|
|
467
488
|
token = tstack.pop() || lexer2.lex() || EOF;
|
|
@@ -474,7 +495,7 @@ var parser = function() {
|
|
|
474
495
|
}
|
|
475
496
|
return token;
|
|
476
497
|
}
|
|
477
|
-
(0,
|
|
498
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(lex, "lex");
|
|
478
499
|
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
|
479
500
|
while (true) {
|
|
480
501
|
state = stack[stack.length - 1];
|
|
@@ -575,10 +596,10 @@ var parser = function() {
|
|
|
575
596
|
return true;
|
|
576
597
|
}, "parse")
|
|
577
598
|
};
|
|
578
|
-
var lexer = /* @__PURE__ */ function() {
|
|
599
|
+
var lexer = /* @__PURE__ */ (function() {
|
|
579
600
|
var lexer2 = {
|
|
580
601
|
EOF: 1,
|
|
581
|
-
parseError: /* @__PURE__ */ (0,
|
|
602
|
+
parseError: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function parseError(str, hash) {
|
|
582
603
|
if (this.yy.parser) {
|
|
583
604
|
this.yy.parser.parseError(str, hash);
|
|
584
605
|
} else {
|
|
@@ -586,7 +607,7 @@ var parser = function() {
|
|
|
586
607
|
}
|
|
587
608
|
}, "parseError"),
|
|
588
609
|
// resets the lexer, sets new input
|
|
589
|
-
setInput: /* @__PURE__ */ (0,
|
|
610
|
+
setInput: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(input, yy) {
|
|
590
611
|
this.yy = yy || this.yy || {};
|
|
591
612
|
this._input = input;
|
|
592
613
|
this._more = this._backtrack = this.done = false;
|
|
@@ -606,7 +627,7 @@ var parser = function() {
|
|
|
606
627
|
return this;
|
|
607
628
|
}, "setInput"),
|
|
608
629
|
// consumes and returns one char from the input
|
|
609
|
-
input: /* @__PURE__ */ (0,
|
|
630
|
+
input: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
610
631
|
var ch = this._input[0];
|
|
611
632
|
this.yytext += ch;
|
|
612
633
|
this.yyleng++;
|
|
@@ -627,7 +648,7 @@ var parser = function() {
|
|
|
627
648
|
return ch;
|
|
628
649
|
}, "input"),
|
|
629
650
|
// unshifts one char (or a string) into the input
|
|
630
|
-
unput: /* @__PURE__ */ (0,
|
|
651
|
+
unput: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(ch) {
|
|
631
652
|
var len = ch.length;
|
|
632
653
|
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
633
654
|
this._input = ch + this._input;
|
|
@@ -653,12 +674,12 @@ var parser = function() {
|
|
|
653
674
|
return this;
|
|
654
675
|
}, "unput"),
|
|
655
676
|
// When called from action, caches matched text and appends it on next action
|
|
656
|
-
more: /* @__PURE__ */ (0,
|
|
677
|
+
more: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
657
678
|
this._more = true;
|
|
658
679
|
return this;
|
|
659
680
|
}, "more"),
|
|
660
681
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
661
|
-
reject: /* @__PURE__ */ (0,
|
|
682
|
+
reject: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
662
683
|
if (this.options.backtrack_lexer) {
|
|
663
684
|
this._backtrack = true;
|
|
664
685
|
} else {
|
|
@@ -671,16 +692,16 @@ var parser = function() {
|
|
|
671
692
|
return this;
|
|
672
693
|
}, "reject"),
|
|
673
694
|
// retain first n characters of the match
|
|
674
|
-
less: /* @__PURE__ */ (0,
|
|
695
|
+
less: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(n) {
|
|
675
696
|
this.unput(this.match.slice(n));
|
|
676
697
|
}, "less"),
|
|
677
698
|
// displays already matched input, i.e. for error messages
|
|
678
|
-
pastInput: /* @__PURE__ */ (0,
|
|
699
|
+
pastInput: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
679
700
|
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
680
701
|
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
681
702
|
}, "pastInput"),
|
|
682
703
|
// displays upcoming input, i.e. for error messages
|
|
683
|
-
upcomingInput: /* @__PURE__ */ (0,
|
|
704
|
+
upcomingInput: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
684
705
|
var next = this.match;
|
|
685
706
|
if (next.length < 20) {
|
|
686
707
|
next += this._input.substr(0, 20 - next.length);
|
|
@@ -688,13 +709,13 @@ var parser = function() {
|
|
|
688
709
|
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
689
710
|
}, "upcomingInput"),
|
|
690
711
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
691
|
-
showPosition: /* @__PURE__ */ (0,
|
|
712
|
+
showPosition: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
692
713
|
var pre = this.pastInput();
|
|
693
714
|
var c = new Array(pre.length + 1).join("-");
|
|
694
715
|
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
695
716
|
}, "showPosition"),
|
|
696
717
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
697
|
-
test_match: /* @__PURE__ */ (0,
|
|
718
|
+
test_match: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(match, indexed_rule) {
|
|
698
719
|
var token, lines, backup;
|
|
699
720
|
if (this.options.backtrack_lexer) {
|
|
700
721
|
backup = {
|
|
@@ -757,7 +778,7 @@ var parser = function() {
|
|
|
757
778
|
return false;
|
|
758
779
|
}, "test_match"),
|
|
759
780
|
// return next match in input
|
|
760
|
-
next: /* @__PURE__ */ (0,
|
|
781
|
+
next: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
761
782
|
if (this.done) {
|
|
762
783
|
return this.EOF;
|
|
763
784
|
}
|
|
@@ -808,7 +829,7 @@ var parser = function() {
|
|
|
808
829
|
}
|
|
809
830
|
}, "next"),
|
|
810
831
|
// return next match that has a token
|
|
811
|
-
lex: /* @__PURE__ */ (0,
|
|
832
|
+
lex: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function lex() {
|
|
812
833
|
var r = this.next();
|
|
813
834
|
if (r) {
|
|
814
835
|
return r;
|
|
@@ -817,11 +838,11 @@ var parser = function() {
|
|
|
817
838
|
}
|
|
818
839
|
}, "lex"),
|
|
819
840
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
820
|
-
begin: /* @__PURE__ */ (0,
|
|
841
|
+
begin: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function begin(condition) {
|
|
821
842
|
this.conditionStack.push(condition);
|
|
822
843
|
}, "begin"),
|
|
823
844
|
// pop the previously active lexer condition state off the condition stack
|
|
824
|
-
popState: /* @__PURE__ */ (0,
|
|
845
|
+
popState: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function popState() {
|
|
825
846
|
var n = this.conditionStack.length - 1;
|
|
826
847
|
if (n > 0) {
|
|
827
848
|
return this.conditionStack.pop();
|
|
@@ -830,7 +851,7 @@ var parser = function() {
|
|
|
830
851
|
}
|
|
831
852
|
}, "popState"),
|
|
832
853
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
833
|
-
_currentRules: /* @__PURE__ */ (0,
|
|
854
|
+
_currentRules: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function _currentRules() {
|
|
834
855
|
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
835
856
|
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
836
857
|
} else {
|
|
@@ -838,7 +859,7 @@ var parser = function() {
|
|
|
838
859
|
}
|
|
839
860
|
}, "_currentRules"),
|
|
840
861
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
841
|
-
topState: /* @__PURE__ */ (0,
|
|
862
|
+
topState: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function topState(n) {
|
|
842
863
|
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
843
864
|
if (n >= 0) {
|
|
844
865
|
return this.conditionStack[n];
|
|
@@ -847,15 +868,15 @@ var parser = function() {
|
|
|
847
868
|
}
|
|
848
869
|
}, "topState"),
|
|
849
870
|
// alias for begin(condition)
|
|
850
|
-
pushState: /* @__PURE__ */ (0,
|
|
871
|
+
pushState: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function pushState(condition) {
|
|
851
872
|
this.begin(condition);
|
|
852
873
|
}, "pushState"),
|
|
853
874
|
// return the number of states currently on the stack
|
|
854
|
-
stateStackSize: /* @__PURE__ */ (0,
|
|
875
|
+
stateStackSize: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function stateStackSize() {
|
|
855
876
|
return this.conditionStack.length;
|
|
856
877
|
}, "stateStackSize"),
|
|
857
878
|
options: { "case-insensitive": true },
|
|
858
|
-
performAction: /* @__PURE__ */ (0,
|
|
879
|
+
performAction: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
859
880
|
var YYSTATE = YY_START;
|
|
860
881
|
switch ($avoiding_name_collisions) {
|
|
861
882
|
case 0:
|
|
@@ -875,234 +896,258 @@ var parser = function() {
|
|
|
875
896
|
return 19;
|
|
876
897
|
break;
|
|
877
898
|
case 7:
|
|
899
|
+
this.begin("CONFIG");
|
|
900
|
+
return 73;
|
|
901
|
+
break;
|
|
902
|
+
case 8:
|
|
903
|
+
return 74;
|
|
904
|
+
break;
|
|
905
|
+
case 9:
|
|
906
|
+
this.popState();
|
|
907
|
+
this.popState();
|
|
908
|
+
return 75;
|
|
909
|
+
break;
|
|
910
|
+
case 10:
|
|
911
|
+
yy_.yytext = yy_.yytext.trim();
|
|
912
|
+
return 71;
|
|
913
|
+
break;
|
|
914
|
+
case 11:
|
|
915
|
+
yy_.yytext = yy_.yytext.trim();
|
|
916
|
+
this.begin("ALIAS");
|
|
917
|
+
return 71;
|
|
918
|
+
break;
|
|
919
|
+
case 12:
|
|
878
920
|
this.begin("LINE");
|
|
879
921
|
return 14;
|
|
880
922
|
break;
|
|
881
|
-
case
|
|
923
|
+
case 13:
|
|
882
924
|
this.begin("ID");
|
|
883
925
|
return 50;
|
|
884
926
|
break;
|
|
885
|
-
case
|
|
927
|
+
case 14:
|
|
886
928
|
this.begin("ID");
|
|
887
929
|
return 52;
|
|
888
930
|
break;
|
|
889
|
-
case
|
|
931
|
+
case 15:
|
|
890
932
|
return 13;
|
|
891
933
|
break;
|
|
892
|
-
case
|
|
934
|
+
case 16:
|
|
893
935
|
this.begin("ID");
|
|
894
936
|
return 53;
|
|
895
937
|
break;
|
|
896
|
-
case
|
|
938
|
+
case 17:
|
|
897
939
|
yy_.yytext = yy_.yytext.trim();
|
|
898
940
|
this.begin("ALIAS");
|
|
899
|
-
return
|
|
941
|
+
return 71;
|
|
900
942
|
break;
|
|
901
|
-
case
|
|
943
|
+
case 18:
|
|
902
944
|
this.popState();
|
|
903
945
|
this.popState();
|
|
904
946
|
this.begin("LINE");
|
|
905
947
|
return 51;
|
|
906
948
|
break;
|
|
907
|
-
case
|
|
949
|
+
case 19:
|
|
908
950
|
this.popState();
|
|
909
951
|
this.popState();
|
|
910
952
|
return 5;
|
|
911
953
|
break;
|
|
912
|
-
case
|
|
954
|
+
case 20:
|
|
913
955
|
this.begin("LINE");
|
|
914
956
|
return 36;
|
|
915
957
|
break;
|
|
916
|
-
case
|
|
958
|
+
case 21:
|
|
917
959
|
this.begin("LINE");
|
|
918
960
|
return 37;
|
|
919
961
|
break;
|
|
920
|
-
case
|
|
962
|
+
case 22:
|
|
921
963
|
this.begin("LINE");
|
|
922
964
|
return 38;
|
|
923
965
|
break;
|
|
924
|
-
case
|
|
966
|
+
case 23:
|
|
925
967
|
this.begin("LINE");
|
|
926
968
|
return 39;
|
|
927
969
|
break;
|
|
928
|
-
case
|
|
970
|
+
case 24:
|
|
929
971
|
this.begin("LINE");
|
|
930
972
|
return 49;
|
|
931
973
|
break;
|
|
932
|
-
case
|
|
974
|
+
case 25:
|
|
933
975
|
this.begin("LINE");
|
|
934
976
|
return 41;
|
|
935
977
|
break;
|
|
936
|
-
case
|
|
978
|
+
case 26:
|
|
937
979
|
this.begin("LINE");
|
|
938
980
|
return 43;
|
|
939
981
|
break;
|
|
940
|
-
case
|
|
982
|
+
case 27:
|
|
941
983
|
this.begin("LINE");
|
|
942
984
|
return 48;
|
|
943
985
|
break;
|
|
944
|
-
case
|
|
986
|
+
case 28:
|
|
945
987
|
this.begin("LINE");
|
|
946
988
|
return 44;
|
|
947
989
|
break;
|
|
948
|
-
case
|
|
990
|
+
case 29:
|
|
949
991
|
this.begin("LINE");
|
|
950
992
|
return 47;
|
|
951
993
|
break;
|
|
952
|
-
case
|
|
994
|
+
case 30:
|
|
953
995
|
this.begin("LINE");
|
|
954
996
|
return 46;
|
|
955
997
|
break;
|
|
956
|
-
case
|
|
998
|
+
case 31:
|
|
957
999
|
this.popState();
|
|
958
1000
|
return 15;
|
|
959
1001
|
break;
|
|
960
|
-
case
|
|
1002
|
+
case 32:
|
|
961
1003
|
return 16;
|
|
962
1004
|
break;
|
|
963
|
-
case
|
|
964
|
-
return 65;
|
|
965
|
-
break;
|
|
966
|
-
case 29:
|
|
1005
|
+
case 33:
|
|
967
1006
|
return 66;
|
|
968
1007
|
break;
|
|
969
|
-
case
|
|
970
|
-
return
|
|
1008
|
+
case 34:
|
|
1009
|
+
return 67;
|
|
971
1010
|
break;
|
|
972
|
-
case
|
|
1011
|
+
case 35:
|
|
973
1012
|
return 60;
|
|
974
1013
|
break;
|
|
975
|
-
case
|
|
1014
|
+
case 36:
|
|
976
1015
|
return 61;
|
|
977
1016
|
break;
|
|
978
|
-
case
|
|
1017
|
+
case 37:
|
|
979
1018
|
return 62;
|
|
980
1019
|
break;
|
|
981
|
-
case
|
|
982
|
-
return
|
|
1020
|
+
case 38:
|
|
1021
|
+
return 63;
|
|
983
1022
|
break;
|
|
984
|
-
case
|
|
985
|
-
return
|
|
1023
|
+
case 39:
|
|
1024
|
+
return 58;
|
|
986
1025
|
break;
|
|
987
|
-
case
|
|
1026
|
+
case 40:
|
|
1027
|
+
return 55;
|
|
1028
|
+
break;
|
|
1029
|
+
case 41:
|
|
988
1030
|
this.begin("ID");
|
|
989
1031
|
return 21;
|
|
990
1032
|
break;
|
|
991
|
-
case
|
|
1033
|
+
case 42:
|
|
992
1034
|
this.begin("ID");
|
|
993
1035
|
return 23;
|
|
994
1036
|
break;
|
|
995
|
-
case
|
|
1037
|
+
case 43:
|
|
996
1038
|
return 29;
|
|
997
1039
|
break;
|
|
998
|
-
case
|
|
1040
|
+
case 44:
|
|
999
1041
|
return 30;
|
|
1000
1042
|
break;
|
|
1001
|
-
case
|
|
1043
|
+
case 45:
|
|
1002
1044
|
this.begin("acc_title");
|
|
1003
1045
|
return 31;
|
|
1004
1046
|
break;
|
|
1005
|
-
case
|
|
1047
|
+
case 46:
|
|
1006
1048
|
this.popState();
|
|
1007
1049
|
return "acc_title_value";
|
|
1008
1050
|
break;
|
|
1009
|
-
case
|
|
1051
|
+
case 47:
|
|
1010
1052
|
this.begin("acc_descr");
|
|
1011
1053
|
return 33;
|
|
1012
1054
|
break;
|
|
1013
|
-
case
|
|
1055
|
+
case 48:
|
|
1014
1056
|
this.popState();
|
|
1015
1057
|
return "acc_descr_value";
|
|
1016
1058
|
break;
|
|
1017
|
-
case 44:
|
|
1018
|
-
this.begin("acc_descr_multiline");
|
|
1019
|
-
break;
|
|
1020
|
-
case 45:
|
|
1021
|
-
this.popState();
|
|
1022
|
-
break;
|
|
1023
|
-
case 46:
|
|
1024
|
-
return "acc_descr_multiline_value";
|
|
1025
|
-
break;
|
|
1026
|
-
case 47:
|
|
1027
|
-
return 6;
|
|
1028
|
-
break;
|
|
1029
|
-
case 48:
|
|
1030
|
-
return 18;
|
|
1031
|
-
break;
|
|
1032
1059
|
case 49:
|
|
1033
|
-
|
|
1060
|
+
this.begin("acc_descr_multiline");
|
|
1034
1061
|
break;
|
|
1035
1062
|
case 50:
|
|
1036
|
-
|
|
1063
|
+
this.popState();
|
|
1037
1064
|
break;
|
|
1038
1065
|
case 51:
|
|
1039
|
-
return
|
|
1066
|
+
return "acc_descr_multiline_value";
|
|
1040
1067
|
break;
|
|
1041
1068
|
case 52:
|
|
1042
|
-
|
|
1043
|
-
return 70;
|
|
1069
|
+
return 6;
|
|
1044
1070
|
break;
|
|
1045
1071
|
case 53:
|
|
1046
|
-
return
|
|
1072
|
+
return 18;
|
|
1047
1073
|
break;
|
|
1048
1074
|
case 54:
|
|
1049
|
-
return
|
|
1075
|
+
return 20;
|
|
1050
1076
|
break;
|
|
1051
1077
|
case 55:
|
|
1052
|
-
return
|
|
1078
|
+
return 65;
|
|
1053
1079
|
break;
|
|
1054
1080
|
case 56:
|
|
1055
|
-
return
|
|
1081
|
+
return 5;
|
|
1056
1082
|
break;
|
|
1057
1083
|
case 57:
|
|
1084
|
+
yy_.yytext = yy_.yytext.trim();
|
|
1058
1085
|
return 71;
|
|
1059
1086
|
break;
|
|
1060
1087
|
case 58:
|
|
1061
|
-
return
|
|
1088
|
+
return 78;
|
|
1062
1089
|
break;
|
|
1063
1090
|
case 59:
|
|
1064
|
-
return
|
|
1091
|
+
return 79;
|
|
1065
1092
|
break;
|
|
1066
1093
|
case 60:
|
|
1067
|
-
return
|
|
1094
|
+
return 80;
|
|
1068
1095
|
break;
|
|
1069
1096
|
case 61:
|
|
1070
|
-
return
|
|
1097
|
+
return 81;
|
|
1071
1098
|
break;
|
|
1072
1099
|
case 62:
|
|
1073
|
-
return
|
|
1100
|
+
return 76;
|
|
1074
1101
|
break;
|
|
1075
1102
|
case 63:
|
|
1076
|
-
return
|
|
1103
|
+
return 77;
|
|
1077
1104
|
break;
|
|
1078
1105
|
case 64:
|
|
1079
|
-
return
|
|
1106
|
+
return 82;
|
|
1080
1107
|
break;
|
|
1081
1108
|
case 65:
|
|
1082
|
-
return
|
|
1109
|
+
return 83;
|
|
1083
1110
|
break;
|
|
1084
1111
|
case 66:
|
|
1085
|
-
return
|
|
1112
|
+
return 84;
|
|
1086
1113
|
break;
|
|
1087
1114
|
case 67:
|
|
1088
|
-
return
|
|
1115
|
+
return 85;
|
|
1089
1116
|
break;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1117
|
+
case 68:
|
|
1118
|
+
return 86;
|
|
1119
|
+
break;
|
|
1120
|
+
case 69:
|
|
1121
|
+
return 86;
|
|
1122
|
+
break;
|
|
1123
|
+
case 70:
|
|
1124
|
+
return 69;
|
|
1125
|
+
break;
|
|
1126
|
+
case 71:
|
|
1127
|
+
return 70;
|
|
1128
|
+
break;
|
|
1129
|
+
case 72:
|
|
1130
|
+
return 5;
|
|
1131
|
+
break;
|
|
1132
|
+
case 73:
|
|
1133
|
+
return "INVALID";
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
}, "anonymous"),
|
|
1137
|
+
rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
|
|
1138
|
+
conditions: { "acc_descr_multiline": { "rules": [50, 51], "inclusive": false }, "acc_descr": { "rules": [48], "inclusive": false }, "acc_title": { "rules": [46], "inclusive": false }, "ID": { "rules": [2, 3, 7, 10, 11, 17], "inclusive": false }, "ALIAS": { "rules": [2, 3, 18, 19], "inclusive": false }, "LINE": { "rules": [2, 3, 31], "inclusive": false }, "CONFIG": { "rules": [8, 9], "inclusive": false }, "CONFIG_DATA": { "rules": [], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73], "inclusive": true } }
|
|
1139
|
+
};
|
|
1095
1140
|
return lexer2;
|
|
1096
|
-
}();
|
|
1141
|
+
})();
|
|
1097
1142
|
parser2.lexer = lexer;
|
|
1098
1143
|
function Parser() {
|
|
1099
1144
|
this.yy = {};
|
|
1100
1145
|
}
|
|
1101
|
-
(0,
|
|
1146
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(Parser, "Parser");
|
|
1102
1147
|
Parser.prototype = parser2;
|
|
1103
1148
|
parser2.Parser = Parser;
|
|
1104
1149
|
return new Parser();
|
|
1105
|
-
}();
|
|
1150
|
+
})();
|
|
1106
1151
|
parser.parser = parser;
|
|
1107
1152
|
var sequenceDiagram_default = parser;
|
|
1108
1153
|
|
|
@@ -1150,9 +1195,19 @@ var PLACEMENT = {
|
|
|
1150
1195
|
RIGHTOF: 1,
|
|
1151
1196
|
OVER: 2
|
|
1152
1197
|
};
|
|
1198
|
+
var PARTICIPANT_TYPE = {
|
|
1199
|
+
ACTOR: "actor",
|
|
1200
|
+
BOUNDARY: "boundary",
|
|
1201
|
+
COLLECTIONS: "collections",
|
|
1202
|
+
CONTROL: "control",
|
|
1203
|
+
DATABASE: "database",
|
|
1204
|
+
ENTITY: "entity",
|
|
1205
|
+
PARTICIPANT: "participant",
|
|
1206
|
+
QUEUE: "queue"
|
|
1207
|
+
};
|
|
1153
1208
|
var SequenceDB = class {
|
|
1154
1209
|
constructor() {
|
|
1155
|
-
this.state = new
|
|
1210
|
+
this.state = new _chunk_QZHKN3VN_mjs__WEBPACK_IMPORTED_MODULE_2__/* .ImperativeState */ .m(() => ({
|
|
1156
1211
|
prevActor: void 0,
|
|
1157
1212
|
actors: /* @__PURE__ */ new Map(),
|
|
1158
1213
|
createdActors: /* @__PURE__ */ new Map(),
|
|
@@ -1166,23 +1221,23 @@ var SequenceDB = class {
|
|
|
1166
1221
|
lastCreated: void 0,
|
|
1167
1222
|
lastDestroyed: void 0
|
|
1168
1223
|
}));
|
|
1169
|
-
this.setAccTitle =
|
|
1170
|
-
this.setAccDescription =
|
|
1171
|
-
this.setDiagramTitle =
|
|
1172
|
-
this.getAccTitle =
|
|
1173
|
-
this.getAccDescription =
|
|
1174
|
-
this.getDiagramTitle =
|
|
1224
|
+
this.setAccTitle = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .setAccTitle */ .SV;
|
|
1225
|
+
this.setAccDescription = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .setAccDescription */ .EI;
|
|
1226
|
+
this.setDiagramTitle = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .setDiagramTitle */ .ke;
|
|
1227
|
+
this.getAccTitle = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getAccTitle */ .iN;
|
|
1228
|
+
this.getAccDescription = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getAccDescription */ .m7;
|
|
1229
|
+
this.getDiagramTitle = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getDiagramTitle */ .ab;
|
|
1175
1230
|
this.apply = this.apply.bind(this);
|
|
1176
1231
|
this.parseBoxData = this.parseBoxData.bind(this);
|
|
1177
1232
|
this.parseMessage = this.parseMessage.bind(this);
|
|
1178
1233
|
this.clear();
|
|
1179
|
-
this.setWrap((0,
|
|
1234
|
+
this.setWrap((0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)().wrap);
|
|
1180
1235
|
this.LINETYPE = LINETYPE;
|
|
1181
1236
|
this.ARROWTYPE = ARROWTYPE;
|
|
1182
1237
|
this.PLACEMENT = PLACEMENT;
|
|
1183
1238
|
}
|
|
1184
1239
|
static {
|
|
1185
|
-
(0,
|
|
1240
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(this, "SequenceDB");
|
|
1186
1241
|
}
|
|
1187
1242
|
addBox(data) {
|
|
1188
1243
|
this.state.records.boxes.push({
|
|
@@ -1193,8 +1248,19 @@ var SequenceDB = class {
|
|
|
1193
1248
|
});
|
|
1194
1249
|
this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
|
|
1195
1250
|
}
|
|
1196
|
-
addActor(id, name, description, type) {
|
|
1251
|
+
addActor(id, name, description, type, metadata) {
|
|
1197
1252
|
let assignedBox = this.state.records.currentBox;
|
|
1253
|
+
let doc;
|
|
1254
|
+
if (metadata !== void 0) {
|
|
1255
|
+
let yamlData;
|
|
1256
|
+
if (!metadata.includes("\n")) {
|
|
1257
|
+
yamlData = "{\n" + metadata + "\n}";
|
|
1258
|
+
} else {
|
|
1259
|
+
yamlData = metadata + "\n";
|
|
1260
|
+
}
|
|
1261
|
+
doc = (0,_chunk_MI3HLSF2_mjs__WEBPACK_IMPORTED_MODULE_1__/* .load */ .H)(yamlData, { schema: _chunk_MI3HLSF2_mjs__WEBPACK_IMPORTED_MODULE_1__/* .JSON_SCHEMA */ .r });
|
|
1262
|
+
}
|
|
1263
|
+
type = doc?.type ?? type;
|
|
1198
1264
|
const old = this.state.records.actors.get(id);
|
|
1199
1265
|
if (old) {
|
|
1200
1266
|
if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
|
|
@@ -1341,11 +1407,11 @@ var SequenceDB = class {
|
|
|
1341
1407
|
if (this.state.records.wrapEnabled !== void 0) {
|
|
1342
1408
|
return this.state.records.wrapEnabled;
|
|
1343
1409
|
}
|
|
1344
|
-
return (0,
|
|
1410
|
+
return (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)().sequence?.wrap ?? false;
|
|
1345
1411
|
}
|
|
1346
1412
|
clear() {
|
|
1347
1413
|
this.state.reset();
|
|
1348
|
-
(0,
|
|
1414
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .clear */ .IU)();
|
|
1349
1415
|
}
|
|
1350
1416
|
parseMessage(str) {
|
|
1351
1417
|
const trimmedStr = str.trim();
|
|
@@ -1354,7 +1420,7 @@ var SequenceDB = class {
|
|
|
1354
1420
|
text: cleanedText,
|
|
1355
1421
|
wrap
|
|
1356
1422
|
};
|
|
1357
|
-
|
|
1423
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug(`parseMessage: ${JSON.stringify(message)}`);
|
|
1358
1424
|
return message;
|
|
1359
1425
|
}
|
|
1360
1426
|
// We expect the box statement to be color first then description
|
|
@@ -1379,7 +1445,7 @@ var SequenceDB = class {
|
|
|
1379
1445
|
}
|
|
1380
1446
|
const { wrap, cleanedText } = this.extractWrap(title);
|
|
1381
1447
|
return {
|
|
1382
|
-
text: cleanedText ? (0,
|
|
1448
|
+
text: cleanedText ? (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .sanitizeText */ .jZ)(cleanedText, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()) : void 0,
|
|
1383
1449
|
color,
|
|
1384
1450
|
wrap
|
|
1385
1451
|
};
|
|
@@ -1406,20 +1472,20 @@ var SequenceDB = class {
|
|
|
1406
1472
|
addLinks(actorId, text) {
|
|
1407
1473
|
const actor = this.getActor(actorId);
|
|
1408
1474
|
try {
|
|
1409
|
-
let sanitizedText = (0,
|
|
1475
|
+
let sanitizedText = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)());
|
|
1410
1476
|
sanitizedText = sanitizedText.replace(/=/g, "=");
|
|
1411
1477
|
sanitizedText = sanitizedText.replace(/&/g, "&");
|
|
1412
1478
|
const links = JSON.parse(sanitizedText);
|
|
1413
1479
|
this.insertLinks(actor, links);
|
|
1414
1480
|
} catch (e) {
|
|
1415
|
-
|
|
1481
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.error("error while parsing actor link text", e);
|
|
1416
1482
|
}
|
|
1417
1483
|
}
|
|
1418
1484
|
addALink(actorId, text) {
|
|
1419
1485
|
const actor = this.getActor(actorId);
|
|
1420
1486
|
try {
|
|
1421
1487
|
const links = {};
|
|
1422
|
-
let sanitizedText = (0,
|
|
1488
|
+
let sanitizedText = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)());
|
|
1423
1489
|
const sep = sanitizedText.indexOf("@");
|
|
1424
1490
|
sanitizedText = sanitizedText.replace(/=/g, "=");
|
|
1425
1491
|
sanitizedText = sanitizedText.replace(/&/g, "&");
|
|
@@ -1428,7 +1494,7 @@ var SequenceDB = class {
|
|
|
1428
1494
|
links[label] = link;
|
|
1429
1495
|
this.insertLinks(actor, links);
|
|
1430
1496
|
} catch (e) {
|
|
1431
|
-
|
|
1497
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.error("error while parsing actor link text", e);
|
|
1432
1498
|
}
|
|
1433
1499
|
}
|
|
1434
1500
|
insertLinks(actor, links) {
|
|
@@ -1443,11 +1509,11 @@ var SequenceDB = class {
|
|
|
1443
1509
|
addProperties(actorId, text) {
|
|
1444
1510
|
const actor = this.getActor(actorId);
|
|
1445
1511
|
try {
|
|
1446
|
-
const sanitizedText = (0,
|
|
1512
|
+
const sanitizedText = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)());
|
|
1447
1513
|
const properties = JSON.parse(sanitizedText);
|
|
1448
1514
|
this.insertProperties(actor, properties);
|
|
1449
1515
|
} catch (e) {
|
|
1450
|
-
|
|
1516
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.error("error while parsing actor properties text", e);
|
|
1451
1517
|
}
|
|
1452
1518
|
}
|
|
1453
1519
|
insertProperties(actor, properties) {
|
|
@@ -1475,7 +1541,7 @@ var SequenceDB = class {
|
|
|
1475
1541
|
this.insertLinks(actor, details.links);
|
|
1476
1542
|
}
|
|
1477
1543
|
} catch (e) {
|
|
1478
|
-
|
|
1544
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.error("error while parsing actor details text", e);
|
|
1479
1545
|
}
|
|
1480
1546
|
}
|
|
1481
1547
|
getActorProperty(actor, key) {
|
|
@@ -1507,7 +1573,7 @@ var SequenceDB = class {
|
|
|
1507
1573
|
});
|
|
1508
1574
|
break;
|
|
1509
1575
|
case "addParticipant":
|
|
1510
|
-
this.addActor(param.actor, param.actor, param.description, param.draw);
|
|
1576
|
+
this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
|
|
1511
1577
|
break;
|
|
1512
1578
|
case "createParticipant":
|
|
1513
1579
|
if (this.state.records.actors.has(param.actor)) {
|
|
@@ -1516,7 +1582,7 @@ var SequenceDB = class {
|
|
|
1516
1582
|
);
|
|
1517
1583
|
}
|
|
1518
1584
|
this.state.records.lastCreated = param.actor;
|
|
1519
|
-
this.addActor(param.actor, param.actor, param.description, param.draw);
|
|
1585
|
+
this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
|
|
1520
1586
|
this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
|
|
1521
1587
|
break;
|
|
1522
1588
|
case "destroyParticipant":
|
|
@@ -1598,7 +1664,7 @@ var SequenceDB = class {
|
|
|
1598
1664
|
this.addSignal(void 0, void 0, void 0, param.signalType);
|
|
1599
1665
|
break;
|
|
1600
1666
|
case "setAccTitle":
|
|
1601
|
-
(0,
|
|
1667
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .setAccTitle */ .SV)(param.text);
|
|
1602
1668
|
break;
|
|
1603
1669
|
case "parStart":
|
|
1604
1670
|
this.addSignal(void 0, void 0, param.parText, param.signalType);
|
|
@@ -1628,12 +1694,12 @@ var SequenceDB = class {
|
|
|
1628
1694
|
}
|
|
1629
1695
|
}
|
|
1630
1696
|
getConfig() {
|
|
1631
|
-
return (0,
|
|
1697
|
+
return (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)().sequence;
|
|
1632
1698
|
}
|
|
1633
1699
|
};
|
|
1634
1700
|
|
|
1635
1701
|
// src/diagrams/sequence/styles.js
|
|
1636
|
-
var getStyles = /* @__PURE__ */ (0,
|
|
1702
|
+
var getStyles = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((options) => `.actor {
|
|
1637
1703
|
stroke: ${options.actorBorder};
|
|
1638
1704
|
fill: ${options.actorBkg};
|
|
1639
1705
|
}
|
|
@@ -1646,6 +1712,11 @@ var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1646
1712
|
.actor-line {
|
|
1647
1713
|
stroke: ${options.actorLineColor};
|
|
1648
1714
|
}
|
|
1715
|
+
|
|
1716
|
+
.innerArc {
|
|
1717
|
+
stroke-width: 1.5;
|
|
1718
|
+
stroke-dasharray: none;
|
|
1719
|
+
}
|
|
1649
1720
|
|
|
1650
1721
|
.messageLine0 {
|
|
1651
1722
|
stroke-width: 1.5;
|
|
@@ -1749,6 +1820,7 @@ var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1749
1820
|
fill: ${options.actorBkg};
|
|
1750
1821
|
stroke-width: 2px;
|
|
1751
1822
|
}
|
|
1823
|
+
|
|
1752
1824
|
`, "getStyles");
|
|
1753
1825
|
var styles_default = getStyles;
|
|
1754
1826
|
|
|
@@ -1762,10 +1834,10 @@ var TOP_ACTOR_CLASS = "actor-top";
|
|
|
1762
1834
|
var BOTTOM_ACTOR_CLASS = "actor-bottom";
|
|
1763
1835
|
var ACTOR_BOX_CLASS = "actor-box";
|
|
1764
1836
|
var ACTOR_MAN_FIGURE_CLASS = "actor-man";
|
|
1765
|
-
var drawRect2 = /* @__PURE__ */ (0,
|
|
1766
|
-
return (0,
|
|
1837
|
+
var drawRect2 = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, rectData) {
|
|
1838
|
+
return (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawRect */ .tk)(elem, rectData);
|
|
1767
1839
|
}, "drawRect");
|
|
1768
|
-
var drawPopup = /* @__PURE__ */ (0,
|
|
1840
|
+
var drawPopup = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
|
|
1769
1841
|
if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
|
|
1770
1842
|
return { height: 0, width: 0 };
|
|
1771
1843
|
}
|
|
@@ -1799,7 +1871,7 @@ var drawPopup = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1799
1871
|
var linkY = 20;
|
|
1800
1872
|
for (let key in links) {
|
|
1801
1873
|
var linkElem = g.append("a");
|
|
1802
|
-
var sanitizedLink = (0,
|
|
1874
|
+
var sanitizedLink = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_7__/* .sanitizeUrl */ .J)(links[key]);
|
|
1803
1875
|
linkElem.attr("xlink:href", sanitizedLink);
|
|
1804
1876
|
linkElem.attr("target", "_blank");
|
|
1805
1877
|
_drawMenuItemTextCandidateFunc(textAttrs)(
|
|
@@ -1818,13 +1890,13 @@ var drawPopup = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1818
1890
|
rectElem.attr("height", linkY);
|
|
1819
1891
|
return { height: rectData.height + linkY, width: menuWidth };
|
|
1820
1892
|
}, "drawPopup");
|
|
1821
|
-
var popupMenuToggle = /* @__PURE__ */ (0,
|
|
1893
|
+
var popupMenuToggle = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(popId) {
|
|
1822
1894
|
return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
1823
1895
|
}, "popupMenuToggle");
|
|
1824
|
-
var drawKatex = /* @__PURE__ */ (0,
|
|
1896
|
+
var drawKatex = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(elem, textData, msgModel = null) {
|
|
1825
1897
|
let textElem = elem.append("foreignObject");
|
|
1826
|
-
const
|
|
1827
|
-
const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(
|
|
1898
|
+
const linesSanitized = await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .renderKatexSanitized */ .dj)(textData.text, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)());
|
|
1899
|
+
const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(linesSanitized);
|
|
1828
1900
|
const dim = divElem.node().getBoundingClientRect();
|
|
1829
1901
|
textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
|
|
1830
1902
|
if (textData.class === "noteText") {
|
|
@@ -1848,27 +1920,27 @@ var drawKatex = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1848
1920
|
}
|
|
1849
1921
|
return [textElem];
|
|
1850
1922
|
}, "drawKatex");
|
|
1851
|
-
var drawText = /* @__PURE__ */ (0,
|
|
1923
|
+
var drawText = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, textData) {
|
|
1852
1924
|
let prevTextHeight = 0;
|
|
1853
1925
|
let textHeight = 0;
|
|
1854
|
-
const lines = textData.text.split(
|
|
1855
|
-
const [_textFontSize, _textFontSizePx] = (0,
|
|
1926
|
+
const lines = textData.text.split(_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.lineBreakRegex);
|
|
1927
|
+
const [_textFontSize, _textFontSizePx] = (0,_chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseFontSize */ .I5)(textData.fontSize);
|
|
1856
1928
|
let textElems = [];
|
|
1857
1929
|
let dy = 0;
|
|
1858
|
-
let yfunc = /* @__PURE__ */ (0,
|
|
1930
|
+
let yfunc = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(() => textData.y, "yfunc");
|
|
1859
1931
|
if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
|
|
1860
1932
|
switch (textData.valign) {
|
|
1861
1933
|
case "top":
|
|
1862
1934
|
case "start":
|
|
1863
|
-
yfunc = /* @__PURE__ */ (0,
|
|
1935
|
+
yfunc = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(() => Math.round(textData.y + textData.textMargin), "yfunc");
|
|
1864
1936
|
break;
|
|
1865
1937
|
case "middle":
|
|
1866
1938
|
case "center":
|
|
1867
|
-
yfunc = /* @__PURE__ */ (0,
|
|
1939
|
+
yfunc = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
|
|
1868
1940
|
break;
|
|
1869
1941
|
case "bottom":
|
|
1870
1942
|
case "end":
|
|
1871
|
-
yfunc = /* @__PURE__ */ (0,
|
|
1943
|
+
yfunc = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(() => Math.round(
|
|
1872
1944
|
textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
|
|
1873
1945
|
), "yfunc");
|
|
1874
1946
|
break;
|
|
@@ -1929,7 +2001,7 @@ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
1929
2001
|
} else if (dy !== 0) {
|
|
1930
2002
|
textElem.attr("dy", dy);
|
|
1931
2003
|
}
|
|
1932
|
-
const text = line ||
|
|
2004
|
+
const text = line || _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .ZERO_WIDTH_SPACE */ .pe;
|
|
1933
2005
|
if (textData.tspan) {
|
|
1934
2006
|
const span = textElem.append("tspan");
|
|
1935
2007
|
span.attr("x", textData.x);
|
|
@@ -1948,11 +2020,11 @@ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
1948
2020
|
}
|
|
1949
2021
|
return textElems;
|
|
1950
2022
|
}, "drawText");
|
|
1951
|
-
var drawLabel = /* @__PURE__ */ (0,
|
|
2023
|
+
var drawLabel = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, txtObject) {
|
|
1952
2024
|
function genPoints(x, y, width, height, cut) {
|
|
1953
2025
|
return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
|
|
1954
2026
|
}
|
|
1955
|
-
(0,
|
|
2027
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(genPoints, "genPoints");
|
|
1956
2028
|
const polygon = elem.append("polygon");
|
|
1957
2029
|
polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
|
|
1958
2030
|
polygon.attr("class", "labelBox");
|
|
@@ -1961,7 +2033,7 @@ var drawLabel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
1961
2033
|
return polygon;
|
|
1962
2034
|
}, "drawLabel");
|
|
1963
2035
|
var actorCnt = -1;
|
|
1964
|
-
var fixLifeLineHeights = /* @__PURE__ */ (0,
|
|
2036
|
+
var fixLifeLineHeights = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((diagram2, actors, actorKeys, conf2) => {
|
|
1965
2037
|
if (!diagram2.select) {
|
|
1966
2038
|
return;
|
|
1967
2039
|
}
|
|
@@ -1975,7 +2047,7 @@ var fixLifeLineHeights = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTE
|
|
|
1975
2047
|
}
|
|
1976
2048
|
});
|
|
1977
2049
|
}, "fixLifeLineHeights");
|
|
1978
|
-
var drawActorTypeParticipant = /* @__PURE__ */ (0,
|
|
2050
|
+
var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
1979
2051
|
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
1980
2052
|
const center = actor.x + actor.width / 2;
|
|
1981
2053
|
const centerY = actorY + actor.height;
|
|
@@ -1993,7 +2065,7 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_I
|
|
|
1993
2065
|
g.attr("id", "root-" + actorCnt);
|
|
1994
2066
|
}
|
|
1995
2067
|
}
|
|
1996
|
-
const rect = (0,
|
|
2068
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
1997
2069
|
var cssclass = "actor";
|
|
1998
2070
|
if (actor.properties?.class) {
|
|
1999
2071
|
cssclass = actor.properties.class;
|
|
@@ -2018,12 +2090,12 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_I
|
|
|
2018
2090
|
if (actor.properties?.icon) {
|
|
2019
2091
|
const iconSrc = actor.properties.icon.trim();
|
|
2020
2092
|
if (iconSrc.charAt(0) === "@") {
|
|
2021
|
-
(0,
|
|
2093
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawEmbeddedImage */ .CP)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
|
|
2022
2094
|
} else {
|
|
2023
|
-
(0,
|
|
2095
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawImage */ .aC)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
|
|
2024
2096
|
}
|
|
2025
2097
|
}
|
|
2026
|
-
_drawTextCandidateFunc(conf2, (0,
|
|
2098
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2027
2099
|
actor.description,
|
|
2028
2100
|
g,
|
|
2029
2101
|
rect.x,
|
|
@@ -2041,7 +2113,385 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_I
|
|
|
2041
2113
|
}
|
|
2042
2114
|
return height;
|
|
2043
2115
|
}, "drawActorTypeParticipant");
|
|
2044
|
-
var
|
|
2116
|
+
var drawActorTypeCollections = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2117
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2118
|
+
const center = actor.x + actor.width / 2;
|
|
2119
|
+
const centerY = actorY + actor.height;
|
|
2120
|
+
const boxplusLineGroup = elem.append("g").lower();
|
|
2121
|
+
var g = boxplusLineGroup;
|
|
2122
|
+
if (!isFooter) {
|
|
2123
|
+
actorCnt++;
|
|
2124
|
+
if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
|
|
2125
|
+
g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
|
|
2126
|
+
}
|
|
2127
|
+
g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2128
|
+
g = boxplusLineGroup.append("g");
|
|
2129
|
+
actor.actorCnt = actorCnt;
|
|
2130
|
+
if (actor.links != null) {
|
|
2131
|
+
g.attr("id", "root-" + actorCnt);
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2135
|
+
var cssclass = "actor";
|
|
2136
|
+
if (actor.properties?.class) {
|
|
2137
|
+
cssclass = actor.properties.class;
|
|
2138
|
+
} else {
|
|
2139
|
+
rect.fill = "#eaeaea";
|
|
2140
|
+
}
|
|
2141
|
+
if (isFooter) {
|
|
2142
|
+
cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2143
|
+
} else {
|
|
2144
|
+
cssclass += ` ${TOP_ACTOR_CLASS}`;
|
|
2145
|
+
}
|
|
2146
|
+
rect.x = actor.x;
|
|
2147
|
+
rect.y = actorY;
|
|
2148
|
+
rect.width = actor.width;
|
|
2149
|
+
rect.height = actor.height;
|
|
2150
|
+
rect.class = cssclass;
|
|
2151
|
+
rect.name = actor.name;
|
|
2152
|
+
const offset = 6;
|
|
2153
|
+
const shadowRect = {
|
|
2154
|
+
...rect,
|
|
2155
|
+
x: rect.x + (isFooter ? -offset : -offset),
|
|
2156
|
+
y: rect.y + (isFooter ? +offset : +offset),
|
|
2157
|
+
class: "actor"
|
|
2158
|
+
};
|
|
2159
|
+
const rectElem = drawRect2(g, rect);
|
|
2160
|
+
drawRect2(g, shadowRect);
|
|
2161
|
+
actor.rectData = rect;
|
|
2162
|
+
if (actor.properties?.icon) {
|
|
2163
|
+
const iconSrc = actor.properties.icon.trim();
|
|
2164
|
+
if (iconSrc.charAt(0) === "@") {
|
|
2165
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawEmbeddedImage */ .CP)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
|
|
2166
|
+
} else {
|
|
2167
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawImage */ .aC)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2171
|
+
actor.description,
|
|
2172
|
+
g,
|
|
2173
|
+
rect.x - offset,
|
|
2174
|
+
rect.y + offset,
|
|
2175
|
+
rect.width,
|
|
2176
|
+
rect.height,
|
|
2177
|
+
{ class: `actor ${ACTOR_BOX_CLASS}` },
|
|
2178
|
+
conf2
|
|
2179
|
+
);
|
|
2180
|
+
let height = actor.height;
|
|
2181
|
+
if (rectElem.node) {
|
|
2182
|
+
const bounds2 = rectElem.node().getBBox();
|
|
2183
|
+
actor.height = bounds2.height;
|
|
2184
|
+
height = bounds2.height;
|
|
2185
|
+
}
|
|
2186
|
+
return height;
|
|
2187
|
+
}, "drawActorTypeCollections");
|
|
2188
|
+
var drawActorTypeQueue = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2189
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2190
|
+
const center = actor.x + actor.width / 2;
|
|
2191
|
+
const centerY = actorY + actor.height;
|
|
2192
|
+
const boxplusLineGroup = elem.append("g").lower();
|
|
2193
|
+
let g = boxplusLineGroup;
|
|
2194
|
+
if (!isFooter) {
|
|
2195
|
+
actorCnt++;
|
|
2196
|
+
if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
|
|
2197
|
+
g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
|
|
2198
|
+
}
|
|
2199
|
+
g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2200
|
+
g = boxplusLineGroup.append("g");
|
|
2201
|
+
actor.actorCnt = actorCnt;
|
|
2202
|
+
if (actor.links != null) {
|
|
2203
|
+
g.attr("id", "root-" + actorCnt);
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2207
|
+
let cssclass = "actor";
|
|
2208
|
+
if (actor.properties?.class) {
|
|
2209
|
+
cssclass = actor.properties.class;
|
|
2210
|
+
} else {
|
|
2211
|
+
rect.fill = "#eaeaea";
|
|
2212
|
+
}
|
|
2213
|
+
if (isFooter) {
|
|
2214
|
+
cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2215
|
+
} else {
|
|
2216
|
+
cssclass += ` ${TOP_ACTOR_CLASS}`;
|
|
2217
|
+
}
|
|
2218
|
+
rect.x = actor.x;
|
|
2219
|
+
rect.y = actorY;
|
|
2220
|
+
rect.width = actor.width;
|
|
2221
|
+
rect.height = actor.height;
|
|
2222
|
+
rect.class = cssclass;
|
|
2223
|
+
rect.name = actor.name;
|
|
2224
|
+
const ry = rect.height / 2;
|
|
2225
|
+
const rx = ry / (2.5 + rect.height / 50);
|
|
2226
|
+
const cylinderGroup = g.append("g");
|
|
2227
|
+
const cylinderArc = g.append("g");
|
|
2228
|
+
cylinderGroup.append("path").attr(
|
|
2229
|
+
"d",
|
|
2230
|
+
`M ${rect.x},${rect.y + ry}
|
|
2231
|
+
a ${rx},${ry} 0 0 0 0,${rect.height}
|
|
2232
|
+
h ${rect.width - 2 * rx}
|
|
2233
|
+
a ${rx},${ry} 0 0 0 0,-${rect.height}
|
|
2234
|
+
Z
|
|
2235
|
+
`
|
|
2236
|
+
).attr("class", cssclass);
|
|
2237
|
+
cylinderArc.append("path").attr(
|
|
2238
|
+
"d",
|
|
2239
|
+
`M ${rect.x},${rect.y + ry}
|
|
2240
|
+
a ${rx},${ry} 0 0 0 0,${rect.height}`
|
|
2241
|
+
).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", cssclass);
|
|
2242
|
+
cylinderGroup.attr("transform", `translate(${rx}, ${-(rect.height / 2)})`);
|
|
2243
|
+
cylinderArc.attr("transform", `translate(${rect.width - rx}, ${-rect.height / 2})`);
|
|
2244
|
+
actor.rectData = rect;
|
|
2245
|
+
if (actor.properties?.icon) {
|
|
2246
|
+
const iconSrc = actor.properties.icon.trim();
|
|
2247
|
+
const iconX = rect.x + rect.width - 20;
|
|
2248
|
+
const iconY = rect.y + 10;
|
|
2249
|
+
if (iconSrc.charAt(0) === "@") {
|
|
2250
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawEmbeddedImage */ .CP)(g, iconX, iconY, iconSrc.substr(1));
|
|
2251
|
+
} else {
|
|
2252
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawImage */ .aC)(g, iconX, iconY, iconSrc);
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2256
|
+
actor.description,
|
|
2257
|
+
g,
|
|
2258
|
+
rect.x,
|
|
2259
|
+
rect.y,
|
|
2260
|
+
rect.width,
|
|
2261
|
+
rect.height,
|
|
2262
|
+
{ class: `actor ${ACTOR_BOX_CLASS}` },
|
|
2263
|
+
conf2
|
|
2264
|
+
);
|
|
2265
|
+
let height = actor.height;
|
|
2266
|
+
const lastPath = cylinderGroup.select("path:last-child");
|
|
2267
|
+
if (lastPath.node()) {
|
|
2268
|
+
const bounds2 = lastPath.node().getBBox();
|
|
2269
|
+
actor.height = bounds2.height;
|
|
2270
|
+
height = bounds2.height;
|
|
2271
|
+
}
|
|
2272
|
+
return height;
|
|
2273
|
+
}, "drawActorTypeQueue");
|
|
2274
|
+
var drawActorTypeControl = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2275
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2276
|
+
const center = actor.x + actor.width / 2;
|
|
2277
|
+
const centerY = actorY + 75;
|
|
2278
|
+
const line = elem.append("g").lower();
|
|
2279
|
+
if (!isFooter) {
|
|
2280
|
+
actorCnt++;
|
|
2281
|
+
line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2282
|
+
actor.actorCnt = actorCnt;
|
|
2283
|
+
}
|
|
2284
|
+
const actElem = elem.append("g");
|
|
2285
|
+
let cssClass = ACTOR_MAN_FIGURE_CLASS;
|
|
2286
|
+
if (isFooter) {
|
|
2287
|
+
cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2288
|
+
} else {
|
|
2289
|
+
cssClass += ` ${TOP_ACTOR_CLASS}`;
|
|
2290
|
+
}
|
|
2291
|
+
actElem.attr("class", cssClass);
|
|
2292
|
+
actElem.attr("name", actor.name);
|
|
2293
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2294
|
+
rect.x = actor.x;
|
|
2295
|
+
rect.y = actorY;
|
|
2296
|
+
rect.fill = "#eaeaea";
|
|
2297
|
+
rect.width = actor.width;
|
|
2298
|
+
rect.height = actor.height;
|
|
2299
|
+
rect.class = "actor";
|
|
2300
|
+
const cx = actor.x + actor.width / 2;
|
|
2301
|
+
const cy = actorY + 30;
|
|
2302
|
+
const r = 18;
|
|
2303
|
+
actElem.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");
|
|
2304
|
+
actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2);
|
|
2305
|
+
actElem.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${cx}, ${cy - r})`);
|
|
2306
|
+
const bounds2 = actElem.node().getBBox();
|
|
2307
|
+
actor.height = bounds2.height + 2 * (conf2?.sequence?.labelBoxHeight ?? 0);
|
|
2308
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2309
|
+
actor.description,
|
|
2310
|
+
actElem,
|
|
2311
|
+
rect.x,
|
|
2312
|
+
rect.y + r + (isFooter ? 5 : 10),
|
|
2313
|
+
rect.width,
|
|
2314
|
+
rect.height,
|
|
2315
|
+
{ class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
|
|
2316
|
+
conf2
|
|
2317
|
+
);
|
|
2318
|
+
return actor.height;
|
|
2319
|
+
}, "drawActorTypeControl");
|
|
2320
|
+
var drawActorTypeEntity = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2321
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2322
|
+
const center = actor.x + actor.width / 2;
|
|
2323
|
+
const centerY = actorY + 75;
|
|
2324
|
+
const line = elem.append("g").lower();
|
|
2325
|
+
const actElem = elem.append("g");
|
|
2326
|
+
let cssClass = ACTOR_MAN_FIGURE_CLASS;
|
|
2327
|
+
if (isFooter) {
|
|
2328
|
+
cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2329
|
+
} else {
|
|
2330
|
+
cssClass += ` ${TOP_ACTOR_CLASS}`;
|
|
2331
|
+
}
|
|
2332
|
+
actElem.attr("class", cssClass);
|
|
2333
|
+
actElem.attr("name", actor.name);
|
|
2334
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2335
|
+
rect.x = actor.x;
|
|
2336
|
+
rect.y = actorY;
|
|
2337
|
+
rect.fill = "#eaeaea";
|
|
2338
|
+
rect.width = actor.width;
|
|
2339
|
+
rect.height = actor.height;
|
|
2340
|
+
rect.class = "actor";
|
|
2341
|
+
const cx = actor.x + actor.width / 2;
|
|
2342
|
+
const cy = actorY + (!isFooter ? 25 : 10);
|
|
2343
|
+
const r = 18;
|
|
2344
|
+
actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("width", actor.width).attr("height", actor.height);
|
|
2345
|
+
actElem.append("line").attr("x1", cx - r).attr("x2", cx + r).attr("y1", cy + r).attr("y2", cy + r).attr("stroke", "#333").attr("stroke-width", 2);
|
|
2346
|
+
const bounds2 = actElem.node().getBBox();
|
|
2347
|
+
actor.height = bounds2.height + (conf2?.sequence?.labelBoxHeight ?? 0);
|
|
2348
|
+
if (!isFooter) {
|
|
2349
|
+
actorCnt++;
|
|
2350
|
+
line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2351
|
+
actor.actorCnt = actorCnt;
|
|
2352
|
+
}
|
|
2353
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2354
|
+
actor.description,
|
|
2355
|
+
actElem,
|
|
2356
|
+
rect.x,
|
|
2357
|
+
rect.y + (!isFooter ? (cy + r - actorY) / 2 : (cy - actorY + r - 5) / 2),
|
|
2358
|
+
rect.width,
|
|
2359
|
+
rect.height,
|
|
2360
|
+
{ class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
|
|
2361
|
+
conf2
|
|
2362
|
+
);
|
|
2363
|
+
if (!isFooter) {
|
|
2364
|
+
actElem.attr("transform", `translate(${0}, ${r / 2})`);
|
|
2365
|
+
} else {
|
|
2366
|
+
actElem.attr("transform", `translate(${0}, ${r / 2})`);
|
|
2367
|
+
}
|
|
2368
|
+
return actor.height;
|
|
2369
|
+
}, "drawActorTypeEntity");
|
|
2370
|
+
var drawActorTypeDatabase = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2371
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2372
|
+
const center = actor.x + actor.width / 2;
|
|
2373
|
+
const centerY = actorY + actor.height + 2 * conf2.boxTextMargin;
|
|
2374
|
+
const boxplusLineGroup = elem.append("g").lower();
|
|
2375
|
+
let g = boxplusLineGroup;
|
|
2376
|
+
if (!isFooter) {
|
|
2377
|
+
actorCnt++;
|
|
2378
|
+
if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
|
|
2379
|
+
g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
|
|
2380
|
+
}
|
|
2381
|
+
g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2382
|
+
g = boxplusLineGroup.append("g");
|
|
2383
|
+
actor.actorCnt = actorCnt;
|
|
2384
|
+
if (actor.links != null) {
|
|
2385
|
+
g.attr("id", "root-" + actorCnt);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2389
|
+
let cssclass = "actor";
|
|
2390
|
+
if (actor.properties?.class) {
|
|
2391
|
+
cssclass = actor.properties.class;
|
|
2392
|
+
} else {
|
|
2393
|
+
rect.fill = "#eaeaea";
|
|
2394
|
+
}
|
|
2395
|
+
if (isFooter) {
|
|
2396
|
+
cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2397
|
+
} else {
|
|
2398
|
+
cssclass += ` ${TOP_ACTOR_CLASS}`;
|
|
2399
|
+
}
|
|
2400
|
+
rect.x = actor.x;
|
|
2401
|
+
rect.y = actorY;
|
|
2402
|
+
rect.width = actor.width;
|
|
2403
|
+
rect.height = actor.height;
|
|
2404
|
+
rect.class = cssclass;
|
|
2405
|
+
rect.name = actor.name;
|
|
2406
|
+
rect.x = actor.x;
|
|
2407
|
+
rect.y = actorY;
|
|
2408
|
+
const w = rect.width / 4;
|
|
2409
|
+
const h = rect.width / 4;
|
|
2410
|
+
const rx = w / 2;
|
|
2411
|
+
const ry = rx / (2.5 + w / 50);
|
|
2412
|
+
const cylinderGroup = g.append("g");
|
|
2413
|
+
const d = `
|
|
2414
|
+
M ${rect.x},${rect.y + ry}
|
|
2415
|
+
a ${rx},${ry} 0 0 0 ${w},0
|
|
2416
|
+
a ${rx},${ry} 0 0 0 -${w},0
|
|
2417
|
+
l 0,${h - 2 * ry}
|
|
2418
|
+
a ${rx},${ry} 0 0 0 ${w},0
|
|
2419
|
+
l 0,-${h - 2 * ry}
|
|
2420
|
+
`;
|
|
2421
|
+
cylinderGroup.append("path").attr("d", d).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", cssclass);
|
|
2422
|
+
if (!isFooter) {
|
|
2423
|
+
cylinderGroup.attr("transform", `translate(${w * 1.5}, ${(rect.height + ry) / 4})`);
|
|
2424
|
+
} else {
|
|
2425
|
+
cylinderGroup.attr("transform", `translate(${w * 1.5}, ${rect.height / 4 - 2 * ry})`);
|
|
2426
|
+
}
|
|
2427
|
+
actor.rectData = rect;
|
|
2428
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2429
|
+
actor.description,
|
|
2430
|
+
g,
|
|
2431
|
+
rect.x,
|
|
2432
|
+
rect.y + (!isFooter ? (rect.height + ry) / 2 : (rect.height + h) / 4),
|
|
2433
|
+
rect.width,
|
|
2434
|
+
rect.height,
|
|
2435
|
+
{ class: `actor ${ACTOR_BOX_CLASS}` },
|
|
2436
|
+
conf2
|
|
2437
|
+
);
|
|
2438
|
+
const lastPath = cylinderGroup.select("path:last-child");
|
|
2439
|
+
if (lastPath.node()) {
|
|
2440
|
+
const bounds2 = lastPath.node().getBBox();
|
|
2441
|
+
actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
|
|
2442
|
+
}
|
|
2443
|
+
return actor.height;
|
|
2444
|
+
}, "drawActorTypeDatabase");
|
|
2445
|
+
var drawActorTypeBoundary = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2446
|
+
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2447
|
+
const center = actor.x + actor.width / 2;
|
|
2448
|
+
const centerY = actorY + 80;
|
|
2449
|
+
const radius = 30;
|
|
2450
|
+
const line = elem.append("g").lower();
|
|
2451
|
+
if (!isFooter) {
|
|
2452
|
+
actorCnt++;
|
|
2453
|
+
line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
|
|
2454
|
+
actor.actorCnt = actorCnt;
|
|
2455
|
+
}
|
|
2456
|
+
const actElem = elem.append("g");
|
|
2457
|
+
let cssClass = ACTOR_MAN_FIGURE_CLASS;
|
|
2458
|
+
if (isFooter) {
|
|
2459
|
+
cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
|
|
2460
|
+
} else {
|
|
2461
|
+
cssClass += ` ${TOP_ACTOR_CLASS}`;
|
|
2462
|
+
}
|
|
2463
|
+
actElem.attr("class", cssClass);
|
|
2464
|
+
actElem.attr("name", actor.name);
|
|
2465
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2466
|
+
rect.x = actor.x;
|
|
2467
|
+
rect.y = actorY;
|
|
2468
|
+
rect.fill = "#eaeaea";
|
|
2469
|
+
rect.width = actor.width;
|
|
2470
|
+
rect.height = actor.height;
|
|
2471
|
+
rect.class = "actor";
|
|
2472
|
+
actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 10).attr("x2", actor.x + actor.width / 2 - 15).attr("y2", actorY + 10);
|
|
2473
|
+
actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 0).attr("x2", actor.x + actor.width / 2 - radius * 2.5).attr("y2", actorY + 20);
|
|
2474
|
+
actElem.append("circle").attr("cx", actor.x + actor.width / 2).attr("cy", actorY + 10).attr("r", radius);
|
|
2475
|
+
const bounds2 = actElem.node().getBBox();
|
|
2476
|
+
actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
|
|
2477
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2478
|
+
actor.description,
|
|
2479
|
+
actElem,
|
|
2480
|
+
rect.x,
|
|
2481
|
+
rect.y + (!isFooter ? radius / 2 + 3 : radius / 2 - 4),
|
|
2482
|
+
rect.width,
|
|
2483
|
+
rect.height,
|
|
2484
|
+
{ class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
|
|
2485
|
+
conf2
|
|
2486
|
+
);
|
|
2487
|
+
if (!isFooter) {
|
|
2488
|
+
actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
|
|
2489
|
+
} else {
|
|
2490
|
+
actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
|
|
2491
|
+
}
|
|
2492
|
+
return actor.height;
|
|
2493
|
+
}, "drawActorTypeBoundary");
|
|
2494
|
+
var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
|
|
2045
2495
|
const actorY = isFooter ? actor.stopy : actor.starty;
|
|
2046
2496
|
const center = actor.x + actor.width / 2;
|
|
2047
2497
|
const centerY = actorY + 80;
|
|
@@ -2060,7 +2510,7 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTE
|
|
|
2060
2510
|
}
|
|
2061
2511
|
actElem.attr("class", cssClass);
|
|
2062
2512
|
actElem.attr("name", actor.name);
|
|
2063
|
-
const rect = (0,
|
|
2513
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2064
2514
|
rect.x = actor.x;
|
|
2065
2515
|
rect.y = actorY;
|
|
2066
2516
|
rect.fill = "#eaeaea";
|
|
@@ -2081,7 +2531,7 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTE
|
|
|
2081
2531
|
circle.attr("height", actor.height);
|
|
2082
2532
|
const bounds2 = actElem.node().getBBox();
|
|
2083
2533
|
actor.height = bounds2.height;
|
|
2084
|
-
_drawTextCandidateFunc(conf2, (0,
|
|
2534
|
+
_drawTextCandidateFunc(conf2, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description))(
|
|
2085
2535
|
actor.description,
|
|
2086
2536
|
actElem,
|
|
2087
2537
|
rect.x,
|
|
@@ -2093,15 +2543,27 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTE
|
|
|
2093
2543
|
);
|
|
2094
2544
|
return actor.height;
|
|
2095
2545
|
}, "drawActorTypeActor");
|
|
2096
|
-
var drawActor = /* @__PURE__ */ (0,
|
|
2546
|
+
var drawActor = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(elem, actor, conf2, isFooter) {
|
|
2097
2547
|
switch (actor.type) {
|
|
2098
2548
|
case "actor":
|
|
2099
2549
|
return await drawActorTypeActor(elem, actor, conf2, isFooter);
|
|
2100
2550
|
case "participant":
|
|
2101
2551
|
return await drawActorTypeParticipant(elem, actor, conf2, isFooter);
|
|
2552
|
+
case "boundary":
|
|
2553
|
+
return await drawActorTypeBoundary(elem, actor, conf2, isFooter);
|
|
2554
|
+
case "control":
|
|
2555
|
+
return await drawActorTypeControl(elem, actor, conf2, isFooter);
|
|
2556
|
+
case "entity":
|
|
2557
|
+
return await drawActorTypeEntity(elem, actor, conf2, isFooter);
|
|
2558
|
+
case "database":
|
|
2559
|
+
return await drawActorTypeDatabase(elem, actor, conf2, isFooter);
|
|
2560
|
+
case "collections":
|
|
2561
|
+
return await drawActorTypeCollections(elem, actor, conf2, isFooter);
|
|
2562
|
+
case "queue":
|
|
2563
|
+
return await drawActorTypeQueue(elem, actor, conf2, isFooter);
|
|
2102
2564
|
}
|
|
2103
2565
|
}, "drawActor");
|
|
2104
|
-
var drawBox = /* @__PURE__ */ (0,
|
|
2566
|
+
var drawBox = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, box, conf2) {
|
|
2105
2567
|
const boxplusTextGroup = elem.append("g");
|
|
2106
2568
|
const g = boxplusTextGroup;
|
|
2107
2569
|
drawBackgroundRect2(g, box);
|
|
@@ -2110,7 +2572,7 @@ var drawBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3_
|
|
|
2110
2572
|
box.name,
|
|
2111
2573
|
g,
|
|
2112
2574
|
box.x,
|
|
2113
|
-
box.y + (box.textMaxHeight || 0) / 2,
|
|
2575
|
+
box.y + conf2.boxTextMargin + (box.textMaxHeight || 0) / 2,
|
|
2114
2576
|
box.width,
|
|
2115
2577
|
0,
|
|
2116
2578
|
{ class: "text" },
|
|
@@ -2119,11 +2581,11 @@ var drawBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3_
|
|
|
2119
2581
|
}
|
|
2120
2582
|
g.lower();
|
|
2121
2583
|
}, "drawBox");
|
|
2122
|
-
var anchorElement = /* @__PURE__ */ (0,
|
|
2584
|
+
var anchorElement = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2123
2585
|
return elem.append("g");
|
|
2124
2586
|
}, "anchorElement");
|
|
2125
|
-
var drawActivation = /* @__PURE__ */ (0,
|
|
2126
|
-
const rect = (0,
|
|
2587
|
+
var drawActivation = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
|
|
2588
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2127
2589
|
const g = bounds2.anchored;
|
|
2128
2590
|
rect.x = bounds2.startx;
|
|
2129
2591
|
rect.y = bounds2.starty;
|
|
@@ -2132,7 +2594,7 @@ var drawActivation = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MO
|
|
|
2132
2594
|
rect.height = verticalPos - bounds2.starty;
|
|
2133
2595
|
drawRect2(g, rect);
|
|
2134
2596
|
}, "drawActivation");
|
|
2135
|
-
var drawLoop = /* @__PURE__ */ (0,
|
|
2597
|
+
var drawLoop = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(elem, loopModel, labelText, conf2) {
|
|
2136
2598
|
const {
|
|
2137
2599
|
boxMargin,
|
|
2138
2600
|
boxTextMargin,
|
|
@@ -2143,7 +2605,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2143
2605
|
messageFontWeight: fontWeight
|
|
2144
2606
|
} = conf2;
|
|
2145
2607
|
const g = elem.append("g");
|
|
2146
|
-
const drawLoopLine = /* @__PURE__ */ (0,
|
|
2608
|
+
const drawLoopLine = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
|
|
2147
2609
|
return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
|
|
2148
2610
|
}, "drawLoopLine");
|
|
2149
2611
|
drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
|
|
@@ -2158,7 +2620,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2158
2620
|
);
|
|
2159
2621
|
});
|
|
2160
2622
|
}
|
|
2161
|
-
let txt = (0,
|
|
2623
|
+
let txt = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
|
|
2162
2624
|
txt.text = labelText;
|
|
2163
2625
|
txt.x = loopModel.startx;
|
|
2164
2626
|
txt.y = loopModel.starty;
|
|
@@ -2185,7 +2647,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2185
2647
|
txt.fontSize = fontSize;
|
|
2186
2648
|
txt.fontWeight = fontWeight;
|
|
2187
2649
|
txt.wrap = true;
|
|
2188
|
-
let textElem = (0,
|
|
2650
|
+
let textElem = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
|
|
2189
2651
|
if (loopModel.sectionTitles !== void 0) {
|
|
2190
2652
|
for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
|
|
2191
2653
|
if (item.message) {
|
|
@@ -2200,7 +2662,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2200
2662
|
txt.fontSize = fontSize;
|
|
2201
2663
|
txt.fontWeight = fontWeight;
|
|
2202
2664
|
txt.wrap = loopModel.wrap;
|
|
2203
|
-
if ((0,
|
|
2665
|
+
if ((0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(txt.text)) {
|
|
2204
2666
|
loopModel.starty = loopModel.sections[idx].y;
|
|
2205
2667
|
await drawKatex(g, txt, loopModel);
|
|
2206
2668
|
} else {
|
|
@@ -2216,42 +2678,42 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2216
2678
|
loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
|
|
2217
2679
|
return g;
|
|
2218
2680
|
}, "drawLoop");
|
|
2219
|
-
var drawBackgroundRect2 = /* @__PURE__ */ (0,
|
|
2220
|
-
(0,
|
|
2681
|
+
var drawBackgroundRect2 = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem, bounds2) {
|
|
2682
|
+
(0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawBackgroundRect */ .lC)(elem, bounds2);
|
|
2221
2683
|
}, "drawBackgroundRect");
|
|
2222
|
-
var insertDatabaseIcon = /* @__PURE__ */ (0,
|
|
2684
|
+
var insertDatabaseIcon = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2223
2685
|
elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
2224
2686
|
"d",
|
|
2225
2687
|
"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"
|
|
2226
2688
|
);
|
|
2227
2689
|
}, "insertDatabaseIcon");
|
|
2228
|
-
var insertComputerIcon = /* @__PURE__ */ (0,
|
|
2690
|
+
var insertComputerIcon = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2229
2691
|
elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
2230
2692
|
"d",
|
|
2231
2693
|
"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"
|
|
2232
2694
|
);
|
|
2233
2695
|
}, "insertComputerIcon");
|
|
2234
|
-
var insertClockIcon = /* @__PURE__ */ (0,
|
|
2696
|
+
var insertClockIcon = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2235
2697
|
elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
2236
2698
|
"d",
|
|
2237
2699
|
"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"
|
|
2238
2700
|
);
|
|
2239
2701
|
}, "insertClockIcon");
|
|
2240
|
-
var insertArrowHead = /* @__PURE__ */ (0,
|
|
2702
|
+
var insertArrowHead = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2241
2703
|
elem.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");
|
|
2242
2704
|
}, "insertArrowHead");
|
|
2243
|
-
var insertArrowFilledHead = /* @__PURE__ */ (0,
|
|
2705
|
+
var insertArrowFilledHead = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2244
2706
|
elem.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");
|
|
2245
2707
|
}, "insertArrowFilledHead");
|
|
2246
|
-
var insertSequenceNumber = /* @__PURE__ */ (0,
|
|
2708
|
+
var insertSequenceNumber = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2247
2709
|
elem.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);
|
|
2248
2710
|
}, "insertSequenceNumber");
|
|
2249
|
-
var insertArrowCrossHead = /* @__PURE__ */ (0,
|
|
2711
|
+
var insertArrowCrossHead = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(elem) {
|
|
2250
2712
|
const defs = elem.append("defs");
|
|
2251
2713
|
const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
|
|
2252
2714
|
marker.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");
|
|
2253
2715
|
}, "insertArrowCrossHead");
|
|
2254
|
-
var getTextObj2 = /* @__PURE__ */ (0,
|
|
2716
|
+
var getTextObj2 = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2255
2717
|
return {
|
|
2256
2718
|
x: 0,
|
|
2257
2719
|
y: 0,
|
|
@@ -2267,7 +2729,7 @@ var getTextObj2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
2267
2729
|
valign: void 0
|
|
2268
2730
|
};
|
|
2269
2731
|
}, "getTextObj");
|
|
2270
|
-
var getNoteRect2 = /* @__PURE__ */ (0,
|
|
2732
|
+
var getNoteRect2 = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2271
2733
|
return {
|
|
2272
2734
|
x: 0,
|
|
2273
2735
|
y: 0,
|
|
@@ -2280,16 +2742,16 @@ var getNoteRect2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODU
|
|
|
2280
2742
|
ry: 0
|
|
2281
2743
|
};
|
|
2282
2744
|
}, "getNoteRect");
|
|
2283
|
-
var _drawTextCandidateFunc = /* @__PURE__ */ function() {
|
|
2745
|
+
var _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
2284
2746
|
function byText(content, g, x, y, width, height, textAttrs) {
|
|
2285
2747
|
const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
|
|
2286
2748
|
_setTextAttrs(text, textAttrs);
|
|
2287
2749
|
}
|
|
2288
|
-
(0,
|
|
2750
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byText, "byText");
|
|
2289
2751
|
function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
|
|
2290
2752
|
const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
|
|
2291
|
-
const [_actorFontSize, _actorFontSizePx] = (0,
|
|
2292
|
-
const lines = content.split(
|
|
2753
|
+
const [_actorFontSize, _actorFontSizePx] = (0,_chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseFontSize */ .I5)(actorFontSize);
|
|
2754
|
+
const lines = content.split(_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.lineBreakRegex);
|
|
2293
2755
|
for (let i = 0; i < lines.length; i++) {
|
|
2294
2756
|
const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
|
|
2295
2757
|
const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").style("font-size", _actorFontSizePx).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
|
|
@@ -2298,7 +2760,7 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2298
2760
|
_setTextAttrs(text, textAttrs);
|
|
2299
2761
|
}
|
|
2300
2762
|
}
|
|
2301
|
-
(0,
|
|
2763
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byTspan, "byTspan");
|
|
2302
2764
|
function byFo(content, g, x, y, width, height, textAttrs, conf2) {
|
|
2303
2765
|
const s = g.append("switch");
|
|
2304
2766
|
const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
|
|
@@ -2307,17 +2769,17 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2307
2769
|
byTspan(content, s, x, y, width, height, textAttrs, conf2);
|
|
2308
2770
|
_setTextAttrs(text, textAttrs);
|
|
2309
2771
|
}
|
|
2310
|
-
(0,
|
|
2772
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byFo, "byFo");
|
|
2311
2773
|
async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
|
|
2312
|
-
const dim = await (0,
|
|
2774
|
+
const dim = await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .calculateMathMLDimensions */ .Dl)(content, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)());
|
|
2313
2775
|
const s = g.append("switch");
|
|
2314
2776
|
const f = s.append("foreignObject").attr("x", x + width / 2 - dim.width / 2).attr("y", y + height / 2 - dim.height / 2).attr("width", dim.width).attr("height", dim.height);
|
|
2315
2777
|
const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
2316
|
-
text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await (0,
|
|
2778
|
+
text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .renderKatexSanitized */ .dj)(content, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig */ .zj)()));
|
|
2317
2779
|
byTspan(content, s, x, y, width, height, textAttrs, conf2);
|
|
2318
2780
|
_setTextAttrs(text, textAttrs);
|
|
2319
2781
|
}
|
|
2320
|
-
(0,
|
|
2782
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byKatex, "byKatex");
|
|
2321
2783
|
function _setTextAttrs(toText, fromTextAttrsDict) {
|
|
2322
2784
|
for (const key in fromTextAttrsDict) {
|
|
2323
2785
|
if (fromTextAttrsDict.hasOwnProperty(key)) {
|
|
@@ -2325,23 +2787,23 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2325
2787
|
}
|
|
2326
2788
|
}
|
|
2327
2789
|
}
|
|
2328
|
-
(0,
|
|
2790
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
|
|
2329
2791
|
return function(conf2, hasKatex2 = false) {
|
|
2330
2792
|
if (hasKatex2) {
|
|
2331
2793
|
return byKatex;
|
|
2332
2794
|
}
|
|
2333
2795
|
return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
|
|
2334
2796
|
};
|
|
2335
|
-
}();
|
|
2336
|
-
var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
|
|
2797
|
+
})();
|
|
2798
|
+
var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
2337
2799
|
function byText(content, g, x, y, width, height, textAttrs) {
|
|
2338
2800
|
const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
|
|
2339
2801
|
_setTextAttrs(text, textAttrs);
|
|
2340
2802
|
}
|
|
2341
|
-
(0,
|
|
2803
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byText, "byText");
|
|
2342
2804
|
function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
|
|
2343
2805
|
const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
|
|
2344
|
-
const lines = content.split(
|
|
2806
|
+
const lines = content.split(_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.lineBreakRegex);
|
|
2345
2807
|
for (let i = 0; i < lines.length; i++) {
|
|
2346
2808
|
const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
|
|
2347
2809
|
const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").style("font-size", actorFontSize).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
|
|
@@ -2350,7 +2812,7 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2350
2812
|
_setTextAttrs(text, textAttrs);
|
|
2351
2813
|
}
|
|
2352
2814
|
}
|
|
2353
|
-
(0,
|
|
2815
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byTspan, "byTspan");
|
|
2354
2816
|
function byFo(content, g, x, y, width, height, textAttrs, conf2) {
|
|
2355
2817
|
const s = g.append("switch");
|
|
2356
2818
|
const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
|
|
@@ -2359,7 +2821,7 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2359
2821
|
byTspan(content, s, x, y, width, height, textAttrs, conf2);
|
|
2360
2822
|
_setTextAttrs(text, textAttrs);
|
|
2361
2823
|
}
|
|
2362
|
-
(0,
|
|
2824
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(byFo, "byFo");
|
|
2363
2825
|
function _setTextAttrs(toText, fromTextAttrsDict) {
|
|
2364
2826
|
for (const key in fromTextAttrsDict) {
|
|
2365
2827
|
if (fromTextAttrsDict.hasOwnProperty(key)) {
|
|
@@ -2367,11 +2829,11 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
|
|
|
2367
2829
|
}
|
|
2368
2830
|
}
|
|
2369
2831
|
}
|
|
2370
|
-
(0,
|
|
2832
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
|
|
2371
2833
|
return function(conf2) {
|
|
2372
2834
|
return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
|
|
2373
2835
|
};
|
|
2374
|
-
}();
|
|
2836
|
+
})();
|
|
2375
2837
|
var svgDraw_default = {
|
|
2376
2838
|
drawRect: drawRect2,
|
|
2377
2839
|
drawText,
|
|
@@ -2393,7 +2855,7 @@ var svgDraw_default = {
|
|
|
2393
2855
|
getTextObj: getTextObj2,
|
|
2394
2856
|
getNoteRect: getNoteRect2,
|
|
2395
2857
|
fixLifeLineHeights,
|
|
2396
|
-
sanitizeUrl:
|
|
2858
|
+
sanitizeUrl: _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_7__/* .sanitizeUrl */ .J
|
|
2397
2859
|
};
|
|
2398
2860
|
|
|
2399
2861
|
// src/diagrams/sequence/sequenceRenderer.ts
|
|
@@ -2409,44 +2871,44 @@ var bounds = {
|
|
|
2409
2871
|
sequenceItems: [],
|
|
2410
2872
|
activations: [],
|
|
2411
2873
|
models: {
|
|
2412
|
-
getHeight: /* @__PURE__ */ (0,
|
|
2874
|
+
getHeight: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2413
2875
|
return Math.max.apply(
|
|
2414
2876
|
null,
|
|
2415
2877
|
this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
|
|
2416
2878
|
) + (this.loops.length === 0 ? 0 : this.loops.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.messages.length === 0 ? 0 : this.messages.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.notes.length === 0 ? 0 : this.notes.map((it) => it.height || 0).reduce((acc, h) => acc + h));
|
|
2417
2879
|
}, "getHeight"),
|
|
2418
|
-
clear: /* @__PURE__ */ (0,
|
|
2880
|
+
clear: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2419
2881
|
this.actors = [];
|
|
2420
2882
|
this.boxes = [];
|
|
2421
2883
|
this.loops = [];
|
|
2422
2884
|
this.messages = [];
|
|
2423
2885
|
this.notes = [];
|
|
2424
2886
|
}, "clear"),
|
|
2425
|
-
addBox: /* @__PURE__ */ (0,
|
|
2887
|
+
addBox: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(boxModel) {
|
|
2426
2888
|
this.boxes.push(boxModel);
|
|
2427
2889
|
}, "addBox"),
|
|
2428
|
-
addActor: /* @__PURE__ */ (0,
|
|
2890
|
+
addActor: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(actorModel) {
|
|
2429
2891
|
this.actors.push(actorModel);
|
|
2430
2892
|
}, "addActor"),
|
|
2431
|
-
addLoop: /* @__PURE__ */ (0,
|
|
2893
|
+
addLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(loopModel) {
|
|
2432
2894
|
this.loops.push(loopModel);
|
|
2433
2895
|
}, "addLoop"),
|
|
2434
|
-
addMessage: /* @__PURE__ */ (0,
|
|
2896
|
+
addMessage: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(msgModel) {
|
|
2435
2897
|
this.messages.push(msgModel);
|
|
2436
2898
|
}, "addMessage"),
|
|
2437
|
-
addNote: /* @__PURE__ */ (0,
|
|
2899
|
+
addNote: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(noteModel) {
|
|
2438
2900
|
this.notes.push(noteModel);
|
|
2439
2901
|
}, "addNote"),
|
|
2440
|
-
lastActor: /* @__PURE__ */ (0,
|
|
2902
|
+
lastActor: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2441
2903
|
return this.actors[this.actors.length - 1];
|
|
2442
2904
|
}, "lastActor"),
|
|
2443
|
-
lastLoop: /* @__PURE__ */ (0,
|
|
2905
|
+
lastLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2444
2906
|
return this.loops[this.loops.length - 1];
|
|
2445
2907
|
}, "lastLoop"),
|
|
2446
|
-
lastMessage: /* @__PURE__ */ (0,
|
|
2908
|
+
lastMessage: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2447
2909
|
return this.messages[this.messages.length - 1];
|
|
2448
2910
|
}, "lastMessage"),
|
|
2449
|
-
lastNote: /* @__PURE__ */ (0,
|
|
2911
|
+
lastNote: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2450
2912
|
return this.notes[this.notes.length - 1];
|
|
2451
2913
|
}, "lastNote"),
|
|
2452
2914
|
actors: [],
|
|
@@ -2455,7 +2917,7 @@ var bounds = {
|
|
|
2455
2917
|
messages: [],
|
|
2456
2918
|
notes: []
|
|
2457
2919
|
},
|
|
2458
|
-
init: /* @__PURE__ */ (0,
|
|
2920
|
+
init: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2459
2921
|
this.sequenceItems = [];
|
|
2460
2922
|
this.activations = [];
|
|
2461
2923
|
this.models.clear();
|
|
@@ -2466,20 +2928,20 @@ var bounds = {
|
|
|
2466
2928
|
stopy: void 0
|
|
2467
2929
|
};
|
|
2468
2930
|
this.verticalPos = 0;
|
|
2469
|
-
setConf((0,
|
|
2931
|
+
setConf((0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)());
|
|
2470
2932
|
}, "init"),
|
|
2471
|
-
updateVal: /* @__PURE__ */ (0,
|
|
2933
|
+
updateVal: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(obj, key, val, fun) {
|
|
2472
2934
|
if (obj[key] === void 0) {
|
|
2473
2935
|
obj[key] = val;
|
|
2474
2936
|
} else {
|
|
2475
2937
|
obj[key] = fun(val, obj[key]);
|
|
2476
2938
|
}
|
|
2477
2939
|
}, "updateVal"),
|
|
2478
|
-
updateBounds: /* @__PURE__ */ (0,
|
|
2940
|
+
updateBounds: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
|
|
2479
2941
|
const _self = this;
|
|
2480
2942
|
let cnt = 0;
|
|
2481
2943
|
function updateFn(type) {
|
|
2482
|
-
return /* @__PURE__ */ (0,
|
|
2944
|
+
return /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function updateItemBounds(item) {
|
|
2483
2945
|
cnt++;
|
|
2484
2946
|
const n = _self.sequenceItems.length - cnt + 1;
|
|
2485
2947
|
_self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
|
|
@@ -2494,22 +2956,22 @@ var bounds = {
|
|
|
2494
2956
|
}
|
|
2495
2957
|
}, "updateItemBounds");
|
|
2496
2958
|
}
|
|
2497
|
-
(0,
|
|
2959
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(updateFn, "updateFn");
|
|
2498
2960
|
this.sequenceItems.forEach(updateFn());
|
|
2499
2961
|
this.activations.forEach(updateFn("activation"));
|
|
2500
2962
|
}, "updateBounds"),
|
|
2501
|
-
insert: /* @__PURE__ */ (0,
|
|
2502
|
-
const _startx =
|
|
2503
|
-
const _stopx =
|
|
2504
|
-
const _starty =
|
|
2505
|
-
const _stopy =
|
|
2963
|
+
insert: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
|
|
2964
|
+
const _startx = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(startx, stopx);
|
|
2965
|
+
const _stopx = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(startx, stopx);
|
|
2966
|
+
const _starty = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(starty, stopy);
|
|
2967
|
+
const _stopy = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(starty, stopy);
|
|
2506
2968
|
this.updateVal(bounds.data, "startx", _startx, Math.min);
|
|
2507
2969
|
this.updateVal(bounds.data, "starty", _starty, Math.min);
|
|
2508
2970
|
this.updateVal(bounds.data, "stopx", _stopx, Math.max);
|
|
2509
2971
|
this.updateVal(bounds.data, "stopy", _stopy, Math.max);
|
|
2510
2972
|
this.updateBounds(_startx, _starty, _stopx, _stopy);
|
|
2511
2973
|
}, "insert"),
|
|
2512
|
-
newActivation: /* @__PURE__ */ (0,
|
|
2974
|
+
newActivation: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(message, diagram2, actors) {
|
|
2513
2975
|
const actorRect = actors.get(message.from);
|
|
2514
2976
|
const stackedSize = actorActivations(message.from).length || 0;
|
|
2515
2977
|
const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
|
|
@@ -2522,13 +2984,13 @@ var bounds = {
|
|
|
2522
2984
|
anchored: svgDraw_default.anchorElement(diagram2)
|
|
2523
2985
|
});
|
|
2524
2986
|
}, "newActivation"),
|
|
2525
|
-
endActivation: /* @__PURE__ */ (0,
|
|
2987
|
+
endActivation: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(message) {
|
|
2526
2988
|
const lastActorActivationIdx = this.activations.map(function(activation) {
|
|
2527
2989
|
return activation.actor;
|
|
2528
2990
|
}).lastIndexOf(message.from);
|
|
2529
2991
|
return this.activations.splice(lastActorActivationIdx, 1)[0];
|
|
2530
2992
|
}, "endActivation"),
|
|
2531
|
-
createLoop: /* @__PURE__ */ (0,
|
|
2993
|
+
createLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
|
|
2532
2994
|
return {
|
|
2533
2995
|
startx: void 0,
|
|
2534
2996
|
starty: this.verticalPos,
|
|
@@ -2541,16 +3003,16 @@ var bounds = {
|
|
|
2541
3003
|
fill
|
|
2542
3004
|
};
|
|
2543
3005
|
}, "createLoop"),
|
|
2544
|
-
newLoop: /* @__PURE__ */ (0,
|
|
3006
|
+
newLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
|
|
2545
3007
|
this.sequenceItems.push(this.createLoop(title, fill));
|
|
2546
3008
|
}, "newLoop"),
|
|
2547
|
-
endLoop: /* @__PURE__ */ (0,
|
|
3009
|
+
endLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2548
3010
|
return this.sequenceItems.pop();
|
|
2549
3011
|
}, "endLoop"),
|
|
2550
|
-
isLoopOverlap: /* @__PURE__ */ (0,
|
|
3012
|
+
isLoopOverlap: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2551
3013
|
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
|
|
2552
3014
|
}, "isLoopOverlap"),
|
|
2553
|
-
addSectionToLoop: /* @__PURE__ */ (0,
|
|
3015
|
+
addSectionToLoop: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(message) {
|
|
2554
3016
|
const loop = this.sequenceItems.pop();
|
|
2555
3017
|
loop.sections = loop.sections || [];
|
|
2556
3018
|
loop.sectionTitles = loop.sectionTitles || [];
|
|
@@ -2558,39 +3020,39 @@ var bounds = {
|
|
|
2558
3020
|
loop.sectionTitles.push(message);
|
|
2559
3021
|
this.sequenceItems.push(loop);
|
|
2560
3022
|
}, "addSectionToLoop"),
|
|
2561
|
-
saveVerticalPos: /* @__PURE__ */ (0,
|
|
3023
|
+
saveVerticalPos: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2562
3024
|
if (this.isLoopOverlap()) {
|
|
2563
3025
|
this.savedVerticalPos = this.verticalPos;
|
|
2564
3026
|
}
|
|
2565
3027
|
}, "saveVerticalPos"),
|
|
2566
|
-
resetVerticalPos: /* @__PURE__ */ (0,
|
|
3028
|
+
resetVerticalPos: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2567
3029
|
if (this.isLoopOverlap()) {
|
|
2568
3030
|
this.verticalPos = this.savedVerticalPos;
|
|
2569
3031
|
}
|
|
2570
3032
|
}, "resetVerticalPos"),
|
|
2571
|
-
bumpVerticalPos: /* @__PURE__ */ (0,
|
|
3033
|
+
bumpVerticalPos: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(bump) {
|
|
2572
3034
|
this.verticalPos = this.verticalPos + bump;
|
|
2573
|
-
this.data.stopy =
|
|
3035
|
+
this.data.stopy = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(this.data.stopy, this.verticalPos);
|
|
2574
3036
|
}, "bumpVerticalPos"),
|
|
2575
|
-
getVerticalPos: /* @__PURE__ */ (0,
|
|
3037
|
+
getVerticalPos: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2576
3038
|
return this.verticalPos;
|
|
2577
3039
|
}, "getVerticalPos"),
|
|
2578
|
-
getBounds: /* @__PURE__ */ (0,
|
|
3040
|
+
getBounds: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function() {
|
|
2579
3041
|
return { bounds: this.data, models: this.models };
|
|
2580
3042
|
}, "getBounds")
|
|
2581
3043
|
};
|
|
2582
|
-
var drawNote = /* @__PURE__ */ (0,
|
|
3044
|
+
var drawNote = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(elem, noteModel) {
|
|
2583
3045
|
bounds.bumpVerticalPos(conf.boxMargin);
|
|
2584
3046
|
noteModel.height = conf.boxMargin;
|
|
2585
3047
|
noteModel.starty = bounds.getVerticalPos();
|
|
2586
|
-
const rect = (0,
|
|
3048
|
+
const rect = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
|
|
2587
3049
|
rect.x = noteModel.startx;
|
|
2588
3050
|
rect.y = noteModel.starty;
|
|
2589
3051
|
rect.width = noteModel.width || conf.width;
|
|
2590
3052
|
rect.class = "note";
|
|
2591
3053
|
const g = elem.append("g");
|
|
2592
3054
|
const rectElem = svgDraw_default.drawRect(g, rect);
|
|
2593
|
-
const textObj = (0,
|
|
3055
|
+
const textObj = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
|
|
2594
3056
|
textObj.x = noteModel.startx;
|
|
2595
3057
|
textObj.y = noteModel.starty;
|
|
2596
3058
|
textObj.width = rect.width;
|
|
@@ -2603,7 +3065,7 @@ var drawNote = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2603
3065
|
textObj.anchor = conf.noteAlign;
|
|
2604
3066
|
textObj.textMargin = conf.noteMargin;
|
|
2605
3067
|
textObj.valign = "center";
|
|
2606
|
-
const textElem = (0,
|
|
3068
|
+
const textElem = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
|
|
2607
3069
|
const textHeight = Math.round(
|
|
2608
3070
|
textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
|
|
2609
3071
|
);
|
|
@@ -2615,21 +3077,21 @@ var drawNote = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3
|
|
|
2615
3077
|
bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
|
|
2616
3078
|
bounds.models.addNote(noteModel);
|
|
2617
3079
|
}, "drawNote");
|
|
2618
|
-
var messageFont = /* @__PURE__ */ (0,
|
|
3080
|
+
var messageFont = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((cnf) => {
|
|
2619
3081
|
return {
|
|
2620
3082
|
fontFamily: cnf.messageFontFamily,
|
|
2621
3083
|
fontSize: cnf.messageFontSize,
|
|
2622
3084
|
fontWeight: cnf.messageFontWeight
|
|
2623
3085
|
};
|
|
2624
3086
|
}, "messageFont");
|
|
2625
|
-
var noteFont = /* @__PURE__ */ (0,
|
|
3087
|
+
var noteFont = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((cnf) => {
|
|
2626
3088
|
return {
|
|
2627
3089
|
fontFamily: cnf.noteFontFamily,
|
|
2628
3090
|
fontSize: cnf.noteFontSize,
|
|
2629
3091
|
fontWeight: cnf.noteFontWeight
|
|
2630
3092
|
};
|
|
2631
3093
|
}, "noteFont");
|
|
2632
|
-
var actorFont = /* @__PURE__ */ (0,
|
|
3094
|
+
var actorFont = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((cnf) => {
|
|
2633
3095
|
return {
|
|
2634
3096
|
fontFamily: cnf.actorFontFamily,
|
|
2635
3097
|
fontSize: cnf.actorFontSize,
|
|
@@ -2639,9 +3101,9 @@ var actorFont = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_
|
|
|
2639
3101
|
async function boundMessage(_diagram, msgModel) {
|
|
2640
3102
|
bounds.bumpVerticalPos(10);
|
|
2641
3103
|
const { startx, stopx, message } = msgModel;
|
|
2642
|
-
const lines =
|
|
2643
|
-
const isKatexMsg = (0,
|
|
2644
|
-
const textDims = isKatexMsg ? await (0,
|
|
3104
|
+
const lines = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.splitBreaks(message).length;
|
|
3105
|
+
const isKatexMsg = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(message);
|
|
3106
|
+
const textDims = isKatexMsg ? await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .calculateMathMLDimensions */ .Dl)(message, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()) : _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
|
|
2645
3107
|
if (!isKatexMsg) {
|
|
2646
3108
|
const lineHeight = textDims.height / lines;
|
|
2647
3109
|
msgModel.height += lineHeight;
|
|
@@ -2657,7 +3119,7 @@ async function boundMessage(_diagram, msgModel) {
|
|
|
2657
3119
|
lineStartY = bounds.getVerticalPos() + totalOffset;
|
|
2658
3120
|
}
|
|
2659
3121
|
totalOffset += 30;
|
|
2660
|
-
const dx =
|
|
3122
|
+
const dx = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(textWidth / 2, conf.width / 2);
|
|
2661
3123
|
bounds.insert(
|
|
2662
3124
|
startx - dx,
|
|
2663
3125
|
bounds.getVerticalPos() - 10 + totalOffset,
|
|
@@ -2675,11 +3137,11 @@ async function boundMessage(_diagram, msgModel) {
|
|
|
2675
3137
|
bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
|
|
2676
3138
|
return lineStartY;
|
|
2677
3139
|
}
|
|
2678
|
-
(0,
|
|
2679
|
-
var drawMessage = /* @__PURE__ */ (0,
|
|
3140
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(boundMessage, "boundMessage");
|
|
3141
|
+
var drawMessage = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(diagram2, msgModel, lineStartY, diagObj) {
|
|
2680
3142
|
const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
|
|
2681
|
-
const textDims =
|
|
2682
|
-
const textObj = (0,
|
|
3143
|
+
const textDims = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
|
|
3144
|
+
const textObj = (0,_chunk_TZMSLE5B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
|
|
2683
3145
|
textObj.x = startx;
|
|
2684
3146
|
textObj.y = starty + 10;
|
|
2685
3147
|
textObj.width = stopx - startx;
|
|
@@ -2693,7 +3155,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
2693
3155
|
textObj.valign = "center";
|
|
2694
3156
|
textObj.textMargin = conf.wrapPadding;
|
|
2695
3157
|
textObj.tspan = false;
|
|
2696
|
-
if ((0,
|
|
3158
|
+
if ((0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(textObj.text)) {
|
|
2697
3159
|
await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
|
|
2698
3160
|
} else {
|
|
2699
3161
|
drawText(diagram2, textObj);
|
|
@@ -2704,7 +3166,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
2704
3166
|
if (conf.rightAngles) {
|
|
2705
3167
|
line = diagram2.append("path").attr(
|
|
2706
3168
|
"d",
|
|
2707
|
-
`M ${startx},${lineStartY} H ${startx +
|
|
3169
|
+
`M ${startx},${lineStartY} H ${startx + _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
|
|
2708
3170
|
);
|
|
2709
3171
|
} else {
|
|
2710
3172
|
line = diagram2.append("path").attr(
|
|
@@ -2727,9 +3189,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
2727
3189
|
}
|
|
2728
3190
|
let url = "";
|
|
2729
3191
|
if (conf.arrowMarkerAbsolute) {
|
|
2730
|
-
url =
|
|
2731
|
-
url = url.replace(/\(/g, "\\(");
|
|
2732
|
-
url = url.replace(/\)/g, "\\)");
|
|
3192
|
+
url = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getUrl */ .ID)(true);
|
|
2733
3193
|
}
|
|
2734
3194
|
line.attr("stroke-width", 2);
|
|
2735
3195
|
line.attr("stroke", "none");
|
|
@@ -2748,11 +3208,20 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODUL
|
|
|
2748
3208
|
line.attr("marker-end", "url(" + url + "#crosshead)");
|
|
2749
3209
|
}
|
|
2750
3210
|
if (sequenceVisible || conf.showSequenceNumbers) {
|
|
2751
|
-
|
|
3211
|
+
const isBidirectional = type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED;
|
|
3212
|
+
if (isBidirectional) {
|
|
3213
|
+
const SEQUENCE_NUMBER_RADIUS = 6;
|
|
3214
|
+
if (startx < stopx) {
|
|
3215
|
+
line.attr("x1", startx + 2 * SEQUENCE_NUMBER_RADIUS);
|
|
3216
|
+
} else {
|
|
3217
|
+
line.attr("x1", startx + SEQUENCE_NUMBER_RADIUS);
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
diagram2.append("line").attr("x1", startx).attr("y1", lineStartY).attr("x2", startx).attr("y2", lineStartY).attr("stroke-width", 0).attr("marker-start", "url(" + url + "#sequencenumber)");
|
|
2752
3221
|
diagram2.append("text").attr("x", startx).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
|
|
2753
3222
|
}
|
|
2754
3223
|
}, "drawMessage");
|
|
2755
|
-
var addActorRenderingData = /* @__PURE__ */ (0,
|
|
3224
|
+
var addActorRenderingData = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
|
|
2756
3225
|
let prevWidth = 0;
|
|
2757
3226
|
let prevMargin = 0;
|
|
2758
3227
|
let prevBox = void 0;
|
|
@@ -2774,9 +3243,9 @@ var addActorRenderingData = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPO
|
|
|
2774
3243
|
prevMargin += box.margin;
|
|
2775
3244
|
}
|
|
2776
3245
|
actor.width = actor.width || conf.width;
|
|
2777
|
-
actor.height =
|
|
3246
|
+
actor.height = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(actor.height || conf.height, conf.height);
|
|
2778
3247
|
actor.margin = actor.margin || conf.actorMargin;
|
|
2779
|
-
maxHeight =
|
|
3248
|
+
maxHeight = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
|
|
2780
3249
|
if (createdActors.get(actor.name)) {
|
|
2781
3250
|
prevMargin += actor.width / 2;
|
|
2782
3251
|
}
|
|
@@ -2796,7 +3265,7 @@ var addActorRenderingData = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPO
|
|
|
2796
3265
|
}
|
|
2797
3266
|
bounds.bumpVerticalPos(maxHeight);
|
|
2798
3267
|
}, "addActorRenderingData");
|
|
2799
|
-
var drawActors = /* @__PURE__ */ (0,
|
|
3268
|
+
var drawActors = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(diagram2, actors, actorKeys, isFooter) {
|
|
2800
3269
|
if (!isFooter) {
|
|
2801
3270
|
for (const actorKey of actorKeys) {
|
|
2802
3271
|
const actor = actors.get(actorKey);
|
|
@@ -2811,12 +3280,12 @@ var drawActors = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE
|
|
|
2811
3280
|
actor.stopy = bounds.getVerticalPos();
|
|
2812
3281
|
}
|
|
2813
3282
|
const height = await svgDraw_default.drawActor(diagram2, actor, conf, true);
|
|
2814
|
-
maxHeight =
|
|
3283
|
+
maxHeight = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(maxHeight, height);
|
|
2815
3284
|
}
|
|
2816
3285
|
bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
|
|
2817
3286
|
}
|
|
2818
3287
|
}, "drawActors");
|
|
2819
|
-
var drawActorsPopup = /* @__PURE__ */ (0,
|
|
3288
|
+
var drawActorsPopup = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(diagram2, actors, actorKeys, doc) {
|
|
2820
3289
|
let maxHeight = 0;
|
|
2821
3290
|
let maxWidth = 0;
|
|
2822
3291
|
for (const actorKey of actorKeys) {
|
|
@@ -2839,8 +3308,8 @@ var drawActorsPopup = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_M
|
|
|
2839
3308
|
}
|
|
2840
3309
|
return { maxHeight, maxWidth };
|
|
2841
3310
|
}, "drawActorsPopup");
|
|
2842
|
-
var setConf = /* @__PURE__ */ (0,
|
|
2843
|
-
(0,
|
|
3311
|
+
var setConf = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(cnf) {
|
|
3312
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .assignWithDepth_default */ .hH)(conf, cnf);
|
|
2844
3313
|
if (cnf.fontFamily) {
|
|
2845
3314
|
conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
|
|
2846
3315
|
}
|
|
@@ -2851,23 +3320,23 @@ var setConf = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3_
|
|
|
2851
3320
|
conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
|
|
2852
3321
|
}
|
|
2853
3322
|
}, "setConf");
|
|
2854
|
-
var actorActivations = /* @__PURE__ */ (0,
|
|
3323
|
+
var actorActivations = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(actor) {
|
|
2855
3324
|
return bounds.activations.filter(function(activation) {
|
|
2856
3325
|
return activation.actor === actor;
|
|
2857
3326
|
});
|
|
2858
3327
|
}, "actorActivations");
|
|
2859
|
-
var activationBounds = /* @__PURE__ */ (0,
|
|
3328
|
+
var activationBounds = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(actor, actors) {
|
|
2860
3329
|
const actorObj = actors.get(actor);
|
|
2861
3330
|
const activations = actorActivations(actor);
|
|
2862
3331
|
const left = activations.reduce(
|
|
2863
3332
|
function(acc, activation) {
|
|
2864
|
-
return
|
|
3333
|
+
return _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(acc, activation.startx);
|
|
2865
3334
|
},
|
|
2866
3335
|
actorObj.x + actorObj.width / 2 - 1
|
|
2867
3336
|
);
|
|
2868
3337
|
const right = activations.reduce(
|
|
2869
3338
|
function(acc, activation) {
|
|
2870
|
-
return
|
|
3339
|
+
return _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(acc, activation.stopx);
|
|
2871
3340
|
},
|
|
2872
3341
|
actorObj.x + actorObj.width / 2 + 1
|
|
2873
3342
|
);
|
|
@@ -2879,18 +3348,18 @@ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoop
|
|
|
2879
3348
|
if (msg.id && msg.message && loopWidths[msg.id]) {
|
|
2880
3349
|
const loopWidth = loopWidths[msg.id].width;
|
|
2881
3350
|
const textConf = messageFont(conf);
|
|
2882
|
-
msg.message =
|
|
3351
|
+
msg.message = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
|
|
2883
3352
|
msg.width = loopWidth;
|
|
2884
3353
|
msg.wrap = true;
|
|
2885
|
-
const textDims =
|
|
2886
|
-
const totalOffset =
|
|
3354
|
+
const textDims = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(msg.message, textConf);
|
|
3355
|
+
const totalOffset = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(textDims.height, conf.labelBoxHeight);
|
|
2887
3356
|
heightAdjust = postMargin + totalOffset;
|
|
2888
|
-
|
|
3357
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug(`${totalOffset} - ${msg.message}`);
|
|
2889
3358
|
}
|
|
2890
3359
|
addLoopFn(msg);
|
|
2891
3360
|
bounds.bumpVerticalPos(heightAdjust);
|
|
2892
3361
|
}
|
|
2893
|
-
(0,
|
|
3362
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
|
|
2894
3363
|
function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
|
|
2895
3364
|
function receiverAdjustment(actor, adjustment) {
|
|
2896
3365
|
if (actor.x < actors.get(msg.from).x) {
|
|
@@ -2911,7 +3380,7 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
|
|
|
2911
3380
|
msgModel.stopx = msgModel.stopx - adjustment;
|
|
2912
3381
|
}
|
|
2913
3382
|
}
|
|
2914
|
-
(0,
|
|
3383
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(receiverAdjustment, "receiverAdjustment");
|
|
2915
3384
|
function senderAdjustment(actor, adjustment) {
|
|
2916
3385
|
if (actor.x < actors.get(msg.to).x) {
|
|
2917
3386
|
bounds.insert(
|
|
@@ -2931,17 +3400,23 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
|
|
|
2931
3400
|
msgModel.startx = msgModel.startx - adjustment;
|
|
2932
3401
|
}
|
|
2933
3402
|
}
|
|
2934
|
-
(0,
|
|
3403
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(senderAdjustment, "senderAdjustment");
|
|
3404
|
+
const actorArray = [
|
|
3405
|
+
PARTICIPANT_TYPE.ACTOR,
|
|
3406
|
+
PARTICIPANT_TYPE.CONTROL,
|
|
3407
|
+
PARTICIPANT_TYPE.ENTITY,
|
|
3408
|
+
PARTICIPANT_TYPE.DATABASE
|
|
3409
|
+
];
|
|
2935
3410
|
if (createdActors.get(msg.to) == index) {
|
|
2936
3411
|
const actor = actors.get(msg.to);
|
|
2937
|
-
const adjustment = actor.type
|
|
3412
|
+
const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
|
|
2938
3413
|
receiverAdjustment(actor, adjustment);
|
|
2939
3414
|
actor.starty = lineStartY - actor.height / 2;
|
|
2940
3415
|
bounds.bumpVerticalPos(actor.height / 2);
|
|
2941
3416
|
} else if (destroyedActors.get(msg.from) == index) {
|
|
2942
3417
|
const actor = actors.get(msg.from);
|
|
2943
3418
|
if (conf.mirrorActors) {
|
|
2944
|
-
const adjustment = actor.type
|
|
3419
|
+
const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
|
|
2945
3420
|
senderAdjustment(actor, adjustment);
|
|
2946
3421
|
}
|
|
2947
3422
|
actor.stopy = lineStartY - actor.height / 2;
|
|
@@ -2949,26 +3424,26 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
|
|
|
2949
3424
|
} else if (destroyedActors.get(msg.to) == index) {
|
|
2950
3425
|
const actor = actors.get(msg.to);
|
|
2951
3426
|
if (conf.mirrorActors) {
|
|
2952
|
-
const adjustment = actor.type
|
|
3427
|
+
const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
|
|
2953
3428
|
receiverAdjustment(actor, adjustment);
|
|
2954
3429
|
}
|
|
2955
3430
|
actor.stopy = lineStartY - actor.height / 2;
|
|
2956
3431
|
bounds.bumpVerticalPos(actor.height / 2);
|
|
2957
3432
|
}
|
|
2958
3433
|
}
|
|
2959
|
-
(0,
|
|
2960
|
-
var draw = /* @__PURE__ */ (0,
|
|
2961
|
-
const { securityLevel, sequence } = (0,
|
|
3434
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
|
|
3435
|
+
var draw = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(_text, id, _version, diagObj) {
|
|
3436
|
+
const { securityLevel, sequence } = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)();
|
|
2962
3437
|
conf = sequence;
|
|
2963
3438
|
let sandboxElement;
|
|
2964
3439
|
if (securityLevel === "sandbox") {
|
|
2965
|
-
sandboxElement = (0,
|
|
3440
|
+
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_6__/* .select */ .Ltv)("#i" + id);
|
|
2966
3441
|
}
|
|
2967
|
-
const root = securityLevel === "sandbox" ? (0,
|
|
3442
|
+
const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_6__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_6__/* .select */ .Ltv)("body");
|
|
2968
3443
|
const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
|
|
2969
3444
|
bounds.init();
|
|
2970
|
-
|
|
2971
|
-
const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : (0,
|
|
3445
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug(diagObj.db);
|
|
3446
|
+
const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : (0,d3__WEBPACK_IMPORTED_MODULE_6__/* .select */ .Ltv)(`[id="${id}"]`);
|
|
2972
3447
|
const actors = diagObj.db.getActors();
|
|
2973
3448
|
const createdActors = diagObj.db.getCreatedActors();
|
|
2974
3449
|
const destroyedActors = diagObj.db.getDestroyedActors();
|
|
@@ -3018,7 +3493,7 @@ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/*
|
|
|
3018
3493
|
);
|
|
3019
3494
|
bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
|
|
3020
3495
|
}
|
|
3021
|
-
(0,
|
|
3496
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(activeEnd, "activeEnd");
|
|
3022
3497
|
let sequenceIndex = 1;
|
|
3023
3498
|
let sequenceIndexStep = 1;
|
|
3024
3499
|
const messagesToDraw = [];
|
|
@@ -3200,7 +3675,7 @@ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/*
|
|
|
3200
3675
|
messagesToDraw.push({ messageModel: msgModel, lineStartY });
|
|
3201
3676
|
bounds.models.addMessage(msgModel);
|
|
3202
3677
|
} catch (e) {
|
|
3203
|
-
|
|
3678
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.error("error while drawing message", e);
|
|
3204
3679
|
}
|
|
3205
3680
|
}
|
|
3206
3681
|
if ([
|
|
@@ -3219,8 +3694,8 @@ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/*
|
|
|
3219
3694
|
}
|
|
3220
3695
|
index++;
|
|
3221
3696
|
}
|
|
3222
|
-
|
|
3223
|
-
|
|
3697
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug("createdActors", createdActors);
|
|
3698
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug("destroyedActors", destroyedActors);
|
|
3224
3699
|
await drawActors(diagram2, actors, actorKeys, false);
|
|
3225
3700
|
for (const e of messagesToDraw) {
|
|
3226
3701
|
await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj);
|
|
@@ -3233,10 +3708,11 @@ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/*
|
|
|
3233
3708
|
for (const box2 of bounds.models.boxes) {
|
|
3234
3709
|
box2.height = bounds.getVerticalPos() - box2.y;
|
|
3235
3710
|
bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
|
|
3236
|
-
|
|
3237
|
-
box2.
|
|
3238
|
-
box2.
|
|
3239
|
-
box2.
|
|
3711
|
+
const boxPadding = conf.boxMargin * 2;
|
|
3712
|
+
box2.startx = box2.x - boxPadding;
|
|
3713
|
+
box2.starty = box2.y - boxPadding * 0.25;
|
|
3714
|
+
box2.stopx = box2.startx + box2.width + 2 * boxPadding;
|
|
3715
|
+
box2.stopy = box2.starty + box2.height + boxPadding * 0.75;
|
|
3240
3716
|
box2.stroke = "rgb(0,0,0, 0.5)";
|
|
3241
3717
|
svgDraw_default.drawBox(diagram2, box2, conf);
|
|
3242
3718
|
}
|
|
@@ -3273,13 +3749,13 @@ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/*
|
|
|
3273
3749
|
if (title) {
|
|
3274
3750
|
diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
|
|
3275
3751
|
}
|
|
3276
|
-
(0,
|
|
3752
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .configureSvgSize */ .a$)(diagram2, height, width, conf.useMaxWidth);
|
|
3277
3753
|
const extraVertForTitle = title ? 40 : 0;
|
|
3278
3754
|
diagram2.attr(
|
|
3279
3755
|
"viewBox",
|
|
3280
3756
|
box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
|
|
3281
3757
|
);
|
|
3282
|
-
|
|
3758
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug(`models:`, bounds.models);
|
|
3283
3759
|
}, "draw");
|
|
3284
3760
|
async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
|
|
3285
3761
|
const maxMessageWidthPerActor = {};
|
|
@@ -3295,47 +3771,47 @@ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
|
|
|
3295
3771
|
const isNote = msg.placement !== void 0;
|
|
3296
3772
|
const isMessage = !isNote;
|
|
3297
3773
|
const textFont = isNote ? noteFont(conf) : messageFont(conf);
|
|
3298
|
-
const wrappedMessage = msg.wrap ?
|
|
3299
|
-
const messageDimensions = (0,
|
|
3774
|
+
const wrappedMessage = msg.wrap ? _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
|
|
3775
|
+
const messageDimensions = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(wrappedMessage) ? await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()) : _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(wrappedMessage, textFont);
|
|
3300
3776
|
const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
|
|
3301
3777
|
if (isMessage && msg.from === actor.nextActor) {
|
|
3302
|
-
maxMessageWidthPerActor[msg.to] =
|
|
3778
|
+
maxMessageWidthPerActor[msg.to] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3303
3779
|
maxMessageWidthPerActor[msg.to] || 0,
|
|
3304
3780
|
messageWidth
|
|
3305
3781
|
);
|
|
3306
3782
|
} else if (isMessage && msg.from === actor.prevActor) {
|
|
3307
|
-
maxMessageWidthPerActor[msg.from] =
|
|
3783
|
+
maxMessageWidthPerActor[msg.from] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3308
3784
|
maxMessageWidthPerActor[msg.from] || 0,
|
|
3309
3785
|
messageWidth
|
|
3310
3786
|
);
|
|
3311
3787
|
} else if (isMessage && msg.from === msg.to) {
|
|
3312
|
-
maxMessageWidthPerActor[msg.from] =
|
|
3788
|
+
maxMessageWidthPerActor[msg.from] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3313
3789
|
maxMessageWidthPerActor[msg.from] || 0,
|
|
3314
3790
|
messageWidth / 2
|
|
3315
3791
|
);
|
|
3316
|
-
maxMessageWidthPerActor[msg.to] =
|
|
3792
|
+
maxMessageWidthPerActor[msg.to] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3317
3793
|
maxMessageWidthPerActor[msg.to] || 0,
|
|
3318
3794
|
messageWidth / 2
|
|
3319
3795
|
);
|
|
3320
3796
|
} else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
|
|
3321
|
-
maxMessageWidthPerActor[msg.from] =
|
|
3797
|
+
maxMessageWidthPerActor[msg.from] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3322
3798
|
maxMessageWidthPerActor[msg.from] || 0,
|
|
3323
3799
|
messageWidth
|
|
3324
3800
|
);
|
|
3325
3801
|
} else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
|
|
3326
|
-
maxMessageWidthPerActor[actor.prevActor] =
|
|
3802
|
+
maxMessageWidthPerActor[actor.prevActor] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3327
3803
|
maxMessageWidthPerActor[actor.prevActor] || 0,
|
|
3328
3804
|
messageWidth
|
|
3329
3805
|
);
|
|
3330
3806
|
} else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
|
|
3331
3807
|
if (actor.prevActor) {
|
|
3332
|
-
maxMessageWidthPerActor[actor.prevActor] =
|
|
3808
|
+
maxMessageWidthPerActor[actor.prevActor] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3333
3809
|
maxMessageWidthPerActor[actor.prevActor] || 0,
|
|
3334
3810
|
messageWidth / 2
|
|
3335
3811
|
);
|
|
3336
3812
|
}
|
|
3337
3813
|
if (actor.nextActor) {
|
|
3338
|
-
maxMessageWidthPerActor[msg.from] =
|
|
3814
|
+
maxMessageWidthPerActor[msg.from] = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3339
3815
|
maxMessageWidthPerActor[msg.from] || 0,
|
|
3340
3816
|
messageWidth / 2
|
|
3341
3817
|
);
|
|
@@ -3343,15 +3819,15 @@ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
|
|
|
3343
3819
|
}
|
|
3344
3820
|
}
|
|
3345
3821
|
}
|
|
3346
|
-
|
|
3822
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
|
|
3347
3823
|
return maxMessageWidthPerActor;
|
|
3348
3824
|
}
|
|
3349
|
-
(0,
|
|
3350
|
-
var getRequiredPopupWidth = /* @__PURE__ */ (0,
|
|
3825
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
|
|
3826
|
+
var getRequiredPopupWidth = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(actor) {
|
|
3351
3827
|
let requiredPopupWidth = 0;
|
|
3352
3828
|
const textFont = actorFont(conf);
|
|
3353
3829
|
for (const key in actor.links) {
|
|
3354
|
-
const labelDimensions =
|
|
3830
|
+
const labelDimensions = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(key, textFont);
|
|
3355
3831
|
const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
|
|
3356
3832
|
if (requiredPopupWidth < labelWidth) {
|
|
3357
3833
|
requiredPopupWidth = labelWidth;
|
|
@@ -3364,16 +3840,16 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
|
|
|
3364
3840
|
for (const prop of actors.keys()) {
|
|
3365
3841
|
const actor = actors.get(prop);
|
|
3366
3842
|
if (actor.wrap) {
|
|
3367
|
-
actor.description =
|
|
3843
|
+
actor.description = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(
|
|
3368
3844
|
actor.description,
|
|
3369
3845
|
conf.width - 2 * conf.wrapPadding,
|
|
3370
3846
|
actorFont(conf)
|
|
3371
3847
|
);
|
|
3372
3848
|
}
|
|
3373
|
-
const actDims = (0,
|
|
3374
|
-
actor.width = actor.wrap ? conf.width :
|
|
3375
|
-
actor.height = actor.wrap ?
|
|
3376
|
-
maxHeight =
|
|
3849
|
+
const actDims = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(actor.description) ? await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .calculateMathMLDimensions */ .Dl)(actor.description, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()) : _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(actor.description, actorFont(conf));
|
|
3850
|
+
actor.width = actor.wrap ? conf.width : _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
|
|
3851
|
+
actor.height = actor.wrap ? _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(actDims.height, conf.height) : conf.height;
|
|
3852
|
+
maxHeight = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
|
|
3377
3853
|
}
|
|
3378
3854
|
for (const actorKey in actorToMessageWidth) {
|
|
3379
3855
|
const actor = actors.get(actorKey);
|
|
@@ -3384,12 +3860,12 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
|
|
|
3384
3860
|
if (!nextActor) {
|
|
3385
3861
|
const messageWidth2 = actorToMessageWidth[actorKey];
|
|
3386
3862
|
const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
|
|
3387
|
-
actor.margin =
|
|
3863
|
+
actor.margin = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(actorWidth2, conf.actorMargin);
|
|
3388
3864
|
continue;
|
|
3389
3865
|
}
|
|
3390
3866
|
const messageWidth = actorToMessageWidth[actorKey];
|
|
3391
3867
|
const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
|
|
3392
|
-
actor.margin =
|
|
3868
|
+
actor.margin = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(actorWidth, conf.actorMargin);
|
|
3393
3869
|
}
|
|
3394
3870
|
let maxBoxHeight = 0;
|
|
3395
3871
|
boxes.forEach((box) => {
|
|
@@ -3397,13 +3873,15 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
|
|
|
3397
3873
|
let totalWidth = box.actorKeys.reduce((total, aKey) => {
|
|
3398
3874
|
return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
|
|
3399
3875
|
}, 0);
|
|
3876
|
+
const standardBoxPadding = conf.boxMargin * 8;
|
|
3877
|
+
totalWidth += standardBoxPadding;
|
|
3400
3878
|
totalWidth -= 2 * conf.boxTextMargin;
|
|
3401
3879
|
if (box.wrap) {
|
|
3402
|
-
box.name =
|
|
3880
|
+
box.name = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
|
|
3403
3881
|
}
|
|
3404
|
-
const boxMsgDimensions =
|
|
3405
|
-
maxBoxHeight =
|
|
3406
|
-
const minWidth =
|
|
3882
|
+
const boxMsgDimensions = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(box.name, textFont);
|
|
3883
|
+
maxBoxHeight = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(boxMsgDimensions.height, maxBoxHeight);
|
|
3884
|
+
const minWidth = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
|
|
3407
3885
|
box.margin = conf.boxTextMargin;
|
|
3408
3886
|
if (totalWidth < minWidth) {
|
|
3409
3887
|
const missing = (minWidth - totalWidth) / 2;
|
|
@@ -3411,21 +3889,21 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
|
|
|
3411
3889
|
}
|
|
3412
3890
|
});
|
|
3413
3891
|
boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
|
|
3414
|
-
return
|
|
3892
|
+
return _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(maxHeight, conf.height);
|
|
3415
3893
|
}
|
|
3416
|
-
(0,
|
|
3417
|
-
var buildNoteModel = /* @__PURE__ */ (0,
|
|
3894
|
+
(0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(calculateActorMargins, "calculateActorMargins");
|
|
3895
|
+
var buildNoteModel = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(msg, actors, diagObj) {
|
|
3418
3896
|
const fromActor = actors.get(msg.from);
|
|
3419
3897
|
const toActor = actors.get(msg.to);
|
|
3420
3898
|
const startx = fromActor.x;
|
|
3421
3899
|
const stopx = toActor.x;
|
|
3422
3900
|
const shouldWrap = msg.wrap && msg.message;
|
|
3423
|
-
let textDimensions = (0,
|
|
3424
|
-
shouldWrap ?
|
|
3901
|
+
let textDimensions = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .hasKatex */ .Wi)(msg.message) ? await (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .getConfig2 */ .D7)()) : _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(
|
|
3902
|
+
shouldWrap ? _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
|
|
3425
3903
|
noteFont(conf)
|
|
3426
3904
|
);
|
|
3427
3905
|
const noteModel = {
|
|
3428
|
-
width: shouldWrap ? conf.width :
|
|
3906
|
+
width: shouldWrap ? conf.width : _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
|
|
3429
3907
|
height: 0,
|
|
3430
3908
|
startx: fromActor.x,
|
|
3431
3909
|
stopx: 0,
|
|
@@ -3434,41 +3912,41 @@ var buildNoteModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MO
|
|
|
3434
3912
|
message: msg.message
|
|
3435
3913
|
};
|
|
3436
3914
|
if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
|
|
3437
|
-
noteModel.width = shouldWrap ?
|
|
3915
|
+
noteModel.width = shouldWrap ? _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width) : _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3438
3916
|
fromActor.width / 2 + toActor.width / 2,
|
|
3439
3917
|
textDimensions.width + 2 * conf.noteMargin
|
|
3440
3918
|
);
|
|
3441
3919
|
noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
|
|
3442
3920
|
} else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
|
|
3443
|
-
noteModel.width = shouldWrap ?
|
|
3921
|
+
noteModel.width = shouldWrap ? _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3444
3922
|
fromActor.width / 2 + toActor.width / 2,
|
|
3445
3923
|
textDimensions.width + 2 * conf.noteMargin
|
|
3446
3924
|
);
|
|
3447
3925
|
noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
|
|
3448
3926
|
} else if (msg.to === msg.from) {
|
|
3449
|
-
textDimensions =
|
|
3450
|
-
shouldWrap ?
|
|
3927
|
+
textDimensions = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(
|
|
3928
|
+
shouldWrap ? _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(msg.message, _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
|
|
3451
3929
|
noteFont(conf)
|
|
3452
3930
|
);
|
|
3453
|
-
noteModel.width = shouldWrap ?
|
|
3931
|
+
noteModel.width = shouldWrap ? _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(conf.width, fromActor.width) : _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
|
|
3454
3932
|
noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
|
|
3455
3933
|
} else {
|
|
3456
3934
|
noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
|
|
3457
3935
|
noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
|
|
3458
3936
|
}
|
|
3459
3937
|
if (shouldWrap) {
|
|
3460
|
-
noteModel.message =
|
|
3938
|
+
noteModel.message = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(
|
|
3461
3939
|
msg.message,
|
|
3462
3940
|
noteModel.width - 2 * conf.wrapPadding,
|
|
3463
3941
|
noteFont(conf)
|
|
3464
3942
|
);
|
|
3465
3943
|
}
|
|
3466
|
-
|
|
3944
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug(
|
|
3467
3945
|
`NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
|
|
3468
3946
|
);
|
|
3469
3947
|
return noteModel;
|
|
3470
3948
|
}, "buildNoteModel");
|
|
3471
|
-
var buildMessageModel = /* @__PURE__ */ (0,
|
|
3949
|
+
var buildMessageModel = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(function(msg, actors, diagObj) {
|
|
3472
3950
|
if (![
|
|
3473
3951
|
diagObj.db.LINETYPE.SOLID_OPEN,
|
|
3474
3952
|
diagObj.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -3489,7 +3967,7 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED
|
|
|
3489
3967
|
let startx = isArrowToRight ? fromRight : fromLeft;
|
|
3490
3968
|
let stopx = isArrowToRight ? toLeft : toRight;
|
|
3491
3969
|
const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
|
|
3492
|
-
const adjustValue = /* @__PURE__ */ (0,
|
|
3970
|
+
const adjustValue = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((value) => {
|
|
3493
3971
|
return isArrowToRight ? -value : value;
|
|
3494
3972
|
}, "adjustValue");
|
|
3495
3973
|
if (msg.from === msg.to) {
|
|
@@ -3510,15 +3988,15 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED
|
|
|
3510
3988
|
const allBounds = [fromLeft, fromRight, toLeft, toRight];
|
|
3511
3989
|
const boundedWidth = Math.abs(startx - stopx);
|
|
3512
3990
|
if (msg.wrap && msg.message) {
|
|
3513
|
-
msg.message =
|
|
3991
|
+
msg.message = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.wrapLabel(
|
|
3514
3992
|
msg.message,
|
|
3515
|
-
|
|
3993
|
+
_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
|
|
3516
3994
|
messageFont(conf)
|
|
3517
3995
|
);
|
|
3518
3996
|
}
|
|
3519
|
-
const msgDims =
|
|
3997
|
+
const msgDims = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_3__/* .utils_default */ ._K.calculateTextDimensions(msg.message, messageFont(conf));
|
|
3520
3998
|
return {
|
|
3521
|
-
width:
|
|
3999
|
+
width: _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3522
4000
|
msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
|
|
3523
4001
|
boundedWidth + 2 * conf.wrapPadding,
|
|
3524
4002
|
conf.width
|
|
@@ -3535,7 +4013,7 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED
|
|
|
3535
4013
|
toBounds: Math.max.apply(null, allBounds)
|
|
3536
4014
|
};
|
|
3537
4015
|
}, "buildMessageModel");
|
|
3538
|
-
var calculateLoopBounds = /* @__PURE__ */ (0,
|
|
4016
|
+
var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)(async function(messages, actors, _maxWidthPerActor, diagObj) {
|
|
3539
4017
|
const loops = {};
|
|
3540
4018
|
const stack = [];
|
|
3541
4019
|
let current, noteModel, msgModel;
|
|
@@ -3602,9 +4080,9 @@ var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORT
|
|
|
3602
4080
|
msg.noteModel = noteModel;
|
|
3603
4081
|
stack.forEach((stk) => {
|
|
3604
4082
|
current = stk;
|
|
3605
|
-
current.from =
|
|
3606
|
-
current.to =
|
|
3607
|
-
current.width =
|
|
4083
|
+
current.from = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(current.from, noteModel.startx);
|
|
4084
|
+
current.to = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(current.to, noteModel.startx + noteModel.width);
|
|
4085
|
+
current.width = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
|
|
3608
4086
|
});
|
|
3609
4087
|
} else {
|
|
3610
4088
|
msgModel = buildMessageModel(msg, actors, diagObj);
|
|
@@ -3615,28 +4093,28 @@ var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORT
|
|
|
3615
4093
|
if (msgModel.startx === msgModel.stopx) {
|
|
3616
4094
|
const from = actors.get(msg.from);
|
|
3617
4095
|
const to = actors.get(msg.to);
|
|
3618
|
-
current.from =
|
|
4096
|
+
current.from = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(
|
|
3619
4097
|
from.x - msgModel.width / 2,
|
|
3620
4098
|
from.x - from.width / 2,
|
|
3621
4099
|
current.from
|
|
3622
4100
|
);
|
|
3623
|
-
current.to =
|
|
4101
|
+
current.to = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(
|
|
3624
4102
|
to.x + msgModel.width / 2,
|
|
3625
4103
|
to.x + from.width / 2,
|
|
3626
4104
|
current.to
|
|
3627
4105
|
);
|
|
3628
|
-
current.width =
|
|
4106
|
+
current.width = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
|
|
3629
4107
|
} else {
|
|
3630
|
-
current.from =
|
|
3631
|
-
current.to =
|
|
3632
|
-
current.width =
|
|
4108
|
+
current.from = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMin(msgModel.startx, current.from);
|
|
4109
|
+
current.to = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(msgModel.stopx, current.to);
|
|
4110
|
+
current.width = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .common_default */ .Y2.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
|
|
3633
4111
|
}
|
|
3634
4112
|
});
|
|
3635
4113
|
}
|
|
3636
4114
|
}
|
|
3637
4115
|
}
|
|
3638
4116
|
bounds.activations = [];
|
|
3639
|
-
|
|
4117
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .log */ .Rm.debug("Loop type widths:", loops);
|
|
3640
4118
|
return loops;
|
|
3641
4119
|
}, "calculateLoopBounds");
|
|
3642
4120
|
var sequenceRenderer_default = {
|
|
@@ -3655,13 +4133,13 @@ var diagram = {
|
|
|
3655
4133
|
},
|
|
3656
4134
|
renderer: sequenceRenderer_default,
|
|
3657
4135
|
styles: styles_default,
|
|
3658
|
-
init: /* @__PURE__ */ (0,
|
|
4136
|
+
init: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_5__/* .__name */ .K2)((cnf) => {
|
|
3659
4137
|
if (!cnf.sequence) {
|
|
3660
4138
|
cnf.sequence = {};
|
|
3661
4139
|
}
|
|
3662
4140
|
if (cnf.wrap) {
|
|
3663
4141
|
cnf.sequence.wrap = cnf.wrap;
|
|
3664
|
-
(0,
|
|
4142
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_4__/* .setConfig2 */ .XV)({ sequence: { wrap: cnf.wrap } });
|
|
3665
4143
|
}
|
|
3666
4144
|
}, "init")
|
|
3667
4145
|
};
|
|
@@ -3672,4 +4150,4 @@ var diagram = {
|
|
|
3672
4150
|
|
|
3673
4151
|
};
|
|
3674
4152
|
;
|
|
3675
|
-
//# sourceMappingURL=
|
|
4153
|
+
//# sourceMappingURL=929.node.js.map
|