@layers-app/editor 0.7.16 → 0.7.18

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.
Files changed (249) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +1 -77
  3. package/dist/index.js +9 -15
  4. package/dist/layers.94hwidA2.js +198 -0
  5. package/dist/layers.B4l6ta1Q.js +1 -0
  6. package/dist/layers.BMrOAD_P.js +1 -0
  7. package/dist/{layers.CfISeAkt.js → layers.D99OBX9u.js} +86 -88
  8. package/dist/layers.DOzLBYZr.js +304 -0
  9. package/dist/layers.YRyXopy_.js +151 -0
  10. package/dist/layers.usKC_Id5.js +1 -0
  11. package/dist/layers.zu-IYGYU.js +47463 -0
  12. package/package.json +1 -1
  13. package/dist/layers.-fM6L_z3.js +0 -1
  14. package/dist/layers.0KANPDnB.js +0 -9
  15. package/dist/layers.1Nv-nANB.js +0 -271
  16. package/dist/layers.1bdyQGVP.js +0 -8
  17. package/dist/layers.49H_5LNr.js +0 -41
  18. package/dist/layers.4HZb3jXk.js +0 -9
  19. package/dist/layers.4RmaHEsu.js +0 -36
  20. package/dist/layers.52famHy6.js +0 -1
  21. package/dist/layers.5WzirB7G.js +0 -960
  22. package/dist/layers.5bSjIKfg.js +0 -8
  23. package/dist/layers.7JqFgE4-.js +0 -15
  24. package/dist/layers.7oLFJZ8l.js +0 -36
  25. package/dist/layers.7xkZRnuM.js +0 -40
  26. package/dist/layers.9pNaFvaX.js +0 -1
  27. package/dist/layers.ABhWEnmQ.js +0 -37
  28. package/dist/layers.B-8gEV_E.js +0 -373
  29. package/dist/layers.B-9QQMGw.js +0 -9
  30. package/dist/layers.B0sBopW9.js +0 -10
  31. package/dist/layers.B19hGmey.js +0 -1
  32. package/dist/layers.B1ySJNCM.js +0 -40
  33. package/dist/layers.B2BhJZ0D.js +0 -42
  34. package/dist/layers.B2iVWMcm.js +0 -9
  35. package/dist/layers.B3D4g2HH.js +0 -1
  36. package/dist/layers.B6Va7v9s.js +0 -207
  37. package/dist/layers.B7K7JjK6.js +0 -1510
  38. package/dist/layers.B82wcYq0.js +0 -271
  39. package/dist/layers.BAU0IeY7.js +0 -1
  40. package/dist/layers.BAtv1CM7.js +0 -1
  41. package/dist/layers.BCD7sjs8.js +0 -1
  42. package/dist/layers.BEUJQJGq.js +0 -35
  43. package/dist/layers.BGDCJs-p.js +0 -1
  44. package/dist/layers.BHz2k1im.js +0 -7
  45. package/dist/layers.BIM8NeWS.js +0 -40
  46. package/dist/layers.BIbdMSbX.js +0 -772
  47. package/dist/layers.BIeVwYKL.js +0 -1
  48. package/dist/layers.BJDrjORS.js +0 -244
  49. package/dist/layers.BJhjIY5r.js +0 -37
  50. package/dist/layers.BJmaj5SY.js +0 -39
  51. package/dist/layers.BKy18lBk.js +0 -10
  52. package/dist/layers.BL3wEq7M.js +0 -32
  53. package/dist/layers.BLKD1Tiy.js +0 -39
  54. package/dist/layers.BLd2spTm.js +0 -1
  55. package/dist/layers.BNR6f37h.js +0 -160
  56. package/dist/layers.BNkwxNgt.js +0 -39
  57. package/dist/layers.BOMC5c1j.js +0 -2
  58. package/dist/layers.BQL01Vq6.js +0 -4
  59. package/dist/layers.BQm21WlP.js +0 -4
  60. package/dist/layers.BRGRJfuK.js +0 -41
  61. package/dist/layers.BSTBZrFn.js +0 -1
  62. package/dist/layers.BXDV2XaW.js +0 -425
  63. package/dist/layers.B_Vwa8Hx.js +0 -42
  64. package/dist/layers.B_jUVHTe.js +0 -32
  65. package/dist/layers.BakV9gnD.js +0 -42
  66. package/dist/layers.BbCfEXyj.js +0 -55
  67. package/dist/layers.BbbyE_Pc.js +0 -9
  68. package/dist/layers.Bd6ptC9U.js +0 -84
  69. package/dist/layers.BeCuix4V.js +0 -10
  70. package/dist/layers.BeFEsW5q.js +0 -1
  71. package/dist/layers.BfVGjstp.js +0 -42
  72. package/dist/layers.BgEbqAdb.js +0 -4
  73. package/dist/layers.Bk40urId.js +0 -1126
  74. package/dist/layers.Blc4R7F2.js +0 -41
  75. package/dist/layers.Bny7BWT9.js +0 -41
  76. package/dist/layers.BpilXLfW.js +0 -6
  77. package/dist/layers.Bpnbfq-r.js +0 -1
  78. package/dist/layers.BrbcqGdA.js +0 -48149
  79. package/dist/layers.BvGgfImM.js +0 -52
  80. package/dist/layers.BywviGiP.js +0 -11
  81. package/dist/layers.C-_ynqvr.js +0 -1
  82. package/dist/layers.C1actZbK.js +0 -11
  83. package/dist/layers.C3DRx9On.js +0 -10
  84. package/dist/layers.C3SAUwXb.js +0 -8
  85. package/dist/layers.C3yLkCio.js +0 -7
  86. package/dist/layers.C6fD5O8g.js +0 -6
  87. package/dist/layers.C8YD8pwl.js +0 -11
  88. package/dist/layers.C8_lu5UH.js +0 -23
  89. package/dist/layers.C92R-ENv.js +0 -39
  90. package/dist/layers.C9QCrDzm.js +0 -1
  91. package/dist/layers.C9_vX7IO.js +0 -139
  92. package/dist/layers.CA_fw2Dw.js +0 -32
  93. package/dist/layers.CB61rfHO.js +0 -1225
  94. package/dist/layers.CCur6VEj.js +0 -65
  95. package/dist/layers.CFLfRAu0.js +0 -14
  96. package/dist/layers.CFcHk-z5.js +0 -1268
  97. package/dist/layers.CFmNZSAJ.js +0 -1
  98. package/dist/layers.CGajZ1Yz.js +0 -42
  99. package/dist/layers.CHZsXQcr.js +0 -1
  100. package/dist/layers.CHhFVTiW.js +0 -10
  101. package/dist/layers.CJ1YRhUh.js +0 -6
  102. package/dist/layers.CJtE2LxP.js +0 -2482
  103. package/dist/layers.CJyO2xrs.js +0 -5
  104. package/dist/layers.CMyb9_FE.js +0 -40
  105. package/dist/layers.COjckA33.js +0 -10
  106. package/dist/layers.CPJSmpbw.js +0 -1
  107. package/dist/layers.CQvaw3yb.js +0 -5
  108. package/dist/layers.CRht5Nqq.js +0 -907
  109. package/dist/layers.CSXAHvGG.js +0 -33
  110. package/dist/layers.CTaitOnb.js +0 -11
  111. package/dist/layers.CV8UgwCq.js +0 -198
  112. package/dist/layers.CVJOismf.js +0 -6
  113. package/dist/layers.CXWtqfTe.js +0 -794
  114. package/dist/layers.CYPfnKfS.js +0 -96
  115. package/dist/layers.CYdP1IhC.js +0 -38
  116. package/dist/layers.CYneLciB.js +0 -1286
  117. package/dist/layers.CZLVHOh5.js +0 -8
  118. package/dist/layers.C_IvrzZ3.js +0 -7
  119. package/dist/layers.CbBTbZIx.js +0 -5
  120. package/dist/layers.CcP6Z-gZ.js +0 -118
  121. package/dist/layers.CcTyCqqv.js +0 -3
  122. package/dist/layers.Cd3kGFCJ.js +0 -32
  123. package/dist/layers.Ce7-wBOK.js +0 -11
  124. package/dist/layers.Cf5sVqJX.js +0 -39
  125. package/dist/layers.Cg3Hqyp6.js +0 -35
  126. package/dist/layers.Cg60w1Fn.js +0 -806
  127. package/dist/layers.Chd1p2rt.js +0 -26645
  128. package/dist/layers.CiTNX3uh.js +0 -32
  129. package/dist/layers.CkwenT1M.js +0 -8
  130. package/dist/layers.CnN8JfiX.js +0 -805
  131. package/dist/layers.Coh6z7rV.js +0 -8
  132. package/dist/layers.CpJSdiMb.js +0 -1
  133. package/dist/layers.CqVTtuYm.js +0 -6
  134. package/dist/layers.Cryqj610.js +0 -2238
  135. package/dist/layers.Cs-83js7.js +0 -1089
  136. package/dist/layers.CsivQuv1.js +0 -9
  137. package/dist/layers.Cud-IArB.js +0 -8
  138. package/dist/layers.CwL02t3J.js +0 -41
  139. package/dist/layers.CwsNJfmi.js +0 -10
  140. package/dist/layers.CxIhyFb7.js +0 -2966
  141. package/dist/layers.Cxh-oez0.js +0 -437
  142. package/dist/layers.Cyzu9PKQ.js +0 -1
  143. package/dist/layers.D-uio-rN.js +0 -423
  144. package/dist/layers.D0RX234F.js +0 -84
  145. package/dist/layers.D0zn4_Mx.js +0 -1
  146. package/dist/layers.D176Ljko.js +0 -116
  147. package/dist/layers.D2cVaX5z.js +0 -205
  148. package/dist/layers.D4Bw_BrO.js +0 -1
  149. package/dist/layers.D4T8fTcj.js +0 -1223
  150. package/dist/layers.D7jGxypv.js +0 -8
  151. package/dist/layers.D8fFj0P_.js +0 -34
  152. package/dist/layers.D9N3lSue.js +0 -7
  153. package/dist/layers.DAmxkO9p.js +0 -41
  154. package/dist/layers.DBwG7x-W.js +0 -8
  155. package/dist/layers.DDFbkCJT.js +0 -39
  156. package/dist/layers.DDnI7-13.js +0 -41
  157. package/dist/layers.DE6w34F3.js +0 -1
  158. package/dist/layers.DEaAvR_W.js +0 -189
  159. package/dist/layers.DEtMl_i3.js +0 -1034
  160. package/dist/layers.DHNIckw6.js +0 -39
  161. package/dist/layers.DHVcgZzL.js +0 -257
  162. package/dist/layers.DHcbExrH.js +0 -35
  163. package/dist/layers.DIpDvY-A.js +0 -40
  164. package/dist/layers.DJM_OF_R.js +0 -32
  165. package/dist/layers.DLJtS0JJ.js +0 -7
  166. package/dist/layers.DLwuMfdd.js +0 -84
  167. package/dist/layers.DMkBISW1.js +0 -1
  168. package/dist/layers.DN9HoVxI.js +0 -18
  169. package/dist/layers.DNJtYtN1.js +0 -9
  170. package/dist/layers.DOrgOHBr.js +0 -1
  171. package/dist/layers.DUlTmlus.js +0 -213
  172. package/dist/layers.DUutOP8h.js +0 -37
  173. package/dist/layers.DVWaIKgr.js +0 -21941
  174. package/dist/layers.D_WwW4Fn.js +0 -1
  175. package/dist/layers.D_fPGQ6i.js +0 -139
  176. package/dist/layers.D_faABvp.js +0 -21620
  177. package/dist/layers.DaIprEGs.js +0 -39
  178. package/dist/layers.Db0NyGA-.js +0 -1619
  179. package/dist/layers.DbaKVP5e.js +0 -1
  180. package/dist/layers.DdMy9cRx.js +0 -1088
  181. package/dist/layers.De35CioU.js +0 -44
  182. package/dist/layers.DgO3Q5mW.js +0 -4
  183. package/dist/layers.Di-PcJK6.js +0 -6
  184. package/dist/layers.DjCXWv2m.js +0 -38
  185. package/dist/layers.DjUOC4st.js +0 -16
  186. package/dist/layers.Dk2S8boy.js +0 -33
  187. package/dist/layers.DkBjWcDH.js +0 -504
  188. package/dist/layers.DnRaD217.js +0 -8583
  189. package/dist/layers.DnvnGxUC.js +0 -10
  190. package/dist/layers.DrarpmaN.js +0 -323
  191. package/dist/layers.DukGouVT.js +0 -39
  192. package/dist/layers.DvYYNhUp.js +0 -1
  193. package/dist/layers.Dv_6xN7s.js +0 -2
  194. package/dist/layers.DwWUZK6s.js +0 -129
  195. package/dist/layers.DwzO2zcv.js +0 -40
  196. package/dist/layers.DxA6ocdw.js +0 -70
  197. package/dist/layers.Dy1naDTQ.js +0 -14
  198. package/dist/layers.DzD-lWXV.js +0 -934
  199. package/dist/layers.E0TLXdrR.js +0 -40
  200. package/dist/layers.EcqLW9Mh.js +0 -1
  201. package/dist/layers.F4d4ILBH.js +0 -796
  202. package/dist/layers.G3enfHRT.js +0 -13
  203. package/dist/layers.HFONz6O9.js +0 -61
  204. package/dist/layers.IUqwmZRd.js +0 -122
  205. package/dist/layers.IbJq0D6U.js +0 -10
  206. package/dist/layers.Ic3KgoPg.js +0 -9
  207. package/dist/layers.JNgL8WWu.js +0 -10
  208. package/dist/layers.JWCLFILJ.js +0 -1
  209. package/dist/layers.KT-QFgdb.js +0 -7
  210. package/dist/layers.LCfVvo3T.js +0 -7
  211. package/dist/layers.LR-nMBU_.js +0 -1583
  212. package/dist/layers.Qt2qr0-t.js +0 -76
  213. package/dist/layers.R8mPlCA0.js +0 -261
  214. package/dist/layers.SCsPWeXb.js +0 -7
  215. package/dist/layers.U4NCf2-l.js +0 -70
  216. package/dist/layers.UewvnK33.js +0 -6
  217. package/dist/layers.VfVZmEbK.js +0 -8
  218. package/dist/layers.Vh-KvhZg.js +0 -1
  219. package/dist/layers.Y3D9xjCC.js +0 -9
  220. package/dist/layers.YT6D6D2x.js +0 -36
  221. package/dist/layers._y8hExIw.js +0 -223
  222. package/dist/layers.a8-4vDzD.js +0 -22
  223. package/dist/layers.aGzHUJ1W.js +0 -7
  224. package/dist/layers.b0h5ZBmD.js +0 -61
  225. package/dist/layers.b9B2NY7n.js +0 -11690
  226. package/dist/layers.ck9pUJ0W.js +0 -51
  227. package/dist/layers.d3HoUueQ.js +0 -2
  228. package/dist/layers.dWB4bggP.js +0 -1
  229. package/dist/layers.dh8xLSwh.js +0 -40
  230. package/dist/layers.eT_ZPmHS.js +0 -1
  231. package/dist/layers.fumrrA0i.js +0 -295
  232. package/dist/layers.gVfRcFrJ.js +0 -5
  233. package/dist/layers.js7-Kn9p.js +0 -36
  234. package/dist/layers.kW7XFPN_.js +0 -5
  235. package/dist/layers.lCpg7dOn.js +0 -21
  236. package/dist/layers.mobYTQXI.js +0 -1
  237. package/dist/layers.mvotlTNZ.js +0 -40
  238. package/dist/layers.n1dibO8I.js +0 -8
  239. package/dist/layers.nRPZ1e3g.js +0 -1
  240. package/dist/layers.o2u1uDM3.js +0 -1
  241. package/dist/layers.oJ31-KOl.js +0 -6
  242. package/dist/layers.ojcNGNgi.js +0 -1
  243. package/dist/layers.otxU0wtq.js +0 -40
  244. package/dist/layers.rE9xnPLC.js +0 -1
  245. package/dist/layers.s0KLXd5N.js +0 -41
  246. package/dist/layers.sqH5TpK8.js +0 -1
  247. package/dist/layers.t_MFWlU6.js +0 -9
  248. package/dist/layers.xrt74v23.js +0 -38
  249. package/dist/layers.zNb0110W.js +0 -37
@@ -1,223 +0,0 @@
1
- import { s as A, d as S, p as G } from "./layers.Cs-83js7.js";
2
- import { g as v, l as y, d as B, e as W, r as $, u as M, X as I } from "./layers.DnRaD217.js";
3
- import "lodash-es";
4
- import { l as X } from "./layers.D4T8fTcj.js";
5
- import { G as O } from "./layers.BJDrjORS.js";
6
- import "./layers.D_faABvp.js";
7
- import "lodash-es/memoize.js";
8
- import "lodash-es/merge.js";
9
- import "lodash-es/isEmpty.js";
10
- import { l as P } from "./layers.Dk2S8boy.js";
11
- let H = 0;
12
- const Y = function(i, a, t, o, p) {
13
- const g = function(e) {
14
- switch (e) {
15
- case p.db.relationType.AGGREGATION:
16
- return "aggregation";
17
- case p.db.relationType.EXTENSION:
18
- return "extension";
19
- case p.db.relationType.COMPOSITION:
20
- return "composition";
21
- case p.db.relationType.DEPENDENCY:
22
- return "dependency";
23
- case p.db.relationType.LOLLIPOP:
24
- return "lollipop";
25
- }
26
- };
27
- a.points = a.points.filter((e) => !Number.isNaN(e.y));
28
- const s = a.points, c = P().x(function(e) {
29
- return e.x;
30
- }).y(function(e) {
31
- return e.y;
32
- }).curve($), n = i.append("path").attr("d", c(s)).attr("id", "edge" + H).attr("class", "relation");
33
- let r = "";
34
- o.arrowMarkerAbsolute && (r = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, r = r.replace(/\(/g, "\\("), r = r.replace(/\)/g, "\\)")), t.relation.lineType == 1 && n.attr("class", "relation dashed-line"), t.relation.lineType == 10 && n.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && n.attr(
35
- "marker-start",
36
- "url(" + r + "#" + g(t.relation.type1) + "Start)"
37
- ), t.relation.type2 !== "none" && n.attr(
38
- "marker-end",
39
- "url(" + r + "#" + g(t.relation.type2) + "End)"
40
- );
41
- let f, h;
42
- const x = a.points.length;
43
- let b = M.calcLabelPosition(a.points);
44
- f = b.x, h = b.y;
45
- let u, m, w, k;
46
- if (x % 2 !== 0 && x > 1) {
47
- let e = M.calcCardinalityPosition(
48
- t.relation.type1 !== "none",
49
- a.points,
50
- a.points[0]
51
- ), d = M.calcCardinalityPosition(
52
- t.relation.type2 !== "none",
53
- a.points,
54
- a.points[x - 1]
55
- );
56
- y.debug("cardinality_1_point " + JSON.stringify(e)), y.debug("cardinality_2_point " + JSON.stringify(d)), u = e.x, m = e.y, w = d.x, k = d.y;
57
- }
58
- if (t.title !== void 0) {
59
- const e = i.append("g").attr("class", "classLabel"), d = e.append("text").attr("class", "label").attr("x", f).attr("y", h).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
60
- window.label = d;
61
- const l = d.node().getBBox();
62
- e.insert("rect", ":first-child").attr("class", "box").attr("x", l.x - o.padding / 2).attr("y", l.y - o.padding / 2).attr("width", l.width + o.padding).attr("height", l.height + o.padding);
63
- }
64
- y.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", u).attr("y", m).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", w).attr("y", k).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), H++;
65
- }, J = function(i, a, t, o) {
66
- y.debug("Rendering class ", a, t);
67
- const p = a.id, g = {
68
- id: p,
69
- label: a.id,
70
- width: 0,
71
- height: 0
72
- }, s = i.append("g").attr("id", o.db.lookUpDomId(p)).attr("class", "classGroup");
73
- let c;
74
- a.link ? c = s.append("svg:a").attr("xlink:href", a.link).attr("target", a.linkTarget).append("text").attr("y", t.textHeight + t.padding).attr("x", 0) : c = s.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
75
- let n = !0;
76
- a.annotations.forEach(function(d) {
77
- const l = c.append("tspan").text("«" + d + "»");
78
- n || l.attr("dy", t.textHeight), n = !1;
79
- });
80
- let r = C(a);
81
- const f = c.append("tspan").text(r).attr("class", "title");
82
- n || f.attr("dy", t.textHeight);
83
- const h = c.node().getBBox().height;
84
- let x, b, u;
85
- if (a.members.length > 0) {
86
- x = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin / 2).attr("y2", t.padding + h + t.dividerMargin / 2);
87
- const d = s.append("text").attr("x", t.padding).attr("y", h + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
88
- n = !0, a.members.forEach(function(l) {
89
- _(d, l, n, t), n = !1;
90
- }), b = d.node().getBBox();
91
- }
92
- if (a.methods.length > 0) {
93
- u = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin + b.height).attr("y2", t.padding + h + t.dividerMargin + b.height);
94
- const d = s.append("text").attr("x", t.padding).attr("y", h + 2 * t.dividerMargin + b.height + t.textHeight).attr("fill", "white").attr("class", "classText");
95
- n = !0, a.methods.forEach(function(l) {
96
- _(d, l, n, t), n = !1;
97
- });
98
- }
99
- const m = s.node().getBBox();
100
- var w = " ";
101
- a.cssClasses.length > 0 && (w = w + a.cssClasses.join(" "));
102
- const e = s.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", m.width + 2 * t.padding).attr("height", m.height + t.padding + 0.5 * t.dividerMargin).attr("class", w).node().getBBox().width;
103
- return c.node().childNodes.forEach(function(d) {
104
- d.setAttribute("x", (e - d.getBBox().width) / 2);
105
- }), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", e), u && u.attr("x2", e), g.width = e, g.height = m.height + t.padding + 0.5 * t.dividerMargin, g;
106
- }, C = function(i) {
107
- let a = i.id;
108
- return i.type && (a += "<" + I(i.type) + ">"), a;
109
- }, Z = function(i, a, t, o) {
110
- y.debug("Rendering note ", a, t);
111
- const p = a.id, g = {
112
- id: p,
113
- text: a.text,
114
- width: 0,
115
- height: 0
116
- }, s = i.append("g").attr("id", p).attr("class", "classGroup");
117
- let c = s.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
118
- const n = JSON.parse(`"${a.text}"`).split(`
119
- `);
120
- n.forEach(function(x) {
121
- y.debug(`Adding line: ${x}`), c.append("tspan").text(x).attr("class", "title").attr("dy", t.textHeight);
122
- });
123
- const r = s.node().getBBox(), h = s.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", r.width + 2 * t.padding).attr(
124
- "height",
125
- r.height + n.length * t.textHeight + t.padding + 0.5 * t.dividerMargin
126
- ).node().getBBox().width;
127
- return c.node().childNodes.forEach(function(x) {
128
- x.setAttribute("x", (h - x.getBBox().width) / 2);
129
- }), g.width = h, g.height = r.height + n.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, g;
130
- }, _ = function(i, a, t, o) {
131
- const { displayText: p, cssStyle: g } = a.getDisplayDetails(), s = i.append("tspan").attr("x", o.padding).text(p);
132
- g !== "" && s.attr("style", a.cssStyle), t || s.attr("dy", o.textHeight);
133
- }, N = {
134
- getClassTitleString: C,
135
- drawClass: J,
136
- drawEdge: Y,
137
- drawNote: Z
138
- };
139
- let T = {};
140
- const E = 20, L = function(i) {
141
- const a = Object.entries(T).find((t) => t[1].label === i);
142
- if (a)
143
- return a[0];
144
- }, R = function(i) {
145
- i.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), i.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), i.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).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");
146
- }, F = function(i, a, t, o) {
147
- const p = v().class;
148
- T = {}, y.info("Rendering diagram " + i);
149
- const g = v().securityLevel;
150
- let s;
151
- g === "sandbox" && (s = B("#i" + a));
152
- const c = g === "sandbox" ? B(s.nodes()[0].contentDocument.body) : B("body"), n = c.select(`[id='${a}']`);
153
- R(n);
154
- const r = new O({
155
- multigraph: !0
156
- });
157
- r.setGraph({
158
- isMultiGraph: !0
159
- }), r.setDefaultEdgeLabel(function() {
160
- return {};
161
- });
162
- const f = o.db.getClasses(), h = Object.keys(f);
163
- for (const e of h) {
164
- const d = f[e], l = N.drawClass(n, d, p, o);
165
- T[l.id] = l, r.setNode(l.id, l), y.info("Org height: " + l.height);
166
- }
167
- o.db.getRelations().forEach(function(e) {
168
- y.info(
169
- // cspell:ignore tjoho
170
- "tjoho" + L(e.id1) + L(e.id2) + JSON.stringify(e)
171
- ), r.setEdge(
172
- L(e.id1),
173
- L(e.id2),
174
- {
175
- relation: e
176
- },
177
- e.title || "DEFAULT"
178
- );
179
- }), o.db.getNotes().forEach(function(e) {
180
- y.debug(`Adding note: ${JSON.stringify(e)}`);
181
- const d = N.drawNote(n, e, p, o);
182
- T[d.id] = d, r.setNode(d.id, d), e.class && e.class in f && r.setEdge(
183
- e.id,
184
- L(e.class),
185
- {
186
- relation: {
187
- id1: e.id,
188
- id2: e.class,
189
- relation: {
190
- type1: "none",
191
- type2: "none",
192
- lineType: 10
193
- }
194
- }
195
- },
196
- "DEFAULT"
197
- );
198
- }), X(r), r.nodes().forEach(function(e) {
199
- e !== void 0 && r.node(e) !== void 0 && (y.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (o.db.lookUpDomId(e) || e)).attr(
200
- "transform",
201
- "translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
202
- ));
203
- }), r.edges().forEach(function(e) {
204
- e !== void 0 && r.edge(e) !== void 0 && (y.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(r.edge(e))), N.drawEdge(n, r.edge(e), r.edge(e).relation, p, o));
205
- });
206
- const u = n.node().getBBox(), m = u.width + E * 2, w = u.height + E * 2;
207
- W(n, w, m, p.useMaxWidth);
208
- const k = `${u.x - E} ${u.y - E} ${m} ${w}`;
209
- y.debug(`viewBox ${k}`), n.attr("viewBox", k);
210
- }, U = {
211
- draw: F
212
- }, rt = {
213
- parser: G,
214
- db: S,
215
- renderer: U,
216
- styles: A,
217
- init: (i) => {
218
- i.class || (i.class = {}), i.class.arrowMarkerAbsolute = i.arrowMarkerAbsolute, S.clear();
219
- }
220
- };
221
- export {
222
- rt as diagram
223
- };
@@ -1,22 +0,0 @@
1
- import { f as o, p as e } from "./layers.Bk40urId.js";
2
- import { f as a, a as t } from "./layers.Cxh-oez0.js";
3
- import { x as s } from "./layers.DnRaD217.js";
4
- import "lodash-es";
5
- import "./layers.BJDrjORS.js";
6
- import "./layers.D4T8fTcj.js";
7
- import "./layers.D_faABvp.js";
8
- import "lodash-es/memoize.js";
9
- import "lodash-es/merge.js";
10
- import "lodash-es/isEmpty.js";
11
- const u = {
12
- parser: e,
13
- db: o,
14
- renderer: t,
15
- styles: a,
16
- init: (r) => {
17
- r.flowchart || (r.flowchart = {}), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, s({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } }), t.setConf(r.flowchart), o.clear(), o.setGen("gen-2");
18
- }
19
- };
20
- export {
21
- u as diagram
22
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./layers.CYPfnKfS.js");require("./layers.CV8UgwCq.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");var P=(function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,T="",b=0,L=0,R=2,j=1,q=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M(){var y;return y=s.pop()||o.lex()||j,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},v,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=M()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(v in d[g])this.terminals_[v]&&v>R&&S.push("'"+this.terminals_[v]+"'");o.showPosition?A="Parse error on line "+(b+1)+`:
2
- `+o.showPosition()+`
3
- Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(b+1)+": Unexpected "+(l==j?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,T=o.yytext,b=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[T,L,b,p.yy,h[1],r,i].concat(q)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=(function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
- `+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u})();m.lexer=k;function x(){this.yy={}}return x.prototype=m,m.Parser=x,new x})();P.parser=P;const U=P,N={info:!1};let $=N.info;const Y=a=>{$=a},D=()=>$,B=()=>{$=N.info},V={clear:B,setInfo:Y,getInfo:D},X=(a,f,m)=>{O.log$1.debug(`rendering info diagram
7
- `+a);const k=O.selectSvgElement(f);O.configureSvgSize(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},C={draw:X},G={parser:U,db:V,renderer:C};exports.diagram=G;
@@ -1,61 +0,0 @@
1
- import { i as a } from "./layers.DjUOC4st.js";
2
- class o extends Map {
3
- constructor(n, t = g) {
4
- if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null) for (const [r, s] of n) this.set(r, s);
5
- }
6
- get(n) {
7
- return super.get(c(this, n));
8
- }
9
- has(n) {
10
- return super.has(c(this, n));
11
- }
12
- set(n, t) {
13
- return super.set(l(this, n), t);
14
- }
15
- delete(n) {
16
- return super.delete(p(this, n));
17
- }
18
- }
19
- function c({ _intern: e, _key: n }, t) {
20
- const r = n(t);
21
- return e.has(r) ? e.get(r) : t;
22
- }
23
- function l({ _intern: e, _key: n }, t) {
24
- const r = n(t);
25
- return e.has(r) ? e.get(r) : (e.set(r, t), t);
26
- }
27
- function p({ _intern: e, _key: n }, t) {
28
- const r = n(t);
29
- return e.has(r) && (t = e.get(r), e.delete(r)), t;
30
- }
31
- function g(e) {
32
- return e !== null && typeof e == "object" ? e.valueOf() : e;
33
- }
34
- const f = Symbol("implicit");
35
- function h() {
36
- var e = new o(), n = [], t = [], r = f;
37
- function s(u) {
38
- let i = e.get(u);
39
- if (i === void 0) {
40
- if (r !== f) return r;
41
- e.set(u, i = n.push(u) - 1);
42
- }
43
- return t[i % t.length];
44
- }
45
- return s.domain = function(u) {
46
- if (!arguments.length) return n.slice();
47
- n = [], e = new o();
48
- for (const i of u)
49
- e.has(i) || e.set(i, n.push(i) - 1);
50
- return s;
51
- }, s.range = function(u) {
52
- return arguments.length ? (t = Array.from(u), s) : t.slice();
53
- }, s.unknown = function(u) {
54
- return arguments.length ? (r = u, s) : r;
55
- }, s.copy = function() {
56
- return h(n, t).unknown(r);
57
- }, a.apply(s, arguments), s;
58
- }
59
- export {
60
- h as o
61
- };