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