@layers-app/editor 0.5.3 → 0.5.5-optimization

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 (255) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +12 -10
  3. package/dist/layers.B10sB-Vy.js +1 -0
  4. package/dist/layers.BDsvvINb.js +6774 -0
  5. package/dist/layers.BFJ7oQiY.js +7723 -0
  6. package/dist/layers.BwyONivc.js +864 -0
  7. package/dist/layers.C2lacXcg.js +2511 -0
  8. package/dist/layers.C69TrYD7.js +7 -0
  9. package/dist/layers.CEMW9z_P.js +4 -0
  10. package/dist/layers.Cwao1pOZ.js +6 -0
  11. package/dist/layers.CzNz0Zya.js +1 -0
  12. package/dist/layers.D0Z-zLAV.js +530 -0
  13. package/dist/layers.DNCgFYS7.js +27 -0
  14. package/dist/layers.EKDSoJm1.js +2227 -0
  15. package/dist/layers.QjAkD17S.js +3677 -0
  16. package/dist/layers.ahDFHQXD.js +341 -0
  17. package/dist/layers.eLiGm-eZ.js +3 -0
  18. package/dist/layers.hgliNTDV.js +2 -0
  19. package/package.json +75 -17
  20. package/dist/layers.-R5PibOa.js +0 -10
  21. package/dist/layers.-mkaUFzn.js +0 -65
  22. package/dist/layers.1XpBjqYP.js +0 -1
  23. package/dist/layers.2Ibk-yAi.js +0 -10
  24. package/dist/layers.3DsBPqy5.js +0 -10
  25. package/dist/layers.4OVSS-76.js +0 -320
  26. package/dist/layers.52famHy6.js +0 -1
  27. package/dist/layers.7JqFgE4-.js +0 -15
  28. package/dist/layers.9Su9jHuK.js +0 -9
  29. package/dist/layers.9pNaFvaX.js +0 -1
  30. package/dist/layers.9rNftyw-.js +0 -40
  31. package/dist/layers.B-6jN1Zn.js +0 -41
  32. package/dist/layers.B0JnuQf0.js +0 -11
  33. package/dist/layers.B0dbAkLw.js +0 -11
  34. package/dist/layers.B19MhDZN.js +0 -1265
  35. package/dist/layers.B19hGmey.js +0 -1
  36. package/dist/layers.B1IDMpWZ.js +0 -32
  37. package/dist/layers.B1VK1Umd.js +0 -41
  38. package/dist/layers.B2IHCuq4.js +0 -202
  39. package/dist/layers.B2OBW6d_.js +0 -1
  40. package/dist/layers.B2RJoL8j.js +0 -8
  41. package/dist/layers.B3D4g2HH.js +0 -1
  42. package/dist/layers.B66ctuSP.js +0 -1
  43. package/dist/layers.B9uP5ibo.js +0 -1619
  44. package/dist/layers.BAtv1CM7.js +0 -1
  45. package/dist/layers.BDlQMLta.js +0 -1034
  46. package/dist/layers.BFlW1eUA.js +0 -1088
  47. package/dist/layers.BIRU7ZCl.js +0 -35
  48. package/dist/layers.BIeVwYKL.js +0 -1
  49. package/dist/layers.BJDrjORS.js +0 -244
  50. package/dist/layers.BJOHTiQN.js +0 -1
  51. package/dist/layers.BKLAyg9f.js +0 -34
  52. package/dist/layers.BKktUt3V.js +0 -425
  53. package/dist/layers.BLZg3-j8.js +0 -44
  54. package/dist/layers.BLd2spTm.js +0 -1
  55. package/dist/layers.BPHDdk7q.js +0 -6
  56. package/dist/layers.BQYTL9KT.js +0 -4
  57. package/dist/layers.BSTBZrFn.js +0 -1
  58. package/dist/layers.BUbQisBD.js +0 -40
  59. package/dist/layers.BY5MS01o.js +0 -304
  60. package/dist/layers.BY5x-OCj.js +0 -1359
  61. package/dist/layers.BZYqdVEt.js +0 -5
  62. package/dist/layers.B_blLMys.js +0 -7
  63. package/dist/layers.Bau1Nn-R.js +0 -1
  64. package/dist/layers.BbCfEXyj.js +0 -55
  65. package/dist/layers.BdC79PeD.js +0 -8
  66. package/dist/layers.BeQxuBmo.js +0 -373
  67. package/dist/layers.BgOa2ZQq.js +0 -7
  68. package/dist/layers.BhoEY-tV.js +0 -1
  69. package/dist/layers.BiJ8hfRt.js +0 -1510
  70. package/dist/layers.BipydXP9.js +0 -437
  71. package/dist/layers.BjNcxnlF.js +0 -40
  72. package/dist/layers.BjkZnui0.js +0 -6
  73. package/dist/layers.BjlXrUqq.js +0 -1
  74. package/dist/layers.BmEnHWGn.js +0 -1126
  75. package/dist/layers.Bm_lyqCL.js +0 -6
  76. package/dist/layers.Bo0o9BXc.js +0 -61
  77. package/dist/layers.Bowu41KP.js +0 -791
  78. package/dist/layers.BpVuHPkZ.js +0 -33
  79. package/dist/layers.BpilXLfW.js +0 -6
  80. package/dist/layers.BptubpVI.js +0 -37
  81. package/dist/layers.Bq8EFsFh.js +0 -3
  82. package/dist/layers.Brr7ESXx.js +0 -2
  83. package/dist/layers.BsTKIt_N.js +0 -19
  84. package/dist/layers.BshQq6Az.js +0 -189
  85. package/dist/layers.BsuVfEWr.js +0 -1
  86. package/dist/layers.Bwphu0_-.js +0 -41
  87. package/dist/layers.BxBoiyiz.js +0 -2
  88. package/dist/layers.BxqlTEGI.js +0 -39
  89. package/dist/layers.BznUuBVb.js +0 -1
  90. package/dist/layers.C0Lgw_Sx.js +0 -11688
  91. package/dist/layers.C24uY6Fe.js +0 -931
  92. package/dist/layers.C2fRZH80.js +0 -1
  93. package/dist/layers.C3KcBscd.js +0 -1
  94. package/dist/layers.C4CXznF_.js +0 -37
  95. package/dist/layers.C7M6CfP5.js +0 -42
  96. package/dist/layers.C7eXel2I.js +0 -7
  97. package/dist/layers.C8_lu5UH.js +0 -23
  98. package/dist/layers.CAm5BKM7.js +0 -1
  99. package/dist/layers.CBUXk-09.js +0 -11
  100. package/dist/layers.CDEWhNHi.js +0 -10
  101. package/dist/layers.CDL3opya.js +0 -8
  102. package/dist/layers.CE4FK9O5.js +0 -40
  103. package/dist/layers.CF-302Fh.js +0 -9
  104. package/dist/layers.CHZsXQcr.js +0 -1
  105. package/dist/layers.CHmvLyW1.js +0 -8
  106. package/dist/layers.CJUngdl8.js +0 -37
  107. package/dist/layers.CLAvgOJP.js +0 -4
  108. package/dist/layers.CLgsvcu7.js +0 -10
  109. package/dist/layers.CM9lYwoQ.js +0 -36
  110. package/dist/layers.CMMTUOh6.js +0 -39
  111. package/dist/layers.COYYECPe.js +0 -48146
  112. package/dist/layers.CQ6g1bgB.js +0 -11
  113. package/dist/layers.CR1i6QWh.js +0 -803
  114. package/dist/layers.CRKrzT-Y.js +0 -11
  115. package/dist/layers.CSNKiqFe.js +0 -8
  116. package/dist/layers.CSYpl3YM.js +0 -960
  117. package/dist/layers.CTK5IBtb.js +0 -793
  118. package/dist/layers.CVUgbWcY.js +0 -21763
  119. package/dist/layers.CXg7Sg55.js +0 -802
  120. package/dist/layers.C_RheIIS.js +0 -904
  121. package/dist/layers.C_eoPPmk.js +0 -13
  122. package/dist/layers.Ccvu-Dlo.js +0 -1
  123. package/dist/layers.CdGfvF7V.js +0 -1
  124. package/dist/layers.Cf9fVqKx.js +0 -21938
  125. package/dist/layers.Cisk2RXM.js +0 -1
  126. package/dist/layers.CkXqIRYC.js +0 -38
  127. package/dist/layers.ClJd7I1M.js +0 -9
  128. package/dist/layers.ClxhzI7j.js +0 -8
  129. package/dist/layers.CmqoZAnC.js +0 -2479
  130. package/dist/layers.CnrBP_N5.js +0 -769
  131. package/dist/layers.Cob5vYhh.js +0 -5
  132. package/dist/layers.Coygwekn.js +0 -9
  133. package/dist/layers.Cp5JhAmO.js +0 -7
  134. package/dist/layers.CqVTtuYm.js +0 -6
  135. package/dist/layers.CtHBfow6.js +0 -282
  136. package/dist/layers.CuoaVZrW.js +0 -41
  137. package/dist/layers.Cyzu9PKQ.js +0 -1
  138. package/dist/layers.D-7S1Qn6.js +0 -7
  139. package/dist/layers.D-cAGd4i.js +0 -41
  140. package/dist/layers.D-v-3mtK.js +0 -9
  141. package/dist/layers.D0MGpeyX.js +0 -39
  142. package/dist/layers.D0lTyC6R.js +0 -35
  143. package/dist/layers.D0zn4_Mx.js +0 -1
  144. package/dist/layers.D33cj9e8.js +0 -1
  145. package/dist/layers.D3A8IuMw.js +0 -42
  146. package/dist/layers.D40oNXih.js +0 -1580
  147. package/dist/layers.D4T8fTcj.js +0 -1223
  148. package/dist/layers.D4ydcUW5.js +0 -7
  149. package/dist/layers.D7jGxypv.js +0 -8
  150. package/dist/layers.DByfn15F.js +0 -7
  151. package/dist/layers.DCrkhQnl.js +0 -9
  152. package/dist/layers.DDVf9_XJ.js +0 -501
  153. package/dist/layers.DFF0tKf2.js +0 -9
  154. package/dist/layers.DGB6f2fp.js +0 -186
  155. package/dist/layers.DGF-imcj.js +0 -6
  156. package/dist/layers.DGlLGCMd.js +0 -41
  157. package/dist/layers.DH7bTclZ.js +0 -1
  158. package/dist/layers.DHrdv4EX.js +0 -32
  159. package/dist/layers.DIs-8Ynj.js +0 -35
  160. package/dist/layers.DIuulfCg.js +0 -32
  161. package/dist/layers.DJS98Zvr.js +0 -42
  162. package/dist/layers.DLwuMfdd.js +0 -84
  163. package/dist/layers.DMh-zb88.js +0 -10
  164. package/dist/layers.DMkBISW1.js +0 -1
  165. package/dist/layers.DN9HoVxI.js +0 -18
  166. package/dist/layers.DNray0Kg.js +0 -51
  167. package/dist/layers.DO8Lq71I.js +0 -4
  168. package/dist/layers.DOrgOHBr.js +0 -1
  169. package/dist/layers.DPg8YVWZ.js +0 -118
  170. package/dist/layers.DRRAWjJ-.js +0 -84
  171. package/dist/layers.DSnpK9v9.js +0 -40
  172. package/dist/layers.DT-qahkC.js +0 -41
  173. package/dist/layers.DT4gw4t8.js +0 -8
  174. package/dist/layers.DVjOEkHq.js +0 -295
  175. package/dist/layers.DW9Z4dLd.js +0 -37
  176. package/dist/layers.DWIf8ql6.js +0 -8
  177. package/dist/layers.DWynlv5x.js +0 -1
  178. package/dist/layers.DXKXZPx3.js +0 -10
  179. package/dist/layers.DXnKtB68.js +0 -2966
  180. package/dist/layers.DXr2kWj5.js +0 -36
  181. package/dist/layers.D_MRmmCY.js +0 -40
  182. package/dist/layers.D_Q80AXV.js +0 -7
  183. package/dist/layers.D_i2rLsg.js +0 -46859
  184. package/dist/layers.D_nCsZyv.js +0 -6
  185. package/dist/layers.Da1VjmYH.js +0 -122
  186. package/dist/layers.DaLcxrnP.js +0 -4
  187. package/dist/layers.DbaKVP5e.js +0 -1
  188. package/dist/layers.DeIaMdiM.js +0 -2
  189. package/dist/layers.Df5Qb1Ul.js +0 -220
  190. package/dist/layers.DfXjhAWm.js +0 -207
  191. package/dist/layers.Dfev0R1t.js +0 -36
  192. package/dist/layers.Dfw_b3vF.js +0 -2235
  193. package/dist/layers.Dh45zDPj.js +0 -7
  194. package/dist/layers.Di7HIxcn.js +0 -268
  195. package/dist/layers.DilKJOqa.js +0 -139
  196. package/dist/layers.DjUOC4st.js +0 -16
  197. package/dist/layers.DlWfA7qx.js +0 -423
  198. package/dist/layers.Dlp5s5ci.js +0 -41
  199. package/dist/layers.Dne14exG.js +0 -14
  200. package/dist/layers.DqpBjyTk.js +0 -10
  201. package/dist/layers.DrD0W7B3.js +0 -5
  202. package/dist/layers.DvdRZk6P.js +0 -39
  203. package/dist/layers.DxA6ocdw.js +0 -70
  204. package/dist/layers.DxIjFIXA.js +0 -39
  205. package/dist/layers.DxzveV49.js +0 -96
  206. package/dist/layers.Dy1naDTQ.js +0 -14
  207. package/dist/layers.ETa5WiKT.js +0 -160
  208. package/dist/layers.G9Ka5gtG.js +0 -39
  209. package/dist/layers.H0NAWny8.js +0 -33
  210. package/dist/layers.J8OYHqDO.js +0 -32
  211. package/dist/layers.JWCLFILJ.js +0 -1
  212. package/dist/layers.MNsWD8fy.js +0 -139
  213. package/dist/layers.MbNt5pO7.js +0 -39
  214. package/dist/layers.MsLi1AaR.js +0 -10
  215. package/dist/layers.NzblQjNP.js +0 -36
  216. package/dist/layers.PaRWxJTx.js +0 -1
  217. package/dist/layers.Pfqcm_x1.js +0 -40
  218. package/dist/layers.QUgQojU2.js +0 -39
  219. package/dist/layers.QeRtN6Gq.js +0 -1
  220. package/dist/layers.Rhe5fmYG.js +0 -38
  221. package/dist/layers.SuFOjX9h.js +0 -9
  222. package/dist/layers.UA4MYWds.js +0 -1089
  223. package/dist/layers.X8WQJwc7.js +0 -70
  224. package/dist/layers.XOnoorb1.js +0 -116
  225. package/dist/layers.YS67QCmr.js +0 -40
  226. package/dist/layers.YfvGPzEu.js +0 -1
  227. package/dist/layers.ZAlzzwQR.js +0 -59
  228. package/dist/layers.Zh3IN_BW.js +0 -1283
  229. package/dist/layers.akd0joBp.js +0 -84
  230. package/dist/layers.b0h5ZBmD.js +0 -61
  231. package/dist/layers.bfGibH2F.js +0 -38
  232. package/dist/layers.chFbbZh9.js +0 -9166
  233. package/dist/layers.e7K9sNTy.js +0 -32
  234. package/dist/layers.eOMmuyRq.js +0 -52
  235. package/dist/layers.f5SObLpT.js +0 -6
  236. package/dist/layers.ftDLkcXk.js +0 -32
  237. package/dist/layers.gdeLIrFt.js +0 -10
  238. package/dist/layers.hGSxVR0w.js +0 -8
  239. package/dist/layers.hMduvmS1.js +0 -42
  240. package/dist/layers.hYSHj9J1.js +0 -230
  241. package/dist/layers.hweLqW3I.js +0 -261
  242. package/dist/layers.i3cprua-.js +0 -1
  243. package/dist/layers.lCpg7dOn.js +0 -21
  244. package/dist/layers.pN-YTLfe.js +0 -1
  245. package/dist/layers.puGhbMne.js +0 -257
  246. package/dist/layers.rPpIRTrs.js +0 -39
  247. package/dist/layers.rfeShEsx.js +0 -40
  248. package/dist/layers.sf1uvSch.js +0 -1
  249. package/dist/layers.t3fpEPMO.js +0 -8
  250. package/dist/layers.v4_WldHC.js +0 -9
  251. package/dist/layers.vHrsDWns.js +0 -40
  252. package/dist/layers.yIm62nh0.js +0 -5
  253. package/dist/layers.z72AWJJl.js +0 -42
  254. package/dist/layers.zj3cbd1g.js +0 -5
  255. package/dist/layers.zysZLChz.js +0 -9
@@ -1,220 +0,0 @@
1
- import { s as A, d as S, p as G } from "./layers.UA4MYWds.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.chFbbZh9.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.CVUgbWcY.js";
7
- import { l as P } from "./layers.H0NAWny8.js";
8
- let H = 0;
9
- const Y = function(i, a, t, o, p) {
10
- const g = function(e) {
11
- switch (e) {
12
- case p.db.relationType.AGGREGATION:
13
- return "aggregation";
14
- case p.db.relationType.EXTENSION:
15
- return "extension";
16
- case p.db.relationType.COMPOSITION:
17
- return "composition";
18
- case p.db.relationType.DEPENDENCY:
19
- return "dependency";
20
- case p.db.relationType.LOLLIPOP:
21
- return "lollipop";
22
- }
23
- };
24
- a.points = a.points.filter((e) => !Number.isNaN(e.y));
25
- const s = a.points, c = P().x(function(e) {
26
- return e.x;
27
- }).y(function(e) {
28
- return e.y;
29
- }).curve($), n = i.append("path").attr("d", c(s)).attr("id", "edge" + H).attr("class", "relation");
30
- let r = "";
31
- 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(
32
- "marker-start",
33
- "url(" + r + "#" + g(t.relation.type1) + "Start)"
34
- ), t.relation.type2 !== "none" && n.attr(
35
- "marker-end",
36
- "url(" + r + "#" + g(t.relation.type2) + "End)"
37
- );
38
- let f, h;
39
- const x = a.points.length;
40
- let b = M.calcLabelPosition(a.points);
41
- f = b.x, h = b.y;
42
- let u, m, w, k;
43
- if (x % 2 !== 0 && x > 1) {
44
- let e = M.calcCardinalityPosition(
45
- t.relation.type1 !== "none",
46
- a.points,
47
- a.points[0]
48
- ), d = M.calcCardinalityPosition(
49
- t.relation.type2 !== "none",
50
- a.points,
51
- a.points[x - 1]
52
- );
53
- 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;
54
- }
55
- if (t.title !== void 0) {
56
- 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);
57
- window.label = d;
58
- const l = d.node().getBBox();
59
- 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);
60
- }
61
- 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++;
62
- }, J = function(i, a, t, o) {
63
- y.debug("Rendering class ", a, t);
64
- const p = a.id, g = {
65
- id: p,
66
- label: a.id,
67
- width: 0,
68
- height: 0
69
- }, s = i.append("g").attr("id", o.db.lookUpDomId(p)).attr("class", "classGroup");
70
- let c;
71
- 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);
72
- let n = !0;
73
- a.annotations.forEach(function(d) {
74
- const l = c.append("tspan").text("«" + d + "»");
75
- n || l.attr("dy", t.textHeight), n = !1;
76
- });
77
- let r = C(a);
78
- const f = c.append("tspan").text(r).attr("class", "title");
79
- n || f.attr("dy", t.textHeight);
80
- const h = c.node().getBBox().height;
81
- let x, b, u;
82
- if (a.members.length > 0) {
83
- x = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin / 2).attr("y2", t.padding + h + t.dividerMargin / 2);
84
- const d = s.append("text").attr("x", t.padding).attr("y", h + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
85
- n = !0, a.members.forEach(function(l) {
86
- _(d, l, n, t), n = !1;
87
- }), b = d.node().getBBox();
88
- }
89
- if (a.methods.length > 0) {
90
- 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);
91
- 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");
92
- n = !0, a.methods.forEach(function(l) {
93
- _(d, l, n, t), n = !1;
94
- });
95
- }
96
- const m = s.node().getBBox();
97
- var w = " ";
98
- a.cssClasses.length > 0 && (w = w + a.cssClasses.join(" "));
99
- 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;
100
- return c.node().childNodes.forEach(function(d) {
101
- d.setAttribute("x", (e - d.getBBox().width) / 2);
102
- }), 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;
103
- }, C = function(i) {
104
- let a = i.id;
105
- return i.type && (a += "<" + I(i.type) + ">"), a;
106
- }, Z = function(i, a, t, o) {
107
- y.debug("Rendering note ", a, t);
108
- const p = a.id, g = {
109
- id: p,
110
- text: a.text,
111
- width: 0,
112
- height: 0
113
- }, s = i.append("g").attr("id", p).attr("class", "classGroup");
114
- let c = s.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
115
- const n = JSON.parse(`"${a.text}"`).split(`
116
- `);
117
- n.forEach(function(x) {
118
- y.debug(`Adding line: ${x}`), c.append("tspan").text(x).attr("class", "title").attr("dy", t.textHeight);
119
- });
120
- 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(
121
- "height",
122
- r.height + n.length * t.textHeight + t.padding + 0.5 * t.dividerMargin
123
- ).node().getBBox().width;
124
- return c.node().childNodes.forEach(function(x) {
125
- x.setAttribute("x", (h - x.getBBox().width) / 2);
126
- }), g.width = h, g.height = r.height + n.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, g;
127
- }, _ = function(i, a, t, o) {
128
- const { displayText: p, cssStyle: g } = a.getDisplayDetails(), s = i.append("tspan").attr("x", o.padding).text(p);
129
- g !== "" && s.attr("style", a.cssStyle), t || s.attr("dy", o.textHeight);
130
- }, N = {
131
- getClassTitleString: C,
132
- drawClass: J,
133
- drawEdge: Y,
134
- drawNote: Z
135
- };
136
- let T = {};
137
- const E = 20, L = function(i) {
138
- const a = Object.entries(T).find((t) => t[1].label === i);
139
- if (a)
140
- return a[0];
141
- }, R = function(i) {
142
- 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");
143
- }, F = function(i, a, t, o) {
144
- const p = v().class;
145
- T = {}, y.info("Rendering diagram " + i);
146
- const g = v().securityLevel;
147
- let s;
148
- g === "sandbox" && (s = B("#i" + a));
149
- const c = g === "sandbox" ? B(s.nodes()[0].contentDocument.body) : B("body"), n = c.select(`[id='${a}']`);
150
- R(n);
151
- const r = new O({
152
- multigraph: !0
153
- });
154
- r.setGraph({
155
- isMultiGraph: !0
156
- }), r.setDefaultEdgeLabel(function() {
157
- return {};
158
- });
159
- const f = o.db.getClasses(), h = Object.keys(f);
160
- for (const e of h) {
161
- const d = f[e], l = N.drawClass(n, d, p, o);
162
- T[l.id] = l, r.setNode(l.id, l), y.info("Org height: " + l.height);
163
- }
164
- o.db.getRelations().forEach(function(e) {
165
- y.info(
166
- // cspell:ignore tjoho
167
- "tjoho" + L(e.id1) + L(e.id2) + JSON.stringify(e)
168
- ), r.setEdge(
169
- L(e.id1),
170
- L(e.id2),
171
- {
172
- relation: e
173
- },
174
- e.title || "DEFAULT"
175
- );
176
- }), o.db.getNotes().forEach(function(e) {
177
- y.debug(`Adding note: ${JSON.stringify(e)}`);
178
- const d = N.drawNote(n, e, p, o);
179
- T[d.id] = d, r.setNode(d.id, d), e.class && e.class in f && r.setEdge(
180
- e.id,
181
- L(e.class),
182
- {
183
- relation: {
184
- id1: e.id,
185
- id2: e.class,
186
- relation: {
187
- type1: "none",
188
- type2: "none",
189
- lineType: 10
190
- }
191
- }
192
- },
193
- "DEFAULT"
194
- );
195
- }), X(r), r.nodes().forEach(function(e) {
196
- 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(
197
- "transform",
198
- "translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
199
- ));
200
- }), r.edges().forEach(function(e) {
201
- 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));
202
- });
203
- const u = n.node().getBBox(), m = u.width + E * 2, w = u.height + E * 2;
204
- W(n, w, m, p.useMaxWidth);
205
- const k = `${u.x - E} ${u.y - E} ${m} ${w}`;
206
- y.debug(`viewBox ${k}`), n.attr("viewBox", k);
207
- }, U = {
208
- draw: F
209
- }, tt = {
210
- parser: G,
211
- db: S,
212
- renderer: U,
213
- styles: A,
214
- init: (i) => {
215
- i.class || (i.class = {}), i.class.arrowMarkerAbsolute = i.arrowMarkerAbsolute, S.clear();
216
- }
217
- };
218
- export {
219
- tt as diagram
220
- };
@@ -1,207 +0,0 @@
1
- "use strict";const u=require("./layers.DxzveV49.js");var gt=(function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,v,m,pt,N={},st,x,Dt,it;;){if(v=i[i.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Gt()),m=w[v]&&w[v][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[v])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
2
- `+g.showPosition()+`
3
- Expecting `+it.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(C+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:yt,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+_);switch(m[0]){case 1:i.push(_),S.push(g.yytext),e.push(g.yylloc),i.push(m[1]),_=null,O=g.yyleng,l=g.yytext,C=g.yylineno,yt=g.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=S[S.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,C,L.yy,m[1],S,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),S.push(N.$),e.push(N._$),Dt=w[i[i.length-2]][i[i.length-1]],i.push(Dt);break;case 3:return!0}}return!0}},Vt=(function(){var A={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.length-1);var S=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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),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(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
- `+n+"^"},test_match:function(r,n){var i,o,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(i=this._input.match(this.rules[S[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,S[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,S[o]),r!==!1?r:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return A})();ht.lexer=Vt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut})();gt.parser=gt;const Ut=gt,jt="LR",Mt="TB",at="state",Et="relation",zt="classDef",Ht="applyClass",ot="default",vt="divider",kt="[*]",It="start",Ot=kt,Nt="end",At="color",Ct="fill",Xt="bgFill",Kt=",";function Rt(){return{}}let $t=jt,lt=[],P=Rt();const wt=()=>({relations:[],states:{},documents:{}});let ct={root:wt()},T=ct.root,F=0,Lt=0;const Wt={LINE:0,DOTTED_LINE:1},Jt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),qt=t=>{u.log$1.info("Setting root doc",t),lt=t},Qt=()=>lt,nt=(t,s,a)=>{if(s.stmt===Et)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===at&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let d=[],y;for(y=0;y<s.doc.length;y++)if(s.doc[y].type===vt){const p=rt(s.doc[y]);p.doc=rt(d),h.push(p),d=[]}else d.push(s.doc[y]);if(h.length>0&&d.length>0){const p={stmt:at,id:u.generateId(),type:"divider",doc:rt(d)};h.push(rt(p)),s.doc=h}s.doc.forEach(p=>nt(s,p,!0))}},Zt=()=>(nt({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),te=t=>{let s;t.doc?s=t.doc:s=t,u.log$1.info(s),Bt(!0),u.log$1.info("Extract",s),s.forEach(a=>{switch(a.stmt){case at:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Et:Pt(a.state1,a.state2,a.description);break;case zt:Ft(a.id.trim(),a.classes);break;case Ht:bt(a.id.trim(),a.styleClass);break}})},I=function(t,s=ot,a=null,h=null,d=null,y=null,p=null,k=null){const f=t==null?void 0:t.trim();T.states[f]===void 0?(u.log$1.info("Adding state ",f,h),T.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(T.states[f].doc||(T.states[f].doc=a),T.states[f].type||(T.states[f].type=s)),h&&(u.log$1.info("Setting state description",f,h),typeof h=="string"&&mt(f,h.trim()),typeof h=="object"&&h.forEach(b=>mt(f,b.trim()))),d&&(T.states[f].note=d,T.states[f].note.text=u.common$1.sanitizeText(T.states[f].note.text,u.getConfig())),y&&(u.log$1.info("Setting state classes",f,y),(typeof y=="string"?[y]:y).forEach(E=>bt(f,E.trim()))),p&&(u.log$1.info("Setting state styles",f,p),(typeof p=="string"?[p]:p).forEach(E=>he(f,E.trim()))),k&&(u.log$1.info("Setting state styles",f,p),(typeof k=="string"?[k]:k).forEach(E=>ue(f,E.trim())))},Bt=function(t){ct={root:wt()},T=ct.root,F=0,P=Rt(),t||u.clear()},V=function(t){return T.states[t]},ee=function(){return T.states},se=function(){u.log$1.info("Documents = ",ct)},ie=function(){return T.relations};function Tt(t=""){let s=t;return t===kt&&(F++,s=`${It}${F}`),s}function _t(t="",s=ot){return t===kt?It:s}function re(t=""){let s=t;return t===Ot&&(F++,s=`${Nt}${F}`),s}function ne(t="",s=ot){return t===Ot?Nt:s}function ae(t,s,a){let h=Tt(t.id.trim()),d=_t(t.id.trim(),t.type),y=Tt(s.id.trim()),p=_t(s.id.trim(),s.type);I(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),T.relations.push({id1:h,id2:y,relationTitle:u.common$1.sanitizeText(a,u.getConfig())})}const Pt=function(t,s,a){if(typeof t=="object")ae(t,s,a);else{const h=Tt(t.trim()),d=_t(t),y=re(s.trim()),p=ne(s);I(h,d),I(y,p),T.relations.push({id1:h,id2:y,title:u.common$1.sanitizeText(a,u.getConfig())})}},mt=function(t,s){const a=T.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.common$1.sanitizeText(h,u.getConfig()))},le=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},ce=()=>(Lt++,"divider-id-"+Lt),Ft=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(Kt).forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match(At)){const p=d.replace(Ct,Xt).replace(At,Ct);a.textStyles.push(p)}a.styles.push(d)})},oe=function(){return P},bt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const d=a.trim();I(d),h=V(d)}h.classes.push(s)})},he=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},ue=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},fe=()=>$t,de=t=>{$t=t},ye=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),pe={getConfig:()=>u.getConfig().state,addState:I,clear:Bt,getState:V,getStates:ee,getRelations:ie,getClasses:oe,getDirection:fe,addRelation:Pt,getDividerId:ce,setDirection:de,cleanupLabel:le,lineType:Wt,relationType:Jt,logDocuments:se,getRootDoc:Qt,setRootDoc:qt,getRootDocV2:Zt,extract:te,trimColon:ye,getAccTitle:u.getAccTitle,setAccTitle:u.setAccTitle,getAccDescription:u.getAccDescription,setAccDescription:u.setAccDescription,addStyleClass:Ft,setCssClass:bt,addDescription:mt,setDiagramTitle:u.setDiagramTitle,getDiagramTitle:u.getDiagramTitle},Se=t=>`
7
- defs #statediagram-barbEnd {
8
- fill: ${t.transitionColor};
9
- stroke: ${t.transitionColor};
10
- }
11
- g.stateGroup text {
12
- fill: ${t.nodeBorder};
13
- stroke: none;
14
- font-size: 10px;
15
- }
16
- g.stateGroup text {
17
- fill: ${t.textColor};
18
- stroke: none;
19
- font-size: 10px;
20
-
21
- }
22
- g.stateGroup .state-title {
23
- font-weight: bolder;
24
- fill: ${t.stateLabelColor};
25
- }
26
-
27
- g.stateGroup rect {
28
- fill: ${t.mainBkg};
29
- stroke: ${t.nodeBorder};
30
- }
31
-
32
- g.stateGroup line {
33
- stroke: ${t.lineColor};
34
- stroke-width: 1;
35
- }
36
-
37
- .transition {
38
- stroke: ${t.transitionColor};
39
- stroke-width: 1;
40
- fill: none;
41
- }
42
-
43
- .stateGroup .composit {
44
- fill: ${t.background};
45
- border-bottom: 1px
46
- }
47
-
48
- .stateGroup .alt-composit {
49
- fill: #e0e0e0;
50
- border-bottom: 1px
51
- }
52
-
53
- .state-note {
54
- stroke: ${t.noteBorderColor};
55
- fill: ${t.noteBkgColor};
56
-
57
- text {
58
- fill: ${t.noteTextColor};
59
- stroke: none;
60
- font-size: 10px;
61
- }
62
- }
63
-
64
- .stateLabel .box {
65
- stroke: none;
66
- stroke-width: 0;
67
- fill: ${t.mainBkg};
68
- opacity: 0.5;
69
- }
70
-
71
- .edgeLabel .label rect {
72
- fill: ${t.labelBackgroundColor};
73
- opacity: 0.5;
74
- }
75
- .edgeLabel .label text {
76
- fill: ${t.transitionLabelColor||t.tertiaryTextColor};
77
- }
78
- .label div .edgeLabel {
79
- color: ${t.transitionLabelColor||t.tertiaryTextColor};
80
- }
81
-
82
- .stateLabel text {
83
- fill: ${t.stateLabelColor};
84
- font-size: 10px;
85
- font-weight: bold;
86
- }
87
-
88
- .node circle.state-start {
89
- fill: ${t.specialStateColor};
90
- stroke: ${t.specialStateColor};
91
- }
92
-
93
- .node .fork-join {
94
- fill: ${t.specialStateColor};
95
- stroke: ${t.specialStateColor};
96
- }
97
-
98
- .node circle.state-end {
99
- fill: ${t.innerEndBackground};
100
- stroke: ${t.background};
101
- stroke-width: 1.5
102
- }
103
- .end-state-inner {
104
- fill: ${t.compositeBackground||t.background};
105
- // stroke: ${t.background};
106
- stroke-width: 1.5
107
- }
108
-
109
- .node rect {
110
- fill: ${t.stateBkg||t.mainBkg};
111
- stroke: ${t.stateBorder||t.nodeBorder};
112
- stroke-width: 1px;
113
- }
114
- .node polygon {
115
- fill: ${t.mainBkg};
116
- stroke: ${t.stateBorder||t.nodeBorder};;
117
- stroke-width: 1px;
118
- }
119
- #statediagram-barbEnd {
120
- fill: ${t.lineColor};
121
- }
122
-
123
- .statediagram-cluster rect {
124
- fill: ${t.compositeTitleBackground};
125
- stroke: ${t.stateBorder||t.nodeBorder};
126
- stroke-width: 1px;
127
- }
128
-
129
- .cluster-label, .nodeLabel {
130
- color: ${t.stateLabelColor};
131
- }
132
-
133
- .statediagram-cluster rect.outer {
134
- rx: 5px;
135
- ry: 5px;
136
- }
137
- .statediagram-state .divider {
138
- stroke: ${t.stateBorder||t.nodeBorder};
139
- }
140
-
141
- .statediagram-state .title-state {
142
- rx: 5px;
143
- ry: 5px;
144
- }
145
- .statediagram-cluster.statediagram-cluster .inner {
146
- fill: ${t.compositeBackground||t.background};
147
- }
148
- .statediagram-cluster.statediagram-cluster-alt .inner {
149
- fill: ${t.altBackground?t.altBackground:"#efefef"};
150
- }
151
-
152
- .statediagram-cluster .inner {
153
- rx:0;
154
- ry:0;
155
- }
156
-
157
- .statediagram-state rect.basic {
158
- rx: 5px;
159
- ry: 5px;
160
- }
161
- .statediagram-state rect.divider {
162
- stroke-dasharray: 10,10;
163
- fill: ${t.altBackground?t.altBackground:"#efefef"};
164
- }
165
-
166
- .note-edge {
167
- stroke-dasharray: 5;
168
- }
169
-
170
- .statediagram-note rect {
171
- fill: ${t.noteBkgColor};
172
- stroke: ${t.noteBorderColor};
173
- stroke-width: 1px;
174
- rx: 0;
175
- ry: 0;
176
- }
177
- .statediagram-note rect {
178
- fill: ${t.noteBkgColor};
179
- stroke: ${t.noteBorderColor};
180
- stroke-width: 1px;
181
- rx: 0;
182
- ry: 0;
183
- }
184
-
185
- .statediagram-note text {
186
- fill: ${t.noteTextColor};
187
- }
188
-
189
- .statediagram-note .nodeLabel {
190
- color: ${t.noteTextColor};
191
- }
192
- .statediagram .edgeLabel {
193
- color: red; // ${t.noteTextColor};
194
- }
195
-
196
- #dependencyStart, #dependencyEnd {
197
- fill: ${t.lineColor};
198
- stroke: ${t.lineColor};
199
- stroke-width: 1;
200
- }
201
-
202
- .statediagramTitleText {
203
- text-anchor: middle;
204
- font-size: 18px;
205
- fill: ${t.textColor};
206
- }
207
- `,ge=Se;exports.DEFAULT_NESTED_DOC_DIR=Mt;exports.DEFAULT_STATE_TYPE=ot;exports.DIVIDER_TYPE=vt;exports.STMT_RELATION=Et;exports.STMT_STATE=at;exports.db=pe;exports.parser$1=Ut;exports.styles=ge;
@@ -1,36 +0,0 @@
1
- import "./layers.CVUgbWcY.js";
2
- var e = { paste: "Indsæt", pasteAsPlaintext: "Indsæt som klartekst", pasteCharts: "Indsæt diagrammer", selectAll: "Marker alle", multiSelect: "Tilføj element til markering", moveCanvas: "Flyt lærred", cut: "Klip", copy: "Kopier", copyAsPng: "Kopier til klippebord som PNG", copyAsSvg: "Kopier til klippebord som SVG", copyText: "Kopiér til udklipsholder som tekst", copySource: "Kopiér kilde til udklipsholder", convertToCode: "Konvertér til kode", bringForward: "Flyt fremad", sendToBack: "Placer bagest", bringToFront: "Placer forrest", sendBackward: "Send bagud", delete: "Fjern", copyStyles: "Kopier stil", pasteStyles: "Indsæt stil", stroke: "Linje", background: "Baggrund", fill: "Udfyld", strokeWidth: "Linjebredde", strokeStyle: "Linjeform", strokeStyle_solid: "Solid", strokeStyle_dashed: "Stiplet", strokeStyle_dotted: "Prikket", sloppiness: "Sjuskethed", opacity: "Gennemsigtighed", textAlign: "Tekstjustering", edges: "Kanter", sharp: "Skarp", round: "Rund", arrowheads: "Pilehoveder", arrowhead_none: "Ingen", arrowhead_arrow: "Pil", arrowhead_bar: "Bjælke", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Trekant", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Skriftstørrelse", fontFamily: "Skrifttypefamilie", addWatermark: 'Tilføj "Lavet med Excalidraw"', handDrawn: "Hånd-tegnet", normal: "Normal", code: "Kode", small: "Lille", medium: "Mellem", large: "Stor", veryLarge: "Meget stor", solid: "Solid", hachure: "Skravering", zigzag: "Zigzag", crossHatch: "Krydsskravering", thin: "Tynd", bold: "Fed", left: "Venstre", center: "Centrere", right: "Højre", extraBold: "Extra fed", architect: "Arkitekt", artist: "Kunstner", cartoonist: "Tegneserietegner", fileTitle: "Filnavn", colorPicker: "Farvevælger", canvasColors: "Brugt på lærred", canvasBackground: "Lærredsbaggrund", drawingCanvas: "Tegnelærred", layers: "Lag", actions: "Handlinger", language: "Sprog", liveCollaboration: "Live samarbejde...", duplicateSelection: "Duplikér", untitled: "Unavngivet", name: "Navn", yourName: "Dit navn", madeWithExcalidraw: "Fremstillet med Excalidraw", group: "Grupper valgte", ungroup: "Opløs gruppe", collaborators: "Deltagere", showGrid: "Vis gitter", addToLibrary: "Føj til Bibliotek", removeFromLibrary: "Fjern fra biblioteket", libraryLoadingMessage: "Indlæser bibliotek…", libraries: "Gennemse biblioteker", loadingScene: "Indlæser scene…", align: "Justér", alignTop: "Juster til top", alignBottom: "Juster til bund", alignLeft: "Venstrejusteret", alignRight: "Juster højre", centerVertically: "Center vertikalt", centerHorizontally: "Vandret centreret", distributeHorizontally: "Distribuer vandret", distributeVertically: "Distribuer lodret", flipHorizontal: "Spejlvend horisontalt", flipVertical: "Vend lodret", viewMode: "Visningstilstand", share: "Del", showStroke: "Vis stregfarve-vælger", showBackground: "Vis baggrundsfarve-vælger", toggleTheme: "Skift tema", personalLib: "Personligt bibliotek", excalidrawLib: "Excalidraw Bibliotek", decreaseFontSize: "Gør skriften mindre", increaseFontSize: "Gør skriften større", unbindText: "Frigør tekst", bindText: "Bind tekst til beholderen", createContainerFromText: "Ombryd tekst i en beholder", link: { edit: "Redigér link", editEmbed: "Redigér link & indlejret", create: "Link oprettet", createEmbed: "Opret link & indlejret", label: "Links", labelEmbed: "Link & indlejret", empty: "Intet link angivet" }, lineEditor: { edit: "Rediger Linje", exit: "Afslut linjeeditor" }, elementLock: { lock: "Lås", unlock: "Lås op", lockAll: "Lås alle", unlockAll: "Lås alle op" }, statusPublished: "Udgiver", sidebarLock: "Hold sidepanel åben", selectAllElementsInFrame: "Vælg alle elementer i rammen", removeAllElementsFromFrame: "Fjern alle elementer fra ramme", eyeDropper: "Vælg farve fra lærred", textToDiagram: "Tekst til diagram", prompt: "Prompt" }, r = { noItems: "Ingen varer tilføjet endnu...", hint_emptyLibrary: "Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.", hint_emptyPrivateLibrary: "Vælg et element på lærred for at tilføje det her." }, t = { clearReset: "Nulstil lærredet", exportJSON: "Eksportér til fil", exportImage: "Eksporter billede...", export: "Gem til...", copyToClipboard: "Kopier til klippebord", save: "Gem til nuværende fil", saveAs: "Gem som", load: "Åbn", getShareableLink: "Lav et delbart link", close: "Luk", selectLanguage: "Vælg sprog", scrollBackToContent: "Scroll tilbage til indhold", zoomIn: "Zoom ind", zoomOut: "Zoom ud", resetZoom: "Nulstil zoom", menu: "Menu", done: "Færdig", edit: "Rediger", undo: "Fortryd", redo: "Gendan", resetLibrary: "Nulstil bibliotek", createNewRoom: "Opret nyt rum", fullScreen: "Fuld skærm", darkMode: "Mørk tilstand", lightMode: "Lys baggrund", zenMode: "Zentilstand", objectsSnapMode: "Fastgør til objekter", exitZenMode: "Stop zentilstand", cancel: "Annuller", clear: "Ryd", remove: "Fjern", embed: "Slå indlejring til/fra", publishLibrary: "Publicér", submit: "Gem", confirm: "Bekræft", embeddableInteractionButton: "Klik for at interagere" }, i = { clearReset: "Dette vil rydde hele lærredet. Er du sikker?", couldNotCreateShareableLink: "Kunne ikke oprette delbart link.", couldNotCreateShareableLinkTooBig: "Kunne ikke oprette delbart link: scenen er for stor", couldNotLoadInvalidFile: "Kunne ikke indlæse ugyldig fil", importBackendFailed: "Import fra backend mislykkedes.", cannotExportEmptyCanvas: "Kan ikke eksportere tomt lærred.", couldNotCopyToClipboard: "Kunne ikke kopiere til udklipsholderen.", decryptFailed: "Kunne ikke dekryptere data.", uploadedSecurly: "Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.", loadSceneOverridePrompt: "Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?", collabStopOverridePrompt: `Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
3
-
4
- (Hvis du ønsker at beholde din lokale tegning, skal du blot lukke browserfanen i stedet.)`, errorAddingToLibrary: "Kunne ikke tilføje element til biblioteket", errorRemovingFromLibrary: "Kunne ikke fjerne element fra biblioteket", confirmAddLibrary: "Dette vil tilføje {{numShapes}} form(er) til dit bibliotek. Er du sikker?", imageDoesNotContainScene: "Dette billede synes ikke at indeholde scene data. Har du aktiveret scene indlejring under eksport?", cannotRestoreFromImage: "Scene kunne ikke gendannes fra denne billedfil", invalidSceneUrl: "Kunne ikke importere scene fra den angivne URL. Det er enten misdannet eller indeholder ikke gyldige Excalidraw JSON data.", resetLibrary: "Dette vil rydde hele lærredet. Er du sikker?", removeItemsFromsLibrary: "Slet {{count}} vare(r) fra biblioteket?", invalidEncryptionKey: "Krypteringsnøglen skal være på 22 tegn. Live-samarbejde er deaktiveret.", collabOfflineWarning: `Ingen internetforbindelse tilgængelig.
5
- Dine ændringer vil ikke blive gemt!` }, l = { unsupportedFileType: "Filtypen er ikke understøttet.", imageInsertError: "Billedet kunne ikke indsættes. Prøv igen senere...", fileTooBig: "Filen er for stor. Maksimal tilladt størrelse er {{maxSize}}.", svgImageInsertError: "Kunne ikke indsætte SVG-billede. SVG-markup'en ser ugyldig ud.", failedToFetchImage: "Dataene blev ikke hentet.", invalidSVGString: "Ugyldig SVG.", cannotResolveCollabServer: "Kunne ikke oprette forbindelse til samarbejdsserveren. Genindlæs siden og prøv igen.", importLibraryError: "Biblioteket kunne ikke indlæses", collabSaveFailed: "Kunne ikke gemme i databasen. Hvis problemerne fortsætter, bør du gemme din fil lokalt for at sikre, at du ikke mister dit arbejde.", collabSaveFailed_sizeExceeded: "Kunne ikke gemme i databasen, lærredet lader til at være for stort. Du bør gemme filen lokalt for at sikre, at du ikke mister dit arbejde.", imageToolNotSupported: "Billeder er deaktiveret.", brave_measure_text_error: { line1: "Det ser ud til, at du bruger Brave browser med indstillingen <bold>Aggressively Block Fingerprinting</bold> aktiveret.", line2: "Dette kan resultere i brud på <bold>tekstelementerne</bold> i dine tegninger.", line3: "Vi anbefaler kraftigt at deaktivere denne indstilling. Du kan følge <link>disse trin</link> om, hvordan du gør det.", line4: "Hvis deaktivering af denne indstilling ikke løser visning af tekstelementer, åbn venligst et <issueLink>issue</issueLink> på vores GitHub, eller skriv os på <discordLink>Discord</discordLink>" }, libraryElementTypeError: { embeddable: "Indlejringselementer kan ikke tilføjes til biblioteket.", iframe: "IFrame elementer kan ikke tilføjes til biblioteket.", image: "Understøttelse af at tilføje billeder til biblioteket kommer snart!" }, asyncPasteFailedOnRead: "Kunne ikke indsætte (kan ikke læse fra systemets udklipsholder).", asyncPasteFailedOnParse: "Kunne ikke indsætte.", copyToSystemClipboardFailed: "Kunne ikke kopiere til udklipsholderen." }, n = { selection: "&Udvalg", image: "Indsæt billeder", rectangle: "Rektangler", diamond: "Diamanter", ellipse: "Ellipser", arrow: "Pile", line: "Linje", freedraw: "Tegn", text: "Tekster", library: "~Bibliotek", lock: "Behold valgte værktøj aktiv efter tegning", penMode: "Pen-tilstand - forhindrer berøring", link: "Tilføj/ Opdater link for en valgt form", eraser: "Slet", frame: "Rammeværktøj", magicframe: "Wireframe til kode", embeddable: "Web-indlejring", laser: "Lasermarkør", hand: "Hånd (panorering værktøj)", extraTools: "Flere værktøjer", mermaidToExcalidraw: "Mermaid til Excalidraw", magicSettings: "AI indstillinger" }, a = { canvasActions: "Lærred handlinger", selectedShapeActions: "Valgte figurhandlinger", shapes: "Former" }, o = { canvasPanning: "For at flytte lærred, hold musehjulet eller mellemrumstasten mens du trækker, eller brug håndværktøjet", linearElement: "Klik for at starte flere punkter, træk for enkelt linje", freeDraw: "Klik og træk, slip når du er færdig", text: "Tip: du kan også tilføje tekst ved at dobbeltklikke hvor som helst med det valgte værktøj", embeddable: "Klik på træk for at oprette en hjemmeside indlejret", text_selected: "", text_editing: "", linearElementMulti: "", lockAngle: "", resize: "", resizeImage: "", rotate: "", lineEditor_info: "", lineEditor_pointSelected: "", lineEditor_nothingSelected: "", placeImage: "", publishLibrary: "", bindTextToElement: "", deepBoxSelect: "", eraserRevert: "", firefox_clipboard_write: "", disableSnapping: "" }, s = { cannotShowPreview: "Kan ikke vise forhåndsvisning", canvasTooBig: "Lærredet kan være for stort.", canvasTooBigTip: "Tip: Prøv at flytte de fjerneste elementer lidt tættere sammen." }, d = { headingMain: "Der opstod en fejl. Prøv <button>at genindlæse siden</button>.", clearCanvasMessage: "", clearCanvasCaveat: "", trackedToSentry: "", openIssueMessage: "<button></button> Kopiere og indsæt venligst oplysningerne nedenfor i et GitHub problem.", sceneContent: "Scene indhold:" }, k = { desc_intro: "Du kan invitere folk til din nuværende scene, så de kan samarbejde med dig.", desc_privacy: "Bare rolig, sessionen bruger end-to-end kryptering, så uanset hvad du tegner vil det forblive privat. Ikke engang vores server vil kunne se, hvad du kommer op med.", button_startSession: "Start session", button_stopSession: "Stop session", desc_inProgressIntro: "Live-samarbejde session er nu begyndt.", desc_shareLink: "Del dette link med enhver, du ønsker at samarbejde med:", desc_exitSession: "", shareTitle: "" }, g = { title: "Fejl" }, m = { disk_title: "Gem til disk", disk_details: "", disk_button: "", link_title: "", link_details: "", link_button: "", excalidrawplus_description: "", excalidrawplus_button: "", excalidrawplus_exportError: "" }, p = { blog: "Læs vores blog", click: "", deepSelect: "", deepBoxSelect: "", curvedArrow: "", curvedLine: "", documentation: "", doubleClick: "", drag: "", editor: "", editLineArrowPoints: "", editText: "", github: "", howto: "", or: "", preventBinding: "", tools: "", shortcuts: "", textFinish: "", textNewLine: "", title: "", view: "", zoomToFit: "", zoomToSelection: "", toggleElementLock: "", movePageUpDown: "", movePageLeftRight: "" }, b = { title: "" }, c = { title: "", itemName: "", authorName: "", githubUsername: "", twitterUsername: "", libraryName: "", libraryDesc: "", website: "", placeholder: { authorName: "", libraryName: "", libraryDesc: "", githubHandle: "", twitterHandle: "", website: "" }, errors: { required: "", website: "" }, noteDescription: "", noteGuidelines: "", noteLicense: "", noteItems: "", atleastOneLibItem: "", republishWarning: "" }, u = { title: "", content: "" }, x = { resetLibrary: "", removeItemsFromLib: "" }, v = { header: "", label: { withBackground: "", onlySelected: "", darkMode: "", embedScene: "", scale: "", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" } }, E = { tooltip: "", link: "" }, f = { angle: "", element: "", elements: "", height: "", scene: "", selected: "", storage: "", title: "Statistik for nørder", total: "", version: "", versionCopy: "Klik for at kopiere", versionNotAvailable: "", width: "Bredde" }, h = { addedToLibrary: "", copyStyles: "Kopieret stilarter.", copyToClipboard: "Kopieret til klippebord.", copyToClipboardAsPng: `Kopieret {{exportSelection}} til klippebord som PNG
6
- ({{exportColorScheme}})`, fileSaved: "Fil gemt.", fileSavedToFilename: "Gemt som {filename}", canvas: "canvas", selection: "markering", pasteAsSingleElement: "", unableToEmbed: "", unrecognizedLinkFormat: "" }, y = { transparent: "", black: "", white: "", red: "", pink: "", grape: "", violet: "", gray: "", blue: "", cyan: "", teal: "", green: "", yellow: "", orange: "", bronze: "" }, F = { app: { center_heading: "", center_heading_plus: "", menuHint: "" }, defaults: { menuHint: "", center_heading: "", toolbarHint: "", helpHint: "" } }, S = { mostUsedCustomColors: "", colors: "", shades: "", hexCode: "", noShades: "" }, L = { action: { exportToImage: { title: "", button: "", description: "" }, saveToDisk: { title: "", button: "", description: "" }, excalidrawPlus: { title: "", button: "", description: "" } }, modal: { loadFromFile: { title: "", button: "", description: "" }, shareableLink: { title: "", button: "", description: "" } } }, j = { title: "", button: "", description: "", syntax: "", preview: "" }, T = { labels: e, library: r, buttons: t, alerts: i, errors: l, toolBar: n, headings: a, hints: o, canvasError: s, errorSplash: d, roomDialog: k, errorDialog: g, exportDialog: m, helpDialog: p, clearCanvasDialog: b, publishDialog: c, publishSuccessDialog: u, confirmDialog: x, imageExportDialog: v, encrypted: E, stats: f, toast: h, colors: y, welcomeScreen: F, colorPicker: S, overwriteConfirm: L, mermaid: j };
7
- export {
8
- i as alerts,
9
- t as buttons,
10
- s as canvasError,
11
- b as clearCanvasDialog,
12
- S as colorPicker,
13
- y as colors,
14
- x as confirmDialog,
15
- T as default,
16
- E as encrypted,
17
- g as errorDialog,
18
- d as errorSplash,
19
- l as errors,
20
- m as exportDialog,
21
- a as headings,
22
- p as helpDialog,
23
- o as hints,
24
- v as imageExportDialog,
25
- e as labels,
26
- r as library,
27
- j as mermaid,
28
- L as overwriteConfirm,
29
- c as publishDialog,
30
- u as publishSuccessDialog,
31
- k as roomDialog,
32
- f as stats,
33
- h as toast,
34
- n as toolBar,
35
- F as welcomeScreen
36
- };