@sme.up/ketchup2 2.8.0 → 2.8.2

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 (253) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DZIaCwNE.js → abnfDiagram-VCTEODGH-DwAVRNNu.js} +5 -5
  2. package/dist/{arc-7ZXqzxve.js → arc-DXfwi1YX.js} +8 -6
  3. package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-BJvIxhbL.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +309 -300
  5. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  6. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  7. package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
  8. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  9. package/dist/basic-components/list/list.d.ts.map +1 -1
  10. package/dist/basic-components/select/select.d.ts.map +1 -1
  11. package/dist/basic-components/tree/{tree.types.d.ts → tree-types.d.ts} +1 -1
  12. package/dist/basic-components/tree/{tree.types.d.ts.map → tree-types.d.ts.map} +1 -1
  13. package/dist/basic-components/tree/tree.d.ts +1 -1
  14. package/dist/{blockDiagram-I7D4REHJ-C5aW9ypR.js → blockDiagram-I7D4REHJ-Cu18ws5-.js} +38 -35
  15. package/dist/{c4Diagram-7LVT6UL2-JxFfT5VH.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +109 -79
  16. package/dist/{channel-D6agWknC.js → channel-CuEby436.js} +1 -1
  17. package/dist/{chunk-2E4U76K2-C8vehurw.js → chunk-2E4U76K2-ComA5SPA.js} +18 -16
  18. package/dist/{chunk-4HAMMTFA-MZIwowe1.js → chunk-4HAMMTFA-CZgIgrp_.js} +18 -18
  19. package/dist/{chunk-75Z2AOVW-BwUD389x.js → chunk-75Z2AOVW-Drsj7a97.js} +53 -84
  20. package/dist/{chunk-CLGD4ZFX-DKRy6g5T.js → chunk-CLGD4ZFX-CLGio9rD.js} +7 -3
  21. package/dist/{chunk-DU6HZSFF-CNSdkWoH.js → chunk-DU6HZSFF-waeanndy.js} +18 -14
  22. package/dist/{chunk-F27PBJKO-DKsmevT5.js → chunk-F27PBJKO-jIrOJO87.js} +3 -3
  23. package/dist/{chunk-FOHPRMQF-C49KxWOg.js → chunk-FOHPRMQF-LRqOLsSw.js} +435 -362
  24. package/dist/{chunk-GMAD6QVW-DKxKOKLF.js → chunk-GMAD6QVW-D80II4AD.js} +38 -28
  25. package/dist/{chunk-GVQU2GXP-w4KY-she.js → chunk-GVQU2GXP-DP3t_9Rl.js} +4 -4
  26. package/dist/{chunk-IMKFNOWR-DHxMOe_C.js → chunk-IMKFNOWR-8ItzAAcf.js} +43 -47
  27. package/dist/{chunk-L3NEJ4N5-CvNbHpcd.js → chunk-L3NEJ4N5-qPot4t6M.js} +11 -11
  28. package/dist/{chunk-LNGE3PJU-CiGrDO_F.js → chunk-LNGE3PJU-CtYcu9x8.js} +27 -19
  29. package/dist/{chunk-OSK3NFVY-BmtDbEvT.js → chunk-OSK3NFVY-CQhPF3Mc.js} +25 -22
  30. package/dist/{chunk-P2QGCYS3-DRvvOWJ2.js → chunk-P2QGCYS3-BUeNZ170.js} +1 -1
  31. package/dist/{chunk-POPQ4Y6H-CaEkosGL.js → chunk-POPQ4Y6H-CU9oz17Z.js} +2 -2
  32. package/dist/{chunk-PWAF6VOD-CbmhQpgH.js → chunk-PWAF6VOD-D37VoZ8H.js} +6 -8
  33. package/dist/{chunk-SHT3W25Y-DJgD-hyF.js → chunk-SHT3W25Y-Cri27Jke.js} +28 -34
  34. package/dist/{chunk-SVP7TREG-BNwvtyzm.js → chunk-SVP7TREG-CyJlOPau.js} +3 -3
  35. package/dist/{chunk-TICWLB2K-DqSHwYf9.js → chunk-TICWLB2K-Cw2iT_VD.js} +15 -15
  36. package/dist/{chunk-TLUHSLCS-opHh7fd-.js → chunk-TLUHSLCS-BdsLNXjt.js} +10 -10
  37. package/dist/{chunk-XXDRQBXY-BZK6GgVm.js → chunk-XXDRQBXY-C1ZEFXGu.js} +1 -1
  38. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
  39. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
  40. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  41. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  42. package/dist/components/calendar/calendar-types.d.ts +143 -0
  43. package/dist/components/calendar/calendar-types.d.ts.map +1 -0
  44. package/dist/components/calendar/calendar-utils.d.ts +162 -0
  45. package/dist/components/calendar/calendar-utils.d.ts.map +1 -0
  46. package/dist/components/calendar/calendar-utils.test.d.ts +2 -0
  47. package/dist/components/calendar/calendar-utils.test.d.ts.map +1 -0
  48. package/dist/components/calendar/calendar.d.ts +16 -0
  49. package/dist/components/calendar/calendar.d.ts.map +1 -0
  50. package/dist/components/calendar/views/calendar-month-grid.d.ts +48 -0
  51. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -0
  52. package/dist/components/calendar/views/calendar-time-grid.d.ts +44 -0
  53. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -0
  54. package/dist/components/chat/chat.d.ts.map +1 -1
  55. package/dist/components/data-table/data-table.d.ts.map +1 -1
  56. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  57. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  58. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  59. package/dist/{cose-bilkent-JH36ORCC-CE0T5PqO.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +64 -61
  60. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
  61. package/dist/{cynefinDiagram-5FMLGOSQ-D5vkxB9p.js → cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js} +18 -12
  62. package/dist/{cytoscape.esm-BQqfb1oS.js → cytoscape.esm-C5TvPYYm.js} +532 -538
  63. package/dist/{dagre-qXSFUdzO.js → dagre-D5csT9sx.js} +16 -18
  64. package/dist/{dagre-GXQ25YYZ-CFXgAmuL.js → dagre-GXQ25YYZ-Bg7xf6xn.js} +16 -14
  65. package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
  66. package/dist/{diagram-S7CK7UJ4-DrGNegqs.js → diagram-S7CK7UJ4-BuDHTdHA.js} +6 -6
  67. package/dist/{diagram-UQ7AKVKN-LU56O9S9.js → diagram-UQ7AKVKN-uvzJGj43.js} +8 -8
  68. package/dist/{diagram-VSXAHHWV-CaQnupEx.js → diagram-VSXAHHWV-CrQQCs-B.js} +5 -5
  69. package/dist/{diagram-VX7I27RA-DH-s9daK.js → diagram-VX7I27RA-BNmG1sig.js} +52 -50
  70. package/dist/{diagram-Z3DM3KII-DWhRX2l9.js → diagram-Z3DM3KII-B6BrLhP0.js} +5 -5
  71. package/dist/{dist-C7OpkiTz.js → dist-CsrMlyO_.js} +1 -1
  72. package/dist/{ebnfDiagram-PWID7BFC-CtT2erlt.js → ebnfDiagram-PWID7BFC-DMx8xAFO.js} +5 -5
  73. package/dist/{erDiagram-RLTQ6QDP-CxxAoCSs.js → erDiagram-RLTQ6QDP-bkJ9nzVK.js} +25 -25
  74. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
  75. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
  76. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -1
  77. package/dist/{ganttDiagram-EL5Y4UJY-C04RZW4s.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +39 -50
  78. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
  79. package/dist/{gitGraphDiagram-WWUBYQGX-BTcuEGsY.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +17 -13
  80. package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
  84. package/dist/{infoDiagram-27XIBGKW-BoUOV42E.js → infoDiagram-27XIBGKW-Je4heBlk.js} +4 -4
  85. package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
  86. package/dist/{ishikawaDiagram-5VMMS53U-D15Hi9wp.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +12 -12
  87. package/dist/{journeyDiagram-3NMN7TZE-BUb4frTN.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +16 -16
  88. package/dist/{kanban-definition-UXKFOSKX-DkgBC20j.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +20 -20
  89. package/dist/{katex-Dyoqg6Cv.js → katex-CT2p8LXT.js} +111 -96
  90. package/dist/ketchup2.css +1 -1
  91. package/dist/ketchup2.es.js +33176 -32415
  92. package/dist/{line-BEo8vh4N.js → line-DTqYMLoX.js} +2 -2
  93. package/dist/{linear-BNesvT28.js → linear-CXc5xaa6.js} +8 -9
  94. package/dist/locale/en/translation.json.d.ts +3 -1
  95. package/dist/locale/it/translation.json.d.ts +3 -1
  96. package/dist/{mermaid-parser.core-oFB-qEU8.js → mermaid-parser.core-BwVmI_Rq.js} +16 -16
  97. package/dist/{mindmap-definition-YA3MSWOX-Cjs12XgD.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +27 -29
  98. package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
  99. package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
  100. package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
  101. package/dist/{pegDiagram-XKGWAZYB-BuyVzOiH.js → pegDiagram-XKGWAZYB-DsfILwZN.js} +5 -5
  102. package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
  103. package/dist/{pieDiagram-E7YTZNPT-D4bB4TDP.js → pieDiagram-E7YTZNPT-DcSLcLdd.js} +15 -17
  104. package/dist/{quadrantDiagram-AXDQQJYC-B6Q9biU9.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +10 -10
  105. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
  106. package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
  107. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
  108. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
  109. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
  110. package/dist/{railroadDiagram-O6MQD6OU-DFR4_PxB.js → railroadDiagram-O6MQD6OU-jOZRtNDi.js} +5 -5
  111. package/dist/{requirementDiagram-BXWQKSXE-BfWCCTu8.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +20 -20
  112. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
  113. package/dist/{sankeyDiagram-P5KCCOFB-B_3NESVW.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +16 -14
  114. package/dist/{sequenceDiagram-WJ2MYXX4-B8W9PUBb.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +34 -46
  115. package/dist/{src-D-6ZfKf9.js → src-DQoflmwT.js} +20 -23
  116. package/dist/{stateDiagram-D77RDMKH-IwptGFzp.js → stateDiagram-D77RDMKH-YfzmviNY.js} +20 -20
  117. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
  118. package/dist/{swimlanes-42K2YHIH-jhIjSCsq.js → swimlanes-42K2YHIH-CJcMmxXf.js} +44 -41
  119. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
  120. package/dist/{timeline-definition-24CTP7MA-C6u6A92C.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +18 -18
  121. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
  122. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
  123. package/dist/types/translation.d.ts +3 -1
  124. package/dist/types/translation.d.ts.map +1 -1
  125. package/dist/utils/date.d.ts +6 -2
  126. package/dist/utils/date.d.ts.map +1 -1
  127. package/dist/utils/totals/totals-utils.d.ts +3 -1
  128. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  129. package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
  130. package/dist/{vennDiagram-4TSXK5OY-Bt9cyeRX.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +12 -12
  131. package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
  132. package/dist/{wardleyDiagram-VM6X3IG4-QkNx10Ny.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +40 -40
  133. package/dist/{xychartDiagram-S5SC5T6Z-BSwoR01A.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +22 -26
  134. package/package.json +38 -38
  135. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +0 -1
  136. package/dist/arc-DBilzVYt.cjs +0 -1
  137. package/dist/architecture-7GRP2DOG-DYFsLst2.js +0 -3
  138. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +0 -1
  139. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +0 -36
  140. package/dist/array-DZSRzHA_.cjs +0 -1
  141. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +0 -129
  142. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +0 -38
  143. package/dist/channel-BvUly9jN.cjs +0 -1
  144. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +0 -1
  145. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  146. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +0 -62
  147. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  148. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +0 -2
  149. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +0 -1
  150. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +0 -127
  151. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +0 -1
  152. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +0 -161
  153. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +0 -72
  154. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +0 -1
  155. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +0 -231
  156. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  157. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +0 -1
  158. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +0 -34
  159. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +0 -10
  160. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +0 -1
  161. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +0 -1
  162. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +0 -1
  163. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +0 -168
  164. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +0 -88
  165. package/dist/chunk-TICWLB2K-1u0p_luB.cjs +0 -206
  166. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +0 -1
  167. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +0 -1
  168. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  169. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +0 -30
  170. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +0 -1
  171. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +0 -30
  172. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +0 -1
  173. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +0 -1
  174. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +0 -1
  175. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +0 -3
  176. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +0 -62
  177. package/dist/cytoscape.esm-TdwWzXkE.cjs +0 -321
  178. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +0 -4
  179. package/dist/dagre-nX1Mh32P.cjs +0 -1
  180. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  181. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +0 -30
  182. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +0 -41
  183. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +0 -3
  184. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +0 -24
  185. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +0 -24
  186. package/dist/dist-DrOEvFlx.cjs +0 -1
  187. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +0 -1
  188. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +0 -99
  189. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +0 -3
  190. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +0 -1
  191. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +0 -1
  192. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +0 -17
  193. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +0 -292
  194. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +0 -3
  195. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +0 -1
  196. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +0 -106
  197. package/dist/graphlib-CkkG5MuS.cjs +0 -1
  198. package/dist/info-A6RAGUB7-C0KA0jej.cjs +0 -1
  199. package/dist/info-A6RAGUB7-DYBvudiC.js +0 -3
  200. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +0 -2
  201. package/dist/init-07zIhv_j.cjs +0 -1
  202. package/dist/ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs +0 -70
  203. package/dist/journeyDiagram-3NMN7TZE-CxVpPKa-.cjs +0 -139
  204. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +0 -89
  205. package/dist/katex-DUe6VLjC.cjs +0 -257
  206. package/dist/ketchup2.cjs.js +0 -487
  207. package/dist/line-wiGgVVGi.cjs +0 -1
  208. package/dist/linear-YA14Lx5Z.cjs +0 -1
  209. package/dist/mermaid-parser.core-CqChDTj1.cjs +0 -6
  210. package/dist/mindmap-definition-YA3MSWOX-0PG4raFG.cjs +0 -96
  211. package/dist/ordinal-CUPR-p0T.cjs +0 -1
  212. package/dist/packet-AYTQ26CC-BEwXWBE0.js +0 -3
  213. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +0 -1
  214. package/dist/path-Kklx0M1v.cjs +0 -1
  215. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +0 -1
  216. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +0 -1
  217. package/dist/pie-WAS4IAKB-BOR5Wwai.js +0 -3
  218. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +0 -39
  219. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +0 -7
  220. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +0 -3
  221. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +0 -1
  222. package/dist/railroad-74A4TZTK-CaWzRQE0.js +0 -3
  223. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +0 -1
  224. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +0 -3
  225. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +0 -1
  226. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +0 -1
  227. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +0 -3
  228. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +0 -1
  229. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +0 -3
  230. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +0 -1
  231. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +0 -84
  232. package/dist/rough.esm-r0QOSzHM.cjs +0 -1
  233. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +0 -40
  234. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +0 -162
  235. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +0 -1
  236. package/dist/src-B16ML7oM.cjs +0 -1
  237. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +0 -1
  238. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +0 -1
  239. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +0 -30
  240. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +0 -1
  241. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +0 -31
  242. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +0 -8
  243. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +0 -120
  244. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +0 -3
  245. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +0 -1
  246. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +0 -1
  247. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +0 -3
  248. package/dist/v4-Dyp-SQ1c.cjs +0 -1
  249. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +0 -34
  250. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +0 -1
  251. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +0 -3
  252. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +0 -78
  253. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +0 -7
@@ -1,13 +1,13 @@
1
- import { _ as e, m as t, p as n, y as r } from "./src-D-6ZfKf9.js";
2
- import { H as i, J as a, K as o, U as s, a as c, b as l, f as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-DU6HZSFF-CNSdkWoH.js";
1
+ import { _ as e, m as t, p as n, y as r } from "./src-DQoflmwT.js";
2
+ import { H as i, J as a, K as o, U as s, a as c, b as l, f as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-DU6HZSFF-waeanndy.js";
3
3
  import { n as g } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { c as _, i as v } from "./chunk-75Z2AOVW-BwUD389x.js";
5
- import { t as y } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
- import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-CbmhQpgH.js";
7
- import { n as C } from "./chunk-GMAD6QVW-DKxKOKLF.js";
8
- import { n as w } from "./mermaid-parser.core-oFB-qEU8.js";
4
+ import { c as _, i as v } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
+ import { t as y } from "./chunk-CLGD4ZFX-CLGio9rD.js";
6
+ import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-D37VoZ8H.js";
7
+ import { n as C } from "./chunk-GMAD6QVW-D80II4AD.js";
8
+ import { n as w } from "./mermaid-parser.core-BwVmI_Rq.js";
9
9
  import { t as T } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
10
- import { t as E } from "./cytoscape.esm-BQqfb1oS.js";
10
+ import { t as E } from "./cytoscape.esm-C5TvPYYm.js";
11
11
  //#region node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
12
12
  var D = /* @__PURE__ */ e(((e, t) => {
13
13
  (function(n, r) {
@@ -103,7 +103,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
103
103
  (function(e, t, n) {
104
104
  var r = n(2), i = n(10), a = n(13), o = n(0), s = n(16), c = n(5);
105
105
  function l(e, t, n, o) {
106
- n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, n != null && t != null ? this.rect = new a(t.x, t.y, n.width, n.height) : this.rect = new a();
106
+ n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, this.rect = n != null && t != null ? new a(t.x, t.y, n.width, n.height) : new a();
107
107
  }
108
108
  for (var u in l.prototype = Object.create(r.prototype), r) l[u] = r[u];
109
109
  l.prototype.getEdges = function() {
@@ -153,7 +153,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
153
153
  }, l.prototype.getEdgesBetween = function(e) {
154
154
  var t = [], n = this;
155
155
  return n.edges.forEach(function(r) {
156
- if (!(r.source == n || r.target == n)) throw "Incorrect edge source and/or target";
156
+ if (r.source != n && r.target != n) throw "Incorrect edge source and/or target";
157
157
  (r.target == e || r.source == e) && t.push(r);
158
158
  }), t;
159
159
  }, l.prototype.getNeighborsList = function() {
@@ -273,17 +273,16 @@ var D = /* @__PURE__ */ e(((e, t) => {
273
273
  if (this.graphManager == null) throw "Graph has no graph mgr!";
274
274
  if (this.getNodes().indexOf(r) > -1) throw "Node already in graph!";
275
275
  return r.owner = this, this.getNodes().push(r), r;
276
- } else {
277
- var i = e;
278
- if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
279
- if (!(t.owner == n.owner && t.owner == this)) throw "Both owners must be this graph!";
280
- return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
281
276
  }
277
+ var i = e;
278
+ if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
279
+ if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
280
+ return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
282
281
  }, f.prototype.remove = function(e) {
283
282
  var t = e;
284
283
  if (e instanceof s) {
285
284
  if (t == null) throw "Node is null!";
286
- if (!(t.owner != null && t.owner == this)) throw "Owner graph is invalid!";
285
+ if (t.owner == null || t.owner != this) throw "Owner graph is invalid!";
287
286
  if (this.graphManager == null) throw "Owner graph manager is invalid!";
288
287
  for (var n = t.edges.slice(), r, i = n.length, a = 0; a < i; a++) r = n[a], r.isInterGraph ? this.graphManager.remove(r) : r.source.owner.remove(r);
289
288
  var o = this.nodes.indexOf(t);
@@ -292,8 +291,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
292
291
  } else if (e instanceof c) {
293
292
  var r = e;
294
293
  if (r == null) throw "Edge is null!";
295
- if (!(r.source != null && r.target != null)) throw "Source and/or target is null!";
296
- if (!(r.source.owner != null && r.target.owner != null && r.source.owner == this && r.target.owner == this)) throw "Source and/or target owner is invalid!";
294
+ if (r.source == null || r.target == null) throw "Source and/or target is null!";
295
+ if (r.source.owner == null || r.target.owner == null || r.source.owner != this || r.target.owner != this) throw "Source and/or target owner is invalid!";
297
296
  var l = r.source.edges.indexOf(r), u = r.target.edges.indexOf(r);
298
297
  if (!(l > -1 && u > -1)) throw "Source and/or target doesn't know this edge!";
299
298
  r.source.edges.splice(l, 1), r.target != r.source && r.target.edges.splice(u, 1);
@@ -330,7 +329,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
330
329
  var i = t[r];
331
330
  e += i.calcEstimatedSize();
332
331
  }
333
- return e == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = e / Math.sqrt(this.nodes.length), this.estimatedSize;
332
+ return this.estimatedSize = e == 0 ? a.EMPTY_COMPOUND_NODE_SIZE : e / Math.sqrt(this.nodes.length), this.estimatedSize;
334
333
  }, f.prototype.updateConnected = function() {
335
334
  var e = this;
336
335
  if (this.nodes.length == 0) {
@@ -370,17 +369,16 @@ var D = /* @__PURE__ */ e(((e, t) => {
370
369
  if (this.graphs.push(e), e.parent != null) throw "Already has a parent!";
371
370
  if (t.child != null) throw "Already has a child!";
372
371
  return e.parent = t, t.child = e, e;
373
- } else {
374
- i = n, r = t, n = e;
375
- var a = r.getOwner(), o = i.getOwner();
376
- if (!(a != null && a.getGraphManager() == this)) throw "Source not in this graph mgr!";
377
- if (!(o != null && o.getGraphManager() == this)) throw "Target not in this graph mgr!";
378
- if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
379
- if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
380
- if (this.edges.push(n), !(n.source != null && n.target != null)) throw "Edge source and/or target is null!";
381
- if (!(n.source.edges.indexOf(n) == -1 && n.target.edges.indexOf(n) == -1)) throw "Edge already in source and/or target incidency list!";
382
- return n.source.edges.push(n), n.target.edges.push(n), n;
383
372
  }
373
+ i = n, r = t, n = e;
374
+ var a = r.getOwner(), o = i.getOwner();
375
+ if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
376
+ if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
377
+ if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
378
+ if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
379
+ if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
380
+ if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
381
+ return n.source.edges.push(n), n.target.edges.push(n), n;
384
382
  }, a.prototype.remove = function(e) {
385
383
  if (e instanceof r) {
386
384
  var t = e;
@@ -400,10 +398,10 @@ var D = /* @__PURE__ */ e(((e, t) => {
400
398
  } else if (e instanceof i) {
401
399
  if (a = e, a == null) throw "Edge is null!";
402
400
  if (!a.isInterGraph) throw "Not an inter-graph edge!";
403
- if (!(a.source != null && a.target != null)) throw "Source and/or target is null!";
404
- if (!(a.source.edges.indexOf(a) != -1 && a.target.edges.indexOf(a) != -1)) throw "Source and/or target doesn't know this edge!";
401
+ if (a.source == null || a.target == null) throw "Source and/or target is null!";
402
+ if (a.source.edges.indexOf(a) == -1 || a.target.edges.indexOf(a) == -1) throw "Source and/or target doesn't know this edge!";
405
403
  var u = a.source.edges.indexOf(a);
406
- if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), !(a.source.owner != null && a.source.owner.getGraphManager() != null)) throw "Edge owner graph or owner graph manager is null!";
404
+ if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), a.source.owner == null || a.source.owner.getGraphManager() == null) throw "Edge owner graph or owner graph manager is null!";
407
405
  if (a.source.owner.getGraphManager().edges.indexOf(a) == -1) throw "Not in owner graph manager's edge list!";
408
406
  var u = a.source.owner.getGraphManager().edges.indexOf(a);
409
407
  a.source.owner.getGraphManager().edges.splice(u, 1);
@@ -445,7 +443,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
445
443
  }, a.prototype.getLayout = function() {
446
444
  return this.layout;
447
445
  }, a.prototype.isOneAncestorOfOther = function(e, t) {
448
- if (!(e != null && t != null)) throw "assert failed";
446
+ if (e == null || t == null) throw "assert failed";
449
447
  if (e == t) return !0;
450
448
  var n = e.getOwner(), r;
451
449
  do {
@@ -516,7 +514,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
516
514
  var o = a * n[0], s = n[1] / a;
517
515
  n[0] < s ? s = n[0] : o = n[1], n[0] = -1 * i[0] * (s / 2 + r), n[1] = -1 * i[1] * (o / 2 + r);
518
516
  }, i.decideDirectionsForOverlappingNodes = function(e, t, n) {
519
- e.getCenterX() < t.getCenterX() ? n[0] = -1 : n[0] = 1, e.getCenterY() < t.getCenterY() ? n[1] = -1 : n[1] = 1;
517
+ n[0] = e.getCenterX() < t.getCenterX() ? -1 : 1, n[1] = e.getCenterY() < t.getCenterY() ? -1 : 1;
520
518
  }, i.getIntersection2 = function(e, t, n) {
521
519
  var r = e.getCenterX(), i = e.getCenterY(), a = t.getCenterX(), o = t.getCenterY();
522
520
  if (e.intersects(t)) return n[0] = r, n[1] = i, n[2] = a, n[3] = o, !0;
@@ -540,9 +538,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
540
538
  case 3:
541
539
  j = d, A = r + m / D, n[0] = A, n[1] = j;
542
540
  break;
543
- case 4:
544
- A = u, j = i + -p * D, n[0] = A, n[1] = j;
545
- break;
541
+ case 4: A = u, j = i + -p * D, n[0] = A, n[1] = j;
546
542
  }
547
543
  if (!w) switch (k) {
548
544
  case 1:
@@ -554,9 +550,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
554
550
  case 3:
555
551
  N = y, M = a + S / D, n[2] = M, n[3] = N;
556
552
  break;
557
- case 4:
558
- M = v, N = o + -x * D, n[2] = M, n[3] = N;
559
- break;
553
+ case 4: M = v, N = o + -x * D, n[2] = M, n[3] = N;
560
554
  }
561
555
  }
562
556
  return !1;
@@ -579,7 +573,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
579
573
  if (c * c - 4 * s * l >= 0) {
580
574
  var u = (-c + Math.sqrt(c * c - 4 * s * l)) / (2 * s), d = (-c - Math.sqrt(c * c - 4 * s * l)) / (2 * s);
581
575
  return u >= 0 && u <= 1 ? [u] : d >= 0 && d <= 1 ? [d] : null;
582
- } else return null;
576
+ }
577
+ return null;
583
578
  }, i.HALF_PI = .5 * Math.PI, i.ONE_AND_HALF_PI = 1.5 * Math.PI, i.TWO_PI = 2 * Math.PI, i.THREE_PI = 3 * Math.PI, e.exports = i;
584
579
  }),
585
580
  (function(e, t, n) {
@@ -815,7 +810,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
815
810
  if (Array.isArray(e)) {
816
811
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
817
812
  return n;
818
- } else return Array.from(e);
813
+ }
814
+ return Array.from(e);
819
815
  }
820
816
  var i = n(0), a = n(7), o = n(3), s = n(1), c = n(6), l = n(5), u = n(17), d = n(29);
821
817
  function f(e) {
@@ -842,8 +838,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
842
838
  return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
843
839
  }, f.prototype.runLayout = function() {
844
840
  this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
845
- var e = this.checkLayoutSuccess() ? !1 : this.layout();
846
- return i.ANIMATE === "during" ? !1 : (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
841
+ var e = !this.checkLayoutSuccess() && this.layout();
842
+ return i.ANIMATE !== "during" && (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
847
843
  }, f.prototype.doPostLayout = function() {
848
844
  this.incremental || this.transform(), this.update();
849
845
  }, f.prototype.update2 = function() {
@@ -889,10 +885,12 @@ var D = /* @__PURE__ */ e(((e, t) => {
889
885
  s.splice(0, 1), o.add(u);
890
886
  for (var d = u.getEdges(), a = 0; a < d.length; a++) {
891
887
  var f = d[a].getOtherEnd(u);
892
- if (c.get(u) != f) if (!o.has(f)) s.push(f), c.set(f, u);
893
- else {
894
- t = !1;
895
- break;
888
+ if (c.get(u) != f) {
889
+ if (!o.has(f)) s.push(f), c.set(f, u);
890
+ else {
891
+ t = !1;
892
+ break;
893
+ }
896
894
  }
897
895
  }
898
896
  }
@@ -941,10 +939,9 @@ var D = /* @__PURE__ */ e(((e, t) => {
941
939
  i += (o - t) / 50 * (e - 50);
942
940
  }
943
941
  return i;
944
- } else {
945
- var s, c;
946
- return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
947
942
  }
943
+ var s, c;
944
+ return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
948
945
  }, f.findCenterOfTree = function(e) {
949
946
  var t = [];
950
947
  t = t.concat(e);
@@ -1038,7 +1035,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
1038
1035
  if (Array.isArray(e)) {
1039
1036
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
1040
1037
  return n;
1041
- } else return Array.from(e);
1038
+ }
1039
+ return Array.from(e);
1042
1040
  }
1043
1041
  var i = n(15), a = n(4), o = n(0), s = n(8), c = n(9);
1044
1042
  function l() {
@@ -1051,11 +1049,11 @@ var D = /* @__PURE__ */ e(((e, t) => {
1051
1049
  for (var e, t, n, r, i, s, c, l = this.getGraphManager().getAllEdges(), u = 0; u < l.length; u++) e = l[u], t = e.idealLength, e.isInterGraph && (r = e.getSource(), i = e.getTarget(), s = e.getSourceInLca().getEstimatedSize(), c = e.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (e.idealLength += s + c - 2 * o.SIMPLE_NODE_SIZE), n = e.getLca().getInclusionTreeDepth(), e.idealLength += t * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (r.getInclusionTreeDepth() + i.getInclusionTreeDepth() - 2 * n));
1052
1050
  }, l.prototype.initSpringEmbedder = function() {
1053
1051
  var e = this.getAllNodes().length;
1054
- this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (e > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1052
+ this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (this.coolingFactor = e > a.ADAPTATION_LOWER_NODE_LIMIT ? Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1055
1053
  }, l.prototype.calcSpringForces = function() {
1056
1054
  for (var e = this.getAllEdges(), t, n = 0; n < e.length; n++) t = e[n], this.calcSpringForce(t, t.idealLength);
1057
1055
  }, l.prototype.calcRepulsionForces = function() {
1058
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n, r, i, o, s = this.getAllNodes(), c;
1056
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n, r, i, o, s = this.getAllNodes(), c;
1059
1057
  if (this.useFRGridVariant) for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && e && this.updateGrid(), c = /* @__PURE__ */ new Set(), n = 0; n < s.length; n++) i = s[n], this.calculateRepulsionForceOfANode(i, c, e, t), c.add(i);
1060
1058
  else for (n = 0; n < s.length; n++) for (i = s[n], r = n + 1; r < s.length; r++) o = s[r], i.getOwner() == o.getOwner() && this.calcRepulsionForce(i, o);
1061
1059
  }, l.prototype.calcGravitationalForces = function() {
@@ -1107,7 +1105,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
1107
1105
  var o = /* @__PURE__ */ new Set();
1108
1106
  e.surrounding = [];
1109
1107
  for (var s, c = this.grid, l = e.startX - 1; l < e.finishX + 2; l++) for (var u = e.startY - 1; u < e.finishY + 2; u++) if (!(l < 0 || u < 0 || l >= c.length || u >= c[0].length)) {
1110
- for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], !(e.getOwner() != s.getOwner() || e == s) && !t.has(s) && !o.has(s)) {
1108
+ for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], e.getOwner() == s.getOwner() && e != s && !t.has(s) && !o.has(s)) {
1111
1109
  var f = Math.abs(e.getCenterX() - s.getCenterX()) - (e.getWidth() / 2 + s.getWidth() / 2), p = Math.abs(e.getCenterY() - s.getCenterY()) - (e.getHeight() / 2 + s.getHeight() / 2);
1112
1110
  f <= this.repulsionRange && p <= this.repulsionRange && o.add(s);
1113
1111
  }
@@ -1476,7 +1474,6 @@ var D = /* @__PURE__ */ e(((e, t) => {
1476
1474
  U++;
1477
1475
  }
1478
1476
  H = 0, E--;
1479
- break;
1480
1477
  }
1481
1478
  }
1482
1479
  return {
@@ -1696,7 +1693,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
1696
1693
  }, x.prototype.newEdge = function(e) {
1697
1694
  return new s(null, null, e);
1698
1695
  }, x.prototype.initParameters = function() {
1699
- r.prototype.initParameters.call(this, arguments), this.isSubLayout || (c.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1696
+ r.prototype.initParameters.call(this, arguments), this.isSubLayout || (this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH < 10 ? 10 : c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1700
1697
  }, x.prototype.initSpringEmbedder = function() {
1701
1698
  r.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / u.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = .04, this.coolingAdjuster = 1;
1702
1699
  }, x.prototype.layout = function() {
@@ -1721,26 +1718,32 @@ var D = /* @__PURE__ */ e(((e, t) => {
1721
1718
  }
1722
1719
  return Object.keys(this.constraints).length > 0 && (l.handleConstraints(this), this.initConstraintVariables()), this.initSpringEmbedder(), c.APPLY_LAYOUT && this.runSpringEmbedder(), !0;
1723
1720
  }, x.prototype.tick = function() {
1724
- if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished) if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1725
- else return !0;
1726
- if (this.totalIterations % u.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1727
- if (this.isConverged()) if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1721
+ if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished) {
1722
+ if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1728
1723
  else return !0;
1724
+ }
1725
+ if (this.totalIterations % u.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1726
+ if (this.isConverged()) {
1727
+ if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1728
+ else return !0;
1729
+ }
1729
1730
  this.coolingCycle++, this.layoutQuality == 0 ? this.coolingAdjuster = this.coolingCycle : this.layoutQuality == 1 && (this.coolingAdjuster = this.coolingCycle / 3), this.coolingFactor = Math.max(this.initialCoolingFactor - this.coolingCycle ** +(Math.log(100 * (this.initialCoolingFactor - this.finalTemperature)) / Math.log(this.maxCoolingCycle)) / 100 * this.coolingAdjuster, this.finalTemperature), this.animationPeriod = Math.ceil(this.initialAnimationPeriod * Math.sqrt(this.coolingFactor));
1730
1731
  }
1731
1732
  if (this.isTreeGrowing) {
1732
- if (this.growTreeIterations % 10 == 0) if (this.prunedNodesAll.length > 0) {
1733
- this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1734
- var e = new Set(this.getAllNodes()), t = this.nodesWithGravity.filter(function(t) {
1735
- return e.has(t);
1736
- });
1737
- this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1738
- } else this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1733
+ if (this.growTreeIterations % 10 == 0) {
1734
+ if (this.prunedNodesAll.length > 0) {
1735
+ this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1736
+ var e = new Set(this.getAllNodes()), t = this.nodesWithGravity.filter(function(t) {
1737
+ return e.has(t);
1738
+ });
1739
+ this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1740
+ } else this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1741
+ }
1739
1742
  this.growTreeIterations++;
1740
1743
  }
1741
1744
  if (this.isGrowthFinished) {
1742
1745
  if (this.isConverged()) return !0;
1743
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1746
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1744
1747
  }
1745
1748
  var n = !this.isTreeGrowing && !this.isGrowthFinished, r = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1746
1749
  return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(n, r), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
@@ -1884,66 +1887,68 @@ var D = /* @__PURE__ */ e(((e, t) => {
1884
1887
  for (var l = s / o[n].length, i = 0; i < o[n].length; i++) this.idToNodeMap.get(o[n][i]).displacementY = l;
1885
1888
  }
1886
1889
  }
1887
- if (this.constraints.relativePlacementConstraint) if (c.RELAX_MOVEMENT_ON_CONSTRAINTS) this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(t) {
1888
- if (!e.fixedNodesOnHorizontal.has(t)) {
1889
- var n = 0;
1890
- n = e.dummyToNodeForVerticalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(t)[0]).displacementX : e.idToNodeMap.get(t).displacementX, e.nodeToRelativeConstraintMapHorizontal.get(t).forEach(function(r) {
1891
- if (r.right) {
1892
- var i = e.nodeToTempPositionMapHorizontal.get(r.right) - e.nodeToTempPositionMapHorizontal.get(t) - n;
1893
- i < r.gap && (n -= r.gap - i);
1894
- } else {
1895
- var i = e.nodeToTempPositionMapHorizontal.get(t) - e.nodeToTempPositionMapHorizontal.get(r.left) + n;
1896
- i < r.gap && (n += r.gap - i);
1897
- }
1898
- }), e.nodeToTempPositionMapHorizontal.set(t, e.nodeToTempPositionMapHorizontal.get(t) + n), e.dummyToNodeForVerticalAlignment.has(t) ? e.dummyToNodeForVerticalAlignment.get(t).forEach(function(t) {
1899
- e.idToNodeMap.get(t).displacementX = n;
1900
- }) : e.idToNodeMap.get(t).displacementX = n;
1901
- }
1902
- }), this.nodesInRelativeVertical.forEach(function(t) {
1903
- if (!e.fixedNodesOnHorizontal.has(t)) {
1904
- var n = 0;
1905
- n = e.dummyToNodeForHorizontalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(t)[0]).displacementY : e.idToNodeMap.get(t).displacementY, e.nodeToRelativeConstraintMapVertical.get(t).forEach(function(r) {
1906
- if (r.bottom) {
1907
- var i = e.nodeToTempPositionMapVertical.get(r.bottom) - e.nodeToTempPositionMapVertical.get(t) - n;
1908
- i < r.gap && (n -= r.gap - i);
1909
- } else {
1910
- var i = e.nodeToTempPositionMapVertical.get(t) - e.nodeToTempPositionMapVertical.get(r.top) + n;
1911
- i < r.gap && (n += r.gap - i);
1890
+ if (this.constraints.relativePlacementConstraint) {
1891
+ if (c.RELAX_MOVEMENT_ON_CONSTRAINTS) this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(t) {
1892
+ if (!e.fixedNodesOnHorizontal.has(t)) {
1893
+ var n = 0;
1894
+ n = e.dummyToNodeForVerticalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(t)[0]).displacementX : e.idToNodeMap.get(t).displacementX, e.nodeToRelativeConstraintMapHorizontal.get(t).forEach(function(r) {
1895
+ if (r.right) {
1896
+ var i = e.nodeToTempPositionMapHorizontal.get(r.right) - e.nodeToTempPositionMapHorizontal.get(t) - n;
1897
+ i < r.gap && (n -= r.gap - i);
1898
+ } else {
1899
+ var i = e.nodeToTempPositionMapHorizontal.get(t) - e.nodeToTempPositionMapHorizontal.get(r.left) + n;
1900
+ i < r.gap && (n += r.gap - i);
1901
+ }
1902
+ }), e.nodeToTempPositionMapHorizontal.set(t, e.nodeToTempPositionMapHorizontal.get(t) + n), e.dummyToNodeForVerticalAlignment.has(t) ? e.dummyToNodeForVerticalAlignment.get(t).forEach(function(t) {
1903
+ e.idToNodeMap.get(t).displacementX = n;
1904
+ }) : e.idToNodeMap.get(t).displacementX = n;
1905
+ }
1906
+ }), this.nodesInRelativeVertical.forEach(function(t) {
1907
+ if (!e.fixedNodesOnHorizontal.has(t)) {
1908
+ var n = 0;
1909
+ n = e.dummyToNodeForHorizontalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(t)[0]).displacementY : e.idToNodeMap.get(t).displacementY, e.nodeToRelativeConstraintMapVertical.get(t).forEach(function(r) {
1910
+ if (r.bottom) {
1911
+ var i = e.nodeToTempPositionMapVertical.get(r.bottom) - e.nodeToTempPositionMapVertical.get(t) - n;
1912
+ i < r.gap && (n -= r.gap - i);
1913
+ } else {
1914
+ var i = e.nodeToTempPositionMapVertical.get(t) - e.nodeToTempPositionMapVertical.get(r.top) + n;
1915
+ i < r.gap && (n += r.gap - i);
1916
+ }
1917
+ }), e.nodeToTempPositionMapVertical.set(t, e.nodeToTempPositionMapVertical.get(t) + n), e.dummyToNodeForHorizontalAlignment.has(t) ? e.dummyToNodeForHorizontalAlignment.get(t).forEach(function(t) {
1918
+ e.idToNodeMap.get(t).displacementY = n;
1919
+ }) : e.idToNodeMap.get(t).displacementY = n;
1920
+ }
1921
+ });
1922
+ else {
1923
+ for (var n = 0; n < this.componentsOnHorizontal.length; n++) {
1924
+ var u = this.componentsOnHorizontal[n];
1925
+ if (this.fixedComponentsOnHorizontal[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1926
+ e.idToNodeMap.get(t).displacementX = 0;
1927
+ }) : this.idToNodeMap.get(u[i]).displacementX = 0;
1928
+ else {
1929
+ for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForVerticalAlignment.has(u[i])) {
1930
+ var p = this.dummyToNodeForVerticalAlignment.get(u[i]);
1931
+ d += p.length * this.idToNodeMap.get(p[0]).displacementX, f += p.length;
1932
+ } else d += this.idToNodeMap.get(u[i]).displacementX, f++;
1933
+ for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1934
+ e.idToNodeMap.get(t).displacementX = m;
1935
+ }) : this.idToNodeMap.get(u[i]).displacementX = m;
1912
1936
  }
1913
- }), e.nodeToTempPositionMapVertical.set(t, e.nodeToTempPositionMapVertical.get(t) + n), e.dummyToNodeForHorizontalAlignment.has(t) ? e.dummyToNodeForHorizontalAlignment.get(t).forEach(function(t) {
1914
- e.idToNodeMap.get(t).displacementY = n;
1915
- }) : e.idToNodeMap.get(t).displacementY = n;
1916
- }
1917
- });
1918
- else {
1919
- for (var n = 0; n < this.componentsOnHorizontal.length; n++) {
1920
- var u = this.componentsOnHorizontal[n];
1921
- if (this.fixedComponentsOnHorizontal[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1922
- e.idToNodeMap.get(t).displacementX = 0;
1923
- }) : this.idToNodeMap.get(u[i]).displacementX = 0;
1924
- else {
1925
- for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForVerticalAlignment.has(u[i])) {
1926
- var p = this.dummyToNodeForVerticalAlignment.get(u[i]);
1927
- d += p.length * this.idToNodeMap.get(p[0]).displacementX, f += p.length;
1928
- } else d += this.idToNodeMap.get(u[i]).displacementX, f++;
1929
- for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1930
- e.idToNodeMap.get(t).displacementX = m;
1931
- }) : this.idToNodeMap.get(u[i]).displacementX = m;
1932
1937
  }
1933
- }
1934
- for (var n = 0; n < this.componentsOnVertical.length; n++) {
1935
- var u = this.componentsOnVertical[n];
1936
- if (this.fixedComponentsOnVertical[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1937
- e.idToNodeMap.get(t).displacementY = 0;
1938
- }) : this.idToNodeMap.get(u[i]).displacementY = 0;
1939
- else {
1940
- for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForHorizontalAlignment.has(u[i])) {
1941
- var p = this.dummyToNodeForHorizontalAlignment.get(u[i]);
1942
- d += p.length * this.idToNodeMap.get(p[0]).displacementY, f += p.length;
1943
- } else d += this.idToNodeMap.get(u[i]).displacementY, f++;
1944
- for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1945
- e.idToNodeMap.get(t).displacementY = m;
1946
- }) : this.idToNodeMap.get(u[i]).displacementY = m;
1938
+ for (var n = 0; n < this.componentsOnVertical.length; n++) {
1939
+ var u = this.componentsOnVertical[n];
1940
+ if (this.fixedComponentsOnVertical[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1941
+ e.idToNodeMap.get(t).displacementY = 0;
1942
+ }) : this.idToNodeMap.get(u[i]).displacementY = 0;
1943
+ else {
1944
+ for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForHorizontalAlignment.has(u[i])) {
1945
+ var p = this.dummyToNodeForHorizontalAlignment.get(u[i]);
1946
+ d += p.length * this.idToNodeMap.get(p[0]).displacementY, f += p.length;
1947
+ } else d += this.idToNodeMap.get(u[i]).displacementY, f++;
1948
+ for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1949
+ e.idToNodeMap.get(t).displacementY = m;
1950
+ }) : this.idToNodeMap.get(u[i]).displacementY = m;
1951
+ }
1947
1952
  }
1948
1953
  }
1949
1954
  }
@@ -2319,7 +2324,8 @@ var D = /* @__PURE__ */ e(((e, t) => {
2319
2324
  if (Array.isArray(e)) {
2320
2325
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
2321
2326
  return n;
2322
- } else return Array.from(e);
2327
+ }
2328
+ return Array.from(e);
2323
2329
  }
2324
2330
  var i = n(806), a = n(551).LinkedList, o = n(551).Matrix, s = n(551).SVD;
2325
2331
  function c() {}
@@ -2331,7 +2337,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
2331
2337
  m.getChild() ?? (c.set(m.id, f++), l.push(m.getCenterX()), u.push(m.getCenterY()), n.set(m.id, m));
2332
2338
  }
2333
2339
  t.relativePlacementConstraint && t.relativePlacementConstraint.forEach(function(e) {
2334
- !e.gap && e.gap != 0 && (e.left ? e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2340
+ !e.gap && e.gap != 0 && (e.gap = e.left ? i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2335
2341
  });
2336
2342
  var h = function(e, t) {
2337
2343
  return {
@@ -2375,7 +2381,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
2375
2381
  });
2376
2382
  var f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = new a();
2377
2383
  d.forEach(function(e, r) {
2378
- e == 0 ? (m.push(r), n || (t == "horizontal" ? f.set(r, c.has(r) ? l[c.get(r)] : i.get(r)) : f.set(r, c.has(r) ? u[c.get(r)] : i.get(r)))) : f.set(r, -Infinity), n && p.set(r, new Set([r]));
2384
+ e == 0 ? (m.push(r), n || (t == "horizontal" ? f.set(r, c.has(r) ? l[c.get(r)] : i.get(r)) : f.set(r, c.has(r) ? u[c.get(r)] : i.get(r)))) : f.set(r, -Infinity), n && p.set(r, /* @__PURE__ */ new Set([r]));
2379
2385
  }), n && o.forEach(function(e) {
2380
2386
  var r = [];
2381
2387
  if (e.forEach(function(e) {
@@ -2390,7 +2396,7 @@ var D = /* @__PURE__ */ e(((e, t) => {
2390
2396
  } else {
2391
2397
  var o = 0;
2392
2398
  e.forEach(function(e) {
2393
- t == "horizontal" ? o += c.has(e) ? l[c.get(e)] : i.get(e) : o += c.has(e) ? u[c.get(e)] : i.get(e);
2399
+ o += t == "horizontal" ? c.has(e) ? l[c.get(e)] : i.get(e) : c.has(e) ? u[c.get(e)] : i.get(e);
2394
2400
  }), o /= e.length, e.forEach(function(e) {
2395
2401
  f.set(e, o);
2396
2402
  });
@@ -2399,15 +2405,17 @@ var D = /* @__PURE__ */ e(((e, t) => {
2399
2405
  for (var h = function() {
2400
2406
  var r = m.shift();
2401
2407
  e.get(r).forEach(function(e) {
2402
- if (f.get(e.id) < f.get(r) + e.gap) if (n && n.has(e.id)) {
2403
- var a = void 0;
2404
- if (a = t == "horizontal" ? c.has(e.id) ? l[c.get(e.id)] : i.get(e.id) : c.has(e.id) ? u[c.get(e.id)] : i.get(e.id), f.set(e.id, a), a < f.get(r) + e.gap) {
2405
- var o = f.get(r) + e.gap - a;
2406
- p.get(r).forEach(function(e) {
2407
- f.set(e, f.get(e) - o);
2408
- });
2409
- }
2410
- } else f.set(e.id, f.get(r) + e.gap);
2408
+ if (f.get(e.id) < f.get(r) + e.gap) {
2409
+ if (n && n.has(e.id)) {
2410
+ var a = void 0;
2411
+ if (a = t == "horizontal" ? c.has(e.id) ? l[c.get(e.id)] : i.get(e.id) : c.has(e.id) ? u[c.get(e.id)] : i.get(e.id), f.set(e.id, a), a < f.get(r) + e.gap) {
2412
+ var o = f.get(r) + e.gap - a;
2413
+ p.get(r).forEach(function(e) {
2414
+ f.set(e, f.get(e) - o);
2415
+ });
2416
+ }
2417
+ } else f.set(e.id, f.get(r) + e.gap);
2418
+ }
2411
2419
  d.set(e.id, d.get(e.id) - 1), d.get(e.id) == 0 && m.push(e.id), n && p.set(e.id, s(p.get(r), p.get(e.id)));
2412
2420
  });
2413
2421
  }; m.length != 0;) h();
@@ -2933,13 +2941,15 @@ var D = /* @__PURE__ */ e(((e, t) => {
2933
2941
  var d = n[u], f = null;
2934
2942
  d.intersection(b).length == 0 && (f = d.children());
2935
2943
  var p = void 0, v = d.layoutDimensions({ nodeDimensionsIncludeLabels: c.nodeDimensionsIncludeLabels });
2936
- if (d.outerWidth() != null && d.outerHeight() != null) if (c.randomize) if (!d.isParent()) p = t.add(new a(i.graphManager, new o(h[m.get(d.id())] - v.w / 2, g[m.get(d.id())] - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2937
- else {
2938
- var x = r.calcBoundingBox(d, h, g, m);
2939
- p = d.intersection(b).length == 0 ? t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(x.width, x.height))) : t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(parseFloat(v.w), parseFloat(v.h))));
2940
- }
2941
- else p = t.add(new a(i.graphManager, new o(d.position("x") - v.w / 2, d.position("y") - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2942
- else p = t.add(new a(this.graphManager));
2944
+ if (d.outerWidth() != null && d.outerHeight() != null) {
2945
+ if (c.randomize) {
2946
+ if (!d.isParent()) p = t.add(new a(i.graphManager, new o(h[m.get(d.id())] - v.w / 2, g[m.get(d.id())] - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2947
+ else {
2948
+ var x = r.calcBoundingBox(d, h, g, m);
2949
+ p = d.intersection(b).length == 0 ? t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(x.width, x.height))) : t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(parseFloat(v.w), parseFloat(v.h))));
2950
+ }
2951
+ } else p = t.add(new a(i.graphManager, new o(d.position("x") - v.w / 2, d.position("y") - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2952
+ } else p = t.add(new a(this.graphManager));
2943
2953
  if (p.id = d.data("id"), p.nodeRepulsion = y(c.nodeRepulsion, d), p.paddingLeft = parseInt(d.css("padding")), p.paddingTop = parseInt(d.css("padding")), p.paddingRight = parseInt(d.css("padding")), p.paddingBottom = parseInt(d.css("padding")), c.nodeDimensionsIncludeLabels && (p.labelWidth = d.boundingBox({
2944
2954
  includeLabels: !0,
2945
2955
  includeNodes: !1,
@@ -2961,11 +2971,11 @@ var D = /* @__PURE__ */ e(((e, t) => {
2961
2971
  f.id = s.id(), f.idealLength = y(e.idealEdgeLength, s), f.edgeElasticity = y(e.edgeElasticity, s), i += f.idealLength, a++;
2962
2972
  }
2963
2973
  }
2964
- e.idealEdgeLength != null && (a > 0 ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = i / a : v(e.idealEdgeLength) ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = 50 : u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2974
+ e.idealEdgeLength != null && (u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = a > 0 ? i / a : v(e.idealEdgeLength) ? 50 : e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2965
2975
  }, C = function(e, t) {
2966
2976
  t.fixedNodeConstraint && (e.constraints.fixedNodeConstraint = t.fixedNodeConstraint), t.alignmentConstraint && (e.constraints.alignmentConstraint = t.alignmentConstraint), t.relativePlacementConstraint && (e.constraints.relativePlacementConstraint = t.relativePlacementConstraint);
2967
2977
  };
2968
- e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), e.quality == "proof" ? c.QUALITY = 2 : c.QUALITY = 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (e.randomize ? u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint ? u.TREE_REDUCTION_ON_INCREMENTAL = !1 : u.TREE_REDUCTION_ON_INCREMENTAL = !0;
2978
+ e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), c.QUALITY = e.quality == "proof" ? 2 : 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !!e.randomize, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), u.TREE_REDUCTION_ON_INCREMENTAL = !(e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint);
2969
2979
  var w = new i(), T = w.newGraphManager();
2970
2980
  return x(T.addRoot(), r.getTopMostNodes(f), w, e), S(w, T, p), C(w, e), w.runLayout(), _;
2971
2981
  } };
@@ -3037,132 +3047,137 @@ var D = /* @__PURE__ */ e(((e, t) => {
3037
3047
  var e = this, t = this.options, n = t.cy, r = t.eles, i = [], a = [], l = void 0, u = [];
3038
3048
  t.fixedNodeConstraint && (!Array.isArray(t.fixedNodeConstraint) || t.fixedNodeConstraint.length == 0) && (t.fixedNodeConstraint = void 0), t.alignmentConstraint && (t.alignmentConstraint.vertical && (!Array.isArray(t.alignmentConstraint.vertical) || t.alignmentConstraint.vertical.length == 0) && (t.alignmentConstraint.vertical = void 0), t.alignmentConstraint.horizontal && (!Array.isArray(t.alignmentConstraint.horizontal) || t.alignmentConstraint.horizontal.length == 0) && (t.alignmentConstraint.horizontal = void 0)), t.relativePlacementConstraint && (!Array.isArray(t.relativePlacementConstraint) || t.relativePlacementConstraint.length == 0) && (t.relativePlacementConstraint = void 0), (t.fixedNodeConstraint || t.alignmentConstraint || t.relativePlacementConstraint) && (t.tile = !1, t.packComponents = !1);
3039
3049
  var d = void 0, f = !1;
3040
- if (n.layoutUtilities && t.packComponents && (d = n.layoutUtilities("get"), d ||= n.layoutUtilities(), f = !0), r.nodes().length > 0) if (f) {
3041
- var p = o.getTopMostNodes(t.eles.nodes());
3042
- if (l = o.connectComponents(n, t.eles, p), l.forEach(function(e) {
3043
- var t = e.boundingBox();
3044
- u.push({
3045
- x: t.x1 + t.w / 2,
3046
- y: t.y1 + t.h / 2
3047
- });
3048
- }), t.randomize && l.forEach(function(e) {
3049
- t.eles = e, i.push(s(t));
3050
- }), t.quality == "default" || t.quality == "proof") {
3051
- var m = n.collection();
3052
- if (t.tile) {
3053
- var h = /* @__PURE__ */ new Map(), g = [], _ = [], v = 0, y = {
3054
- nodeIndexes: h,
3055
- xCoords: g,
3056
- yCoords: _
3057
- }, b = [];
3058
- if (l.forEach(function(e, t) {
3059
- e.edges().length == 0 && (e.nodes().forEach(function(t, n) {
3060
- m.merge(e.nodes()[n]), t.isParent() || (y.nodeIndexes.set(e.nodes()[n].id(), v++), y.xCoords.push(e.nodes()[0].position().x), y.yCoords.push(e.nodes()[0].position().y));
3061
- }), b.push(t));
3062
- }), m.length > 1) {
3063
- var x = m.boundingBox();
3064
- u.push({
3065
- x: x.x1 + x.w / 2,
3066
- y: x.y1 + x.h / 2
3067
- }), l.push(m), i.push(y);
3068
- for (var S = b.length - 1; S >= 0; S--) l.splice(b[S], 1), i.splice(b[S], 1), u.splice(b[S], 1);
3050
+ if (n.layoutUtilities && t.packComponents && (d = n.layoutUtilities("get"), d ||= n.layoutUtilities(), f = !0), r.nodes().length > 0) {
3051
+ if (f) {
3052
+ var p = o.getTopMostNodes(t.eles.nodes());
3053
+ if (l = o.connectComponents(n, t.eles, p), l.forEach(function(e) {
3054
+ var t = e.boundingBox();
3055
+ u.push({
3056
+ x: t.x1 + t.w / 2,
3057
+ y: t.y1 + t.h / 2
3058
+ });
3059
+ }), t.randomize && l.forEach(function(e) {
3060
+ t.eles = e, i.push(s(t));
3061
+ }), t.quality == "default" || t.quality == "proof") {
3062
+ var m = n.collection();
3063
+ if (t.tile) {
3064
+ var h = /* @__PURE__ */ new Map(), g = [], _ = [], v = 0, y = {
3065
+ nodeIndexes: h,
3066
+ xCoords: g,
3067
+ yCoords: _
3068
+ }, b = [];
3069
+ if (l.forEach(function(e, t) {
3070
+ e.edges().length == 0 && (e.nodes().forEach(function(t, n) {
3071
+ m.merge(e.nodes()[n]), t.isParent() || (y.nodeIndexes.set(e.nodes()[n].id(), v++), y.xCoords.push(e.nodes()[0].position().x), y.yCoords.push(e.nodes()[0].position().y));
3072
+ }), b.push(t));
3073
+ }), m.length > 1) {
3074
+ var x = m.boundingBox();
3075
+ u.push({
3076
+ x: x.x1 + x.w / 2,
3077
+ y: x.y1 + x.h / 2
3078
+ }), l.push(m), i.push(y);
3079
+ for (var S = b.length - 1; S >= 0; S--) l.splice(b[S], 1), i.splice(b[S], 1), u.splice(b[S], 1);
3080
+ }
3069
3081
  }
3070
- }
3071
- l.forEach(function(e, n) {
3072
- t.eles = e, a.push(c(t, i[n])), o.relocateComponent(u[n], a[n], t);
3073
- });
3074
- } else l.forEach(function(e, n) {
3075
- o.relocateComponent(u[n], i[n], t);
3076
- });
3077
- var C = /* @__PURE__ */ new Set();
3078
- if (l.length > 1) {
3079
- var w = [], T = r.filter(function(e) {
3080
- return e.css("display") == "none";
3082
+ l.forEach(function(e, n) {
3083
+ t.eles = e, a.push(c(t, i[n])), o.relocateComponent(u[n], a[n], t);
3084
+ });
3085
+ } else l.forEach(function(e, n) {
3086
+ o.relocateComponent(u[n], i[n], t);
3081
3087
  });
3082
- l.forEach(function(e, n) {
3083
- var r = void 0;
3084
- if (t.quality == "draft" && (r = i[n].nodeIndexes), e.nodes().not(T).length > 0) {
3085
- var s = {};
3086
- s.edges = [], s.nodes = [];
3087
- var c = void 0;
3088
- e.nodes().not(T).forEach(function(e) {
3089
- if (t.quality == "draft") if (!e.isParent()) c = r.get(e.id()), s.nodes.push({
3090
- x: i[n].xCoords[c] - e.boundingbox().w / 2,
3091
- y: i[n].yCoords[c] - e.boundingbox().h / 2,
3092
- width: e.boundingbox().w,
3093
- height: e.boundingbox().h
3094
- });
3095
- else {
3096
- var l = o.calcBoundingBox(e, i[n].xCoords, i[n].yCoords, r);
3097
- s.nodes.push({
3098
- x: l.topLeftX,
3099
- y: l.topLeftY,
3100
- width: l.width,
3101
- height: l.height
3102
- });
3103
- }
3104
- else a[n][e.id()] && s.nodes.push({
3105
- x: a[n][e.id()].getLeft(),
3106
- y: a[n][e.id()].getTop(),
3107
- width: a[n][e.id()].getWidth(),
3108
- height: a[n][e.id()].getHeight()
3109
- });
3110
- }), e.edges().forEach(function(e) {
3111
- var c = e.source(), l = e.target();
3112
- if (c.css("display") != "none" && l.css("display") != "none") if (t.quality == "draft") {
3113
- var u = r.get(c.id()), d = r.get(l.id()), f = [], p = [];
3114
- if (c.isParent()) {
3115
- var m = o.calcBoundingBox(c, i[n].xCoords, i[n].yCoords, r);
3116
- f.push(m.topLeftX + m.width / 2), f.push(m.topLeftY + m.height / 2);
3117
- } else f.push(i[n].xCoords[u]), f.push(i[n].yCoords[u]);
3118
- if (l.isParent()) {
3119
- var h = o.calcBoundingBox(l, i[n].xCoords, i[n].yCoords, r);
3120
- p.push(h.topLeftX + h.width / 2), p.push(h.topLeftY + h.height / 2);
3121
- } else p.push(i[n].xCoords[d]), p.push(i[n].yCoords[d]);
3122
- s.edges.push({
3123
- startX: f[0],
3124
- startY: f[1],
3125
- endX: p[0],
3126
- endY: p[1]
3088
+ var C = /* @__PURE__ */ new Set();
3089
+ if (l.length > 1) {
3090
+ var w = [], T = r.filter(function(e) {
3091
+ return e.css("display") == "none";
3092
+ });
3093
+ l.forEach(function(e, n) {
3094
+ var r = void 0;
3095
+ if (t.quality == "draft" && (r = i[n].nodeIndexes), e.nodes().not(T).length > 0) {
3096
+ var s = {};
3097
+ s.edges = [], s.nodes = [];
3098
+ var c = void 0;
3099
+ e.nodes().not(T).forEach(function(e) {
3100
+ if (t.quality == "draft") {
3101
+ if (!e.isParent()) c = r.get(e.id()), s.nodes.push({
3102
+ x: i[n].xCoords[c] - e.boundingbox().w / 2,
3103
+ y: i[n].yCoords[c] - e.boundingbox().h / 2,
3104
+ width: e.boundingbox().w,
3105
+ height: e.boundingbox().h
3106
+ });
3107
+ else {
3108
+ var l = o.calcBoundingBox(e, i[n].xCoords, i[n].yCoords, r);
3109
+ s.nodes.push({
3110
+ x: l.topLeftX,
3111
+ y: l.topLeftY,
3112
+ width: l.width,
3113
+ height: l.height
3114
+ });
3115
+ }
3116
+ } else a[n][e.id()] && s.nodes.push({
3117
+ x: a[n][e.id()].getLeft(),
3118
+ y: a[n][e.id()].getTop(),
3119
+ width: a[n][e.id()].getWidth(),
3120
+ height: a[n][e.id()].getHeight()
3127
3121
  });
3128
- } else a[n][c.id()] && a[n][l.id()] && s.edges.push({
3129
- startX: a[n][c.id()].getCenterX(),
3130
- startY: a[n][c.id()].getCenterY(),
3131
- endX: a[n][l.id()].getCenterX(),
3132
- endY: a[n][l.id()].getCenterY()
3133
- });
3134
- }), s.nodes.length > 0 && (w.push(s), C.add(n));
3135
- }
3136
- });
3137
- var E = d.packComponents(w, t.randomize).shifts;
3138
- if (t.quality == "draft") i.forEach(function(e, t) {
3139
- var n = e.xCoords.map(function(e) {
3140
- return e + E[t].dx;
3141
- }), r = e.yCoords.map(function(e) {
3142
- return e + E[t].dy;
3122
+ }), e.edges().forEach(function(e) {
3123
+ var c = e.source(), l = e.target();
3124
+ if (c.css("display") != "none" && l.css("display") != "none") {
3125
+ if (t.quality == "draft") {
3126
+ var u = r.get(c.id()), d = r.get(l.id()), f = [], p = [];
3127
+ if (c.isParent()) {
3128
+ var m = o.calcBoundingBox(c, i[n].xCoords, i[n].yCoords, r);
3129
+ f.push(m.topLeftX + m.width / 2), f.push(m.topLeftY + m.height / 2);
3130
+ } else f.push(i[n].xCoords[u]), f.push(i[n].yCoords[u]);
3131
+ if (l.isParent()) {
3132
+ var h = o.calcBoundingBox(l, i[n].xCoords, i[n].yCoords, r);
3133
+ p.push(h.topLeftX + h.width / 2), p.push(h.topLeftY + h.height / 2);
3134
+ } else p.push(i[n].xCoords[d]), p.push(i[n].yCoords[d]);
3135
+ s.edges.push({
3136
+ startX: f[0],
3137
+ startY: f[1],
3138
+ endX: p[0],
3139
+ endY: p[1]
3140
+ });
3141
+ } else a[n][c.id()] && a[n][l.id()] && s.edges.push({
3142
+ startX: a[n][c.id()].getCenterX(),
3143
+ startY: a[n][c.id()].getCenterY(),
3144
+ endX: a[n][l.id()].getCenterX(),
3145
+ endY: a[n][l.id()].getCenterY()
3146
+ });
3147
+ }
3148
+ }), s.nodes.length > 0 && (w.push(s), C.add(n));
3149
+ }
3143
3150
  });
3144
- e.xCoords = n, e.yCoords = r;
3145
- });
3146
- else {
3147
- var D = 0;
3148
- C.forEach(function(e) {
3149
- Object.keys(a[e]).forEach(function(t) {
3150
- var n = a[e][t];
3151
- n.setCenter(n.getCenterX() + E[D].dx, n.getCenterY() + E[D].dy);
3152
- }), D++;
3151
+ var E = d.packComponents(w, t.randomize).shifts;
3152
+ if (t.quality == "draft") i.forEach(function(e, t) {
3153
+ var n = e.xCoords.map(function(e) {
3154
+ return e + E[t].dx;
3155
+ }), r = e.yCoords.map(function(e) {
3156
+ return e + E[t].dy;
3157
+ });
3158
+ e.xCoords = n, e.yCoords = r;
3153
3159
  });
3160
+ else {
3161
+ var D = 0;
3162
+ C.forEach(function(e) {
3163
+ Object.keys(a[e]).forEach(function(t) {
3164
+ var n = a[e][t];
3165
+ n.setCenter(n.getCenterX() + E[D].dx, n.getCenterY() + E[D].dy);
3166
+ }), D++;
3167
+ });
3168
+ }
3154
3169
  }
3170
+ } else {
3171
+ var O = t.eles.boundingBox();
3172
+ if (u.push({
3173
+ x: O.x1 + O.w / 2,
3174
+ y: O.y1 + O.h / 2
3175
+ }), t.randomize) {
3176
+ var k = s(t);
3177
+ i.push(k);
3178
+ }
3179
+ t.quality == "default" || t.quality == "proof" ? (a.push(c(t, i[0])), o.relocateComponent(u[0], a[0], t)) : o.relocateComponent(u[0], i[0], t);
3155
3180
  }
3156
- } else {
3157
- var O = t.eles.boundingBox();
3158
- if (u.push({
3159
- x: O.x1 + O.w / 2,
3160
- y: O.y1 + O.h / 2
3161
- }), t.randomize) {
3162
- var k = s(t);
3163
- i.push(k);
3164
- }
3165
- t.quality == "default" || t.quality == "proof" ? (a.push(c(t, i[0])), o.relocateComponent(u[0], a[0], t)) : o.relocateComponent(u[0], i[0], t);
3166
3181
  }
3167
3182
  var A = function(e, n) {
3168
3183
  if (t.quality == "default" || t.quality == "proof") {
@@ -3180,22 +3195,21 @@ var D = /* @__PURE__ */ e(((e, t) => {
3180
3195
  x: r.x,
3181
3196
  y: r.y
3182
3197
  };
3183
- } else {
3184
- var c = void 0;
3185
- return i.forEach(function(t) {
3186
- var n = t.nodeIndexes.get(e.id());
3187
- n != null && (c = {
3188
- x: t.xCoords[n],
3189
- y: t.yCoords[n]
3190
- });
3191
- }), c ??= {
3192
- x: e.position("x"),
3193
- y: e.position("y")
3194
- }, {
3195
- x: c.x,
3196
- y: c.y
3197
- };
3198
3198
  }
3199
+ var c = void 0;
3200
+ return i.forEach(function(t) {
3201
+ var n = t.nodeIndexes.get(e.id());
3202
+ n != null && (c = {
3203
+ x: t.xCoords[n],
3204
+ y: t.yCoords[n]
3205
+ });
3206
+ }), c ??= {
3207
+ x: e.position("x"),
3208
+ y: e.position("y")
3209
+ }, {
3210
+ x: c.x,
3211
+ y: c.y
3212
+ };
3199
3213
  };
3200
3214
  if (t.quality == "default" || t.quality == "proof" || t.randomize) {
3201
3215
  var j = o.calcParentsWithoutChildren(n, r), M = r.filter(function(e) {
@@ -3341,18 +3355,17 @@ var D = /* @__PURE__ */ e(((e, t) => {
3341
3355
  xCoords: f,
3342
3356
  yCoords: p
3343
3357
  }), U;
3344
- } else {
3345
- var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3346
- if (f.push(q.x), p.push(q.y), y == 2) {
3347
- var J = t.getElementById(ie.next().value).outerWidth();
3348
- f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3349
- }
3350
- return U = {
3351
- nodeIndexes: l,
3352
- xCoords: f,
3353
- yCoords: p
3354
- }, U;
3355
3358
  }
3359
+ var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3360
+ if (f.push(q.x), p.push(q.y), y == 2) {
3361
+ var J = t.getElementById(ie.next().value).outerWidth();
3362
+ f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3363
+ }
3364
+ return U = {
3365
+ nodeIndexes: l,
3366
+ xCoords: f,
3367
+ yCoords: p
3368
+ }, U;
3356
3369
  } };
3357
3370
  }),
3358
3371
  579: ((e, t, n) => {
@@ -4083,18 +4096,14 @@ function ge(e, r, i, a, o, { spatialMaps: s, groupAlignments: c }) {
4083
4096
  case d >= 0:
4084
4097
  d = 1;
4085
4098
  break;
4086
- case d < 0:
4087
- d = -1;
4088
- break;
4099
+ case d < 0: d = -1;
4089
4100
  }
4090
4101
  let f = (c - o) * (n - o) + (l - s) * (r - s);
4091
4102
  switch (!0) {
4092
4103
  case f >= 0:
4093
4104
  f = 1;
4094
4105
  break;
4095
- case f < 0:
4096
- f = -1;
4097
- break;
4106
+ case f < 0: f = -1;
4098
4107
  }
4099
4108
  return a = Math.abs(a) * d, i *= f, {
4100
4109
  distances: a,