@vunk/plus 1.10.0 → 1.10.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 (312) hide show
  1. package/components/bubble-list/index.css +0 -22
  2. package/components/bubble-list/index.mjs +413 -9
  3. package/components/bubble-list/src/core/index.vue.d.ts +57 -0
  4. package/components/bubble-list/src/index.vue.d.ts +57 -0
  5. package/components/chat-independent/src/index.vue.d.ts +57 -0
  6. package/components/drawer/index.mjs +1 -1
  7. package/components/index3.mjs +20 -79450
  8. package/components/scrollbar/index.mjs +89 -15
  9. package/components/scrollbar/src/bar.d.ts +4 -0
  10. package/components/scrollbar/src/bar.vue.d.ts +26 -0
  11. package/components/scrollbar/src/index.vue.d.ts +57 -0
  12. package/components/scrollbar/src/thumb.d.ts +4 -0
  13. package/components/scrollbar/src/thumb.vue.d.ts +13 -0
  14. package/components/scrollbar/src/types.d.ts +5 -1
  15. package/components/tables-v1/src/ctx.d.ts +2 -2
  16. package/components/tables-v1/src/index.vue.d.ts +6 -6
  17. package/components/tables-v1-checkbox/src/ctx.d.ts +2 -2
  18. package/components/tables-v1-checkbox/src/index.vue.d.ts +12 -12
  19. package/components/text/src/ctx.d.ts +1 -1
  20. package/components/text/src/index.vue.d.ts +2 -2
  21. package/components/xgplayer/index.mjs +2 -16357
  22. package/index.css +0 -22
  23. package/package.json +1 -1
  24. package/components/_baseUniq-BXtq6_NW.mjs +0 -239
  25. package/components/abap-B7h4dtBh.mjs +0 -6
  26. package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
  27. package/components/ada-BZS802Se.mjs +0 -6
  28. package/components/andromeeda-CrngpmZk.mjs +0 -3
  29. package/components/apache-D4roVlsU.mjs +0 -6
  30. package/components/apex-D6mfw0H5.mjs +0 -6
  31. package/components/apl-DDK-VObo.mjs +0 -18
  32. package/components/applescript-C43Knf0G.mjs +0 -6
  33. package/components/ara-DRBH84ND.mjs +0 -6
  34. package/components/arc-Js_tyW10.mjs +0 -131
  35. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
  36. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
  37. package/components/asm-3tg4MVib.mjs +0 -6
  38. package/components/astro-v4FYbRud.mjs +0 -19
  39. package/components/aurora-x-wJ4-eM2h.mjs +0 -3
  40. package/components/awk-ChreaG-G.mjs +0 -6
  41. package/components/ayu-dark-BEKp3oqs.mjs +0 -3
  42. package/components/ballerina-B0yt0TYU.mjs +0 -6
  43. package/components/batch-Ce_EX3Sx.mjs +0 -14
  44. package/components/beancount-BRIsdQEB.mjs +0 -6
  45. package/components/berry-Brv4WWdL.mjs +0 -14
  46. package/components/bibtex-BLeFwAes.mjs +0 -6
  47. package/components/bicep-BVrgfErX.mjs +0 -6
  48. package/components/blade-By3Sw_Ex.mjs +0 -22
  49. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
  50. package/components/c-C4VtT7JA.mjs +0 -6
  51. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
  52. package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
  53. package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
  54. package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
  55. package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
  56. package/components/cdc-30ktANo3.mjs +0 -14
  57. package/components/channel-BBZy6zOT.mjs +0 -7
  58. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
  59. package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
  60. package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
  61. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
  62. package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
  63. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
  64. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
  65. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
  66. package/components/clarity-6uBl6Vpb.mjs +0 -6
  67. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
  68. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
  69. package/components/clojure-COBRmwo8.mjs +0 -14
  70. package/components/clone-CEJtuQzg.mjs +0 -8
  71. package/components/cmake-CDfQILeU.mjs +0 -6
  72. package/components/cobol-BOOIiISO.mjs +0 -13
  73. package/components/coffee-DO_RGoZp.mjs +0 -9
  74. package/components/cpp-DAK8ktHO.mjs +0 -25
  75. package/components/crystal-CBGbbyVp.mjs +0 -19
  76. package/components/cs-h3ksD6-P.mjs +0 -14
  77. package/components/css-BtVcDqlU.mjs +0 -6
  78. package/components/cue-BFSVLV6N.mjs +0 -6
  79. package/components/cypher-Dl2CXoXF.mjs +0 -14
  80. package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
  81. package/components/d-9qSZPw74.mjs +0 -6
  82. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
  83. package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
  84. package/components/dart-CCSsOg9l.mjs +0 -6
  85. package/components/dax-CvsmLV-B.mjs +0 -6
  86. package/components/defaultLocale-DVr69WTU.mjs +0 -202
  87. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
  88. package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
  89. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
  90. package/components/diff-BEdzuHlE.mjs +0 -6
  91. package/components/dockerfile-B3DP334t.mjs +0 -14
  92. package/components/dracula-B8-AVrwI.mjs +0 -3
  93. package/components/dracula-soft-BHeefow7.mjs +0 -3
  94. package/components/dream-maker-CNLQpoF-.mjs +0 -6
  95. package/components/elixir-0rTCSSfp.mjs +0 -11
  96. package/components/elm-BhwiZPvf.mjs +0 -10
  97. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
  98. package/components/erb-Lra8TlYM.mjs +0 -27
  99. package/components/erlang-D2NNgvtR.mjs +0 -17
  100. package/components/everforest-dark-Cg1xdODP.mjs +0 -3
  101. package/components/everforest-light-BmTD3bxe.mjs +0 -3
  102. package/components/fish-BU5HSdZy.mjs +0 -6
  103. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
  104. package/components/fs-CdBSddpF.mjs +0 -17
  105. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
  106. package/components/gdresource-CAbkn6H_.mjs +0 -11
  107. package/components/gdscript-Be_cubqt.mjs +0 -6
  108. package/components/gdshader-BEzE4j_3.mjs +0 -6
  109. package/components/gherkin-xCNF9gh8.mjs +0 -6
  110. package/components/git-commit-PP9xCApN.mjs +0 -9
  111. package/components/git-rebase-DqdGofLo.mjs +0 -9
  112. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
  113. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
  114. package/components/github-dark-O22yVQaY.mjs +0 -3
  115. package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
  116. package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
  117. package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
  118. package/components/github-light-BTbR9xVK.mjs +0 -3
  119. package/components/github-light-default-DWEonwFe.mjs +0 -3
  120. package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
  121. package/components/glimmer-js-BkPYTyD4.mjs +0 -23
  122. package/components/glsl-CGsiYPcu.mjs +0 -9
  123. package/components/gnuplot-tV8vezdE.mjs +0 -6
  124. package/components/go-CBmVHZBz.mjs +0 -6
  125. package/components/graph-3zJxsO-i.mjs +0 -425
  126. package/components/graphql-D4pgneW3.mjs +0 -15
  127. package/components/groovy-Bn4MhXgW.mjs +0 -6
  128. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
  129. package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
  130. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
  131. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
  132. package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
  133. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
  134. package/components/gts-d3WsqAZM.mjs +0 -23
  135. package/components/hack-CwaBuF5l.mjs +0 -13
  136. package/components/haml-gLijj4rW.mjs +0 -11
  137. package/components/hbs-CFi5SpI3.mjs +0 -23
  138. package/components/hcl-axoq0Ycu.mjs +0 -6
  139. package/components/hjson-I7LcauIB.mjs +0 -6
  140. package/components/hlsl-TRzjajlb.mjs +0 -6
  141. package/components/houston-CF_ws8Cq.mjs +0 -3
  142. package/components/hs-DXSGqUFF.mjs +0 -14
  143. package/components/html-CLq-n30c.mjs +0 -11
  144. package/components/html-derivative-C8POX8SL.mjs +0 -9
  145. package/components/http-BYUKZ6kX.mjs +0 -20
  146. package/components/imba-C4923lSV.mjs +0 -6
  147. package/components/index4.mjs +0 -78
  148. package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
  149. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
  150. package/components/init-ZxktEp_H.mjs +0 -15
  151. package/components/java-BfXh-0uJ.mjs +0 -6
  152. package/components/jinja-html-BmW4v_vu.mjs +0 -11
  153. package/components/jison-C9kAT_Oj.mjs +0 -9
  154. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
  155. package/components/js-CN_xSsjU.mjs +0 -14
  156. package/components/json-TjWBGEk1.mjs +0 -6
  157. package/components/json5-DCGCKrmX.mjs +0 -6
  158. package/components/jsonc-DLVLp8id.mjs +0 -6
  159. package/components/jsonl-B-R_pDGg.mjs +0 -6
  160. package/components/jsonnet-Cs8BnnC6.mjs +0 -6
  161. package/components/jssm-D_YBQ_cM.mjs +0 -14
  162. package/components/jsx-BPmvoin2.mjs +0 -6
  163. package/components/julia-C-JjBobP.mjs +0 -19
  164. package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
  165. package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
  166. package/components/kanagawa-wave-DExoagcR.mjs +0 -3
  167. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
  168. package/components/kotlin-BM2ZNTMh.mjs +0 -6
  169. package/components/kusto-D9MF7CZf.mjs +0 -14
  170. package/components/laserwave-DF03wMlf.mjs +0 -3
  171. package/components/latex-BsqkLZB_.mjs +0 -10
  172. package/components/layout-sGZIJplX.mjs +0 -2043
  173. package/components/less-BAzLMJNR.mjs +0 -6
  174. package/components/light-plus-DS08Xg5J.mjs +0 -3
  175. package/components/linear-DqgVh5FN.mjs +0 -336
  176. package/components/liquid-f2VHt0dg.mjs +0 -15
  177. package/components/lisp-DAq1kaby.mjs +0 -6
  178. package/components/logo-D9l7oEJ8.mjs +0 -6
  179. package/components/lua-CH3ttzl_.mjs +0 -9
  180. package/components/makefile-D2qLe7q0.mjs +0 -14
  181. package/components/marko-DwRyI_--.mjs +0 -15
  182. package/components/material-theme-B8B2U48Q.mjs +0 -3
  183. package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
  184. package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
  185. package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
  186. package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
  187. package/components/matlab-7XHduepk.mjs +0 -6
  188. package/components/md-BIvDPr-W.mjs +0 -14
  189. package/components/mdc-Rx6hWSHn.mjs +0 -16
  190. package/components/mdx-D5wExp-O.mjs +0 -6
  191. package/components/mermaid-CUjtoYEe.mjs +0 -6
  192. package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
  193. package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
  194. package/components/min-BngCxx8g.mjs +0 -109
  195. package/components/min-dark-BNaN9fWk.mjs +0 -3
  196. package/components/min-light-CMrjentn.mjs +0 -3
  197. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
  198. package/components/mojo-CrbF881p.mjs +0 -6
  199. package/components/monokai-DelygWXa.mjs +0 -3
  200. package/components/narrat-DOwkIbBe.mjs +0 -14
  201. package/components/nf-DHfvJ2gH.mjs +0 -14
  202. package/components/nginx-B_jWsywZ.mjs +0 -10
  203. package/components/night-owl-DSS199ra.mjs +0 -3
  204. package/components/nim-yzbnZKJd.mjs +0 -22
  205. package/components/nix--3K2gyjg.mjs +0 -6
  206. package/components/nord-CvDbBq5M.mjs +0 -3
  207. package/components/objective-c-DkOBZg1J.mjs +0 -14
  208. package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
  209. package/components/ocaml-B1kfGk9Y.mjs +0 -6
  210. package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
  211. package/components/one-light-BwwAsfsj.mjs +0 -3
  212. package/components/ordinal-DSZU4PqD.mjs +0 -76
  213. package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
  214. package/components/pascal-CU8Kjkr_.mjs +0 -6
  215. package/components/perl-FH6su6vZ.mjs +0 -18
  216. package/components/php-Dnl1TfYH.mjs +0 -20
  217. package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
  218. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
  219. package/components/plastic-BjwMpBc0.mjs +0 -3
  220. package/components/plsql-B3Na24V4.mjs +0 -6
  221. package/components/poimandres-ChWyhPrn.mjs +0 -3
  222. package/components/postcss-kj1IbjVd.mjs +0 -6
  223. package/components/powerquery-B-e1fO-k.mjs +0 -6
  224. package/components/prisma-bmxcSDxq.mjs +0 -6
  225. package/components/prolog-BT9GCzqD.mjs +0 -6
  226. package/components/properties-D6yKO1eW.mjs +0 -14
  227. package/components/proto-BIXM0k1a.mjs +0 -6
  228. package/components/ps1-aFyNx8UH.mjs +0 -18
  229. package/components/pug-BrOx0bSt.mjs +0 -21
  230. package/components/puppet-N15G4Usj.mjs +0 -6
  231. package/components/purescript-DrwsEYNH.mjs +0 -6
  232. package/components/python-D2s92fRP.mjs +0 -14
  233. package/components/ql-DTm-NCRo.mjs +0 -14
  234. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
  235. package/components/r-oprfD2-9.mjs +0 -6
  236. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
  237. package/components/raku-xArQd_rF.mjs +0 -14
  238. package/components/razor-BoXCAbWQ.mjs +0 -13
  239. package/components/red-DByOl5N0.mjs +0 -3
  240. package/components/reg-CULnG2WX.mjs +0 -6
  241. package/components/rel-CHRwzjd4.mjs +0 -6
  242. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
  243. package/components/riscv-BNQ9cVpw.mjs +0 -6
  244. package/components/rose-pine-LL9gXmP2.mjs +0 -3
  245. package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
  246. package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
  247. package/components/rst-bEtD1v7N.mjs +0 -36
  248. package/components/ruby-BmfBy6EV.mjs +0 -44
  249. package/components/rust-Bf_fdNdL.mjs +0 -14
  250. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
  251. package/components/sas-BLBgC3TA.mjs +0 -9
  252. package/components/sass-BheygBdF.mjs +0 -6
  253. package/components/scala-B-_7vFVn.mjs +0 -6
  254. package/components/scheme-BSHdPinv.mjs +0 -6
  255. package/components/scss-Dq-LbI_c.mjs +0 -9
  256. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
  257. package/components/shaderlab-BOQRTiQi.mjs +0 -17
  258. package/components/shellsession-Cu3c0QAc.mjs +0 -17
  259. package/components/slack-dark-BEe10hxO.mjs +0 -3
  260. package/components/slack-ochin-BKmu9pBc.mjs +0 -3
  261. package/components/smalltalk-qxcGy4fT.mjs +0 -6
  262. package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
  263. package/components/solarized-dark-BBl5y5sR.mjs +0 -3
  264. package/components/solarized-light-DW9b_AY8.mjs +0 -3
  265. package/components/solidity-CewKZgp-.mjs +0 -6
  266. package/components/sparql-DswowMAp.mjs +0 -9
  267. package/components/splunk-gK6Iw_P9.mjs +0 -14
  268. package/components/sql-DzUuSofg.mjs +0 -6
  269. package/components/ssh-config-Bk_I5wDR.mjs +0 -6
  270. package/components/stata-Dl7wDdBE.mjs +0 -9
  271. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
  272. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
  273. package/components/stylus-qRNkxrFU.mjs +0 -14
  274. package/components/svelte-B9qv3vkS.mjs +0 -15
  275. package/components/swift-BRQRsam8.mjs +0 -6
  276. package/components/synthwave-84-CoUef9sh.mjs +0 -3
  277. package/components/system-verilog-BcESSvRn.mjs +0 -6
  278. package/components/tasl-DfOr2qHi.mjs +0 -6
  279. package/components/tcl-CTsc4-t7.mjs +0 -6
  280. package/components/tex-CumJx1zu.mjs +0 -9
  281. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
  282. package/components/tokyo-night-DjtLpAEY.mjs +0 -3
  283. package/components/toml-vHPzWDj6.mjs +0 -6
  284. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
  285. package/components/tsx-CmGGo4Hm.mjs +0 -6
  286. package/components/turtle-BnC7StHY.mjs +0 -6
  287. package/components/twig-0XKNpXN1.mjs +0 -35
  288. package/components/typescript-CgxwwAuC.mjs +0 -14
  289. package/components/v-Bmdjo9cy.mjs +0 -6
  290. package/components/vb-DuF6ZenW.mjs +0 -14
  291. package/components/verilog-CCb_iTfF.mjs +0 -6
  292. package/components/vesper-4Q1cEwPL.mjs +0 -3
  293. package/components/vhdl-DMqk4T2s.mjs +0 -6
  294. package/components/vimscript-aKp9YbYm.mjs +0 -18
  295. package/components/vitesse-black-BqNLki8b.mjs +0 -3
  296. package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
  297. package/components/vitesse-light-476zM4e6.mjs +0 -3
  298. package/components/vue-DVNNTw2l.mjs +0 -40
  299. package/components/vue-html-Cr5wciIP.mjs +0 -16
  300. package/components/vyper-DYedWgAE.mjs +0 -14
  301. package/components/wasm-BBh6f151.mjs +0 -6
  302. package/components/wasm-DDgzZJey.mjs +0 -7
  303. package/components/wenyan-BdqozpMZ.mjs +0 -6
  304. package/components/wgsl-Vo-hHVWH.mjs +0 -6
  305. package/components/wolfram-CRmjUoI4.mjs +0 -6
  306. package/components/xml-BMzZeaqs.mjs +0 -9
  307. package/components/xsl-CAhvzxWv.mjs +0 -10
  308. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
  309. package/components/yml-BhSrWWMS.mjs +0 -14
  310. package/components/zenscript-DFINJL6j.mjs +0 -6
  311. package/components/zig-CS4FMAZp.mjs +0 -6
  312. package/components/zsh-hcK4TBd7.mjs +0 -26
@@ -1,707 +0,0 @@
1
- import { _ as __name, au as markers_default, av as clear2, aw as clear, ax as clear$1, l as log, c as getConfig2, ay as updateNodeBounds, az as setNodeElem, ai as insertNode, an as getSubGraphTitleMargins, aj as positionNode, ah as insertCluster, aA as insertEdge, aB as positionEdgeLabel, aC as insertEdgeLabel } from './mermaid.core-CAqkCmS1.mjs';
2
- import { G as Graph } from './graph-3zJxsO-i.mjs';
3
- import { l as layout } from './layout-sGZIJplX.mjs';
4
- import { B as isUndefined } from './index3.mjs';
5
- import { c as clone } from './clone-CEJtuQzg.mjs';
6
- import { m as map } from './min-BngCxx8g.mjs';
7
- import 'vue';
8
- import '@vunk/plus/components/bubble-templates';
9
- import 'element-plus';
10
- import './index4.mjs';
11
- import '@vueuse/core';
12
- import '@vunk/plus/components/scrollbar';
13
- import './_plugin-vue_export-helper.mjs';
14
- import '@vunk/shared/function';
15
- import '@vunk/plus/components/agent-chat-provider';
16
- import './_baseUniq-BXtq6_NW.mjs';
17
-
18
- function write(g) {
19
- var json = {
20
- options: {
21
- directed: g.isDirected(),
22
- multigraph: g.isMultigraph(),
23
- compound: g.isCompound()
24
- },
25
- nodes: writeNodes(g),
26
- edges: writeEdges(g)
27
- };
28
- if (!isUndefined(g.graph())) {
29
- json.value = clone(g.graph());
30
- }
31
- return json;
32
- }
33
- function writeNodes(g) {
34
- return map(g.nodes(), function(v) {
35
- var nodeValue = g.node(v);
36
- var parent = g.parent(v);
37
- var node = { v };
38
- if (!isUndefined(nodeValue)) {
39
- node.value = nodeValue;
40
- }
41
- if (!isUndefined(parent)) {
42
- node.parent = parent;
43
- }
44
- return node;
45
- });
46
- }
47
- function writeEdges(g) {
48
- return map(g.edges(), function(e) {
49
- var edgeValue = g.edge(e);
50
- var edge = { v: e.v, w: e.w };
51
- if (!isUndefined(e.name)) {
52
- edge.name = e.name;
53
- }
54
- if (!isUndefined(edgeValue)) {
55
- edge.value = edgeValue;
56
- }
57
- return edge;
58
- });
59
- }
60
- var clusterDb = /* @__PURE__ */ new Map();
61
- var descendants = /* @__PURE__ */ new Map();
62
- var parents = /* @__PURE__ */ new Map();
63
- var clear4 = /* @__PURE__ */ __name(() => {
64
- descendants.clear();
65
- parents.clear();
66
- clusterDb.clear();
67
- }, "clear");
68
- var isDescendant = /* @__PURE__ */ __name((id, ancestorId) => {
69
- const ancestorDescendants = descendants.get(ancestorId) || [];
70
- log.trace("In isDescendant", ancestorId, " ", id, " = ", ancestorDescendants.includes(id));
71
- return ancestorDescendants.includes(id);
72
- }, "isDescendant");
73
- var edgeInCluster = /* @__PURE__ */ __name((edge, clusterId) => {
74
- const clusterDescendants = descendants.get(clusterId) || [];
75
- log.info("Descendants of ", clusterId, " is ", clusterDescendants);
76
- log.info("Edge is ", edge);
77
- if (edge.v === clusterId || edge.w === clusterId) {
78
- return false;
79
- }
80
- if (!clusterDescendants) {
81
- log.debug("Tilt, ", clusterId, ",not in descendants");
82
- return false;
83
- }
84
- return clusterDescendants.includes(edge.v) || isDescendant(edge.v, clusterId) || isDescendant(edge.w, clusterId) || clusterDescendants.includes(edge.w);
85
- }, "edgeInCluster");
86
- var copy = /* @__PURE__ */ __name((clusterId, graph, newGraph, rootId) => {
87
- log.warn(
88
- "Copying children of ",
89
- clusterId,
90
- "root",
91
- rootId,
92
- "data",
93
- graph.node(clusterId),
94
- rootId
95
- );
96
- const nodes = graph.children(clusterId) || [];
97
- if (clusterId !== rootId) {
98
- nodes.push(clusterId);
99
- }
100
- log.warn("Copying (nodes) clusterId", clusterId, "nodes", nodes);
101
- nodes.forEach((node) => {
102
- if (graph.children(node).length > 0) {
103
- copy(node, graph, newGraph, rootId);
104
- } else {
105
- const data = graph.node(node);
106
- log.info("cp ", node, " to ", rootId, " with parent ", clusterId);
107
- newGraph.setNode(node, data);
108
- if (rootId !== graph.parent(node)) {
109
- log.warn("Setting parent", node, graph.parent(node));
110
- newGraph.setParent(node, graph.parent(node));
111
- }
112
- if (clusterId !== rootId && node !== clusterId) {
113
- log.debug("Setting parent", node, clusterId);
114
- newGraph.setParent(node, clusterId);
115
- } else {
116
- log.info("In copy ", clusterId, "root", rootId, "data", graph.node(clusterId), rootId);
117
- log.debug(
118
- "Not Setting parent for node=",
119
- node,
120
- "cluster!==rootId",
121
- clusterId !== rootId,
122
- "node!==clusterId",
123
- node !== clusterId
124
- );
125
- }
126
- const edges = graph.edges(node);
127
- log.debug("Copying Edges", edges);
128
- edges.forEach((edge) => {
129
- log.info("Edge", edge);
130
- const data2 = graph.edge(edge.v, edge.w, edge.name);
131
- log.info("Edge data", data2, rootId);
132
- try {
133
- if (edgeInCluster(edge, rootId)) {
134
- log.info("Copying as ", edge.v, edge.w, data2, edge.name);
135
- newGraph.setEdge(edge.v, edge.w, data2, edge.name);
136
- log.info("newGraph edges ", newGraph.edges(), newGraph.edge(newGraph.edges()[0]));
137
- } else {
138
- log.info(
139
- "Skipping copy of edge ",
140
- edge.v,
141
- "-->",
142
- edge.w,
143
- " rootId: ",
144
- rootId,
145
- " clusterId:",
146
- clusterId
147
- );
148
- }
149
- } catch (e) {
150
- log.error(e);
151
- }
152
- });
153
- }
154
- log.debug("Removing node", node);
155
- graph.removeNode(node);
156
- });
157
- }, "copy");
158
- var extractDescendants = /* @__PURE__ */ __name((id, graph) => {
159
- const children = graph.children(id);
160
- let res = [...children];
161
- for (const child of children) {
162
- parents.set(child, id);
163
- res = [...res, ...extractDescendants(child, graph)];
164
- }
165
- return res;
166
- }, "extractDescendants");
167
- var findCommonEdges = /* @__PURE__ */ __name((graph, id1, id2) => {
168
- const edges1 = graph.edges().filter((edge) => edge.v === id1 || edge.w === id1);
169
- const edges2 = graph.edges().filter((edge) => edge.v === id2 || edge.w === id2);
170
- const edges1Prim = edges1.map((edge) => {
171
- return { v: edge.v === id1 ? id2 : edge.v, w: edge.w === id1 ? id1 : edge.w };
172
- });
173
- const edges2Prim = edges2.map((edge) => {
174
- return { v: edge.v, w: edge.w };
175
- });
176
- const result = edges1Prim.filter((edgeIn1) => {
177
- return edges2Prim.some((edge) => edgeIn1.v === edge.v && edgeIn1.w === edge.w);
178
- });
179
- return result;
180
- }, "findCommonEdges");
181
- var findNonClusterChild = /* @__PURE__ */ __name((id, graph, clusterId) => {
182
- const children = graph.children(id);
183
- log.trace("Searching children of id ", id, children);
184
- if (children.length < 1) {
185
- return id;
186
- }
187
- let reserve;
188
- for (const child of children) {
189
- const _id = findNonClusterChild(child, graph, clusterId);
190
- const commonEdges = findCommonEdges(graph, clusterId, _id);
191
- if (_id) {
192
- if (commonEdges.length > 0) {
193
- reserve = _id;
194
- } else {
195
- return _id;
196
- }
197
- }
198
- }
199
- return reserve;
200
- }, "findNonClusterChild");
201
- var getAnchorId = /* @__PURE__ */ __name((id) => {
202
- if (!clusterDb.has(id)) {
203
- return id;
204
- }
205
- if (!clusterDb.get(id).externalConnections) {
206
- return id;
207
- }
208
- if (clusterDb.has(id)) {
209
- return clusterDb.get(id).id;
210
- }
211
- return id;
212
- }, "getAnchorId");
213
- var adjustClustersAndEdges = /* @__PURE__ */ __name((graph, depth) => {
214
- if (!graph || depth > 10) {
215
- log.debug("Opting out, no graph ");
216
- return;
217
- } else {
218
- log.debug("Opting in, graph ");
219
- }
220
- graph.nodes().forEach(function(id) {
221
- const children = graph.children(id);
222
- if (children.length > 0) {
223
- log.warn(
224
- "Cluster identified",
225
- id,
226
- " Replacement id in edges: ",
227
- findNonClusterChild(id, graph, id)
228
- );
229
- descendants.set(id, extractDescendants(id, graph));
230
- clusterDb.set(id, { id: findNonClusterChild(id, graph, id), clusterData: graph.node(id) });
231
- }
232
- });
233
- graph.nodes().forEach(function(id) {
234
- const children = graph.children(id);
235
- const edges = graph.edges();
236
- if (children.length > 0) {
237
- log.debug("Cluster identified", id, descendants);
238
- edges.forEach((edge) => {
239
- const d1 = isDescendant(edge.v, id);
240
- const d2 = isDescendant(edge.w, id);
241
- if (d1 ^ d2) {
242
- log.warn("Edge: ", edge, " leaves cluster ", id);
243
- log.warn("Descendants of XXX ", id, ": ", descendants.get(id));
244
- clusterDb.get(id).externalConnections = true;
245
- }
246
- });
247
- } else {
248
- log.debug("Not a cluster ", id, descendants);
249
- }
250
- });
251
- for (let id of clusterDb.keys()) {
252
- const nonClusterChild = clusterDb.get(id).id;
253
- const parent = graph.parent(nonClusterChild);
254
- if (parent !== id && clusterDb.has(parent) && !clusterDb.get(parent).externalConnections) {
255
- clusterDb.get(id).id = parent;
256
- }
257
- }
258
- graph.edges().forEach(function(e) {
259
- const edge = graph.edge(e);
260
- log.warn("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e));
261
- log.warn("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(graph.edge(e)));
262
- let v = e.v;
263
- let w = e.w;
264
- log.warn(
265
- "Fix XXX",
266
- clusterDb,
267
- "ids:",
268
- e.v,
269
- e.w,
270
- "Translating: ",
271
- clusterDb.get(e.v),
272
- " --- ",
273
- clusterDb.get(e.w)
274
- );
275
- if (clusterDb.get(e.v) || clusterDb.get(e.w)) {
276
- log.warn("Fixing and trying - removing XXX", e.v, e.w, e.name);
277
- v = getAnchorId(e.v);
278
- w = getAnchorId(e.w);
279
- graph.removeEdge(e.v, e.w, e.name);
280
- if (v !== e.v) {
281
- const parent = graph.parent(v);
282
- clusterDb.get(parent).externalConnections = true;
283
- edge.fromCluster = e.v;
284
- }
285
- if (w !== e.w) {
286
- const parent = graph.parent(w);
287
- clusterDb.get(parent).externalConnections = true;
288
- edge.toCluster = e.w;
289
- }
290
- log.warn("Fix Replacing with XXX", v, w, e.name);
291
- graph.setEdge(v, w, edge, e.name);
292
- }
293
- });
294
- log.warn("Adjusted Graph", write(graph));
295
- extractor(graph, 0);
296
- log.trace(clusterDb);
297
- }, "adjustClustersAndEdges");
298
- var extractor = /* @__PURE__ */ __name((graph, depth) => {
299
- var _a, _b;
300
- log.warn("extractor - ", depth, write(graph), graph.children("D"));
301
- if (depth > 10) {
302
- log.error("Bailing out");
303
- return;
304
- }
305
- let nodes = graph.nodes();
306
- let hasChildren = false;
307
- for (const node of nodes) {
308
- const children = graph.children(node);
309
- hasChildren = hasChildren || children.length > 0;
310
- }
311
- if (!hasChildren) {
312
- log.debug("Done, no node has children", graph.nodes());
313
- return;
314
- }
315
- log.debug("Nodes = ", nodes, depth);
316
- for (const node of nodes) {
317
- log.debug(
318
- "Extracting node",
319
- node,
320
- clusterDb,
321
- clusterDb.has(node) && !clusterDb.get(node).externalConnections,
322
- !graph.parent(node),
323
- graph.node(node),
324
- graph.children("D"),
325
- " Depth ",
326
- depth
327
- );
328
- if (!clusterDb.has(node)) {
329
- log.debug("Not a cluster", node, depth);
330
- } else if (!clusterDb.get(node).externalConnections && graph.children(node) && graph.children(node).length > 0) {
331
- log.warn(
332
- "Cluster without external connections, without a parent and with children",
333
- node,
334
- depth
335
- );
336
- const graphSettings = graph.graph();
337
- let dir = graphSettings.rankdir === "TB" ? "LR" : "TB";
338
- if ((_b = (_a = clusterDb.get(node)) == null ? void 0 : _a.clusterData) == null ? void 0 : _b.dir) {
339
- dir = clusterDb.get(node).clusterData.dir;
340
- log.warn("Fixing dir", clusterDb.get(node).clusterData.dir, dir);
341
- }
342
- const clusterGraph = new Graph({
343
- multigraph: true,
344
- compound: true
345
- }).setGraph({
346
- rankdir: dir,
347
- nodesep: 50,
348
- ranksep: 50,
349
- marginx: 8,
350
- marginy: 8
351
- }).setDefaultEdgeLabel(function() {
352
- return {};
353
- });
354
- log.warn("Old graph before copy", write(graph));
355
- copy(node, graph, clusterGraph, node);
356
- graph.setNode(node, {
357
- clusterNode: true,
358
- id: node,
359
- clusterData: clusterDb.get(node).clusterData,
360
- label: clusterDb.get(node).label,
361
- graph: clusterGraph
362
- });
363
- log.warn("New graph after copy node: (", node, ")", write(clusterGraph));
364
- log.debug("Old graph after copy", write(graph));
365
- } else {
366
- log.warn(
367
- "Cluster ** ",
368
- node,
369
- " **not meeting the criteria !externalConnections:",
370
- !clusterDb.get(node).externalConnections,
371
- " no parent: ",
372
- !graph.parent(node),
373
- " children ",
374
- graph.children(node) && graph.children(node).length > 0,
375
- graph.children("D"),
376
- depth
377
- );
378
- log.debug(clusterDb);
379
- }
380
- }
381
- nodes = graph.nodes();
382
- log.warn("New list of nodes", nodes);
383
- for (const node of nodes) {
384
- const data = graph.node(node);
385
- log.warn(" Now next level", node, data);
386
- if (data == null ? void 0 : data.clusterNode) {
387
- extractor(data.graph, depth + 1);
388
- }
389
- }
390
- }, "extractor");
391
- var sorter = /* @__PURE__ */ __name((graph, nodes) => {
392
- if (nodes.length === 0) {
393
- return [];
394
- }
395
- let result = Object.assign([], nodes);
396
- nodes.forEach((node) => {
397
- const children = graph.children(node);
398
- const sorted = sorter(graph, children);
399
- result = [...result, ...sorted];
400
- });
401
- return result;
402
- }, "sorter");
403
- var sortNodesByHierarchy = /* @__PURE__ */ __name((graph) => sorter(graph, graph.children()), "sortNodesByHierarchy");
404
- var recursiveRender = /* @__PURE__ */ __name(async (_elem, graph, diagramType, id, parentCluster, siteConfig) => {
405
- log.warn("Graph in recursive render:XAX", write(graph), parentCluster);
406
- const dir = graph.graph().rankdir;
407
- log.trace("Dir in recursive render - dir:", dir);
408
- const elem = _elem.insert("g").attr("class", "root");
409
- if (!graph.nodes()) {
410
- log.info("No nodes found for", graph);
411
- } else {
412
- log.info("Recursive render XXX", graph.nodes());
413
- }
414
- if (graph.edges().length > 0) {
415
- log.info("Recursive edges", graph.edge(graph.edges()[0]));
416
- }
417
- const clusters = elem.insert("g").attr("class", "clusters");
418
- const edgePaths = elem.insert("g").attr("class", "edgePaths");
419
- const edgeLabels = elem.insert("g").attr("class", "edgeLabels");
420
- const nodes = elem.insert("g").attr("class", "nodes");
421
- await Promise.all(
422
- graph.nodes().map(async function(v) {
423
- const node = graph.node(v);
424
- if (parentCluster !== void 0) {
425
- const data = JSON.parse(JSON.stringify(parentCluster.clusterData));
426
- log.trace(
427
- "Setting data for parent cluster XXX\n Node.id = ",
428
- v,
429
- "\n data=",
430
- data.height,
431
- "\nParent cluster",
432
- parentCluster.height
433
- );
434
- graph.setNode(parentCluster.id, data);
435
- if (!graph.parent(v)) {
436
- log.trace("Setting parent", v, parentCluster.id);
437
- graph.setParent(v, parentCluster.id, data);
438
- }
439
- }
440
- log.info("(Insert) Node XXX" + v + ": " + JSON.stringify(graph.node(v)));
441
- if (node == null ? void 0 : node.clusterNode) {
442
- log.info("Cluster identified XBX", v, node.width, graph.node(v));
443
- const { ranksep, nodesep } = graph.graph();
444
- node.graph.setGraph({
445
- ...node.graph.graph(),
446
- ranksep: ranksep + 25,
447
- nodesep
448
- });
449
- const o = await recursiveRender(
450
- nodes,
451
- node.graph,
452
- diagramType,
453
- id,
454
- graph.node(v),
455
- siteConfig
456
- );
457
- const newEl = o.elem;
458
- updateNodeBounds(node, newEl);
459
- node.diff = o.diff || 0;
460
- log.info(
461
- "New compound node after recursive render XAX",
462
- v,
463
- "width",
464
- // node,
465
- node.width,
466
- "height",
467
- node.height
468
- // node.x,
469
- // node.y
470
- );
471
- setNodeElem(newEl, node);
472
- } else {
473
- if (graph.children(v).length > 0) {
474
- log.trace(
475
- "Cluster - the non recursive path XBX",
476
- v,
477
- node.id,
478
- node,
479
- node.width,
480
- "Graph:",
481
- graph
482
- );
483
- log.trace(findNonClusterChild(node.id, graph));
484
- clusterDb.set(node.id, { id: findNonClusterChild(node.id, graph), node });
485
- } else {
486
- log.trace("Node - the non recursive path XAX", v, nodes, graph.node(v), dir);
487
- await insertNode(nodes, graph.node(v), { config: siteConfig, dir });
488
- }
489
- }
490
- })
491
- );
492
- const processEdges = /* @__PURE__ */ __name(async () => {
493
- const edgePromises = graph.edges().map(async function(e) {
494
- const edge = graph.edge(e.v, e.w, e.name);
495
- log.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e));
496
- log.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(graph.edge(e)));
497
- log.info(
498
- "Fix",
499
- clusterDb,
500
- "ids:",
501
- e.v,
502
- e.w,
503
- "Translating: ",
504
- clusterDb.get(e.v),
505
- clusterDb.get(e.w)
506
- );
507
- await insertEdgeLabel(edgeLabels, edge);
508
- });
509
- await Promise.all(edgePromises);
510
- }, "processEdges");
511
- await processEdges();
512
- log.info("Graph before layout:", JSON.stringify(write(graph)));
513
- log.info("############################################# XXX");
514
- log.info("### Layout ### XXX");
515
- log.info("############################################# XXX");
516
- layout(graph);
517
- log.info("Graph after layout:", JSON.stringify(write(graph)));
518
- let diff = 0;
519
- let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);
520
- await Promise.all(
521
- sortNodesByHierarchy(graph).map(async function(v) {
522
- var _a;
523
- const node = graph.node(v);
524
- log.info(
525
- "Position XBX => " + v + ": (" + node.x,
526
- "," + node.y,
527
- ") width: ",
528
- node.width,
529
- " height: ",
530
- node.height
531
- );
532
- if (node == null ? void 0 : node.clusterNode) {
533
- node.y += subGraphTitleTotalMargin;
534
- log.info(
535
- "A tainted cluster node XBX1",
536
- v,
537
- node.id,
538
- node.width,
539
- node.height,
540
- node.x,
541
- node.y,
542
- graph.parent(v)
543
- );
544
- clusterDb.get(node.id).node = node;
545
- positionNode(node);
546
- } else {
547
- if (graph.children(v).length > 0) {
548
- log.info(
549
- "A pure cluster node XBX1",
550
- v,
551
- node.id,
552
- node.x,
553
- node.y,
554
- node.width,
555
- node.height,
556
- graph.parent(v)
557
- );
558
- node.height += subGraphTitleTotalMargin;
559
- graph.node(node.parentId);
560
- const halfPadding = (node == null ? void 0 : node.padding) / 2 || 0;
561
- const labelHeight = ((_a = node == null ? void 0 : node.labelBBox) == null ? void 0 : _a.height) || 0;
562
- const offsetY = labelHeight - halfPadding || 0;
563
- log.debug("OffsetY", offsetY, "labelHeight", labelHeight, "halfPadding", halfPadding);
564
- await insertCluster(clusters, node);
565
- clusterDb.get(node.id).node = node;
566
- } else {
567
- const parent = graph.node(node.parentId);
568
- node.y += subGraphTitleTotalMargin / 2;
569
- log.info(
570
- "A regular node XBX1 - using the padding",
571
- node.id,
572
- "parent",
573
- node.parentId,
574
- node.width,
575
- node.height,
576
- node.x,
577
- node.y,
578
- "offsetY",
579
- node.offsetY,
580
- "parent",
581
- parent,
582
- parent == null ? void 0 : parent.offsetY,
583
- node
584
- );
585
- positionNode(node);
586
- }
587
- }
588
- })
589
- );
590
- graph.edges().forEach(function(e) {
591
- const edge = graph.edge(e);
592
- log.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(edge), edge);
593
- edge.points.forEach((point) => point.y += subGraphTitleTotalMargin / 2);
594
- const startNode = graph.node(e.v);
595
- var endNode = graph.node(e.w);
596
- const paths = insertEdge(edgePaths, edge, clusterDb, diagramType, startNode, endNode, id);
597
- positionEdgeLabel(edge, paths);
598
- });
599
- graph.nodes().forEach(function(v) {
600
- const n = graph.node(v);
601
- log.info(v, n.type, n.diff);
602
- if (n.isGroup) {
603
- diff = n.diff;
604
- }
605
- });
606
- log.warn("Returning from recursive render XAX", elem, diff);
607
- return { elem, diff };
608
- }, "recursiveRender");
609
- var render = /* @__PURE__ */ __name(async (data4Layout, svg) => {
610
- var _a, _b, _c, _d, _e, _f;
611
- const graph = new Graph({
612
- multigraph: true,
613
- compound: true
614
- }).setGraph({
615
- rankdir: data4Layout.direction,
616
- nodesep: ((_a = data4Layout.config) == null ? void 0 : _a.nodeSpacing) || ((_c = (_b = data4Layout.config) == null ? void 0 : _b.flowchart) == null ? void 0 : _c.nodeSpacing) || data4Layout.nodeSpacing,
617
- ranksep: ((_d = data4Layout.config) == null ? void 0 : _d.rankSpacing) || ((_f = (_e = data4Layout.config) == null ? void 0 : _e.flowchart) == null ? void 0 : _f.rankSpacing) || data4Layout.rankSpacing,
618
- marginx: 8,
619
- marginy: 8
620
- }).setDefaultEdgeLabel(function() {
621
- return {};
622
- });
623
- const element = svg.select("g");
624
- markers_default(element, data4Layout.markers, data4Layout.type, data4Layout.diagramId);
625
- clear2();
626
- clear();
627
- clear$1();
628
- clear4();
629
- data4Layout.nodes.forEach((node) => {
630
- graph.setNode(node.id, { ...node });
631
- if (node.parentId) {
632
- graph.setParent(node.id, node.parentId);
633
- }
634
- });
635
- log.debug("Edges:", data4Layout.edges);
636
- data4Layout.edges.forEach((edge) => {
637
- if (edge.start === edge.end) {
638
- const nodeId = edge.start;
639
- const specialId1 = nodeId + "---" + nodeId + "---1";
640
- const specialId2 = nodeId + "---" + nodeId + "---2";
641
- const node = graph.node(nodeId);
642
- graph.setNode(specialId1, {
643
- domId: specialId1,
644
- id: specialId1,
645
- parentId: node.parentId,
646
- labelStyle: "",
647
- label: "",
648
- padding: 0,
649
- shape: "labelRect",
650
- // shape: 'rect',
651
- style: "",
652
- width: 10,
653
- height: 10
654
- });
655
- graph.setParent(specialId1, node.parentId);
656
- graph.setNode(specialId2, {
657
- domId: specialId2,
658
- id: specialId2,
659
- parentId: node.parentId,
660
- labelStyle: "",
661
- padding: 0,
662
- // shape: 'rect',
663
- shape: "labelRect",
664
- label: "",
665
- style: "",
666
- width: 10,
667
- height: 10
668
- });
669
- graph.setParent(specialId2, node.parentId);
670
- const edge1 = structuredClone(edge);
671
- const edgeMid = structuredClone(edge);
672
- const edge2 = structuredClone(edge);
673
- edge1.label = "";
674
- edge1.arrowTypeEnd = "none";
675
- edge1.id = nodeId + "-cyclic-special-1";
676
- edgeMid.arrowTypeStart = "none";
677
- edgeMid.arrowTypeEnd = "none";
678
- edgeMid.id = nodeId + "-cyclic-special-mid";
679
- edge2.label = "";
680
- if (node.isGroup) {
681
- edge1.fromCluster = nodeId;
682
- edge2.toCluster = nodeId;
683
- }
684
- edge2.id = nodeId + "-cyclic-special-2";
685
- edge2.arrowTypeStart = "none";
686
- graph.setEdge(nodeId, specialId1, edge1, nodeId + "-cyclic-special-0");
687
- graph.setEdge(specialId1, specialId2, edgeMid, nodeId + "-cyclic-special-1");
688
- graph.setEdge(specialId2, nodeId, edge2, nodeId + "-cyc<lic-special-2");
689
- } else {
690
- graph.setEdge(edge.start, edge.end, { ...edge }, edge.id);
691
- }
692
- });
693
- log.warn("Graph at first:", JSON.stringify(write(graph)));
694
- adjustClustersAndEdges(graph);
695
- log.warn("Graph after XAX:", JSON.stringify(write(graph)));
696
- const siteConfig = getConfig2();
697
- await recursiveRender(
698
- element,
699
- graph,
700
- data4Layout.type,
701
- data4Layout.diagramId,
702
- void 0,
703
- siteConfig
704
- );
705
- }, "render");
706
-
707
- export { render };