@layers-app/editor 0.7.51 → 0.7.52

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 (213) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{layers.CS2O4AH3.js → layers.-9P_7F0j.js} +3 -3
  4. package/dist/{layers.GiXIAclg.js → layers.4LeIkhk0.js} +8 -8
  5. package/dist/{layers.BEBX-ae2.js → layers.54nDz3_5.js} +3 -3
  6. package/dist/{layers.BTkv_g9p.js → layers.5bCC0sJ5.js} +1 -1
  7. package/dist/{layers.CpX3Ij_c.js → layers.5dy8KlD5.js} +1 -1
  8. package/dist/{layers.C4eRzMId.js → layers.5nvOikpH.js} +1 -1
  9. package/dist/{layers.BI2Zo7Wm.js → layers.5rKHJ1G5.js} +1 -1
  10. package/dist/{layers.BRXDmf4d.js → layers.66AH3t0u.js} +4 -4
  11. package/dist/{layers.BPznYB1Y.js → layers.6jrCeFUn.js} +1 -1
  12. package/dist/{layers.Doie2RkV.js → layers.7YyBgpse.js} +1 -1
  13. package/dist/{layers.BmSJZEk8.js → layers.8jeOSkOU.js} +1 -1
  14. package/dist/{layers.CcGVIw1j.js → layers.95Ghq2w-.js} +3 -3
  15. package/dist/{layers.TDk_Bqjw.js → layers.9kUD-W2G.js} +1 -1
  16. package/dist/{layers.Bqx5zJ4-.js → layers.B-36ujwP.js} +1 -1
  17. package/dist/{layers.CU2Xuwwl.js → layers.B-3keV44.js} +1 -1
  18. package/dist/{layers.BZBDOlHG.js → layers.B1Dg3J-4.js} +1 -1
  19. package/dist/{layers.BSNaTVFI.js → layers.B3cZ0pEN.js} +2 -2
  20. package/dist/{layers.BhHydzph.js → layers.B4SsYmRI.js} +1 -1
  21. package/dist/{layers.IJjSBz2t.js → layers.B51YqK2y.js} +1 -1
  22. package/dist/{layers.D6niyCD7.js → layers.B5ByQylA.js} +1 -1
  23. package/dist/{layers.BKrQPNFd.js → layers.B5i8aHSF.js} +4 -4
  24. package/dist/{layers.6G0UV902.js → layers.B6NnnkO7.js} +1 -1
  25. package/dist/{layers.DG4T1Jav.js → layers.B77WPwn-.js} +1 -1
  26. package/dist/{layers.DMRHi8e3.js → layers.B7LWcorD.js} +4 -4
  27. package/dist/{layers.D6A8-LhT.js → layers.B7NNgOLt.js} +1 -1
  28. package/dist/{layers.DYr_E1W4.js → layers.B8QjuVWk.js} +1 -1
  29. package/dist/{layers.BPGBMw3I.js → layers.B8oLbOBb.js} +1 -1
  30. package/dist/{layers.DsbLewS3.js → layers.BCQeEgwX.js} +1 -1
  31. package/dist/{layers.DZy3gGhN.js → layers.BDNPVBm8.js} +1 -1
  32. package/dist/{layers.DnV4hHEo.js → layers.BDUKb5Zb.js} +1 -1
  33. package/dist/{layers.RjGbOi67.js → layers.BEUq53GQ.js} +1 -1
  34. package/dist/{layers.Bsu4KU17.js → layers.BFtRwzgH.js} +1 -1
  35. package/dist/{layers.BIpBJT6C.js → layers.BHgvEAdn.js} +1 -1
  36. package/dist/layers.BHiwXeyY.js +1 -0
  37. package/dist/{layers.D9PlOBVG.js → layers.BIBn9QOS.js} +1598 -1595
  38. package/dist/{layers.UJAyomld.js → layers.BJFJnCeS.js} +1 -1
  39. package/dist/{layers.CjiwmQuP.js → layers.BLUNEOml.js} +1 -1
  40. package/dist/{layers.BbwRmvfU.js → layers.BMEI8vV1.js} +1 -1
  41. package/dist/{layers.CLB26nL2.js → layers.BNdiyUot.js} +1 -1
  42. package/dist/{layers.jJHRaniN.js → layers.BPRDrhk5.js} +1 -1
  43. package/dist/{layers.C00zHL4k.js → layers.BQJVQTCy.js} +1 -1
  44. package/dist/{layers.Dkw5mnGc.js → layers.BULw5rnW.js} +1 -1
  45. package/dist/{layers.CSydI2WI.js → layers.BUrlXYaH.js} +3 -3
  46. package/dist/{layers.BoDKMwyD.js → layers.BXVw6b2c.js} +1 -1
  47. package/dist/{layers.BHGFyRSD.js → layers.BXY2MqE7.js} +1 -1
  48. package/dist/{layers.C87eMHsy.js → layers.BYoN-RPN.js} +1 -1
  49. package/dist/{layers.B0hjpxl0.js → layers.BZb0JzDS.js} +1 -1
  50. package/dist/{layers.XVg6tbXV.js → layers.BZvYFFa7.js} +3 -3
  51. package/dist/{layers.9ZYp4GzJ.js → layers.B_y3TjJQ.js} +1 -1
  52. package/dist/{layers.Bx0Yxfrx.js → layers.BaLFR9YF.js} +1 -1
  53. package/dist/layers.BahdtMqg.js +8 -0
  54. package/dist/{layers.9v4xAtk_.js → layers.BbbvJp9V.js} +1 -1
  55. package/dist/{layers.BVvekhLI.js → layers.Bcx7sluO.js} +1 -1
  56. package/dist/{layers.BZW9UjGO.js → layers.BdHX324d.js} +1 -1
  57. package/dist/{layers.DQdX_Zv2.js → layers.BdOSGHMx.js} +1 -1
  58. package/dist/{layers.CdbhiG5U.js → layers.Bf6fERim.js} +1 -1
  59. package/dist/{layers._9zx3xYo.js → layers.BgFZSQIa.js} +1 -1
  60. package/dist/{layers.D6s4k0Ie.js → layers.BgZ0AzIV.js} +1 -1
  61. package/dist/{layers.CZen_IA0.js → layers.BhGIYr_O.js} +4 -4
  62. package/dist/{layers.DZxiGC6v.js → layers.BkHnu2-6.js} +1 -1
  63. package/dist/{layers.DcDGh2j-.js → layers.BmS2mlIL.js} +1 -1
  64. package/dist/{layers.esLeNsW9.js → layers.BnGtld37.js} +1 -1
  65. package/dist/{layers.Cul1IJNM.js → layers.BqEOxdS-.js} +1 -1
  66. package/dist/layers.BqZLNBWs.js +6 -0
  67. package/dist/{layers.Br3HmYVi.js → layers.BqlJT2F9.js} +1 -1
  68. package/dist/{layers.CtdaORkh.js → layers.BqvsFDQO.js} +1 -1
  69. package/dist/{layers.DCqGQvy0.js → layers.BrfROY1C.js} +1 -1
  70. package/dist/{layers.DwVJ5uKG.js → layers.BrjzI46T.js} +1 -1
  71. package/dist/{layers.CBujEVgH.js → layers.BsGKqdRZ.js} +1 -1
  72. package/dist/{layers.CGHR3Drm.js → layers.Bx5mpSyZ.js} +1 -1
  73. package/dist/{layers.a3cK8fiA.js → layers.ByeAuHdc.js} +1 -1
  74. package/dist/{layers._oRtY_6o.js → layers.C17cgrNp.js} +7 -7
  75. package/dist/{layers.DTMNLlzB.js → layers.C47eEtp2.js} +1 -1
  76. package/dist/{layers.DiuK9kyy.js → layers.C67sARcl.js} +1 -1
  77. package/dist/{layers.DwFZ2Siz.js → layers.C80oQ1LW.js} +1 -1
  78. package/dist/{layers.DYu-a1t6.js → layers.C8TNjLsZ.js} +1 -1
  79. package/dist/{layers.BBRXG6V2.js → layers.C9Av0QUW.js} +1 -1
  80. package/dist/{layers.BNm2y0oG.js → layers.C9EY_elr.js} +1 -1
  81. package/dist/{layers.CC0mrSk2.js → layers.CAPpcxRj.js} +1 -1
  82. package/dist/{layers.CYAwwzHi.js → layers.CCzjNTSR.js} +1 -1
  83. package/dist/{layers.BUP52jCo.js → layers.CGFrVtTs.js} +1 -1
  84. package/dist/{layers.D7ufm_Hh.js → layers.CIdE3H2O.js} +1 -1
  85. package/dist/{layers.BwWmI2Mt.js → layers.CJCjyrUD.js} +1 -1
  86. package/dist/{layers.BybF35QC.js → layers.CK6CGBSH.js} +1 -1
  87. package/dist/{layers.DR7P02bg.js → layers.COEAHSZK.js} +1 -1
  88. package/dist/{layers.BG6LOj2y.js → layers.COJRqaIS.js} +1 -1
  89. package/dist/{layers.luzG06ke.js → layers.COVX2ock.js} +1 -1
  90. package/dist/{layers.BpCWayXE.js → layers.COpqPJVC.js} +1 -1
  91. package/dist/{layers.x2khfcMi.js → layers.CRH_oByb.js} +1 -1
  92. package/dist/{layers.DRSrXX6q.js → layers.CRdRxxKD.js} +2 -2
  93. package/dist/{layers.Boam9eMz.js → layers.CVhcrgGA.js} +3 -3
  94. package/dist/{layers.BkuijRQg.js → layers.CVzeMqfn.js} +1 -1
  95. package/dist/{layers.DG9SqpP0.js → layers.CYU4OqTw.js} +1 -1
  96. package/dist/{layers.CQXyaD7G.js → layers.CZ-ElJru.js} +1 -1
  97. package/dist/{layers.Di5Z-lLB.js → layers.CZ4oad3X.js} +1 -1
  98. package/dist/{layers.B-ETW4mS.js → layers.CaH7fwFn.js} +1 -1
  99. package/dist/{layers.DrvLsdyO.js → layers.CaMBhjtb.js} +1 -1
  100. package/dist/{layers.DDPDYBZJ.js → layers.CagHoya3.js} +4 -4
  101. package/dist/{layers._J5zNl8-.js → layers.CdXuJSzH.js} +1 -1
  102. package/dist/{layers.CAKFm60z.js → layers.Ce7127uK.js} +1 -1
  103. package/dist/{layers.BO2IVEkS.js → layers.CgZM8Pbo.js} +1 -1
  104. package/dist/{layers.CMJ7Hp6Q.js → layers.Ci_A28_S.js} +1 -1
  105. package/dist/{layers.BLZTiPN1.js → layers.CjB8ujkH.js} +1 -1
  106. package/dist/{layers.DL44Lpba.js → layers.CkHA9L_L.js} +1 -1
  107. package/dist/{layers.mdcINxeJ.js → layers.CkNPPGso.js} +1 -1
  108. package/dist/{layers.D0a78iEx.js → layers.CmK8hJF-.js} +1 -1
  109. package/dist/{layers.BJkyXsLU.js → layers.Cp7hxoW1.js} +1 -1
  110. package/dist/{layers.CSwoqAt9.js → layers.CpZ2UHD5.js} +1 -1
  111. package/dist/{layers.CSIj5guj.js → layers.CptGSUzH.js} +1 -1
  112. package/dist/{layers.DR7Cdo_a.js → layers.Cqi1sTWj.js} +1 -1
  113. package/dist/{layers.OuskwSfc.js → layers.Cqv3cwMy.js} +1 -1
  114. package/dist/{layers.C6jSpnIv.js → layers.CsJ9XJiE.js} +6 -6
  115. package/dist/{layers.DKHUBgX9.js → layers.CsPESZm3.js} +1 -1
  116. package/dist/{layers.C4FUOCb-.js → layers.CuwO_zMp.js} +4 -4
  117. package/dist/{layers.CCEF4mnb.js → layers.CxQ_TuAw.js} +1 -1
  118. package/dist/{layers.BmlLEb0j.js → layers.CxSSF0L8.js} +1 -1
  119. package/dist/{layers.-bIAZO8X.js → layers.CxpQDvtX.js} +1 -1
  120. package/dist/{layers.C-FWAsXU.js → layers.CyL9tUoY.js} +1 -1
  121. package/dist/{layers.BPwzJvHF.js → layers.D-SybF7t.js} +1 -1
  122. package/dist/{layers.hA9QVMnE.js → layers.D0U91QZE.js} +1 -1
  123. package/dist/{layers.RNm8NZlZ.js → layers.D15HU_pQ.js} +1 -1
  124. package/dist/{layers.EZ5drvEI.js → layers.D5M5ymCS.js} +1 -1
  125. package/dist/{layers.y8ga51a4.js → layers.D5t3tbN0.js} +1 -1
  126. package/dist/{layers.BP5l4293.js → layers.D61UJ61C.js} +1 -1
  127. package/dist/{layers.D3af6E4n.js → layers.D7Za4Ohl.js} +1 -1
  128. package/dist/{layers.7IZHK7Tv.js → layers.D873z-nA.js} +1 -1
  129. package/dist/{layers.Dib3S4BE.js → layers.D99mvxr5.js} +3 -3
  130. package/dist/{layers.ztU_R7LS.js → layers.DA3XDo6q.js} +1 -1
  131. package/dist/{layers.DXHyHu-b.js → layers.DAxHHsah.js} +1 -1
  132. package/dist/{layers.DN9Hzulf.js → layers.DB03XF-z.js} +2 -2
  133. package/dist/{layers.DlP98mnK.js → layers.DBEBgPid.js} +3 -3
  134. package/dist/{layers.Cy6Wwp0B.js → layers.DC8kFxAv.js} +1 -1
  135. package/dist/{layers.nSoXOZde.js → layers.DCkSRvY9.js} +1 -1
  136. package/dist/{layers.DON-BxXP.js → layers.DE9yTyPH.js} +1 -1
  137. package/dist/{layers.DQ2n2GlH.js → layers.DEAS4NBi.js} +1 -1
  138. package/dist/{layers.B-0S61CP.js → layers.DEoOke4m.js} +1 -1
  139. package/dist/{layers.DBdkKrbg.js → layers.DFz0ZEd4.js} +1 -1
  140. package/dist/{layers.D4mY1Bns.js → layers.DHkkJHuz.js} +1 -1
  141. package/dist/{layers.CbflIVsG.js → layers.DJC4klu0.js} +1 -1
  142. package/dist/{layers.BPpuDweo.js → layers.DKz9zjLe.js} +1 -1
  143. package/dist/{layers.DVhv-hr4.js → layers.DL01M1aI.js} +1 -1
  144. package/dist/{layers.C3FHbaDM.js → layers.DL7Occ8_.js} +4 -4
  145. package/dist/{layers.0V2_Egi2.js → layers.DMUeVzt3.js} +1 -1
  146. package/dist/{layers.DwQ4_M0U.js → layers.DN9ZX1Kj.js} +1 -1
  147. package/dist/{layers.DIhCYKkU.js → layers.DPRm6dr7.js} +1 -1
  148. package/dist/{layers.lc0UiWHk.js → layers.DQO0tMFK.js} +1 -1
  149. package/dist/{layers.CSiuR7kB.js → layers.DWfnR6zh.js} +1 -1
  150. package/dist/{layers.CYLGH0gY.js → layers.DWugizcK.js} +1 -1
  151. package/dist/{layers.D8pXWL-E.js → layers.DX5bveet.js} +2 -2
  152. package/dist/{layers.D27wJW6b.js → layers.D_Y4miLH.js} +1 -1
  153. package/dist/{layers.Ce1MGMBV.js → layers.Dc1Y_oQF.js} +1 -1
  154. package/dist/{layers.Cdl1eUPe.js → layers.DcuGOK_9.js} +1 -1
  155. package/dist/{layers.CCfSzSZV.js → layers.DdnIDra4.js} +1 -1
  156. package/dist/{layers.Crg2FbtB.js → layers.Ddto66kl.js} +3 -3
  157. package/dist/{layers.DGFN-w77.js → layers.Dey6i2dY.js} +5 -5
  158. package/dist/{layers.CBvf-IJn.js → layers.Dg6zda-a.js} +1 -1
  159. package/dist/{layers.CdcC9q3P.js → layers.DgOfgaXW.js} +1 -1
  160. package/dist/{layers.df3BTmfR.js → layers.Dh3IepYs.js} +1 -1
  161. package/dist/{layers.CfsySopk.js → layers.Di-6IWA0.js} +1 -1
  162. package/dist/{layers.DzfadXo-.js → layers.Dj4fcM2j.js} +1 -1
  163. package/dist/{layers.BEY2VGDy.js → layers.Djdk0Z91.js} +3 -3
  164. package/dist/{layers.BLcmLKBJ.js → layers.Dk2P825c.js} +1 -1
  165. package/dist/{layers.B69GQnne.js → layers.Dnwec7YR.js} +1 -1
  166. package/dist/{layers.CprqbTOj.js → layers.DoCHuu9t.js} +1 -1
  167. package/dist/{layers.33JruMb6.js → layers.DpNmIzL1.js} +1 -1
  168. package/dist/{layers.VspcqTVQ.js → layers.DqLnUx0P.js} +2 -2
  169. package/dist/{layers.B4BaeuYN.js → layers.DqqoNc2P.js} +1 -1
  170. package/dist/{layers.uQeIpCwH.js → layers.DrBksqvQ.js} +1 -1
  171. package/dist/{layers.CCi4l-Wq.js → layers.DrpA-XKx.js} +4 -4
  172. package/dist/{layers.Dhje6bds.js → layers.Dx1Ls6x-.js} +1 -1
  173. package/dist/{layers.BHUpdITA.js → layers.DxBMK5zD.js} +1 -1
  174. package/dist/{layers.DzLdUfDr.js → layers.Dxi3L2Y7.js} +1 -1
  175. package/dist/{layers.edkx7Vvi.js → layers.DyHM472p.js} +4 -4
  176. package/dist/{layers.rhkfyIZH.js → layers.DzBbmrgG.js} +1 -1
  177. package/dist/{layers.awyi1EPB.js → layers.DzRsuxoZ.js} +1 -1
  178. package/dist/{layers.CWhs7Uxe.js → layers.Fpt5oaT3.js} +1 -1
  179. package/dist/{layers.bgieHmEx.js → layers.GhcyNAqR.js} +1 -1
  180. package/dist/{layers.B1hsQka7.js → layers.IE7VfbWN.js} +1 -1
  181. package/dist/{layers.Dv5C7WNu.js → layers.IeoiyeMs.js} +1 -1
  182. package/dist/{layers.BJGlitDj.js → layers.JJaX5Mch.js} +1 -1
  183. package/dist/{layers.X89qTbkA.js → layers.Jw4yM4kB.js} +1 -1
  184. package/dist/{layers.BsL2jZ--.js → layers.KsUNE6RQ.js} +1 -1
  185. package/dist/{layers.eic6_EdL.js → layers.MxkbA4Y5.js} +1 -1
  186. package/dist/{layers.CQfVznmy.js → layers.NA5dRfYd.js} +5 -5
  187. package/dist/{layers.DgoWSdZ6.js → layers.Rqb094no.js} +1 -1
  188. package/dist/{layers.BG4jyqyu.js → layers.Ssepkja7.js} +2 -2
  189. package/dist/{layers.DJ5R5z0_.js → layers.VTu4UiNd.js} +1 -1
  190. package/dist/{layers.C4eaTZaS.js → layers.W6vZpM9H.js} +1 -1
  191. package/dist/{layers.DvGD0Hp6.js → layers.WHbxhMyP.js} +1 -1
  192. package/dist/{layers.djwwOKZL.js → layers.XyrKV8wO.js} +26 -26
  193. package/dist/{layers.DyLSB_8Q.js → layers.Z04gD5tj.js} +1 -1
  194. package/dist/{layers.B3E655QR.js → layers.bNjKvDmU.js} +1 -1
  195. package/dist/{layers.qb0cLya_.js → layers.cGQhhJ3P.js} +1 -1
  196. package/dist/{layers.1zR-SkLn.js → layers.cUqgKQVA.js} +1 -1
  197. package/dist/layers.dwwjuX02.js +1 -0
  198. package/dist/{layers.w-3WEq7J.js → layers.e3mgXIwM.js} +1 -1
  199. package/dist/{layers.BbIRtF65.js → layers.er_SHa6l.js} +1 -1
  200. package/dist/{layers.D-5VGMe5.js → layers.fsNUMdkQ.js} +1 -1
  201. package/dist/{layers.Dr2uW6P7.js → layers.j0HvHCaZ.js} +1 -1
  202. package/dist/{layers.Cc9Yhppy.js → layers.kmJbA_l9.js} +1 -1
  203. package/dist/{layers.CGfXV-3z.js → layers.mE80M07H.js} +1 -1
  204. package/dist/{layers.YyS-HdiR.js → layers.nAuUtz6r.js} +3 -3
  205. package/dist/{layers.jnJUVTSY.js → layers.xjJJm3Qv.js} +3 -3
  206. package/dist/{layers.CsDg-JiP.js → layers.yTtiqcpH.js} +2 -2
  207. package/dist/{layers.pyvai9GS.js → layers.zQ93LL_v.js} +1 -1
  208. package/dist/{layers.uNhb3K7N.js → layers.zj_4iuZi.js} +24 -24
  209. package/package.json +2 -2
  210. package/dist/layers.CMRcQgEB.js +0 -1
  211. package/dist/layers.CSxjyXtJ.js +0 -1
  212. package/dist/layers.CrKIUrKa.js +0 -8
  213. package/dist/layers.y_PhQ9i6.js +0 -6
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.DTMNLlzB.js"),d=require("./layers.jnJUVTSY.js");require("lodash-es");const $=require("./layers.Cyzu9PKQ.js"),H=require("./layers.BLd2spTm.js");require("./layers._oRtY_6o.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const _=require("./layers.CWhs7Uxe.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.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("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.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",y).attr("y",b).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",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.C47eEtp2.js"),d=require("./layers.xjJJm3Qv.js");require("lodash-es");const $=require("./layers.Cyzu9PKQ.js"),H=require("./layers.BLd2spTm.js");require("./layers.C17cgrNp.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const _=require("./layers.Fpt5oaT3.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.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("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.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",y).attr("y",b).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",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
2
2
  `);n.forEach(function(x){d.log$1.debug(`Adding line: ${x}`),h.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const a=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(x){x.setAttribute("x",(u-x.getBBox().width)/2)}),c.width=u,c.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c},N=function(i,r,t,l){const{displayText:p,cssStyle:c}=r.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);c!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",l.textHeight)},M={getClassTitleString:v,drawClass:A,drawEdge:C,drawNote:W};let B={};const E=20,L=function(i){const r=Object.entries(B).find(t=>t[1].label===i);if(r)return r[0]},q=function(i){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")},G=function(i,r,t,l){const p=d.getConfig().class;B={},d.log$1.info("Rendering diagram "+i);const c=d.getConfig().securityLevel;let o;c==="sandbox"&&(o=d.select("#i"+r));const h=c==="sandbox"?d.select(o.nodes()[0].contentDocument.body):d.select("body"),n=h.select(`[id='${r}']`);q(n);const a=new H.Graph({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const f=l.db.getClasses(),u=Object.keys(f);for(const e of u){const s=f[e],g=M.drawClass(n,s,p,l);B[g.id]=g,a.setNode(g.id,g),d.log$1.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){d.log$1.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){d.log$1.debug(`Adding note: ${JSON.stringify(e)}`);const s=M.drawNote(n,e,p,l);B[s.id]=s,a.setNode(s.id,s),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$.layout(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(d.log$1.debug("Node "+e+": "+JSON.stringify(a.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(d.log$1.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),M.drawEdge(n,a.edge(e),a.edge(e).relation,p,l))});const y=n.node().getBBox(),b=y.width+E*2,m=y.height+E*2;d.configureSvgSize(n,m,b,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${b} ${m}`;d.log$1.debug(`viewBox ${k}`),n.attr("viewBox",k)},I={draw:G},O={parser:T.parser$1,db:T.db,renderer:I,styles:T.styles,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,T.db.clear()}};exports.diagram=O;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as E, Fragment as T, jsx as o } from "react/jsx-runtime";
2
2
  import { useRef as N, useEffect as d, useState as C, useCallback as f } from "react";
3
3
  import { createPortal as U } from "react-dom";
4
- import { k as P, d as S, c as $, l as V, H as X, n as Y, O as J } from "./layers.D9PlOBVG.js";
4
+ import { k as P, d as S, c as $, l as V, H as X, n as Y, O as J } from "./layers.BIBn9QOS.js";
5
5
  import { useLexicalComposerContext as W } from "@lexical/react/LexicalComposerContext";
6
6
  import { LexicalErrorBoundary as _ } from "@lexical/react/LexicalErrorBoundary";
7
7
  import { useLexicalEditable as Z } from "@lexical/react/useLexicalEditable";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers._oRtY_6o.js");exports.decodePngMetadata=e.iC;exports.encodePngMetadata=e._p;exports.getTEXtChunk=e.X9;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.C17cgrNp.js");exports.decodePngMetadata=e.iC;exports.encodePngMetadata=e._p;exports.getTEXtChunk=e.X9;