lowcoder-comps 0.0.27 → 0.0.29
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/{83f8a9bc.js → 2085da13.js} +1 -1
- package/250691b5.js +5 -0
- package/274f545c.js +881 -0
- package/{991b6314.js → 289305a1.js} +45 -43
- package/{6e6c38ae.js → 2eae45c2.js} +1 -1
- package/2ff7471d.js +9 -0
- package/{d16a79d9.js → 335b22a2.js} +12 -10
- package/{e30d5d4a.js → 38c826fe.js} +158 -147
- package/{ca35eaa7.js → 44011c1d.js} +286 -293
- package/4fc06812.js +64 -0
- package/{e7309c57.js → 56a787cf.js} +2 -2
- package/590941ff.js +86 -0
- package/{a607b479.js → 6341867f.js} +27 -27
- package/657fd065.js +8 -0
- package/{daee88f9.js → 78a5e50d.js} +133 -132
- package/820c3641.js +25 -0
- package/{70705fc3.js → 88b4e75a.js} +2 -1
- package/8d999722.js +1102 -0
- package/{65ab329e.js → 989caea2.js} +148 -145
- package/99b984d1.js +237 -0
- package/9e5f02d6.js +19104 -0
- package/a40faea7.js +11624 -0
- package/abac9104.js +1536 -0
- package/af2f19b3.js +819 -0
- package/{3544d11b.js → af5ee3de.js} +13 -12
- package/b24707c2.js +48428 -0
- package/b68f8b69.js +1276 -0
- package/ba68ba65.js +391 -0
- package/{796a2b34.js → bafb8599.js} +1 -1
- package/{0d26e631.js → bba60c35.js} +548 -548
- package/bd7c2a8e.js +1089 -0
- package/c71dadea.js +455 -0
- package/{8d8803ff.js → d05c1762.js} +25 -24
- package/{5edf1d55.js → d073ab24.js} +32557 -34230
- package/{11bb676b.js → d838cd10.js} +6 -5
- package/{cea82f05.js → dc36a6eb.js} +11 -11
- package/{e1a5f037.js → ed143450.js} +18 -18
- package/ee8ec8f2.js +2284 -0
- package/f6755210.js +1269 -0
- package/{560f788e.js → fba4c8e4.js} +18 -18
- package/index.js +2 -2
- package/package.json +11 -9
- package/31a2d08c.js +0 -365
- package/49315e81.js +0 -64
- package/55e01450.js +0 -46724
- package/63aaeeb8.js +0 -1055
- package/685b5f6c.js +0 -1235
- package/77072d20.js +0 -22
- package/919ae09a.js +0 -1000
- package/a0a687f6.js +0 -235
- package/a664ee52.js +0 -2192
- package/b8dbed32.js +0 -448
- package/d9708225.js +0 -86
- package/eca15e1d.js +0 -2396
- package/f3f6fcfc.js +0 -18798
- package/f45254b8.js +0 -786
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { d as
|
|
1
|
+
import { s as we, g as Oe, a as Te, b as Re, c as Dt, d as ue, e as De, f as wt, h as Nt, l as le, i as Se, w as Pe, j as Kt, k as oe, m as Me } from "./d073ab24.js";
|
|
2
|
+
import { d as Le, g as Ne } from "./4fc06812.js";
|
|
3
3
|
var Yt = function() {
|
|
4
4
|
var e = function(bt, _, x, m) {
|
|
5
5
|
for (x = x || {}, m = bt.length; m--; x[bt[m]] = _)
|
|
@@ -192,24 +192,24 @@ var Yt = function() {
|
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
parse: function(_) {
|
|
195
|
-
var x = this, m = [0], g = [], T = [null], u = [], Tt = this.table, y = "", Et = 0, se = 0,
|
|
195
|
+
var x = this, m = [0], g = [], T = [null], u = [], Tt = this.table, y = "", Et = 0, se = 0, ve = 2, ae = 1, ke = u.slice.call(arguments, 1), D = Object.create(this.lexer), vt = { yy: {} };
|
|
196
196
|
for (var Qt in this.yy)
|
|
197
197
|
Object.prototype.hasOwnProperty.call(this.yy, Qt) && (vt.yy[Qt] = this.yy[Qt]);
|
|
198
198
|
D.setInput(_, vt.yy), vt.yy.lexer = D, vt.yy.parser = this, typeof D.yylloc == "undefined" && (D.yylloc = {});
|
|
199
199
|
var Ht = D.yylloc;
|
|
200
200
|
u.push(Ht);
|
|
201
|
-
var
|
|
201
|
+
var Ae = D.options && D.options.ranges;
|
|
202
202
|
typeof vt.yy.parseError == "function" ? this.parseError = vt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
203
|
-
function
|
|
203
|
+
function Ce() {
|
|
204
204
|
var X;
|
|
205
205
|
return X = g.pop() || D.lex() || ae, typeof X != "number" && (X instanceof Array && (g = X, X = g.pop()), X = x.symbols_[X] || X), X;
|
|
206
206
|
}
|
|
207
207
|
for (var M, kt, N, qt, Ct = {}, Mt, z, re, Lt; ; ) {
|
|
208
|
-
if (kt = m[m.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((M === null || typeof M == "undefined") && (M =
|
|
208
|
+
if (kt = m[m.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((M === null || typeof M == "undefined") && (M = Ce()), N = Tt[kt] && Tt[kt][M]), typeof N == "undefined" || !N.length || !N[0]) {
|
|
209
209
|
var Gt = "";
|
|
210
210
|
Lt = [];
|
|
211
211
|
for (Mt in Tt[kt])
|
|
212
|
-
this.terminals_[Mt] && Mt >
|
|
212
|
+
this.terminals_[Mt] && Mt > ve && Lt.push("'" + this.terminals_[Mt] + "'");
|
|
213
213
|
D.showPosition ? Gt = "Parse error on line " + (Et + 1) + `:
|
|
214
214
|
` + D.showPosition() + `
|
|
215
215
|
Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt = "Parse error on line " + (Et + 1) + ": Unexpected " + (M == ae ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Gt, {
|
|
@@ -232,7 +232,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
232
232
|
last_line: u[u.length - 1].last_line,
|
|
233
233
|
first_column: u[u.length - (z || 1)].first_column,
|
|
234
234
|
last_column: u[u.length - 1].last_column
|
|
235
|
-
},
|
|
235
|
+
}, Ae && (Ct._$.range = [
|
|
236
236
|
u[u.length - (z || 1)].range[0],
|
|
237
237
|
u[u.length - 1].range[1]
|
|
238
238
|
]), qt = this.performAction.apply(Ct, [
|
|
@@ -243,7 +243,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
243
243
|
N[1],
|
|
244
244
|
T,
|
|
245
245
|
u
|
|
246
|
-
].concat(
|
|
246
|
+
].concat(ke)), typeof qt != "undefined")
|
|
247
247
|
return qt;
|
|
248
248
|
z && (m = m.slice(0, -1 * z * 2), T = T.slice(0, -1 * z), u = u.slice(0, -1 * z)), m.push(this.productions_[N[1]][0]), T.push(Ct.$), u.push(Ct._$), re = Tt[m[m.length - 2]][m[m.length - 1]], m.push(re);
|
|
249
249
|
break;
|
|
@@ -253,7 +253,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
253
253
|
}
|
|
254
254
|
return !0;
|
|
255
255
|
}
|
|
256
|
-
},
|
|
256
|
+
}, Ee = function() {
|
|
257
257
|
var bt = {
|
|
258
258
|
EOF: 1,
|
|
259
259
|
parseError: function(x, m) {
|
|
@@ -614,14 +614,14 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
614
614
|
};
|
|
615
615
|
return bt;
|
|
616
616
|
}();
|
|
617
|
-
Xt.lexer =
|
|
617
|
+
Xt.lexer = Ee;
|
|
618
618
|
function Wt() {
|
|
619
619
|
this.yy = {};
|
|
620
620
|
}
|
|
621
621
|
return Wt.prototype = Xt, Xt.Parser = Wt, new Wt();
|
|
622
622
|
}();
|
|
623
623
|
Yt.parser = Yt;
|
|
624
|
-
const
|
|
624
|
+
const Be = Yt;
|
|
625
625
|
let U = [], _t = [""], P = "global", j = "", V = [
|
|
626
626
|
{
|
|
627
627
|
alias: "global",
|
|
@@ -633,11 +633,11 @@ let U = [], _t = [""], P = "global", j = "", V = [
|
|
|
633
633
|
}
|
|
634
634
|
], St = [], te = "", ee = !1, It = 4, jt = 2;
|
|
635
635
|
var de;
|
|
636
|
-
const
|
|
636
|
+
const Ye = function() {
|
|
637
637
|
return de;
|
|
638
|
-
},
|
|
638
|
+
}, Ie = function(e) {
|
|
639
639
|
de = ue(e, Dt());
|
|
640
|
-
},
|
|
640
|
+
}, je = function(e, t, a, o, l, i, s, r, n) {
|
|
641
641
|
if (e == null || t === void 0 || t === null || a === void 0 || a === null || o === void 0 || o === null)
|
|
642
642
|
return;
|
|
643
643
|
let h = {};
|
|
@@ -672,7 +672,7 @@ const Be = function() {
|
|
|
672
672
|
} else
|
|
673
673
|
h.link = n;
|
|
674
674
|
h.wrap = xt();
|
|
675
|
-
},
|
|
675
|
+
}, Ue = function(e, t, a, o, l, i, s) {
|
|
676
676
|
if (t === null || a === null)
|
|
677
677
|
return;
|
|
678
678
|
let r = {};
|
|
@@ -700,7 +700,7 @@ const Be = function() {
|
|
|
700
700
|
} else
|
|
701
701
|
r.link = s;
|
|
702
702
|
r.typeC4Shape = { text: e }, r.parentBoundary = P, r.wrap = xt();
|
|
703
|
-
},
|
|
703
|
+
}, Fe = function(e, t, a, o, l, i, s, r) {
|
|
704
704
|
if (t === null || a === null)
|
|
705
705
|
return;
|
|
706
706
|
let n = {};
|
|
@@ -735,7 +735,7 @@ const Be = function() {
|
|
|
735
735
|
} else
|
|
736
736
|
n.link = r;
|
|
737
737
|
n.wrap = xt(), n.typeC4Shape = { text: e }, n.parentBoundary = P;
|
|
738
|
-
},
|
|
738
|
+
}, Ve = function(e, t, a, o, l, i, s, r) {
|
|
739
739
|
if (t === null || a === null)
|
|
740
740
|
return;
|
|
741
741
|
let n = {};
|
|
@@ -770,7 +770,7 @@ const Be = function() {
|
|
|
770
770
|
} else
|
|
771
771
|
n.link = r;
|
|
772
772
|
n.wrap = xt(), n.typeC4Shape = { text: e }, n.parentBoundary = P;
|
|
773
|
-
},
|
|
773
|
+
}, ze = function(e, t, a, o, l) {
|
|
774
774
|
if (e === null || t === null)
|
|
775
775
|
return;
|
|
776
776
|
let i = {};
|
|
@@ -793,7 +793,7 @@ const Be = function() {
|
|
|
793
793
|
} else
|
|
794
794
|
i.link = l;
|
|
795
795
|
i.parentBoundary = P, i.wrap = xt(), j = P, P = e, _t.push(j);
|
|
796
|
-
},
|
|
796
|
+
}, Xe = function(e, t, a, o, l) {
|
|
797
797
|
if (e === null || t === null)
|
|
798
798
|
return;
|
|
799
799
|
let i = {};
|
|
@@ -816,7 +816,7 @@ const Be = function() {
|
|
|
816
816
|
} else
|
|
817
817
|
i.link = l;
|
|
818
818
|
i.parentBoundary = P, i.wrap = xt(), j = P, P = e, _t.push(j);
|
|
819
|
-
},
|
|
819
|
+
}, We = function(e, t, a, o, l, i, s, r) {
|
|
820
820
|
if (t === null || a === null)
|
|
821
821
|
return;
|
|
822
822
|
let n = {};
|
|
@@ -846,9 +846,9 @@ const Be = function() {
|
|
|
846
846
|
} else
|
|
847
847
|
n.link = r;
|
|
848
848
|
n.nodeType = e, n.parentBoundary = P, n.wrap = xt(), j = P, P = t, _t.push(j);
|
|
849
|
-
},
|
|
849
|
+
}, Qe = function() {
|
|
850
850
|
P = j, _t.pop(), j = _t.pop(), _t.push(j);
|
|
851
|
-
},
|
|
851
|
+
}, He = function(e, t, a, o, l, i, s, r, n, h, f) {
|
|
852
852
|
let d = U.find((p) => p.alias === t);
|
|
853
853
|
if (!(d === void 0 && (d = V.find((p) => p.alias === t), d === void 0))) {
|
|
854
854
|
if (a != null)
|
|
@@ -906,7 +906,7 @@ const Be = function() {
|
|
|
906
906
|
} else
|
|
907
907
|
d.legendSprite = f;
|
|
908
908
|
}
|
|
909
|
-
},
|
|
909
|
+
}, qe = function(e, t, a, o, l, i, s) {
|
|
910
910
|
const r = St.find((n) => n.from === t && n.to === a);
|
|
911
911
|
if (r !== void 0) {
|
|
912
912
|
if (o != null)
|
|
@@ -934,7 +934,7 @@ const Be = function() {
|
|
|
934
934
|
} else
|
|
935
935
|
r.offsetY = parseInt(s);
|
|
936
936
|
}
|
|
937
|
-
},
|
|
937
|
+
}, Ge = function(e, t, a) {
|
|
938
938
|
let o = It, l = jt;
|
|
939
939
|
if (typeof t == "object") {
|
|
940
940
|
const i = Object.values(t)[0];
|
|
@@ -947,31 +947,31 @@ const Be = function() {
|
|
|
947
947
|
} else
|
|
948
948
|
l = parseInt(a);
|
|
949
949
|
o >= 1 && (It = o), l >= 1 && (jt = l);
|
|
950
|
-
}, Ge = function() {
|
|
951
|
-
return It;
|
|
952
950
|
}, Ke = function() {
|
|
953
|
-
return
|
|
951
|
+
return It;
|
|
954
952
|
}, Je = function() {
|
|
955
|
-
return
|
|
953
|
+
return jt;
|
|
956
954
|
}, Ze = function() {
|
|
955
|
+
return P;
|
|
956
|
+
}, $e = function() {
|
|
957
957
|
return j;
|
|
958
958
|
}, fe = function(e) {
|
|
959
959
|
return e == null ? U : U.filter((t) => t.parentBoundary === e);
|
|
960
|
-
}, $e = function(e) {
|
|
961
|
-
return U.find((t) => t.alias === e);
|
|
962
960
|
}, t0 = function(e) {
|
|
963
|
-
return
|
|
961
|
+
return U.find((t) => t.alias === e);
|
|
964
962
|
}, e0 = function(e) {
|
|
963
|
+
return Object.keys(fe(e));
|
|
964
|
+
}, pe = function(e) {
|
|
965
965
|
return e == null ? V : V.filter((t) => t.parentBoundary === e);
|
|
966
|
-
}, i0 = function() {
|
|
966
|
+
}, i0 = pe, n0 = function() {
|
|
967
967
|
return St;
|
|
968
|
-
},
|
|
968
|
+
}, s0 = function() {
|
|
969
969
|
return te;
|
|
970
|
-
},
|
|
970
|
+
}, a0 = function(e) {
|
|
971
971
|
ee = e;
|
|
972
972
|
}, xt = function() {
|
|
973
973
|
return ee;
|
|
974
|
-
},
|
|
974
|
+
}, r0 = function() {
|
|
975
975
|
U = [], V = [
|
|
976
976
|
{
|
|
977
977
|
alias: "global",
|
|
@@ -982,7 +982,7 @@ const Be = function() {
|
|
|
982
982
|
parentBoundary: ""
|
|
983
983
|
}
|
|
984
984
|
], j = "", P = "global", _t = [""], St = [], _t = [""], te = "", ee = !1, It = 4, jt = 2;
|
|
985
|
-
},
|
|
985
|
+
}, l0 = {
|
|
986
986
|
SOLID: 0,
|
|
987
987
|
DOTTED: 1,
|
|
988
988
|
NOTE: 2,
|
|
@@ -1006,60 +1006,61 @@ const Be = function() {
|
|
|
1006
1006
|
RECT_END: 23,
|
|
1007
1007
|
SOLID_POINT: 24,
|
|
1008
1008
|
DOTTED_POINT: 25
|
|
1009
|
-
},
|
|
1009
|
+
}, o0 = {
|
|
1010
1010
|
FILLED: 0,
|
|
1011
1011
|
OPEN: 1
|
|
1012
|
-
},
|
|
1012
|
+
}, c0 = {
|
|
1013
1013
|
LEFTOF: 0,
|
|
1014
1014
|
RIGHTOF: 1,
|
|
1015
1015
|
OVER: 2
|
|
1016
|
-
},
|
|
1016
|
+
}, h0 = function(e) {
|
|
1017
1017
|
te = ue(e, Dt());
|
|
1018
1018
|
}, Jt = {
|
|
1019
|
-
addPersonOrSystem:
|
|
1020
|
-
addPersonOrSystemBoundary:
|
|
1021
|
-
addContainer:
|
|
1022
|
-
addContainerBoundary:
|
|
1023
|
-
addComponent:
|
|
1024
|
-
addDeploymentNode:
|
|
1025
|
-
popBoundaryParseStack:
|
|
1026
|
-
addRel:
|
|
1027
|
-
updateElStyle:
|
|
1028
|
-
updateRelStyle:
|
|
1029
|
-
updateLayoutConfig:
|
|
1019
|
+
addPersonOrSystem: Ue,
|
|
1020
|
+
addPersonOrSystemBoundary: ze,
|
|
1021
|
+
addContainer: Fe,
|
|
1022
|
+
addContainerBoundary: Xe,
|
|
1023
|
+
addComponent: Ve,
|
|
1024
|
+
addDeploymentNode: We,
|
|
1025
|
+
popBoundaryParseStack: Qe,
|
|
1026
|
+
addRel: je,
|
|
1027
|
+
updateElStyle: He,
|
|
1028
|
+
updateRelStyle: qe,
|
|
1029
|
+
updateLayoutConfig: Ge,
|
|
1030
1030
|
autoWrap: xt,
|
|
1031
|
-
setWrap:
|
|
1031
|
+
setWrap: a0,
|
|
1032
1032
|
getC4ShapeArray: fe,
|
|
1033
|
-
getC4Shape:
|
|
1034
|
-
getC4ShapeKeys:
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1033
|
+
getC4Shape: t0,
|
|
1034
|
+
getC4ShapeKeys: e0,
|
|
1035
|
+
getBoundaries: pe,
|
|
1036
|
+
getBoundarys: i0,
|
|
1037
|
+
getCurrentBoundaryParse: Ze,
|
|
1038
|
+
getParentBoundaryParse: $e,
|
|
1039
|
+
getRels: n0,
|
|
1040
|
+
getTitle: s0,
|
|
1041
|
+
getC4Type: Ye,
|
|
1042
|
+
getC4ShapeInRow: Ke,
|
|
1043
|
+
getC4BoundaryInRow: Je,
|
|
1044
|
+
setAccTitle: we,
|
|
1045
|
+
getAccTitle: Oe,
|
|
1046
|
+
getAccDescription: Te,
|
|
1047
|
+
setAccDescription: Re,
|
|
1047
1048
|
getConfig: () => Dt().c4,
|
|
1048
|
-
clear:
|
|
1049
|
-
LINETYPE:
|
|
1050
|
-
ARROWTYPE:
|
|
1051
|
-
PLACEMENT:
|
|
1052
|
-
setTitle:
|
|
1053
|
-
setC4Type:
|
|
1049
|
+
clear: r0,
|
|
1050
|
+
LINETYPE: l0,
|
|
1051
|
+
ARROWTYPE: o0,
|
|
1052
|
+
PLACEMENT: c0,
|
|
1053
|
+
setTitle: h0,
|
|
1054
|
+
setC4Type: Ie
|
|
1054
1055
|
// apply,
|
|
1055
1056
|
}, ie = function(e, t) {
|
|
1056
|
-
return
|
|
1057
|
-
},
|
|
1057
|
+
return Le(e, t);
|
|
1058
|
+
}, ye = function(e, t, a, o, l, i) {
|
|
1058
1059
|
const s = e.append("image");
|
|
1059
1060
|
s.attr("width", t), s.attr("height", a), s.attr("x", o), s.attr("y", l);
|
|
1060
|
-
let r = i.startsWith("data:image/png;base64") ? i :
|
|
1061
|
+
let r = i.startsWith("data:image/png;base64") ? i : Me.sanitizeUrl(i);
|
|
1061
1062
|
s.attr("xlink:href", r);
|
|
1062
|
-
},
|
|
1063
|
+
}, u0 = (e, t, a) => {
|
|
1063
1064
|
const o = e.append("g");
|
|
1064
1065
|
let l = 0;
|
|
1065
1066
|
for (let i of t) {
|
|
@@ -1098,7 +1099,7 @@ const Be = function() {
|
|
|
1098
1099
|
d
|
|
1099
1100
|
));
|
|
1100
1101
|
}
|
|
1101
|
-
},
|
|
1102
|
+
}, d0 = function(e, t, a) {
|
|
1102
1103
|
const o = e.append("g");
|
|
1103
1104
|
let l = t.bgColor ? t.bgColor : "none", i = t.borderColor ? t.borderColor : "#444444", s = t.fontColor ? t.fontColor : "black", r = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
|
|
1104
1105
|
t.nodeType && (r = { "stroke-width": 1 });
|
|
@@ -1143,7 +1144,7 @@ const Be = function() {
|
|
|
1143
1144
|
{ fill: "#444444" },
|
|
1144
1145
|
h
|
|
1145
1146
|
));
|
|
1146
|
-
},
|
|
1147
|
+
}, f0 = function(e, t, a) {
|
|
1147
1148
|
var o;
|
|
1148
1149
|
let l = t.bgColor ? t.bgColor : a[t.typeC4Shape.text + "_bg_color"], i = t.borderColor ? t.borderColor : a[t.typeC4Shape.text + "_border_color"], s = t.fontColor ? t.fontColor : "#FFFFFF", r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
|
|
1149
1150
|
switch (t.typeC4Shape.text) {
|
|
@@ -1156,7 +1157,7 @@ const Be = function() {
|
|
|
1156
1157
|
}
|
|
1157
1158
|
const n = e.append("g");
|
|
1158
1159
|
n.attr("class", "person-man");
|
|
1159
|
-
const h =
|
|
1160
|
+
const h = Ne();
|
|
1160
1161
|
switch (t.typeC4Shape.text) {
|
|
1161
1162
|
case "person":
|
|
1162
1163
|
case "external_person":
|
|
@@ -1197,11 +1198,11 @@ const Be = function() {
|
|
|
1197
1198
|
);
|
|
1198
1199
|
break;
|
|
1199
1200
|
}
|
|
1200
|
-
let f =
|
|
1201
|
+
let f = v0(a, t.typeC4Shape.text);
|
|
1201
1202
|
switch (n.append("text").attr("fill", s).attr("font-family", f.fontFamily).attr("font-size", f.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
|
|
1202
1203
|
case "person":
|
|
1203
1204
|
case "external_person":
|
|
1204
|
-
|
|
1205
|
+
ye(
|
|
1205
1206
|
n,
|
|
1206
1207
|
48,
|
|
1207
1208
|
48,
|
|
@@ -1249,33 +1250,33 @@ const Be = function() {
|
|
|
1249
1250
|
{ fill: s },
|
|
1250
1251
|
d
|
|
1251
1252
|
)), t.height;
|
|
1252
|
-
},
|
|
1253
|
+
}, p0 = function(e) {
|
|
1253
1254
|
e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1254
1255
|
"d",
|
|
1255
1256
|
"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"
|
|
1256
1257
|
);
|
|
1257
|
-
},
|
|
1258
|
+
}, y0 = function(e) {
|
|
1258
1259
|
e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1259
1260
|
"d",
|
|
1260
1261
|
"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"
|
|
1261
1262
|
);
|
|
1262
|
-
},
|
|
1263
|
+
}, g0 = function(e) {
|
|
1263
1264
|
e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1264
1265
|
"d",
|
|
1265
1266
|
"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"
|
|
1266
1267
|
);
|
|
1267
|
-
}, g0 = function(e) {
|
|
1268
|
-
e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
|
|
1269
1268
|
}, b0 = function(e) {
|
|
1270
|
-
e.append("defs").append("marker").attr("id", "
|
|
1269
|
+
e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
|
|
1271
1270
|
}, _0 = function(e) {
|
|
1272
|
-
e.append("defs").append("marker").attr("id", "
|
|
1271
|
+
e.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
|
|
1273
1272
|
}, x0 = function(e) {
|
|
1274
|
-
e.append("defs").append("marker").attr("id", "
|
|
1273
|
+
e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).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");
|
|
1275
1274
|
}, m0 = function(e) {
|
|
1275
|
+
e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
|
|
1276
|
+
}, E0 = function(e) {
|
|
1276
1277
|
const a = e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
|
|
1277
1278
|
a.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), a.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
|
|
1278
|
-
},
|
|
1279
|
+
}, v0 = (e, t) => ({
|
|
1279
1280
|
fontFamily: e[t + "FontFamily"],
|
|
1280
1281
|
fontSize: e[t + "FontSize"],
|
|
1281
1282
|
fontWeight: e[t + "FontWeight"]
|
|
@@ -1304,23 +1305,23 @@ const Be = function() {
|
|
|
1304
1305
|
};
|
|
1305
1306
|
}(), F = {
|
|
1306
1307
|
drawRect: ie,
|
|
1307
|
-
drawBoundary:
|
|
1308
|
-
drawC4Shape:
|
|
1309
|
-
drawRels:
|
|
1310
|
-
drawImage:
|
|
1311
|
-
insertArrowHead:
|
|
1312
|
-
insertArrowEnd:
|
|
1313
|
-
insertArrowFilledHead:
|
|
1314
|
-
insertDynamicNumber:
|
|
1315
|
-
insertArrowCrossHead:
|
|
1316
|
-
insertDatabaseIcon:
|
|
1317
|
-
insertComputerIcon:
|
|
1318
|
-
insertClockIcon:
|
|
1308
|
+
drawBoundary: d0,
|
|
1309
|
+
drawC4Shape: f0,
|
|
1310
|
+
drawRels: u0,
|
|
1311
|
+
drawImage: ye,
|
|
1312
|
+
insertArrowHead: b0,
|
|
1313
|
+
insertArrowEnd: _0,
|
|
1314
|
+
insertArrowFilledHead: x0,
|
|
1315
|
+
insertDynamicNumber: m0,
|
|
1316
|
+
insertArrowCrossHead: E0,
|
|
1317
|
+
insertDatabaseIcon: p0,
|
|
1318
|
+
insertComputerIcon: y0,
|
|
1319
|
+
insertClockIcon: g0
|
|
1319
1320
|
};
|
|
1320
|
-
let Ut = 0, Ft = 0,
|
|
1321
|
+
let Ut = 0, Ft = 0, ge = 4, Zt = 2;
|
|
1321
1322
|
Yt.yy = Jt;
|
|
1322
1323
|
let b = {};
|
|
1323
|
-
class
|
|
1324
|
+
class be {
|
|
1324
1325
|
constructor(t) {
|
|
1325
1326
|
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, $t(t.db.getConfig());
|
|
1326
1327
|
}
|
|
@@ -1333,7 +1334,7 @@ class ge {
|
|
|
1333
1334
|
insert(t) {
|
|
1334
1335
|
this.nextData.cnt = this.nextData.cnt + 1;
|
|
1335
1336
|
let a = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = a + t.width, l = this.nextData.starty + t.margin * 2, i = l + t.height;
|
|
1336
|
-
(a >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt >
|
|
1337
|
+
(a >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > ge) && (a = this.nextData.startx + t.margin + b.nextLinePaddingX, l = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = a + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = i = l + t.height, this.nextData.cnt = 1), t.x = a, t.y = l, this.updateVal(this.data, "startx", a, Math.min), this.updateVal(this.data, "starty", l, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", i, Math.max), this.updateVal(this.nextData, "startx", a, Math.min), this.updateVal(this.nextData, "starty", l, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", i, Math.max);
|
|
1337
1338
|
}
|
|
1338
1339
|
init(t) {
|
|
1339
1340
|
this.name = "", this.data = {
|
|
@@ -1355,7 +1356,7 @@ class ge {
|
|
|
1355
1356
|
}
|
|
1356
1357
|
}
|
|
1357
1358
|
const $t = function(e) {
|
|
1358
|
-
|
|
1359
|
+
De(b, e), e.fontFamily && (b.personFontFamily = b.systemFontFamily = b.messageFontFamily = e.fontFamily), e.fontSize && (b.personFontSize = b.systemFontSize = b.messageFontSize = e.fontSize), e.fontWeight && (b.personFontWeight = b.systemFontWeight = b.messageFontWeight = e.fontWeight);
|
|
1359
1360
|
}, Rt = (e, t) => ({
|
|
1360
1361
|
fontFamily: e[t + "FontFamily"],
|
|
1361
1362
|
fontSize: e[t + "FontSize"],
|
|
@@ -1364,7 +1365,7 @@ const $t = function(e) {
|
|
|
1364
1365
|
fontFamily: e.boundaryFontFamily,
|
|
1365
1366
|
fontSize: e.boundaryFontSize,
|
|
1366
1367
|
fontWeight: e.boundaryFontWeight
|
|
1367
|
-
}),
|
|
1368
|
+
}), k0 = (e) => ({
|
|
1368
1369
|
fontFamily: e.messageFontFamily,
|
|
1369
1370
|
fontSize: e.messageFontSize,
|
|
1370
1371
|
fontWeight: e.messageFontWeight
|
|
@@ -1372,7 +1373,7 @@ const $t = function(e) {
|
|
|
1372
1373
|
function I(e, t, a, o, l) {
|
|
1373
1374
|
if (!t[e].width)
|
|
1374
1375
|
if (a)
|
|
1375
|
-
t[e].text =
|
|
1376
|
+
t[e].text = Pe(t[e].text, l, o), t[e].textLines = t[e].text.split(Kt.lineBreakRegex).length, t[e].width = l, t[e].height = oe(t[e].text, o);
|
|
1376
1377
|
else {
|
|
1377
1378
|
let i = t[e].text.split(Kt.lineBreakRegex);
|
|
1378
1379
|
t[e].textLines = i.length;
|
|
@@ -1385,13 +1386,13 @@ function I(e, t, a, o, l) {
|
|
|
1385
1386
|
), s = oe(r, o), t[e].height = t[e].height + s;
|
|
1386
1387
|
}
|
|
1387
1388
|
}
|
|
1388
|
-
const
|
|
1389
|
+
const _e = function(e, t, a) {
|
|
1389
1390
|
t.x = a.data.startx, t.y = a.data.starty, t.width = a.data.stopx - a.data.startx, t.height = a.data.stopy - a.data.starty, t.label.y = b.c4ShapeMargin - 35;
|
|
1390
1391
|
let o = t.wrap && b.wrap, l = Bt(b);
|
|
1391
1392
|
l.fontSize = l.fontSize + 2, l.fontWeight = "bold";
|
|
1392
1393
|
let i = wt(t.label.text, l);
|
|
1393
1394
|
I("label", t, o, l, i), F.drawBoundary(e, t, b);
|
|
1394
|
-
},
|
|
1395
|
+
}, xe = function(e, t, a, o) {
|
|
1395
1396
|
let l = 0;
|
|
1396
1397
|
for (const i of o) {
|
|
1397
1398
|
l = 0;
|
|
@@ -1440,7 +1441,7 @@ let ce = function(e, t) {
|
|
|
1440
1441
|
s + n / h * e.height / 2,
|
|
1441
1442
|
o + e.height
|
|
1442
1443
|
) : a < l && o > i ? d >= f ? p = new B(a + e.width, r - f * e.width / 2) : p = new B(s + e.height / 2 * n / h, o) : a > l && o > i && (d >= f ? p = new B(a, r - e.width / 2 * f) : p = new B(s - e.height / 2 * n / h, o)), p;
|
|
1443
|
-
},
|
|
1444
|
+
}, A0 = function(e, t) {
|
|
1444
1445
|
let a = { x: 0, y: 0 };
|
|
1445
1446
|
a.x = t.x + t.width / 2, a.y = t.y + t.height / 2;
|
|
1446
1447
|
let o = ce(e, a);
|
|
@@ -1448,21 +1449,21 @@ let ce = function(e, t) {
|
|
|
1448
1449
|
let l = ce(t, a);
|
|
1449
1450
|
return { startPoint: o, endPoint: l };
|
|
1450
1451
|
};
|
|
1451
|
-
const
|
|
1452
|
+
const C0 = function(e, t, a, o) {
|
|
1452
1453
|
let l = 0;
|
|
1453
1454
|
for (let i of t) {
|
|
1454
1455
|
l = l + 1;
|
|
1455
|
-
let s = i.wrap && b.wrap, r =
|
|
1456
|
+
let s = i.wrap && b.wrap, r = k0(b);
|
|
1456
1457
|
o.db.getC4Type() === "C4Dynamic" && (i.label.text = l + ": " + i.label.text);
|
|
1457
1458
|
let h = wt(i.label.text, r);
|
|
1458
1459
|
I("label", i, s, r, h), i.techn && i.techn.text !== "" && (h = wt(i.techn.text, r), I("techn", i, s, r, h)), i.descr && i.descr.text !== "" && (h = wt(i.descr.text, r), I("descr", i, s, r, h));
|
|
1459
|
-
let f = a(i.from), d = a(i.to), p =
|
|
1460
|
+
let f = a(i.from), d = a(i.to), p = A0(f, d);
|
|
1460
1461
|
i.startPoint = p.startPoint, i.endPoint = p.endPoint;
|
|
1461
1462
|
}
|
|
1462
1463
|
F.drawRels(e, t, b);
|
|
1463
1464
|
};
|
|
1464
|
-
function
|
|
1465
|
-
let i = new
|
|
1465
|
+
function me(e, t, a, o, l) {
|
|
1466
|
+
let i = new be(l);
|
|
1466
1467
|
i.data.widthLimit = a.data.widthLimit / Math.min(Zt, o.length);
|
|
1467
1468
|
for (let [s, r] of o.entries()) {
|
|
1468
1469
|
let n = 0;
|
|
@@ -1504,20 +1505,20 @@ function xe(e, t, a, o, l) {
|
|
|
1504
1505
|
}
|
|
1505
1506
|
i.name = r.alias;
|
|
1506
1507
|
let d = l.db.getC4ShapeArray(r.alias), p = l.db.getC4ShapeKeys(r.alias);
|
|
1507
|
-
p.length > 0 &&
|
|
1508
|
+
p.length > 0 && xe(
|
|
1508
1509
|
i,
|
|
1509
1510
|
e,
|
|
1510
1511
|
d,
|
|
1511
1512
|
p
|
|
1512
1513
|
), t = r.alias;
|
|
1513
1514
|
let E = l.db.getBoundarys(t);
|
|
1514
|
-
E.length > 0 &&
|
|
1515
|
+
E.length > 0 && me(
|
|
1515
1516
|
e,
|
|
1516
1517
|
t,
|
|
1517
1518
|
i,
|
|
1518
1519
|
E,
|
|
1519
1520
|
l
|
|
1520
|
-
), r.alias !== "global" &&
|
|
1521
|
+
), r.alias !== "global" && _e(e, r, i), a.data.stopy = Math.max(
|
|
1521
1522
|
i.data.stopy + b.c4ShapeMargin,
|
|
1522
1523
|
a.data.stopy
|
|
1523
1524
|
), a.data.stopx = Math.max(
|
|
@@ -1526,17 +1527,17 @@ function xe(e, t, a, o, l) {
|
|
|
1526
1527
|
), Ut = Math.max(Ut, a.data.stopx), Ft = Math.max(Ft, a.data.stopy);
|
|
1527
1528
|
}
|
|
1528
1529
|
}
|
|
1529
|
-
const
|
|
1530
|
+
const w0 = function(e, t, a, o) {
|
|
1530
1531
|
b = Dt().c4;
|
|
1531
1532
|
const l = Dt().securityLevel;
|
|
1532
1533
|
let i;
|
|
1533
1534
|
l === "sandbox" && (i = Nt("#i" + t));
|
|
1534
1535
|
const s = l === "sandbox" ? Nt(i.nodes()[0].contentDocument.body) : Nt("body");
|
|
1535
1536
|
let r = o.db;
|
|
1536
|
-
o.db.setWrap(b.wrap),
|
|
1537
|
+
o.db.setWrap(b.wrap), ge = r.getC4ShapeInRow(), Zt = r.getC4BoundaryInRow(), le.debug(`C:${JSON.stringify(b, null, 2)}`);
|
|
1537
1538
|
const n = l === "sandbox" ? s.select(`[id="${t}"]`) : Nt(`[id="${t}"]`);
|
|
1538
1539
|
F.insertComputerIcon(n), F.insertDatabaseIcon(n), F.insertClockIcon(n);
|
|
1539
|
-
let h = new
|
|
1540
|
+
let h = new be(o);
|
|
1540
1541
|
h.setData(
|
|
1541
1542
|
b.diagramMarginX,
|
|
1542
1543
|
b.diagramMarginX,
|
|
@@ -1545,34 +1546,34 @@ const C0 = function(e, t, a, o) {
|
|
|
1545
1546
|
), h.data.widthLimit = screen.availWidth, Ut = b.diagramMarginX, Ft = b.diagramMarginY;
|
|
1546
1547
|
const f = o.db.getTitle();
|
|
1547
1548
|
let d = o.db.getBoundarys("");
|
|
1548
|
-
|
|
1549
|
+
me(n, "", h, d, o), F.insertArrowHead(n), F.insertArrowEnd(n), F.insertArrowCrossHead(n), F.insertArrowFilledHead(n), C0(n, o.db.getRels(), o.db.getC4Shape, o), h.data.stopx = Ut, h.data.stopy = Ft;
|
|
1549
1550
|
const p = h.data;
|
|
1550
1551
|
let O = p.stopy - p.starty + 2 * b.diagramMarginY;
|
|
1551
1552
|
const S = p.stopx - p.startx + 2 * b.diagramMarginX;
|
|
1552
|
-
f && n.append("text").text(f).attr("x", (p.stopx - p.startx) / 2 - 4 * b.diagramMarginX).attr("y", p.starty + b.diagramMarginY),
|
|
1553
|
+
f && n.append("text").text(f).attr("x", (p.stopx - p.startx) / 2 - 4 * b.diagramMarginX).attr("y", p.starty + b.diagramMarginY), Se(n, O, S, b.useMaxWidth);
|
|
1553
1554
|
const L = f ? 60 : 0;
|
|
1554
1555
|
n.attr(
|
|
1555
1556
|
"viewBox",
|
|
1556
1557
|
p.startx - b.diagramMarginX + " -" + (b.diagramMarginY + L) + " " + S + " " + (O + L)
|
|
1557
1558
|
), le.debug("models:", p);
|
|
1558
1559
|
}, he = {
|
|
1559
|
-
drawPersonOrSystemArray:
|
|
1560
|
-
drawBoundary:
|
|
1560
|
+
drawPersonOrSystemArray: xe,
|
|
1561
|
+
drawBoundary: _e,
|
|
1561
1562
|
setConf: $t,
|
|
1562
|
-
draw:
|
|
1563
|
-
},
|
|
1563
|
+
draw: w0
|
|
1564
|
+
}, O0 = (e) => `.person {
|
|
1564
1565
|
stroke: ${e.personBorder};
|
|
1565
1566
|
fill: ${e.personBkg};
|
|
1566
1567
|
}
|
|
1567
|
-
`,
|
|
1568
|
-
parser:
|
|
1568
|
+
`, T0 = O0, S0 = {
|
|
1569
|
+
parser: Be,
|
|
1569
1570
|
db: Jt,
|
|
1570
1571
|
renderer: he,
|
|
1571
|
-
styles:
|
|
1572
|
+
styles: T0,
|
|
1572
1573
|
init: ({ c4: e, wrap: t }) => {
|
|
1573
1574
|
he.setConf(e), Jt.setWrap(t);
|
|
1574
1575
|
}
|
|
1575
1576
|
};
|
|
1576
1577
|
export {
|
|
1577
|
-
|
|
1578
|
+
S0 as diagram
|
|
1578
1579
|
};
|