@bytechain.cn/colamd 1.5.1 → 2.7.7

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 (398) hide show
  1. package/LICENSE +22 -21
  2. package/README.md +160 -1012
  3. package/README_CN.md +210 -1070
  4. package/dist/main/chunks/docx-export.js +29695 -0
  5. package/dist/main/chunks/image-export.js +175 -0
  6. package/dist/main/index.js +17765 -452
  7. package/dist/preload/index.js +135 -23
  8. package/dist/renderer/assets/2DXBBFLN-BmaQ8lqV.js +667 -0
  9. package/dist/renderer/assets/46IJ22JX-Caywmaj-.js +854 -0
  10. package/dist/renderer/assets/4TTDE5I4-C82Tw8vO.js +502 -0
  11. package/dist/renderer/assets/4UF3HTLV-BD8W-BSm.js +30 -0
  12. package/dist/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  13. package/dist/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  14. package/dist/renderer/assets/AAXQQPKT-CCArPgA1.js +1131 -0
  15. package/dist/renderer/assets/AKE5O7KZ-DOAgUvEX.js +185 -0
  16. package/dist/renderer/assets/BNMLP6AG-igM96Ol7.js +805 -0
  17. package/dist/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  18. package/dist/renderer/assets/DR6PKOQU-C-e6zzyf.js +302 -0
  19. package/dist/renderer/assets/E4RJ7UJB-BMF4zoOQ.js +442 -0
  20. package/dist/renderer/assets/ELSXBIJH-BI2ySIoX.js +39 -0
  21. package/dist/renderer/assets/ERTIBQVS-CnvF3w9r.js +183 -0
  22. package/dist/renderer/assets/F653G4FO-CgzvjfOe.js +1498 -0
  23. package/dist/renderer/assets/FKCDD66M-BkVPFntx.js +205 -0
  24. package/dist/renderer/assets/FP7KDXVC-K0VCFuri.js +222 -0
  25. package/dist/renderer/assets/FT5I3RHX-zgsvTvBh.js +244 -0
  26. package/dist/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  27. package/dist/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  28. package/dist/renderer/assets/GY35JXOZ-Lo9DxsPK.js +169 -0
  29. package/dist/renderer/assets/H5EEJPP2-Bw2musel.js +354 -0
  30. package/dist/renderer/assets/HWDLEDTA-CCOSSl9K.js +982 -0
  31. package/dist/renderer/assets/JZWSX6AR-BBtw8K-1.js +67 -0
  32. package/dist/renderer/assets/KQOEJWJY-Brg31xSn.js +84 -0
  33. package/dist/renderer/assets/KS3BB3KE-2GQdjVNT.js +139 -0
  34. package/dist/renderer/assets/KXJRRZHI-B0Oj-tMS.js +503 -0
  35. package/dist/renderer/assets/MFVI5XKI-BpwEOECT.js +10 -0
  36. package/dist/renderer/assets/MWY2J62P-CSmi7lMQ.js +1103 -0
  37. package/dist/renderer/assets/MXGNCBL2-CSoCLfJw.js +217 -0
  38. package/dist/renderer/assets/N6DAJLIZ-DB-xlSjM.js +120 -0
  39. package/dist/renderer/assets/NU5M23IW-BhGgUeDk.js +117 -0
  40. package/dist/renderer/assets/NV4XNBIS-DMg8ibKU.js +1221 -0
  41. package/dist/renderer/assets/OGLU4SIR-DOU7cIL3.js +290 -0
  42. package/dist/renderer/assets/OUNS5N76-BO_k5M0O.js +1065 -0
  43. package/dist/renderer/assets/PU4ISKXV-Cw53csyu.js +516 -0
  44. package/dist/renderer/assets/PUZGS23X-_iUQg51-.js +21 -0
  45. package/dist/renderer/assets/Q3IYVLG5-ZFBZi3vs.js +501 -0
  46. package/dist/renderer/assets/QYHQDLKZ-BPb6lHi6.js +984 -0
  47. package/dist/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  48. package/dist/renderer/assets/RZSVICHU-I7fvqLMQ.js +263 -0
  49. package/dist/renderer/assets/UEXXS2NB-AVpw2xTC.js +25 -0
  50. package/dist/renderer/assets/UHTQJXKL-6oSc4D2k.js +135 -0
  51. package/dist/renderer/assets/URA2L2QI-DkFUeeK0.js +201 -0
  52. package/dist/renderer/assets/UXCHDUKG-B54p4156.js +174 -0
  53. package/dist/renderer/assets/VKNV3BUX-Cc_4x0WI.js +278 -0
  54. package/dist/renderer/assets/VMV7XPHP-BjfrE66I.js +127 -0
  55. package/dist/renderer/assets/WEVWDWVA-Ca8eMbXN.js +57 -0
  56. package/dist/renderer/assets/XRRJ35LF-EWRU-xXu.js +120 -0
  57. package/dist/renderer/assets/YFKBLVVN-D2oaE2c2.js +991 -0
  58. package/dist/renderer/assets/YHRE5QGZ-ucJgE2vP.js +698 -0
  59. package/dist/renderer/assets/ZF3OVT4B-SN2E7Wbi.js +421 -0
  60. package/dist/renderer/assets/apl-fqmucPXA.js +140 -0
  61. package/dist/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
  62. package/dist/renderer/assets/asn1-BnOEsgAm.js +144 -0
  63. package/dist/renderer/assets/asterisk-QAlztEwS.js +345 -0
  64. package/dist/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
  65. package/dist/renderer/assets/clike-xqXYL6ge.js +805 -0
  66. package/dist/renderer/assets/clojure-BhXMqnxz.js +849 -0
  67. package/dist/renderer/assets/cmake-BGaNd9E7.js +71 -0
  68. package/dist/renderer/assets/cobol-4yqQntpt.js +120 -0
  69. package/dist/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
  70. package/dist/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
  71. package/dist/renderer/assets/crystal-DyuLTqLs.js +398 -0
  72. package/dist/renderer/assets/css-c-jst79C.js +1783 -0
  73. package/dist/renderer/assets/cypher-Dlu_3r4V.js +121 -0
  74. package/dist/renderer/assets/d-UURgV0Ux.js +179 -0
  75. package/dist/renderer/assets/diff-B_Bi2Crb.js +25 -0
  76. package/dist/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
  77. package/dist/renderer/assets/dtd-Dy74G54E.js +114 -0
  78. package/dist/renderer/assets/dylan-TSb-Nfix.js +314 -0
  79. package/dist/renderer/assets/ebnf-4fKAGW3a.js +140 -0
  80. package/dist/renderer/assets/ecl-B59qGGVg.js +178 -0
  81. package/dist/renderer/assets/eiffel-Dze7nlu3.js +134 -0
  82. package/dist/renderer/assets/elm-DG7jkhNZ.js +176 -0
  83. package/dist/renderer/assets/erlang-BO6gOnGA.js +674 -0
  84. package/dist/renderer/assets/factor-CMxFHDqz.js +65 -0
  85. package/dist/renderer/assets/fcl-CDDUNjTj.js +141 -0
  86. package/dist/renderer/assets/forth-B9D2JCeE.js +116 -0
  87. package/dist/renderer/assets/fortran-CAG2BFbe.js +467 -0
  88. package/dist/renderer/assets/gas-d3KEcW3x.js +294 -0
  89. package/dist/renderer/assets/gherkin-DhZlEZiy.js +115 -0
  90. package/dist/renderer/assets/groovy-CpwJiBl7.js +223 -0
  91. package/dist/renderer/assets/haskell-ySd-OUo8.js +459 -0
  92. package/dist/renderer/assets/haxe-7MlzfeYV.js +514 -0
  93. package/dist/renderer/assets/http-BqypyemW.js +79 -0
  94. package/dist/renderer/assets/idl-4HIGJlDI.js +985 -0
  95. package/dist/renderer/assets/index-6G13Twgt.js +311 -0
  96. package/dist/renderer/assets/index-B2_pQa3G.js +384 -0
  97. package/dist/renderer/assets/index-B4keY9Xz.js +328 -0
  98. package/dist/renderer/assets/index-B5Jih3QA.js +47421 -0
  99. package/dist/renderer/assets/index-BH0PaTow.js +405 -0
  100. package/dist/renderer/assets/index-BWfIKsyn.js +8 -0
  101. package/dist/renderer/assets/index-B_BLxvag.js +156 -0
  102. package/dist/renderer/assets/index-BnXxA35e.js +325 -0
  103. package/dist/renderer/assets/index-Bu1PrnbA.js +81 -0
  104. package/dist/renderer/assets/index-BvXJHaQ4.js +60 -0
  105. package/dist/renderer/assets/index-BzHXcCGC.js +307 -0
  106. package/dist/renderer/assets/index-CXI9cRfo.js +287 -0
  107. package/dist/renderer/assets/index-Ccsf_83j.js +149 -0
  108. package/dist/renderer/assets/index-CkLQq2g4.js +688 -0
  109. package/dist/renderer/assets/index-DNL6Tijf.js +8 -0
  110. package/dist/renderer/assets/index-DRZsGkXi.js +78 -0
  111. package/dist/renderer/assets/index-Dfyz4Aee.js +181 -0
  112. package/dist/renderer/assets/index-HtqODURL.js +703 -0
  113. package/dist/renderer/assets/{index-DxOzbfR-.js → index-MJfkvBRx.js} +1 -1
  114. package/dist/renderer/assets/index-NsiBA9UX.js +113 -0
  115. package/dist/renderer/assets/index-aUzhL6sM.js +96 -0
  116. package/dist/renderer/assets/index-bx07CRyn.css +2503 -0
  117. package/dist/renderer/assets/{index-CBcVpA3d.js → index-k1ZFPJcr.js} +3 -4
  118. package/dist/renderer/assets/javascript-C_OHM9hj.js +994 -0
  119. package/dist/renderer/assets/julia-Bs6JJhYG.js +407 -0
  120. package/dist/renderer/assets/lazy-BY7ljzvO.js +1041 -0
  121. package/dist/renderer/assets/livescript-DmzgM3Yt.js +296 -0
  122. package/dist/renderer/assets/lua-Cvg8VrAA.js +256 -0
  123. package/dist/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
  124. package/dist/renderer/assets/mbox-Ga7d4MMN.js +117 -0
  125. package/dist/renderer/assets/mirc-Dma3B8rS.js +107 -0
  126. package/dist/renderer/assets/mllike-DHn7xckP.js +334 -0
  127. package/dist/renderer/assets/modelica-0d55jYY0.js +147 -0
  128. package/dist/renderer/assets/mscgen-DdqZYINH.js +135 -0
  129. package/dist/renderer/assets/mumps-Btr8VblO.js +93 -0
  130. package/dist/renderer/assets/nginx-DTDtBDVN.js +141 -0
  131. package/dist/renderer/assets/nsis-CyKBdPWp.js +62 -0
  132. package/dist/renderer/assets/ntriples-CvgOYMpL.js +153 -0
  133. package/dist/renderer/assets/octave-DYBj3-tl.js +200 -0
  134. package/dist/renderer/assets/oz-R_e8WMIi.js +231 -0
  135. package/dist/renderer/assets/pascal-GD8iposT.js +105 -0
  136. package/dist/renderer/assets/perl-DL9mHpoi.js +1105 -0
  137. package/dist/renderer/assets/pig-C_4T4YIV.js +101 -0
  138. package/dist/renderer/assets/powershell-B0suO7Vd.js +328 -0
  139. package/dist/renderer/assets/properties-BR-vP1aU.js +58 -0
  140. package/dist/renderer/assets/protobuf-BxgpyhoW.js +77 -0
  141. package/dist/renderer/assets/pug-CTXt1f8z.js +405 -0
  142. package/dist/renderer/assets/puppet-Bdao66PW.js +137 -0
  143. package/dist/renderer/assets/python-CvWbmiX4.js +427 -0
  144. package/dist/renderer/assets/q-CrbCVq4a.js +131 -0
  145. package/dist/renderer/assets/r-V7nswm59.js +170 -0
  146. package/dist/renderer/assets/rpm-C-DLY-If.js +109 -0
  147. package/dist/renderer/assets/ruby-CQTpZw6f.js +331 -0
  148. package/dist/renderer/assets/sas-D2UG-yhZ.js +207 -0
  149. package/dist/renderer/assets/scheme-BKzrkGJD.js +222 -0
  150. package/dist/renderer/assets/shell-BlsXDxCn.js +222 -0
  151. package/dist/renderer/assets/sieve-CjwBwOY5.js +135 -0
  152. package/dist/renderer/assets/simple-mode-DMneyfDu.js +130 -0
  153. package/dist/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
  154. package/dist/renderer/assets/solr-CwD7U71z.js +69 -0
  155. package/dist/renderer/assets/sparql-DYskk2vE.js +249 -0
  156. package/dist/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
  157. package/dist/renderer/assets/sql-BSrOzCRI.js +354 -0
  158. package/dist/renderer/assets/stex-B6LNC55o.js +231 -0
  159. package/dist/renderer/assets/stylus-BkS-boTH.js +565 -0
  160. package/dist/renderer/assets/swift-FRZi1uvB.js +291 -0
  161. package/dist/renderer/assets/tcl-CUcaCdmq.js +114 -0
  162. package/dist/renderer/assets/textile-BnFpjsrl.js +414 -0
  163. package/dist/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
  164. package/dist/renderer/assets/tiki-DK9DOeWn.js +268 -0
  165. package/dist/renderer/assets/toml-BOuWGMcf.js +76 -0
  166. package/dist/renderer/assets/troff-E1bJ0PPL.js +61 -0
  167. package/dist/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
  168. package/dist/renderer/assets/ttcn-tKd4HLu4.js +192 -0
  169. package/dist/renderer/assets/turtle-Dq7-1WAf.js +124 -0
  170. package/dist/renderer/assets/vb-Dp90gtsv.js +196 -0
  171. package/dist/renderer/assets/vbscript-CI6_mxxU.js +479 -0
  172. package/dist/renderer/assets/velocity-BwIZK1TH.js +149 -0
  173. package/dist/renderer/assets/verilog-DDCYnHN8.js +430 -0
  174. package/dist/renderer/assets/vhdl-DCkMIyT9.js +158 -0
  175. package/dist/renderer/assets/{web-BKE0SH0E.js → web-C4yaM4Cl.js} +1 -1
  176. package/dist/renderer/assets/{web-CBsFp24u.js → web-CF2Dtak3.js} +2 -3
  177. package/dist/renderer/assets/{web-Dc8YgoHP.js → web-DUy9unYf.js} +1 -1
  178. package/dist/renderer/assets/webidl-BTLTThCm.js +204 -0
  179. package/dist/renderer/assets/xquery-BrBUuxMR.js +525 -0
  180. package/dist/renderer/assets/yacas-b5lAVEIl.js +130 -0
  181. package/dist/renderer/assets/z80-BZV19vqv.js +93 -0
  182. package/dist/renderer/index.html +97 -77
  183. package/package.json +88 -60
  184. package/themes/README.md +99 -300
  185. package/themes/bear.css +38 -0
  186. package/themes/dark.css +20 -0
  187. package/themes/dracula.css +38 -0
  188. package/themes/elegant.css +53 -671
  189. package/themes/gruvbox.css +42 -0
  190. package/themes/light.css +20 -0
  191. package/themes/midnight.css +31 -0
  192. package/themes/nord.css +38 -0
  193. package/themes/notion.css +48 -0
  194. package/themes/sepia.css +48 -0
  195. package/themes/solarized-dark.css +35 -0
  196. package/themes/template.css +76 -498
  197. package/themes/writer.css +44 -0
  198. package/.github/workflows/release.yml +0 -66
  199. package/.trae/specs/optimize-theme-loading/checklist.md +0 -20
  200. package/.trae/specs/optimize-theme-loading/spec.md +0 -103
  201. package/.trae/specs/optimize-theme-loading/tasks.md +0 -40
  202. package/CHANGELOG.md +0 -320
  203. package/CLAUDE.md +0 -143
  204. package/android/app/build/.npmkeep +0 -0
  205. package/android/app/build.gradle +0 -76
  206. package/android/app/capacitor.build.gradle +0 -24
  207. package/android/app/proguard-rules.pro +0 -21
  208. package/android/app/release.keystore +0 -0
  209. package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
  210. package/android/app/src/main/AndroidManifest.xml +0 -64
  211. package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +0 -180
  212. package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
  213. package/android/app/src/main/res/drawable/splash.png +0 -0
  214. package/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  215. package/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  216. package/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  217. package/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  218. package/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  219. package/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  220. package/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  221. package/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  222. package/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  223. package/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  224. package/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
  225. package/android/app/src/main/res/layout/activity_main.xml +0 -12
  226. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  227. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  228. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  229. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  230. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  231. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  232. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  233. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  234. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  235. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  236. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  237. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  238. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  239. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  240. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  241. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  242. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  243. package/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
  244. package/android/app/src/main/res/values/strings.xml +0 -7
  245. package/android/app/src/main/res/values/styles.xml +0 -22
  246. package/android/app/src/main/res/xml/file_paths.xml +0 -5
  247. package/android/app/src/main/res/xml/network_security_config.xml +0 -8
  248. package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
  249. package/android/build.gradle +0 -29
  250. package/android/capacitor.settings.gradle +0 -21
  251. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  252. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  253. package/android/gradle.properties +0 -22
  254. package/android/gradlew +0 -248
  255. package/android/gradlew.bat +0 -92
  256. package/android/settings.gradle +0 -5
  257. package/android/variables.gradle +0 -16
  258. package/capacitor.config.js +0 -29
  259. package/capacitor.config.ts +0 -30
  260. package/demo.md +0 -193
  261. package/dist/renderer/assets/arc-_lugyDzx.js +0 -131
  262. package/dist/renderer/assets/architectureDiagram-3BPJPVTR-DDfP-F9D.js +0 -8721
  263. package/dist/renderer/assets/blockDiagram-GPEHLZMM-DOETUKma.js +0 -3826
  264. package/dist/renderer/assets/c4Diagram-AAUBKEIU-kAmLfVtk.js +0 -2483
  265. package/dist/renderer/assets/channel-CD4vJFwr.js +0 -7
  266. package/dist/renderer/assets/chunk-2J33WTMH-DkVrgw4l.js +0 -24
  267. package/dist/renderer/assets/chunk-4BX2VUAB-JTZ-VKNX.js +0 -16
  268. package/dist/renderer/assets/chunk-55IACEB6-Di_O5box.js +0 -13
  269. package/dist/renderer/assets/chunk-727SXJPM-BgKvwR8w.js +0 -2016
  270. package/dist/renderer/assets/chunk-AQP2D5EJ-DonSXCCQ.js +0 -1953
  271. package/dist/renderer/assets/chunk-FMBD7UC4-CsV8Lmy6.js +0 -19
  272. package/dist/renderer/assets/chunk-ND2GUHAM-C_-_dlq7.js +0 -116
  273. package/dist/renderer/assets/chunk-QZHKN3VN-aCmcDsfu.js +0 -19
  274. package/dist/renderer/assets/classDiagram-4FO5ZUOK-nuHQLjzM.js +0 -24
  275. package/dist/renderer/assets/classDiagram-v2-Q7XG4LA2-nuHQLjzM.js +0 -24
  276. package/dist/renderer/assets/cose-bilkent-S5V4N54A-Di1_SXt9.js +0 -4943
  277. package/dist/renderer/assets/cytoscape.esm-CpHeHM5e.js +0 -30269
  278. package/dist/renderer/assets/dagre-BM42HDAG-CqOUIYsL.js +0 -706
  279. package/dist/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  280. package/dist/renderer/assets/diagram-2AECGRRQ-F-fP19TC.js +0 -302
  281. package/dist/renderer/assets/diagram-5GNKFQAL-BD5XZc8G.js +0 -170
  282. package/dist/renderer/assets/diagram-KO2AKTUF-Qa3ZxA67.js +0 -633
  283. package/dist/renderer/assets/diagram-LMA3HP47-DqDnw2RA.js +0 -213
  284. package/dist/renderer/assets/diagram-OG6HWLK6-BH4Elzby.js +0 -852
  285. package/dist/renderer/assets/erDiagram-TEJ5UH35-CaKZCewa.js +0 -1228
  286. package/dist/renderer/assets/flowDiagram-I6XJVG4X-C8znUgyL.js +0 -2333
  287. package/dist/renderer/assets/ganttDiagram-6RSMTGT7-DnRvbMnU.js +0 -3721
  288. package/dist/renderer/assets/gitGraphDiagram-PVQCEYII-CZuRZzk4.js +0 -1374
  289. package/dist/renderer/assets/graph-CYiEKt0j.js +0 -1988
  290. package/dist/renderer/assets/index-B4uDgADr.js +0 -530
  291. package/dist/renderer/assets/index-BX6JHKv6.js +0 -73314
  292. package/dist/renderer/assets/index-CGj1spkU.js +0 -27
  293. package/dist/renderer/assets/index-CcwAgVRi.css +0 -2226
  294. package/dist/renderer/assets/index-D4CPFkph.js +0 -9
  295. package/dist/renderer/assets/index-Y89U1ptl.js +0 -9
  296. package/dist/renderer/assets/infoDiagram-5YYISTIA-BlBUdqMb.js +0 -32
  297. package/dist/renderer/assets/init-ZxktEp_H.js +0 -16
  298. package/dist/renderer/assets/ishikawaDiagram-YF4QCWOH-TeVytCrP.js +0 -968
  299. package/dist/renderer/assets/journeyDiagram-JHISSGLW-BLZa3jnX.js +0 -1256
  300. package/dist/renderer/assets/kanban-definition-UN3LZRKU-foVxWrJn.js +0 -1053
  301. package/dist/renderer/assets/layout-DOAlFUVb.js +0 -2610
  302. package/dist/renderer/assets/linear-BMBn6kVq.js +0 -340
  303. package/dist/renderer/assets/mindmap-definition-RKZ34NQL-5pGeNCcp.js +0 -1181
  304. package/dist/renderer/assets/ordinal-DSZU4PqD.js +0 -76
  305. package/dist/renderer/assets/pieDiagram-4H26LBE5-N9aAUxfr.js +0 -247
  306. package/dist/renderer/assets/preload-helper-tXtZnHb0.js +0 -88
  307. package/dist/renderer/assets/quadrantDiagram-W4KKPZXB-BPxbtjga.js +0 -1345
  308. package/dist/renderer/assets/requirementDiagram-4Y6WPE33-CK1LrJyG.js +0 -1205
  309. package/dist/renderer/assets/sankeyDiagram-5OEKKPKP-BNj7Sqii.js +0 -1275
  310. package/dist/renderer/assets/sequenceDiagram-3UESZ5HK-B-r7lNhI.js +0 -4515
  311. package/dist/renderer/assets/stateDiagram-AJRCARHV-wrWE0MRa.js +0 -451
  312. package/dist/renderer/assets/stateDiagram-v2-BHNVJYJU-CE-Lqo2d.js +0 -22
  313. package/dist/renderer/assets/timeline-definition-PNZ67QCA-BkeMGH4J.js +0 -1597
  314. package/dist/renderer/assets/vennDiagram-CIIHVFJN-BTxVzto3.js +0 -2487
  315. package/dist/renderer/assets/wardley-L42UT6IY-b-_GPpqL.js +0 -30699
  316. package/dist/renderer/assets/wardleyDiagram-YWT4CUSO-D2r5dVGW.js +0 -976
  317. package/dist/renderer/assets/web-TfDzToU7.js +0 -58
  318. package/dist/renderer/assets/xychartDiagram-2RQKCTM6-BHQdINVc.js +0 -1933
  319. package/docs/RELEASE_NOTES_v1.5.1.md +0 -382
  320. package/docs/academic-demo.md +0 -567
  321. package/docs/agent-diff-view.md +0 -48
  322. package/docs/demo.html +0 -748
  323. package/docs/demo.md +0 -546
  324. package/docs/demo.pdf +0 -0
  325. package/docs/theme-paradigm.md +0 -797
  326. package/electron-builder.yml +0 -64
  327. package/electron.vite.config.js +0 -31
  328. package/electron.vite.config.ts +0 -30
  329. package/ios/App/App/AppDelegate.swift +0 -49
  330. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  331. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
  332. package/ios/App/App/Assets.xcassets/Contents.json +0 -6
  333. package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
  334. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  335. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  336. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  337. package/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
  338. package/ios/App/App/Base.lproj/Main.storyboard +0 -19
  339. package/ios/App/App/Info.plist +0 -49
  340. package/ios/App/App.xcodeproj/project.pbxproj +0 -408
  341. package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  342. package/ios/App/Podfile +0 -28
  343. package/resources/entitlements.mac.plist +0 -12
  344. package/resources/icon.icns +0 -0
  345. package/resources/icon.png +0 -0
  346. package/resources/icon.svg +0 -23
  347. package/resources/templates/slides/icon.png +0 -0
  348. package/resources/templates/slides/slides-template.md +0 -74
  349. package/resources/templates/slides/template-forest-ink.html +0 -540
  350. package/resources/templates/slides/template.html +0 -535
  351. package/scripts/afterPack.js +0 -13
  352. package/scripts/generate-icons.js +0 -102
  353. package/src/main/index.ts +0 -919
  354. package/src/preload/index.d.ts +0 -51
  355. package/src/preload/index.js +0 -70
  356. package/src/preload/index.ts +0 -110
  357. package/src/renderer/capacitor-api.ts +0 -713
  358. package/src/renderer/editor/editor.ts +0 -287
  359. package/src/renderer/editor/html-view.ts +0 -15
  360. package/src/renderer/editor/plugins/index.ts +0 -86
  361. package/src/renderer/editor/plugins/math-plugin.ts +0 -305
  362. package/src/renderer/editor/plugins/mermaid-plugin-custom.css +0 -46
  363. package/src/renderer/editor/plugins/mermaid-plugin-dark.css +0 -428
  364. package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +0 -443
  365. package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +0 -208
  366. package/src/renderer/editor/plugins/mermaid-plugin.css +0 -111
  367. package/src/renderer/editor/plugins/mermaid-plugin.ts +0 -680
  368. package/src/renderer/editor/plugins/themes/base/dark.css +0 -23
  369. package/src/renderer/editor/plugins/themes/base/elegant.css +0 -32
  370. package/src/renderer/editor/plugins/themes/base/light.css +0 -20
  371. package/src/renderer/editor/plugins/themes/base/newsprint.css +0 -27
  372. package/src/renderer/editor/plugins/themes/base.css +0 -509
  373. package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +0 -43
  374. package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +0 -20
  375. package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +0 -24
  376. package/src/renderer/editor/plugins/themes/components/mermaid/light.css +0 -21
  377. package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +0 -26
  378. package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +0 -592
  379. package/src/renderer/editor/plugins/themes/foundation.css +0 -143
  380. package/src/renderer/editor/plugins/themes/theme-manager.ts +0 -133
  381. package/src/renderer/env.d.ts +0 -10
  382. package/src/renderer/index.html +0 -76
  383. package/src/renderer/main.ts +0 -775
  384. package/src/renderer/mobile.css +0 -428
  385. package/themes/academic-paper-pt.css +0 -1321
  386. package/themes/academic-paper.css +0 -1416
  387. package/themes/forest-ink.css +0 -664
  388. package/themes/guizang.css +0 -732
  389. package/themes/pixso-design.css +0 -1261
  390. package/themes/swiss-design.css +0 -596
  391. package/tsconfig.json +0 -14
  392. package/tsconfig.main.json +0 -12
  393. package/tsconfig.main.tsbuildinfo +0 -1
  394. package/tsconfig.preload.json +0 -12
  395. package/tsconfig.preload.tsbuildinfo +0 -1
  396. package/tsconfig.renderer.json +0 -13
  397. package/tsconfig.renderer.tsbuildinfo +0 -1
  398. package/tsconfig.tsbuildinfo +0 -1
@@ -1,1053 +0,0 @@
1
- import { _ as __name, l as log, c as getConfig2, I as selectSvgElement, af as insertCluster, ag as insertNode, ah as positionNode, Y as setupGraphViewbox, G as defaultConfig_default, i as sanitizeText, t as load, J as JSON_SCHEMA, V as isDark, W as lighten, X as darken } from "./index-BX6JHKv6.js";
2
- import { g as getIconStyles } from "./chunk-FMBD7UC4-CsV8Lmy6.js";
3
- import "./preload-helper-tXtZnHb0.js";
4
- var parser = (function() {
5
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
6
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
7
- return o2;
8
- }, "o"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 31], $Vd = [6, 7, 11, 24], $Ve = [1, 6, 13, 16, 17, 20, 23], $Vf = [1, 35], $Vg = [1, 36], $Vh = [1, 6, 7, 11, 13, 16, 17, 20, 23], $Vi = [1, 38];
9
- var parser2 = {
10
- trace: /* @__PURE__ */ __name(function trace() {
11
- }, "trace"),
12
- yy: {},
13
- symbols_: { "error": 2, "start": 3, "mindMap": 4, "spaceLines": 5, "SPACELINE": 6, "NL": 7, "KANBAN": 8, "document": 9, "stop": 10, "EOF": 11, "statement": 12, "SPACELIST": 13, "node": 14, "shapeData": 15, "ICON": 16, "CLASS": 17, "nodeWithId": 18, "nodeWithoutId": 19, "NODE_DSTART": 20, "NODE_DESCR": 21, "NODE_DEND": 22, "NODE_ID": 23, "SHAPE_DATA": 24, "$accept": 0, "$end": 1 },
14
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
15
- productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
16
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
17
- var $0 = $$.length - 1;
18
- switch (yystate) {
19
- case 6:
20
- case 7:
21
- return yy;
22
- case 8:
23
- yy.getLogger().trace("Stop NL ");
24
- break;
25
- case 9:
26
- yy.getLogger().trace("Stop EOF ");
27
- break;
28
- case 11:
29
- yy.getLogger().trace("Stop NL2 ");
30
- break;
31
- case 12:
32
- yy.getLogger().trace("Stop EOF2 ");
33
- break;
34
- case 15:
35
- yy.getLogger().info("Node: ", $$[$0 - 1].id);
36
- yy.addNode($$[$0 - 2].length, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
37
- break;
38
- case 16:
39
- yy.getLogger().info("Node: ", $$[$0].id);
40
- yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
41
- break;
42
- case 17:
43
- yy.getLogger().trace("Icon: ", $$[$0]);
44
- yy.decorateNode({ icon: $$[$0] });
45
- break;
46
- case 18:
47
- case 23:
48
- yy.decorateNode({ class: $$[$0] });
49
- break;
50
- case 19:
51
- yy.getLogger().trace("SPACELIST");
52
- break;
53
- case 20:
54
- yy.getLogger().trace("Node: ", $$[$0 - 1].id);
55
- yy.addNode(0, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
56
- break;
57
- case 21:
58
- yy.getLogger().trace("Node: ", $$[$0].id);
59
- yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
60
- break;
61
- case 22:
62
- yy.decorateNode({ icon: $$[$0] });
63
- break;
64
- case 27:
65
- yy.getLogger().trace("node found ..", $$[$0 - 2]);
66
- this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
67
- break;
68
- case 28:
69
- this.$ = { id: $$[$0], descr: $$[$0], type: 0 };
70
- break;
71
- case 29:
72
- yy.getLogger().trace("node found ..", $$[$0 - 3]);
73
- this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
74
- break;
75
- case 30:
76
- this.$ = $$[$0 - 1] + $$[$0];
77
- break;
78
- case 31:
79
- this.$ = $$[$0];
80
- break;
81
- }
82
- }, "anonymous"),
83
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: $V5, 23: $V6 }), o($Vb, [2, 19]), o($Vb, [2, 21], { 15: 30, 24: $Vc }), o($Vb, [2, 22]), o($Vb, [2, 23]), o($Vd, [2, 25]), o($Vd, [2, 26]), o($Vd, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: $V8, 7: $V9, 10: 34, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($Ve, [2, 14], { 7: $Vf, 11: $Vg }), o($Vh, [2, 8]), o($Vh, [2, 9]), o($Vh, [2, 10]), o($Vb, [2, 16], { 15: 37, 24: $Vc }), o($Vb, [2, 17]), o($Vb, [2, 18]), o($Vb, [2, 20], { 24: $Vi }), o($Vd, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, o($Ve, [2, 13], { 7: $Vf, 11: $Vg }), o($Vh, [2, 11]), o($Vh, [2, 12]), o($Vb, [2, 15], { 24: $Vi }), o($Vd, [2, 30]), { 22: [1, 41] }, o($Vd, [2, 27]), o($Vd, [2, 29])],
84
- defaultActions: { 2: [2, 1], 6: [2, 2] },
85
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
86
- if (hash.recoverable) {
87
- this.trace(str);
88
- } else {
89
- var error = new Error(str);
90
- error.hash = hash;
91
- throw error;
92
- }
93
- }, "parseError"),
94
- parse: /* @__PURE__ */ __name(function parse(input) {
95
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
96
- var args = lstack.slice.call(arguments, 1);
97
- var lexer2 = Object.create(this.lexer);
98
- var sharedState = { yy: {} };
99
- for (var k in this.yy) {
100
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
101
- sharedState.yy[k] = this.yy[k];
102
- }
103
- }
104
- lexer2.setInput(input, sharedState.yy);
105
- sharedState.yy.lexer = lexer2;
106
- sharedState.yy.parser = this;
107
- if (typeof lexer2.yylloc == "undefined") {
108
- lexer2.yylloc = {};
109
- }
110
- var yyloc = lexer2.yylloc;
111
- lstack.push(yyloc);
112
- var ranges = lexer2.options && lexer2.options.ranges;
113
- if (typeof sharedState.yy.parseError === "function") {
114
- this.parseError = sharedState.yy.parseError;
115
- } else {
116
- this.parseError = Object.getPrototypeOf(this).parseError;
117
- }
118
- function popStack(n) {
119
- stack.length = stack.length - 2 * n;
120
- vstack.length = vstack.length - n;
121
- lstack.length = lstack.length - n;
122
- }
123
- __name(popStack, "popStack");
124
- function lex() {
125
- var token;
126
- token = tstack.pop() || lexer2.lex() || EOF;
127
- if (typeof token !== "number") {
128
- if (token instanceof Array) {
129
- tstack = token;
130
- token = tstack.pop();
131
- }
132
- token = self.symbols_[token] || token;
133
- }
134
- return token;
135
- }
136
- __name(lex, "lex");
137
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
138
- while (true) {
139
- state = stack[stack.length - 1];
140
- if (this.defaultActions[state]) {
141
- action = this.defaultActions[state];
142
- } else {
143
- if (symbol === null || typeof symbol == "undefined") {
144
- symbol = lex();
145
- }
146
- action = table[state] && table[state][symbol];
147
- }
148
- if (typeof action === "undefined" || !action.length || !action[0]) {
149
- var errStr = "";
150
- expected = [];
151
- for (p in table[state]) {
152
- if (this.terminals_[p] && p > TERROR) {
153
- expected.push("'" + this.terminals_[p] + "'");
154
- }
155
- }
156
- if (lexer2.showPosition) {
157
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
158
- } else {
159
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
160
- }
161
- this.parseError(errStr, {
162
- text: lexer2.match,
163
- token: this.terminals_[symbol] || symbol,
164
- line: lexer2.yylineno,
165
- loc: yyloc,
166
- expected
167
- });
168
- }
169
- if (action[0] instanceof Array && action.length > 1) {
170
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
171
- }
172
- switch (action[0]) {
173
- case 1:
174
- stack.push(symbol);
175
- vstack.push(lexer2.yytext);
176
- lstack.push(lexer2.yylloc);
177
- stack.push(action[1]);
178
- symbol = null;
179
- {
180
- yyleng = lexer2.yyleng;
181
- yytext = lexer2.yytext;
182
- yylineno = lexer2.yylineno;
183
- yyloc = lexer2.yylloc;
184
- }
185
- break;
186
- case 2:
187
- len = this.productions_[action[1]][1];
188
- yyval.$ = vstack[vstack.length - len];
189
- yyval._$ = {
190
- first_line: lstack[lstack.length - (len || 1)].first_line,
191
- last_line: lstack[lstack.length - 1].last_line,
192
- first_column: lstack[lstack.length - (len || 1)].first_column,
193
- last_column: lstack[lstack.length - 1].last_column
194
- };
195
- if (ranges) {
196
- yyval._$.range = [
197
- lstack[lstack.length - (len || 1)].range[0],
198
- lstack[lstack.length - 1].range[1]
199
- ];
200
- }
201
- r = this.performAction.apply(yyval, [
202
- yytext,
203
- yyleng,
204
- yylineno,
205
- sharedState.yy,
206
- action[1],
207
- vstack,
208
- lstack
209
- ].concat(args));
210
- if (typeof r !== "undefined") {
211
- return r;
212
- }
213
- if (len) {
214
- stack = stack.slice(0, -1 * len * 2);
215
- vstack = vstack.slice(0, -1 * len);
216
- lstack = lstack.slice(0, -1 * len);
217
- }
218
- stack.push(this.productions_[action[1]][0]);
219
- vstack.push(yyval.$);
220
- lstack.push(yyval._$);
221
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
222
- stack.push(newState);
223
- break;
224
- case 3:
225
- return true;
226
- }
227
- }
228
- return true;
229
- }, "parse")
230
- };
231
- var lexer = /* @__PURE__ */ (function() {
232
- var lexer2 = {
233
- EOF: 1,
234
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
235
- if (this.yy.parser) {
236
- this.yy.parser.parseError(str, hash);
237
- } else {
238
- throw new Error(str);
239
- }
240
- }, "parseError"),
241
- // resets the lexer, sets new input
242
- setInput: /* @__PURE__ */ __name(function(input, yy) {
243
- this.yy = yy || this.yy || {};
244
- this._input = input;
245
- this._more = this._backtrack = this.done = false;
246
- this.yylineno = this.yyleng = 0;
247
- this.yytext = this.matched = this.match = "";
248
- this.conditionStack = ["INITIAL"];
249
- this.yylloc = {
250
- first_line: 1,
251
- first_column: 0,
252
- last_line: 1,
253
- last_column: 0
254
- };
255
- if (this.options.ranges) {
256
- this.yylloc.range = [0, 0];
257
- }
258
- this.offset = 0;
259
- return this;
260
- }, "setInput"),
261
- // consumes and returns one char from the input
262
- input: /* @__PURE__ */ __name(function() {
263
- var ch = this._input[0];
264
- this.yytext += ch;
265
- this.yyleng++;
266
- this.offset++;
267
- this.match += ch;
268
- this.matched += ch;
269
- var lines = ch.match(/(?:\r\n?|\n).*/g);
270
- if (lines) {
271
- this.yylineno++;
272
- this.yylloc.last_line++;
273
- } else {
274
- this.yylloc.last_column++;
275
- }
276
- if (this.options.ranges) {
277
- this.yylloc.range[1]++;
278
- }
279
- this._input = this._input.slice(1);
280
- return ch;
281
- }, "input"),
282
- // unshifts one char (or a string) into the input
283
- unput: /* @__PURE__ */ __name(function(ch) {
284
- var len = ch.length;
285
- var lines = ch.split(/(?:\r\n?|\n)/g);
286
- this._input = ch + this._input;
287
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
288
- this.offset -= len;
289
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
290
- this.match = this.match.substr(0, this.match.length - 1);
291
- this.matched = this.matched.substr(0, this.matched.length - 1);
292
- if (lines.length - 1) {
293
- this.yylineno -= lines.length - 1;
294
- }
295
- var r = this.yylloc.range;
296
- this.yylloc = {
297
- first_line: this.yylloc.first_line,
298
- last_line: this.yylineno + 1,
299
- first_column: this.yylloc.first_column,
300
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
301
- };
302
- if (this.options.ranges) {
303
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
304
- }
305
- this.yyleng = this.yytext.length;
306
- return this;
307
- }, "unput"),
308
- // When called from action, caches matched text and appends it on next action
309
- more: /* @__PURE__ */ __name(function() {
310
- this._more = true;
311
- return this;
312
- }, "more"),
313
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
314
- reject: /* @__PURE__ */ __name(function() {
315
- if (this.options.backtrack_lexer) {
316
- this._backtrack = true;
317
- } else {
318
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
319
- text: "",
320
- token: null,
321
- line: this.yylineno
322
- });
323
- }
324
- return this;
325
- }, "reject"),
326
- // retain first n characters of the match
327
- less: /* @__PURE__ */ __name(function(n) {
328
- this.unput(this.match.slice(n));
329
- }, "less"),
330
- // displays already matched input, i.e. for error messages
331
- pastInput: /* @__PURE__ */ __name(function() {
332
- var past = this.matched.substr(0, this.matched.length - this.match.length);
333
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
334
- }, "pastInput"),
335
- // displays upcoming input, i.e. for error messages
336
- upcomingInput: /* @__PURE__ */ __name(function() {
337
- var next = this.match;
338
- if (next.length < 20) {
339
- next += this._input.substr(0, 20 - next.length);
340
- }
341
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
342
- }, "upcomingInput"),
343
- // displays the character position where the lexing error occurred, i.e. for error messages
344
- showPosition: /* @__PURE__ */ __name(function() {
345
- var pre = this.pastInput();
346
- var c = new Array(pre.length + 1).join("-");
347
- return pre + this.upcomingInput() + "\n" + c + "^";
348
- }, "showPosition"),
349
- // test the lexed token: return FALSE when not a match, otherwise return token
350
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
351
- var token, lines, backup;
352
- if (this.options.backtrack_lexer) {
353
- backup = {
354
- yylineno: this.yylineno,
355
- yylloc: {
356
- first_line: this.yylloc.first_line,
357
- last_line: this.last_line,
358
- first_column: this.yylloc.first_column,
359
- last_column: this.yylloc.last_column
360
- },
361
- yytext: this.yytext,
362
- match: this.match,
363
- matches: this.matches,
364
- matched: this.matched,
365
- yyleng: this.yyleng,
366
- offset: this.offset,
367
- _more: this._more,
368
- _input: this._input,
369
- yy: this.yy,
370
- conditionStack: this.conditionStack.slice(0),
371
- done: this.done
372
- };
373
- if (this.options.ranges) {
374
- backup.yylloc.range = this.yylloc.range.slice(0);
375
- }
376
- }
377
- lines = match[0].match(/(?:\r\n?|\n).*/g);
378
- if (lines) {
379
- this.yylineno += lines.length;
380
- }
381
- this.yylloc = {
382
- first_line: this.yylloc.last_line,
383
- last_line: this.yylineno + 1,
384
- first_column: this.yylloc.last_column,
385
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
386
- };
387
- this.yytext += match[0];
388
- this.match += match[0];
389
- this.matches = match;
390
- this.yyleng = this.yytext.length;
391
- if (this.options.ranges) {
392
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
393
- }
394
- this._more = false;
395
- this._backtrack = false;
396
- this._input = this._input.slice(match[0].length);
397
- this.matched += match[0];
398
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
399
- if (this.done && this._input) {
400
- this.done = false;
401
- }
402
- if (token) {
403
- return token;
404
- } else if (this._backtrack) {
405
- for (var k in backup) {
406
- this[k] = backup[k];
407
- }
408
- return false;
409
- }
410
- return false;
411
- }, "test_match"),
412
- // return next match in input
413
- next: /* @__PURE__ */ __name(function() {
414
- if (this.done) {
415
- return this.EOF;
416
- }
417
- if (!this._input) {
418
- this.done = true;
419
- }
420
- var token, match, tempMatch, index;
421
- if (!this._more) {
422
- this.yytext = "";
423
- this.match = "";
424
- }
425
- var rules = this._currentRules();
426
- for (var i = 0; i < rules.length; i++) {
427
- tempMatch = this._input.match(this.rules[rules[i]]);
428
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
429
- match = tempMatch;
430
- index = i;
431
- if (this.options.backtrack_lexer) {
432
- token = this.test_match(tempMatch, rules[i]);
433
- if (token !== false) {
434
- return token;
435
- } else if (this._backtrack) {
436
- match = false;
437
- continue;
438
- } else {
439
- return false;
440
- }
441
- } else if (!this.options.flex) {
442
- break;
443
- }
444
- }
445
- }
446
- if (match) {
447
- token = this.test_match(match, rules[index]);
448
- if (token !== false) {
449
- return token;
450
- }
451
- return false;
452
- }
453
- if (this._input === "") {
454
- return this.EOF;
455
- } else {
456
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
457
- text: "",
458
- token: null,
459
- line: this.yylineno
460
- });
461
- }
462
- }, "next"),
463
- // return next match that has a token
464
- lex: /* @__PURE__ */ __name(function lex() {
465
- var r = this.next();
466
- if (r) {
467
- return r;
468
- } else {
469
- return this.lex();
470
- }
471
- }, "lex"),
472
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
473
- begin: /* @__PURE__ */ __name(function begin(condition) {
474
- this.conditionStack.push(condition);
475
- }, "begin"),
476
- // pop the previously active lexer condition state off the condition stack
477
- popState: /* @__PURE__ */ __name(function popState() {
478
- var n = this.conditionStack.length - 1;
479
- if (n > 0) {
480
- return this.conditionStack.pop();
481
- } else {
482
- return this.conditionStack[0];
483
- }
484
- }, "popState"),
485
- // produce the lexer rule set which is active for the currently active lexer condition state
486
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
487
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
488
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
489
- } else {
490
- return this.conditions["INITIAL"].rules;
491
- }
492
- }, "_currentRules"),
493
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
494
- topState: /* @__PURE__ */ __name(function topState(n) {
495
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
496
- if (n >= 0) {
497
- return this.conditionStack[n];
498
- } else {
499
- return "INITIAL";
500
- }
501
- }, "topState"),
502
- // alias for begin(condition)
503
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
504
- this.begin(condition);
505
- }, "pushState"),
506
- // return the number of states currently on the stack
507
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
508
- return this.conditionStack.length;
509
- }, "stateStackSize"),
510
- options: { "case-insensitive": true },
511
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
512
- switch ($avoiding_name_collisions) {
513
- case 0:
514
- this.pushState("shapeData");
515
- yy_.yytext = "";
516
- return 24;
517
- case 1:
518
- this.pushState("shapeDataStr");
519
- return 24;
520
- case 2:
521
- this.popState();
522
- return 24;
523
- case 3:
524
- const re = /\n\s*/g;
525
- yy_.yytext = yy_.yytext.replace(re, "<br/>");
526
- return 24;
527
- case 4:
528
- return 24;
529
- case 5:
530
- this.popState();
531
- break;
532
- case 6:
533
- yy.getLogger().trace("Found comment", yy_.yytext);
534
- return 6;
535
- case 7:
536
- return 8;
537
- case 8:
538
- this.begin("CLASS");
539
- break;
540
- case 9:
541
- this.popState();
542
- return 17;
543
- case 10:
544
- this.popState();
545
- break;
546
- case 11:
547
- yy.getLogger().trace("Begin icon");
548
- this.begin("ICON");
549
- break;
550
- case 12:
551
- yy.getLogger().trace("SPACELINE");
552
- return 6;
553
- case 13:
554
- return 7;
555
- case 14:
556
- return 16;
557
- case 15:
558
- yy.getLogger().trace("end icon");
559
- this.popState();
560
- break;
561
- case 16:
562
- yy.getLogger().trace("Exploding node");
563
- this.begin("NODE");
564
- return 20;
565
- case 17:
566
- yy.getLogger().trace("Cloud");
567
- this.begin("NODE");
568
- return 20;
569
- case 18:
570
- yy.getLogger().trace("Explosion Bang");
571
- this.begin("NODE");
572
- return 20;
573
- case 19:
574
- yy.getLogger().trace("Cloud Bang");
575
- this.begin("NODE");
576
- return 20;
577
- case 20:
578
- this.begin("NODE");
579
- return 20;
580
- case 21:
581
- this.begin("NODE");
582
- return 20;
583
- case 22:
584
- this.begin("NODE");
585
- return 20;
586
- case 23:
587
- this.begin("NODE");
588
- return 20;
589
- case 24:
590
- return 13;
591
- case 25:
592
- return 23;
593
- case 26:
594
- return 11;
595
- case 27:
596
- this.begin("NSTR2");
597
- break;
598
- case 28:
599
- return "NODE_DESCR";
600
- case 29:
601
- this.popState();
602
- break;
603
- case 30:
604
- yy.getLogger().trace("Starting NSTR");
605
- this.begin("NSTR");
606
- break;
607
- case 31:
608
- yy.getLogger().trace("description:", yy_.yytext);
609
- return "NODE_DESCR";
610
- case 32:
611
- this.popState();
612
- break;
613
- case 33:
614
- this.popState();
615
- yy.getLogger().trace("node end ))");
616
- return "NODE_DEND";
617
- case 34:
618
- this.popState();
619
- yy.getLogger().trace("node end )");
620
- return "NODE_DEND";
621
- case 35:
622
- this.popState();
623
- yy.getLogger().trace("node end ...", yy_.yytext);
624
- return "NODE_DEND";
625
- case 36:
626
- this.popState();
627
- yy.getLogger().trace("node end ((");
628
- return "NODE_DEND";
629
- case 37:
630
- this.popState();
631
- yy.getLogger().trace("node end (-");
632
- return "NODE_DEND";
633
- case 38:
634
- this.popState();
635
- yy.getLogger().trace("node end (-");
636
- return "NODE_DEND";
637
- case 39:
638
- this.popState();
639
- yy.getLogger().trace("node end ((");
640
- return "NODE_DEND";
641
- case 40:
642
- this.popState();
643
- yy.getLogger().trace("node end ((");
644
- return "NODE_DEND";
645
- case 41:
646
- yy.getLogger().trace("Long description:", yy_.yytext);
647
- return 21;
648
- case 42:
649
- yy.getLogger().trace("Long description:", yy_.yytext);
650
- return 21;
651
- }
652
- }, "anonymous"),
653
- rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
654
- conditions: { "shapeDataEndBracket": { "rules": [], "inclusive": false }, "shapeDataStr": { "rules": [2, 3], "inclusive": false }, "shapeData": { "rules": [1, 4, 5], "inclusive": false }, "CLASS": { "rules": [9, 10], "inclusive": false }, "ICON": { "rules": [14, 15], "inclusive": false }, "NSTR2": { "rules": [28, 29], "inclusive": false }, "NSTR": { "rules": [31, 32], "inclusive": false }, "NODE": { "rules": [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "inclusive": false }, "INITIAL": { "rules": [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "inclusive": true } }
655
- };
656
- return lexer2;
657
- })();
658
- parser2.lexer = lexer;
659
- function Parser() {
660
- this.yy = {};
661
- }
662
- __name(Parser, "Parser");
663
- Parser.prototype = parser2;
664
- parser2.Parser = Parser;
665
- return new Parser();
666
- })();
667
- parser.parser = parser;
668
- var kanban_default = parser;
669
- var nodes = [];
670
- var sections = [];
671
- var cnt = 0;
672
- var elements = {};
673
- var clear = /* @__PURE__ */ __name(() => {
674
- nodes = [];
675
- sections = [];
676
- cnt = 0;
677
- elements = {};
678
- }, "clear");
679
- var getSection = /* @__PURE__ */ __name((level) => {
680
- if (nodes.length === 0) {
681
- return null;
682
- }
683
- const sectionLevel = nodes[0].level;
684
- let lastSection = null;
685
- for (let i = nodes.length - 1; i >= 0; i--) {
686
- if (nodes[i].level === sectionLevel && !lastSection) {
687
- lastSection = nodes[i];
688
- }
689
- if (nodes[i].level < sectionLevel) {
690
- throw new Error('Items without section detected, found section ("' + nodes[i].label + '")');
691
- }
692
- }
693
- if (level === lastSection?.level) {
694
- return null;
695
- }
696
- return lastSection;
697
- }, "getSection");
698
- var getSections = /* @__PURE__ */ __name(function() {
699
- return sections;
700
- }, "getSections");
701
- var getData = /* @__PURE__ */ __name(function() {
702
- const edges = [];
703
- const _nodes = [];
704
- const sections2 = getSections();
705
- const conf = getConfig2();
706
- for (const section of sections2) {
707
- const node = {
708
- id: section.id,
709
- label: sanitizeText(section.label ?? "", conf),
710
- labelType: "markdown",
711
- isGroup: true,
712
- ticket: section.ticket,
713
- shape: "kanbanSection",
714
- level: section.level,
715
- look: conf.look
716
- };
717
- _nodes.push(node);
718
- const children = nodes.filter((n) => n.parentId === section.id);
719
- for (const item of children) {
720
- const childNode = {
721
- id: item.id,
722
- parentId: section.id,
723
- label: sanitizeText(item.label ?? "", conf),
724
- labelType: "markdown",
725
- isGroup: false,
726
- ticket: item?.ticket,
727
- priority: item?.priority,
728
- assigned: item?.assigned,
729
- icon: item?.icon,
730
- shape: "kanbanItem",
731
- level: item.level,
732
- rx: 5,
733
- ry: 5,
734
- cssStyles: ["text-align: left"]
735
- };
736
- _nodes.push(childNode);
737
- }
738
- }
739
- return { nodes: _nodes, edges, other: {}, config: getConfig2() };
740
- }, "getData");
741
- var addNode = /* @__PURE__ */ __name((level, id, descr, type, shapeData) => {
742
- const conf = getConfig2();
743
- let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
744
- switch (type) {
745
- case nodeType.ROUNDED_RECT:
746
- case nodeType.RECT:
747
- case nodeType.HEXAGON:
748
- padding *= 2;
749
- }
750
- const node = {
751
- id: sanitizeText(id, conf) || "kbn" + cnt++,
752
- level,
753
- label: sanitizeText(descr, conf),
754
- width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
755
- padding,
756
- isGroup: false
757
- };
758
- if (shapeData !== void 0) {
759
- let yamlData;
760
- if (!shapeData.includes("\n")) {
761
- yamlData = "{\n" + shapeData + "\n}";
762
- } else {
763
- yamlData = shapeData + "\n";
764
- }
765
- const doc = load(yamlData, { schema: JSON_SCHEMA });
766
- if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_"))) {
767
- throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
768
- }
769
- if (doc?.shape && doc.shape === "kanbanItem") {
770
- node.shape = doc?.shape;
771
- }
772
- if (doc?.label) {
773
- node.label = doc?.label;
774
- }
775
- if (doc?.icon) {
776
- node.icon = doc?.icon.toString();
777
- }
778
- if (doc?.assigned) {
779
- node.assigned = doc?.assigned.toString();
780
- }
781
- if (doc?.ticket) {
782
- node.ticket = doc?.ticket.toString();
783
- }
784
- if (doc?.priority) {
785
- node.priority = doc?.priority;
786
- }
787
- }
788
- const section = getSection(level);
789
- if (section) {
790
- node.parentId = section.id || "kbn" + cnt++;
791
- } else {
792
- sections.push(node);
793
- }
794
- nodes.push(node);
795
- }, "addNode");
796
- var nodeType = {
797
- DEFAULT: 0,
798
- NO_BORDER: 0,
799
- ROUNDED_RECT: 1,
800
- RECT: 2,
801
- CIRCLE: 3,
802
- CLOUD: 4,
803
- BANG: 5,
804
- HEXAGON: 6
805
- };
806
- var getType = /* @__PURE__ */ __name((startStr, endStr) => {
807
- log.debug("In get type", startStr, endStr);
808
- switch (startStr) {
809
- case "[":
810
- return nodeType.RECT;
811
- case "(":
812
- return endStr === ")" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;
813
- case "((":
814
- return nodeType.CIRCLE;
815
- case ")":
816
- return nodeType.CLOUD;
817
- case "))":
818
- return nodeType.BANG;
819
- case "{{":
820
- return nodeType.HEXAGON;
821
- default:
822
- return nodeType.DEFAULT;
823
- }
824
- }, "getType");
825
- var setElementForId = /* @__PURE__ */ __name((id, element) => {
826
- elements[id] = element;
827
- }, "setElementForId");
828
- var decorateNode = /* @__PURE__ */ __name((decoration) => {
829
- if (!decoration) {
830
- return;
831
- }
832
- const config = getConfig2();
833
- const node = nodes[nodes.length - 1];
834
- if (decoration.icon) {
835
- node.icon = sanitizeText(decoration.icon, config);
836
- }
837
- if (decoration.class) {
838
- node.cssClasses = sanitizeText(decoration.class, config);
839
- }
840
- }, "decorateNode");
841
- var type2Str = /* @__PURE__ */ __name((type) => {
842
- switch (type) {
843
- case nodeType.DEFAULT:
844
- return "no-border";
845
- case nodeType.RECT:
846
- return "rect";
847
- case nodeType.ROUNDED_RECT:
848
- return "rounded-rect";
849
- case nodeType.CIRCLE:
850
- return "circle";
851
- case nodeType.CLOUD:
852
- return "cloud";
853
- case nodeType.BANG:
854
- return "bang";
855
- case nodeType.HEXAGON:
856
- return "hexgon";
857
- // cspell: disable-line
858
- default:
859
- return "no-border";
860
- }
861
- }, "type2Str");
862
- var getLogger = /* @__PURE__ */ __name(() => log, "getLogger");
863
- var getElementById = /* @__PURE__ */ __name((id) => elements[id], "getElementById");
864
- var db = {
865
- clear,
866
- addNode,
867
- getSections,
868
- getData,
869
- nodeType,
870
- getType,
871
- setElementForId,
872
- decorateNode,
873
- type2Str,
874
- getLogger,
875
- getElementById
876
- };
877
- var kanbanDb_default = db;
878
- var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
879
- log.debug("Rendering kanban diagram\n" + text);
880
- const db2 = diagObj.db;
881
- const data4Layout = db2.getData();
882
- const conf = getConfig2();
883
- conf.htmlLabels = false;
884
- const svg = selectSvgElement(id);
885
- for (const node of data4Layout.nodes) {
886
- node.domId = `${id}-${node.id}`;
887
- }
888
- const sectionsElem = svg.append("g");
889
- sectionsElem.attr("class", "sections");
890
- const nodesElem = svg.append("g");
891
- nodesElem.attr("class", "items");
892
- const sections2 = data4Layout.nodes.filter(
893
- // TODO: TypeScript 5.5 will infer this predicate automatically
894
- (node) => node.isGroup
895
- );
896
- let cnt2 = 0;
897
- const padding = 10;
898
- const sectionObjects = [];
899
- let maxLabelHeight = 25;
900
- for (const section of sections2) {
901
- const WIDTH = conf?.kanban?.sectionWidth || 200;
902
- cnt2 = cnt2 + 1;
903
- section.x = WIDTH * cnt2 + (cnt2 - 1) * padding / 2;
904
- section.width = WIDTH;
905
- section.y = 0;
906
- section.height = WIDTH * 3;
907
- section.rx = 5;
908
- section.ry = 5;
909
- section.cssClasses = section.cssClasses + " section-" + cnt2;
910
- const sectionObj = await insertCluster(sectionsElem, section);
911
- maxLabelHeight = Math.max(maxLabelHeight, sectionObj?.labelBBox?.height);
912
- sectionObjects.push(sectionObj);
913
- }
914
- let i = 0;
915
- for (const section of sections2) {
916
- const sectionObj = sectionObjects[i];
917
- i = i + 1;
918
- const WIDTH = conf?.kanban?.sectionWidth || 200;
919
- const top = -WIDTH * 3 / 2 + maxLabelHeight;
920
- let y = top;
921
- const sectionItems = data4Layout.nodes.filter((node) => node.parentId === section.id);
922
- for (const item of sectionItems) {
923
- if (item.isGroup) {
924
- throw new Error("Groups within groups are not allowed in Kanban diagrams");
925
- }
926
- item.x = section.x;
927
- item.width = WIDTH - 1.5 * padding;
928
- const nodeEl = await insertNode(nodesElem, item, { config: conf });
929
- const bbox = nodeEl.node().getBBox();
930
- item.y = y + bbox.height / 2;
931
- await positionNode(item);
932
- y = item.y + bbox.height / 2 + padding / 2;
933
- }
934
- const rect = sectionObj.cluster.select("rect");
935
- const height = Math.max(y - top + 3 * padding, 50) + (maxLabelHeight - 25);
936
- rect.attr("height", height);
937
- }
938
- setupGraphViewbox(
939
- void 0,
940
- svg,
941
- conf.mindmap?.padding ?? defaultConfig_default.kanban.padding,
942
- conf.mindmap?.useMaxWidth ?? defaultConfig_default.kanban.useMaxWidth
943
- );
944
- }, "draw");
945
- var kanbanRenderer_default = {
946
- draw
947
- };
948
- var genSections = /* @__PURE__ */ __name((options) => {
949
- let sections2 = "";
950
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
951
- options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
952
- if (isDark(options["lineColor" + i])) {
953
- options["lineColor" + i] = lighten(options["lineColor" + i], 20);
954
- } else {
955
- options["lineColor" + i] = darken(options["lineColor" + i], 20);
956
- }
957
- }
958
- const adjuster = /* @__PURE__ */ __name((color, level) => options.darkMode ? darken(color, level) : lighten(color, level), "adjuster");
959
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
960
- const sw = "" + (17 - 3 * i);
961
- sections2 += `
962
- .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
963
- fill: ${adjuster(options["cScale" + i], 10)};
964
- stroke: ${adjuster(options["cScale" + i], 10)};
965
-
966
- }
967
- .section-${i - 1} text {
968
- fill: ${options["cScaleLabel" + i]};
969
- }
970
- .node-icon-${i - 1} {
971
- font-size: 40px;
972
- color: ${options["cScaleLabel" + i]};
973
- }
974
- .section-edge-${i - 1}{
975
- stroke: ${options["cScale" + i]};
976
- }
977
- .edge-depth-${i - 1}{
978
- stroke-width: ${sw};
979
- }
980
- .section-${i - 1} line {
981
- stroke: ${options["cScaleInv" + i]} ;
982
- stroke-width: 3;
983
- }
984
-
985
- .disabled, .disabled circle, .disabled text {
986
- fill: lightgray;
987
- }
988
- .disabled text {
989
- fill: #efefef;
990
- }
991
-
992
- .node rect,
993
- .node circle,
994
- .node ellipse,
995
- .node polygon,
996
- .node path {
997
- fill: ${options.background};
998
- stroke: ${options.nodeBorder};
999
- stroke-width: 1px;
1000
- }
1001
-
1002
- .kanban-ticket-link {
1003
- fill: ${options.background};
1004
- stroke: ${options.nodeBorder};
1005
- text-decoration: underline;
1006
- }
1007
- `;
1008
- }
1009
- return sections2;
1010
- }, "genSections");
1011
- var getStyles = /* @__PURE__ */ __name((options) => `
1012
- .edge {
1013
- stroke-width: 3;
1014
- }
1015
- ${genSections(options)}
1016
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1017
- fill: ${options.git0};
1018
- }
1019
- .section-root text {
1020
- fill: ${options.gitBranchLabel0};
1021
- }
1022
- .icon-container {
1023
- height:100%;
1024
- display: flex;
1025
- justify-content: center;
1026
- align-items: center;
1027
- }
1028
- .edge {
1029
- fill: none;
1030
- }
1031
- .cluster-label, .label {
1032
- color: ${options.textColor};
1033
- fill: ${options.textColor};
1034
- }
1035
- .kanban-label {
1036
- dy: 1em;
1037
- alignment-baseline: middle;
1038
- text-anchor: middle;
1039
- dominant-baseline: middle;
1040
- text-align: center;
1041
- }
1042
- ${getIconStyles()}
1043
- `, "getStyles");
1044
- var styles_default = getStyles;
1045
- var diagram = {
1046
- db: kanbanDb_default,
1047
- renderer: kanbanRenderer_default,
1048
- parser: kanban_default,
1049
- styles: styles_default
1050
- };
1051
- export {
1052
- diagram
1053
- };