@marimo-team/islands 0.23.17-dev8 → 0.24.0
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/dist/{ConnectedDataExplorerComponent-f9vLjQiF.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
- package/dist/{ErrorBoundary-DhLqwSWA.js → ErrorBoundary-BniTEhHn.js} +7 -7
- package/dist/{ImageComparisonComponent-C3y7L3eJ.js → ImageComparisonComponent-B7b8DcJI.js} +42 -31
- package/dist/{Plot-YQOuVIei.js → Plot-eTseCFf_.js} +4 -4
- package/dist/_initCloneObject-DNUst5Cg.js +91 -0
- package/dist/abnfDiagram-N423BO3Z-DA4j92-C.js +112 -0
- package/dist/{any-language-editor-DifE-fl7.js → any-language-editor-LHl8ZmVN.js} +26 -26
- package/dist/apl-Cwo7GIH7.js +4 -0
- package/dist/{arc-CTIpFoOn.js → arc-9nABupDE.js} +2 -2
- package/dist/architecture-TIHT7OUA-DxLlkuAK.js +5 -0
- package/dist/{architectureDiagram-VXUJARFQ-DXwkyAaM.js → architectureDiagram-T3A2C74G-BBlBK1Oh.js} +327 -214
- package/dist/{arrays-sEtDRoG4.js → arrays-C56grfjL.js} +1 -1
- package/dist/asciiarmor-jrfEZ3j_.js +4 -0
- package/dist/asn1-BNEiJ4nQ.js +4 -0
- package/dist/assets/__vite-browser-external-DUz7vvG0.js +1 -0
- package/dist/assets/{worker-CDEKsBgX.js → worker-Cl1KJG2_.js} +2 -2
- package/dist/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
- package/dist/brainfuck-BCunvTbd.js +4 -0
- package/dist/{button-BSm8IXRU.js → button-Dr2uAwhT.js} +9 -7
- package/dist/{c4Diagram-YG6GDRKO-B6dZC_oU.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
- package/dist/{capabilities-C6OQ5YBO.js → capabilities-BilXeZ7p.js} +2 -2
- package/dist/{channel-BN070S0F.js → channel-CuV_jmG4.js} +1 -1
- package/dist/chat-ui-o-tATfmW.js +8619 -0
- package/dist/{check-DP7U0H0G.js → check-58HHfHKy.js} +1 -1
- package/dist/chunk-2GRJ4B5K-DRayWnnu.js +68 -0
- package/dist/{chunk-QZHKN3VN-Dym5BS7y.js → chunk-2Q5K7J3B-BSLyFOHa.js} +1 -1
- package/dist/chunk-3NCLNEKW-BPlp8K7N.js +11 -0
- package/dist/chunk-4I5QYGJK-CYJC3pkC.js +260 -0
- package/dist/chunk-5FCAYU7R-C3cMIeyz.js +24 -0
- package/dist/{chunk-5FQGJX7Z-B9WoXK1R.js → chunk-5FQGJX7Z-BRZ_XYUw.js} +6 -6
- package/dist/chunk-5HE753X5-D2jFCVXb.js +34 -0
- package/dist/chunk-5JV3BV7I-B7tzprBU.js +50 -0
- package/dist/{chunk-DI55MBZ5-D4Y8yV8B.js → chunk-5RXB4S5H-DcCPfb0q.js} +373 -327
- package/dist/chunk-5TONJI2A-LRqbgPte.js +59 -0
- package/dist/{chunk-FMBD7UC4-quJmebXa.js → chunk-5VM5RSS4-ChXEBudA.js} +1 -1
- package/dist/chunk-6Q2QTUOP-zcnb3OaV.js +503 -0
- package/dist/{chunk-HN2XXSSU-Bv0QkeMr.js → chunk-7BUUIJ7U-CkIbJNZo.js} +32 -25
- package/dist/chunk-7Z6QIM7H-1j-x7ddW.js +606 -0
- package/dist/{chunk-FRFDVMJY-BHBqN-vD.js → chunk-BIQX33UG-B-BYk6sM.js} +3 -3
- package/dist/chunk-Bfp04NdC.js +25 -0
- package/dist/chunk-CQNSW5MT-DBXDKSOU.js +34 -0
- package/dist/{chunk-4F5CHEZ2-VlodlEGo.js → chunk-CYSBUYHQ-Cv-vKQV-.js} +1 -1
- package/dist/{chunk-SJTYNZTY-DnXoKWpW.js → chunk-EMLP6XTP-DCtMkXLF.js} +1 -1
- package/dist/{chunk-B4BG7PRW-B_z2FEHm.js → chunk-GF5L2VYU-esTxzELH.js} +878 -636
- package/dist/chunk-I66GZJ75-9xAsFrdW.js +3744 -0
- package/dist/chunk-J7OUQ5F2-CbNBTlFM.js +81 -0
- package/dist/chunk-JG7HCLWE-CZIm6axg.js +59 -0
- package/dist/{flowDiagram-NV44I4VS-BRhSg-ro.js → chunk-JQJVKLGR-ZALkKVji.js} +1019 -1001
- package/dist/{chunk-4BX2VUAB-iU5lQTDI.js → chunk-JWPE2WC7-C_Daz-Oc.js} +1 -1
- package/dist/{chunk-QN33PNHL-DPBNNzpR.js → chunk-KBJHAD2P-B7m9DztL.js} +3 -2
- package/dist/chunk-KEIR6QF5-aP6TmWQ-.js +21095 -0
- package/dist/{chunk-UMXZTB3W-D1uHz8MN.js → chunk-MOZMSUNE-BQi-ggQx.js} +7 -4
- package/dist/{chunk-S3R3BYOJ-BdgLc8AM.js → chunk-NSK5VX7P-BmmoJBbx.js} +320 -29
- package/dist/chunk-OSBZ3O6U-BcrmpSY_.js +22 -0
- package/dist/{chunk-TQ3KTPDO-CsDx6v37.js → chunk-QBLGF6JB-BACuPUWb.js} +3 -3
- package/dist/chunk-QR6OTTB3-C4L1dLRd.js +3762 -0
- package/dist/{chunk-B2363JML-zL3VngtH.js → chunk-R7FJI6CG-BYAXJpIb.js} +3 -3
- package/dist/chunk-RYQCIY6F-poA0Ugpr.js +243 -0
- package/dist/chunk-U6XO7XAA-I8tCjTeT.js +60 -0
- package/dist/chunk-UBXNYLIW-C8LueN5Q.js +34 -0
- package/dist/{chunk-ATLVNIR6-qFiszptQ.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
- package/dist/{chunk-JA3XYJ7Z-CY4CRbV5.js → chunk-WRU74C26-DLgw-V0j.js} +262 -451
- package/dist/chunk-XXDRQBXY-Dzcp3rUR.js +9 -0
- package/dist/chunk-Y2CYZVJY-DX3DSigL.js +13 -0
- package/dist/{chunk-PL6DKKU2-CAHKc95s.js → chunk-YOTPTUD7-C8qfgaz5.js} +5 -5
- package/dist/{chunk-MI3HLSF2-HGWI-8Pg.js → chunk-ZIRB5QZD-_JX1DzEJ.js} +12 -8
- package/dist/classDiagram-JCYQIIEL-D8A6ZyXv.js +32 -0
- package/dist/classDiagram-v2-OCEON4UE-DIdYl-t3.js +32 -0
- package/dist/{click-outside-container-BSIeYt4y.js → click-outside-container-BZNsAj09.js} +2 -2
- package/dist/{clike-7lgyEYRk.js → clike-CWndBX_M.js} +1 -1
- package/dist/clojure-2X0Rfij9.js +4 -0
- package/dist/cmake-DEwzCy9U.js +4 -0
- package/dist/cobol-Ck4eCoAB.js +4 -0
- package/dist/{code-block-37QAKDTI-MSxEjskJ.js → code-block-37QAKDTI-B4pWe5MI.js} +4 -4
- package/dist/coffeescript-bB1IDwhg.js +4 -0
- package/dist/{common-BLoQG6ym.js → common-DV4qU2ew.js} +797 -804
- package/dist/commonlisp-BDYrVBNC.js +4 -0
- package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
- package/dist/{copy-DNq8q3zw.js → copy-C7ZKMKox.js} +5 -5
- package/dist/{cose-bilkent-S5V4N54A-BYj0aL7z.js → cose-bilkent-JH36ORCC-D6iQzSi6.js} +6 -5
- package/dist/crystal-BSoiVUiH.js +4 -0
- package/dist/css-w1h9i21f.js +4 -0
- package/dist/cynefin-VYW2F7L2-DnZOHyNF.js +5 -0
- package/dist/cynefinDiagram-MW4NZA55-B1GNPS2u.js +367 -0
- package/dist/cypher-B4xzuKGP.js +4 -0
- package/dist/{cytoscape.esm-Dr8XzXWK.js → cytoscape.esm-BPa26Dup.js} +393 -334
- package/dist/d-D50Bz34p.js +4 -0
- package/dist/{dagre-By_QsQgc.js → dagre-ThTNj8pe.js} +60 -45
- package/dist/dagre-VZM6K2ZE-DEs5dfXA.js +343 -0
- package/dist/{data-grid-overlay-editor-BWRG2b_o.js → data-grid-overlay-editor-Ci7TXVf5.js} +5 -5
- package/dist/{debounce-BOD3DbfP.js → debounce-D784bpms.js} +2 -2
- package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-CMezyvMc.js} +26 -26
- package/dist/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
- package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
- package/dist/{diagram-S2PKOQOG-CGh4OMEV.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
- package/dist/{diagram-PSM6KHXK-D4ftnaua.js → diagram-Q27KOJAE-NPRzyGtd.js} +68 -63
- package/dist/diagram-UB23O5K3-Dogz4itg.js +236 -0
- package/dist/diff-BMdzfXq-.js +4 -0
- package/dist/{dist-BTdrwBWP.js → dist-72nb8Uag.js} +3 -3
- package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
- package/dist/{dist-BOMbzyb3.js → dist-Awj73yUw.js} +3 -3
- package/dist/{dist-w_gWE5Wf.js → dist-B0Ctcrt9.js} +1 -1
- package/dist/{dist-BO5HRiTf.js → dist-B1Donbpk.js} +2 -2
- package/dist/dist-BC6wzWNb.js +5 -0
- package/dist/{dist-De-GlSAs.js → dist-BJ2IUa0l.js} +15 -9
- package/dist/dist-BMd_RcOy.js +5 -0
- package/dist/dist-BZEWjN6r.js +5 -0
- package/dist/{dist-BP39XM8u.js → dist-B_K4AAkc.js} +1 -1
- package/dist/dist-BeuGjR3n.js +6 -0
- package/dist/dist-BfDQCUe6.js +5 -0
- package/dist/dist-BhNblTOV.js +8 -0
- package/dist/{dist-BPF0gTRZ.js → dist-C0ifRfXi.js} +1 -1
- package/dist/{dist-pqIwD8VD.js → dist-C3mEki35.js} +2 -2
- package/dist/{dist-LpLXa9Lb.js → dist-CNfV2vDI.js} +2 -2
- package/dist/{dist-DviUBLUp.js → dist-COcQ5Vyc.js} +4 -4
- package/dist/dist-CRCm4Fuo.js +5 -0
- package/dist/{dist-4lVIWUT3.js → dist-CSZpLb9d.js} +1 -1
- package/dist/{dist-BIEt-mlF.js → dist-CWswQBvu.js} +1 -1
- package/dist/{dist-D3bdsa1d.js → dist-CXYro_Nw.js} +4 -4
- package/dist/{dist-CRmSjkLP.js → dist-Ckfsc8C3.js} +2 -2
- package/dist/{dist-CSlJrrAw.js → dist-Cyq6Pxtv.js} +1 -1
- package/dist/{dist-JGehap7K.js → dist-D-BWPyoX.js} +5 -5
- package/dist/{dist-BCX980mU.js → dist-D-YB6j-O.js} +2 -2
- package/dist/{dist-DgjbnqTg.js → dist-D1vYHETp.js} +2 -2
- package/dist/{dist-BpeiYpG2.js → dist-D9-ePb6D.js} +2 -2
- package/dist/dist-DBPEbGkd.js +8 -0
- package/dist/{dist-C2_4pjuS.js → dist-DC409ROm.js} +1 -1
- package/dist/{dist-BdqCKQ1O.js → dist-DJRUd9aM.js} +2 -2
- package/dist/{dist-DaXJPX8F.js → dist-DLvxZEAK.js} +2 -2
- package/dist/dist-DSsl8IAI.js +5 -0
- package/dist/{dist-3NCqaWjt.js → dist-D_ulymry.js} +2 -2
- package/dist/{dist-DZwp8lro.js → dist-DgY27bJ4.js} +3 -3
- package/dist/{dist-BwhXBwMd.js → dist-DiwVZiK7.js} +1 -1
- package/dist/{dist-DwqBJ014.js → dist-DnYHhW6c.js} +2 -2
- package/dist/dist-Dx0kkrek.js +5 -0
- package/dist/{dist-DsoKosxi.js → dist-HaLHv0k5.js} +2 -3
- package/dist/dist-NKA1TU8a.js +6 -0
- package/dist/dist-ZFcsIdHj.js +8 -0
- package/dist/{dist-C18MUWTj.js → dist-iZ8-rtUy.js} +2 -2
- package/dist/{dist-DIlxLFXG.js → dist-j30bBjjN.js} +15 -15
- package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
- package/dist/{dist-CFSb_Frm.js → dist-sxRUVPmt.js} +1 -1
- package/dist/dist-uA2RbGmY.js +5 -0
- package/dist/{dist-B2jmQKKx.js → dist-xVU82Nq7.js} +2 -2
- package/dist/dist-zSCo-xCB.js +8 -0
- package/dist/{dockerfile-B82Pkz_V.js → dockerfile-DImRFUlA.js} +1 -1
- package/dist/dtd-B9dCT0pu.js +4 -0
- package/dist/dylan-DLghDyuR.js +4 -0
- package/dist/ebnfDiagram-BXEA7PRR-CqRWkG7L.js +129 -0
- package/dist/ecl-w0qdPHDB.js +4 -0
- package/dist/eiffel-C5AWRCNP.js +4 -0
- package/dist/elm-CT8FZrOm.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-BcKAHFqF.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
- package/dist/erlang-DPD-9M5g.js +4 -0
- package/dist/{error-banner-B_GQfxxD.js → error-banner-BwCLtmkH.js} +6 -6
- package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
- package/dist/{esm-DKOv6P2M.js → esm-Dusmf6uu.js} +105 -105
- package/dist/{esm-DzZVaNH4.js → esm-QLUgkqzZ.js} +6 -6
- package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
- package/dist/{extends-w2_S44bV.js → extends-iFBneQO_.js} +9 -9
- package/dist/{factor-Bq2mGIHt.js → factor-BonZgUGg.js} +1 -1
- package/dist/factor-rFfeJu3r.js +4 -0
- package/dist/flowDiagram-UKHOOZJN-DqIE8_b3.js +21 -0
- package/dist/{formats-Dwq1THhr.js → formats-HSfYlcA8.js} +7 -7
- package/dist/forth-C-3AyQx4.js +4 -0
- package/dist/fortran-BSN9TeT7.js +4 -0
- package/dist/ganttDiagram-PKOTCBZU-Bc9puoXb.js +2207 -0
- package/dist/gas-DwmuvQpB.js +4 -0
- package/dist/gherkin-gmCjL-Sn.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-BjTx0kww.js → gitGraph-TEB2WS4Q-DVzLmQHc.js} +2 -3
- package/dist/gitGraphDiagram-DS77QQ5N-CqKr-Dfg.js +766 -0
- package/dist/{glide-data-editor-B9K6-MJe.js → glide-data-editor-BI2i_IEE.js} +18 -18
- package/dist/graphlib-DMVIRZap.js +614 -0
- package/dist/groovy-DCjvesOy.js +4 -0
- package/dist/hasIn-synBnXn4.js +119 -0
- package/dist/haskell-C1p0D9L8.js +4 -0
- package/dist/haxe-q-fgv0zr.js +5 -0
- package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-BOiFHx3u.js} +7535 -3056
- package/dist/idl-Bmg4bsnK.js +4 -0
- package/dist/{info-VBDWY6EO-CA67FznA.js → info-DKCQHKI2-BxOTqQHM.js} +2 -3
- package/dist/infoDiagram-6WML65LV-B869X2KY.js +37 -0
- package/dist/{input-C5K4VBvB.js → input-BRE2a7Ay.js} +13 -13
- package/dist/{_baseFor-4jw-lnCC.js → isArrayLikeObject-CBUaLibE.js} +96 -29
- package/dist/{isEmpty-CJJMn-QP.js → isEmpty-CgME6WRV.js} +15 -15
- package/dist/{isSymbol-CoUCgMCM.js → isSymbol-Ch3GYg4S.js} +1 -1
- package/dist/ishikawaDiagram-WSZJBQD7-BrOMFBYy.js +731 -0
- package/dist/javascript-BY5QZ-eN.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DEal0aT1.js → journeyDiagram-NVQOT4AX-CTwHlsTm.js} +124 -123
- package/dist/{jsx-runtime-DebpN0FN.js → jsx-runtime-Dp_oQwaf.js} +1 -1
- package/dist/julia-DbR1YalK.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-Dl90wENN.js → kanban-definition-27J2QSJJ-CKowzO9_.js} +51 -45
- package/dist/{katex-C4t-BmrK.js → katex-Ci33kJVq.js} +1 -1
- package/dist/{katex-Bld7b-fk.js → katex-Dp22h6yO.js} +2871 -3002
- package/dist/{label-DjoYwqmj.js → label-CMh2d8pJ.js} +6 -6
- package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
- package/dist/{linear-H_vsH9ao.js → linear-6pDlrp1I.js} +4 -4
- package/dist/livescript-BDUooIeL.js +4 -0
- package/dist/{loader-DX-IDS7n.js → loader-DTnbNSVZ.js} +11 -11
- package/dist/lua-CswAWSkH.js +4 -0
- package/dist/main.js +747 -752
- package/dist/map-BQ_Xp80D.js +137 -0
- package/dist/mathematica-Bw7v11B5.js +4 -0
- package/dist/mbox-j35IMz1j.js +4 -0
- package/dist/merge-CDbSrd9f.js +69 -0
- package/dist/mermaid-4DMBBIKO-BZSpTmcx.js +6 -0
- package/dist/mermaid-DpAz2sTy.js +1265 -0
- package/dist/mermaid-parser.core-BQzz3_BI.js +87 -0
- package/dist/{mhchem-EGhUZR1V.js → mhchem-BDHjke3h.js} +1 -1
- package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-Cr4NxAt3.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CCDupjWW.js → mindmap-definition-FAOFIHXS-CTsi-HFj.js} +126 -80
- package/dist/mirc-Ba_RHVXO.js +4 -0
- package/dist/mllike-DbTP2dPp.js +6 -0
- package/dist/modelica-lpT3V1X6.js +4 -0
- package/dist/mscgen-BN4ZSJMx.js +6 -0
- package/dist/mumps-uI5g1A0g.js +4 -0
- package/dist/{node-sql-parser-v1Vi-Fft.js → node-sql-parser-BaLGWQe1.js} +1 -1
- package/dist/{now-Ch98bJO_.js → now-sFWt-GLC.js} +2 -2
- package/dist/{nsis-i9_sgigf.js → nsis-C68fFq_o.js} +1 -1
- package/dist/nsis-Df56GiRg.js +4 -0
- package/dist/ntriples-B3LWuG7W.js +4 -0
- package/dist/{number-overlay-editor-Ck_mc_gT.js → number-overlay-editor-CeBHRJvI.js} +3 -3
- package/dist/octave-CovfQgOx.js +4 -0
- package/dist/{once-B60G2fuJ.js → once-Boutk_9X.js} +1 -1
- package/dist/{ordinal-Bkv2-veX.js → ordinal-Bdajf2BE.js} +1 -1
- package/dist/oz-DQQAvVFb.js +4 -0
- package/dist/{packet-DYOGHKS2-Bkgofxf3.js → packet-7NZHBO7P-BG8whXXH.js} +2 -3
- package/dist/pascal-xz94P9sf.js +4 -0
- package/dist/pegDiagram-VL7TDLO6-CNpT8Sqz.js +124 -0
- package/dist/perl-aEWKE-1n.js +4 -0
- package/dist/pick-CaEWivSF.js +47 -0
- package/dist/{pie-VRWISCQL-B1AMhN_7.js → pie-RZYD4A2V-Cc_QhFbT.js} +2 -3
- package/dist/pieDiagram-7S7Q4E2Y-Ct8jRpe_.js +219 -0
- package/dist/pig-DB6DOZl7.js +4 -0
- package/dist/powershell-DM5saUx1.js +4 -0
- package/dist/{precisionRound-CnHPY_5v.js → precisionRound-BOoJTbDj.js} +1 -1
- package/dist/{process-output-bVfbcx5_.js → process-output-HrsM52f8.js} +7 -7
- package/dist/properties-BGjYQuGo.js +4 -0
- package/dist/protobuf-BPpEyPud.js +4 -0
- package/dist/{pug-BhE2JRSg.js → pug-DFPPZ3LA.js} +1 -1
- package/dist/pug-uJzB88ft.js +4 -0
- package/dist/puppet-oIm2d_Lg.js +4 -0
- package/dist/{purify.es-EnR5yhgI.js → purify.es-DR5PNXwx.js} +160 -155
- package/dist/python-WE57eUzD.js +4 -0
- package/dist/q-CR8xPodo.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BqDB9tUC.js → quadrantDiagram-CIZ2JOQS-B5n_xFcF.js} +429 -401
- package/dist/r-CJdmQZNj.js +4 -0
- package/dist/{radar-ZZBFDIW7-C2b7A32s.js → radar-I7S5WNFK-OhUkecXA.js} +2 -3
- package/dist/railroad-3IZDKUUU-1CmOpo1B.js +5 -0
- package/dist/railroad-abnf-AHOZXSZD-DmH4lsDS.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-CzK0md4e.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-DOklooKz.js +5 -0
- package/dist/railroadDiagram-AXF67PYL-BbUWbtf8.js +100 -0
- package/dist/{react-DA-nE2FX.js → react-DhGsCS90.js} +1 -1
- package/dist/{react-dom-BTJzcVJ9.js → react-dom-CmENFV8Q.js} +2 -2
- package/dist/{react-vega-BazDALhI.js → react-vega-zyfTF9SY.js} +8036 -4796
- package/dist/{requirementDiagram-UZGBJVZJ-KbVt8SPH.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
- package/dist/{reveal-component-BejXPHja.js → reveal-component-CYZAzXrV.js} +27 -28
- package/dist/rough.esm-lGyFQ0B-.js +1363 -0
- package/dist/rpm-Cm5K4RH9.js +5 -0
- package/dist/ruby-ArsuTozQ.js +4 -0
- package/dist/sankeyDiagram-W5VNT64P-D82rYiAG.js +942 -0
- package/dist/sas-DShligrE.js +4 -0
- package/dist/scheme-kDLirQL7.js +4 -0
- package/dist/sequenceDiagram-SI44F4Z6-DgVKU1s5.js +4281 -0
- package/dist/shell-CVQuWP_N.js +4 -0
- package/dist/sieve-BW-ePwnq.js +4 -0
- package/dist/sizeCapture-X5ZJPWSS-BQgxHTji.js +48 -0
- package/dist/smalltalk-DI4aAXxY.js +4 -0
- package/dist/sparql-B2sp0oiz.js +4 -0
- package/dist/{spec-CQKL_D3i.js → spec-BL1GSUUF.js} +4 -4
- package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
- package/dist/{stateDiagram-FKZM4ZOC-ByOvQf2n.js → stateDiagram-OKZ733FA-Cc9BchXz.js} +61 -58
- package/dist/stateDiagram-v2-UEYNNEHI-Dd4Tuw6F.js +32 -0
- package/dist/{step-BqHnkgWE.js → step-BqVgkWtk.js} +1 -1
- package/dist/stex-D2rme5UG.js +4 -0
- package/dist/{strings-DIy9NAmg.js → strings-DMLVGXRo.js} +305 -305
- package/dist/style.css +1 -1
- package/dist/stylus-xxO-85eO.js +4 -0
- package/dist/swift-Ctg533nZ.js +4 -0
- package/dist/swimlanes-SLNWSIFB-BHvhO5uv.js +5564 -0
- package/dist/swimlanesDiagram-ULZ7WXOC-aI_zgQ8O.js +33 -0
- package/dist/{swiper-component-CEdAYjb7.js → swiper-component-Cx0cRWLk.js} +6 -6
- package/dist/tcl-phm9c5Nd.js +4 -0
- package/dist/textile-CphjAg90.js +4 -0
- package/dist/{time-Bb4A7I6a.js → time-DAJu9fnj.js} +4 -4
- package/dist/timeline-definition-Z64GVDOM-BAHuDYyA.js +1107 -0
- package/dist/{timer-BpI_FKSA.js → timer-aIIabkbI.js} +1 -1
- package/dist/{toDate-CqhBWjvO.js → toDate-BGM7kFtQ.js} +6 -6
- package/dist/toml-BUuMK772.js +4 -0
- package/dist/{tooltip-f-qR0iUx.js → tooltip-BtUxZT5h.js} +7 -7
- package/dist/treeView-QDETBFTQ-DsLN_c8p.js +5 -0
- package/dist/{treemap-GDKQZRPO-SDux0AV8.js → treemap-6X3UGDF4-K1bi3LJm.js} +2 -3
- package/dist/troff-lCtc05A3.js +4 -0
- package/dist/ttcn-CcykzBcW.js +4 -0
- package/dist/ttcn-cfg-C-XYdqpE.js +4 -0
- package/dist/turtle-CpfVZs8G.js +4 -0
- package/dist/{types-DicH9Oi0.js → types-DT8UHI5w.js} +1 -1
- package/dist/{use-vega-container-remeasure-DGNrIQSk.js → use-vega-container-remeasure-B7OD7yUY.js} +3 -3
- package/dist/{useAsyncData-CYOQb1EW.js → useAsyncData-CDcbh-Qv.js} +5 -5
- package/dist/{useDateFormatter-Bt2qr_XS.js → useDateFormatter-B_vTzxpm.js} +4 -4
- package/dist/{useDeepCompareMemoize-CSHQeQEI.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
- package/dist/{useIframeCapabilities-kA09ykNq.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
- package/dist/{useLifecycle-CMJGqBaY.js → useLifecycle-Bw4wRj_O.js} +7 -7
- package/dist/{useTheme-DYfby65G.js → useTheme-BzEXeAR5.js} +8 -7
- package/dist/vb-VOIzXwm9.js +4 -0
- package/dist/vbscript-D0WfcnVk.js +4 -0
- package/dist/{vega-component-C7nO5zcf.js → vega-component-CJug-VdR.js} +24 -24
- package/dist/{vega-embed-container-DAQAMjiO.js → vega-embed-container-BRjjqRGz.js} +9 -9
- package/dist/{vega-loader.browser-DmpxCJqx.js → vega-loader.browser-CGb-2Kwi.js} +106 -113
- package/dist/velocity-CCrc5n-0.js +4 -0
- package/dist/vennDiagram-T6HMQDX7-CTyzMewS.js +1913 -0
- package/dist/verilog-BLFhaDBH.js +4 -0
- package/dist/vhdl-DjuqPE9b.js +4 -0
- package/dist/wardley-OPB4EBWU-CP99MvU1.js +5 -0
- package/dist/wardleyDiagram-T6FBY63Y-vcno_rbk.js +669 -0
- package/dist/webidl-Cc7RrfeK.js +4 -0
- package/dist/xquery-BiCRLnNG.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BSkNxYNw.js → xychartDiagram-ELKLHX3M-DyFDERhM.js} +417 -353
- package/dist/yacas-CWcjav-O.js +4 -0
- package/dist/z80-DpYS2lE7.js +4 -0
- package/dist/{zod-BUcyXSdR.js → zod-BFY2SnzC.js} +42 -43
- package/package.json +7 -7
- package/src/__mocks__/requests.ts +5 -0
- package/src/components/ai/ai-model-dropdown.tsx +2 -2
- package/src/components/app-config/user-config-form.tsx +26 -0
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +38 -0
- package/src/components/chat/__tests__/chat-abort.test.ts +51 -0
- package/src/components/chat/__tests__/use-chat-controller-id.test.tsx +39 -0
- package/src/components/chat/capabilities-popover.tsx +68 -0
- package/src/components/chat/chat-abort.ts +44 -0
- package/src/components/chat/chat-display.tsx +17 -0
- package/src/components/chat/chat-panel.tsx +107 -50
- package/src/components/chat/chat-utils.ts +1 -1
- package/src/components/chat/use-chat-controller-id.ts +24 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
- package/src/components/data-table/charts/schemas.ts +5 -2
- package/src/components/databases/icons/huggingface.svg +8 -0
- package/src/components/datasets/__tests__/icons.test.ts +21 -0
- package/src/components/datasets/icons.tsx +10 -0
- package/src/components/datasources/__tests__/components.test.tsx +29 -0
- package/src/components/datasources/components.tsx +8 -3
- package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +35 -0
- package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +61 -0
- package/src/components/editor/actions/export-dialog/export-command.ts +4 -9
- package/src/components/editor/actions/export-dialog/format-notice.tsx +28 -0
- package/src/components/editor/actions/export-dialog/state.ts +23 -5
- package/src/components/editor/actions/export-dialog/use-export-dialog.ts +3 -13
- package/src/components/editor/actions/useConfigActions.tsx +24 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -2
- package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
- package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
- package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +2 -2
- package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +114 -2
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +14 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +20 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +10 -0
- package/src/components/editor/connections/storage/as-code.ts +19 -1
- package/src/components/editor/connections/storage/schemas.ts +19 -0
- package/src/components/storage/__tests__/storage-snippets.test.ts +88 -0
- package/src/components/storage/components.tsx +2 -0
- package/src/components/storage/storage-snippets.ts +58 -0
- package/src/core/__tests__/mode.test.ts +85 -0
- package/src/core/ai/__tests__/config.test.tsx +96 -0
- package/src/core/ai/config.ts +16 -22
- package/src/core/ai/constants.ts +7 -0
- package/src/core/ai/staged-cells.ts +3 -0
- package/src/core/ai/state.ts +10 -0
- package/src/core/codemirror/__tests__/setup.test.ts +1 -1
- package/src/core/codemirror/cm.ts +2 -2
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +85 -6
- package/src/core/codemirror/code-lens/extension.ts +144 -47
- package/src/core/codemirror/find-replace/search-highlight.ts +8 -3
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/core/codemirror/theme/__tests__/light.test.ts +59 -123
- package/src/core/codemirror/theme/dark.ts +6 -5
- package/src/core/codemirror/theme/light.ts +6 -4
- package/src/core/config/__tests__/config-schema.test.ts +2 -0
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/dom/outline.ts +25 -2
- package/src/core/hotkeys/hotkeys.ts +2 -0
- package/src/core/mode.ts +11 -9
- package/src/core/network/__tests__/api.test.ts +132 -17
- package/src/core/network/__tests__/export-filename.test.ts +43 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
- package/src/core/network/api.ts +47 -12
- package/src/core/network/export-filename.ts +37 -0
- package/src/core/network/markdown-export.ts +19 -0
- package/src/core/network/requests-network.ts +29 -5
- package/src/core/network/types.ts +4 -0
- package/src/core/storage/types.ts +1 -0
- package/src/css/app/codemirror.css +11 -7
- package/src/css/globals.css +8 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
- package/src/plugins/impl/chat/chat-ui.tsx +51 -3
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
- package/src/plugins/impl/data-frames/schema.ts +4 -1
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +20 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +58 -0
- package/src/stories/theme.stories.tsx +71 -1
- package/dist/_baseUniq-B_2Hw7zG.js +0 -380
- package/dist/apl-e1B5LPEL.js +0 -4
- package/dist/architecture-7HQA4BMR-DHUrQjL4.js +0 -6
- package/dist/asciiarmor-B-gwgesP.js +0 -4
- package/dist/asn1-DF2ckRB4.js +0 -4
- package/dist/assets/__vite-browser-external-DltVXDv7.js +0 -1
- package/dist/blockDiagram-VD42YOAC-CIOjvxeD.js +0 -3131
- package/dist/brainfuck-4G-7_gq_.js +0 -4
- package/dist/chat-ui-DsZJj75A.js +0 -8369
- package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
- package/dist/chunk-ABZYJK2D-BxBDji1u.js +0 -2438
- package/dist/chunk-BNovOVIE.js +0 -28
- package/dist/chunk-CVBHYZKI-CwazXVlJ.js +0 -13
- package/dist/chunk-DR5Q36YT-5Yp2GWwR.js +0 -137
- package/dist/chunk-EXTU4WIE-BQPBhApE.js +0 -10
- package/dist/chunk-JZLCHNYA-DWIR9m5O.js +0 -4901
- package/dist/chunk-N4CR4FBY-Bw2HcMNc.js +0 -65
- package/dist/chunk-QXUST7PY-DtC2t9Mk.js +0 -498
- package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
- package/dist/chunk-TZMSLE5B-BzSHcq-K.js +0 -63
- package/dist/classDiagram-2ON5EDUG-BiQPjMNY.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-YHdR8fqM.js +0 -30
- package/dist/clojure-CUybM11R.js +0 -4
- package/dist/clone-Q4Fqwn6q.js +0 -9
- package/dist/cmake-BPjGcuDL.js +0 -4
- package/dist/cobol-BETk_nb6.js +0 -4
- package/dist/coffeescript-CManZxXL.js +0 -4
- package/dist/commonlisp-DWkn7GW8.js +0 -4
- package/dist/crystal-CCbg5EUH.js +0 -4
- package/dist/css-By8eo-XS.js +0 -4
- package/dist/cypher-DwfHg3nP.js +0 -4
- package/dist/d-Brs1wNbw.js +0 -4
- package/dist/dagre-6UL2VRFP-DpYjBqQs.js +0 -296
- package/dist/diagram-QEK2KX5R-DVlUOgs1.js +0 -228
- package/dist/diff-DJIRmJ1g.js +0 -4
- package/dist/dist-5o9uz19x.js +0 -5
- package/dist/dist-BpDH0DEP.js +0 -5
- package/dist/dist-BpXhbQXO.js +0 -8
- package/dist/dist-ByadAk_L.js +0 -5
- package/dist/dist-CK0g7JvP.js +0 -8
- package/dist/dist-CfzCtiq2.js +0 -5
- package/dist/dist-D8JtVFrW.js +0 -8
- package/dist/dist-DK2Oocpu.js +0 -6
- package/dist/dist-DnSu977r.js +0 -5
- package/dist/dist-UmxJm6sW.js +0 -8
- package/dist/dist-aYSBQSyM.js +0 -5
- package/dist/dist-kkZ1Ztlh.js +0 -6
- package/dist/dist-ngPczwNi.js +0 -5
- package/dist/dist-wQRyxyTV.js +0 -5
- package/dist/dtd-Dyiazv4N.js +0 -4
- package/dist/dylan-D8Fcw7NA.js +0 -4
- package/dist/ecl-CjKp8Vii.js +0 -4
- package/dist/eiffel-K9ViOX5r.js +0 -4
- package/dist/elm-B5NVtRco.js +0 -4
- package/dist/erlang-BnLzgk7R.js +0 -4
- package/dist/factor-C7f9Jz5R.js +0 -4
- package/dist/flatten-Bbw7g6-K.js +0 -8
- package/dist/forth-rGM8jLao.js +0 -4
- package/dist/fortran-B3acSe0i.js +0 -4
- package/dist/ganttDiagram-JELNMOA3-CXXCN7LN.js +0 -2170
- package/dist/gas-Bb1Vmv_N.js +0 -4
- package/dist/gherkin-C9Lyidgd.js +0 -4
- package/dist/gitGraphDiagram-V2S2FVAM-BOlkMSqK.js +0 -652
- package/dist/graphlib-Ns7y5crs.js +0 -359
- package/dist/groovy-DQk6XcGH.js +0 -4
- package/dist/hasIn-Deg7jl_j.js +0 -108
- package/dist/haskell-mV0Vw9gv.js +0 -4
- package/dist/haxe-DqxN89zH.js +0 -5
- package/dist/idl-ya8W561J.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-D3TyKnL_.js +0 -30
- package/dist/javascript-CgqgptVu.js +0 -4
- package/dist/julia-CFQ-HusI.js +0 -4
- package/dist/livescript-D__3TmDo.js +0 -4
- package/dist/lua-Bytcgj_W.js +0 -4
- package/dist/main-B1Jo_8pC.js +0 -4321
- package/dist/mathematica-DJhvVKvl.js +0 -4
- package/dist/mbox-IGHPCjfR.js +0 -4
- package/dist/memoize-BOtf2yFf.js +0 -17
- package/dist/merge-Be1CqGnU.js +0 -222
- package/dist/mermaid-4DMBBIKO-FXbOziy9.js +0 -6
- package/dist/mermaid-hv6IckVw.js +0 -1100
- package/dist/mermaid-parser.core-DoivvxPd.js +0 -54
- package/dist/min-Dtgc8txR.js +0 -38
- package/dist/mirc-tcwvVugm.js +0 -4
- package/dist/mllike-Dx91i62r.js +0 -6
- package/dist/modelica-_SRt-yU5.js +0 -4
- package/dist/mscgen-GZrGS9gt.js +0 -6
- package/dist/mumps-Cv3ygyod.js +0 -4
- package/dist/nsis-BU7GeGbI.js +0 -4
- package/dist/ntriples-CL-FCYXb.js +0 -4
- package/dist/octave-Dc6_3DIu.js +0 -4
- package/dist/oz-DpUAJCXf.js +0 -4
- package/dist/pascal-B17mncXs.js +0 -4
- package/dist/perl-BTpK97q9.js +0 -4
- package/dist/pick-D1Qo8s2C.js +0 -43
- package/dist/pieDiagram-ADFJNKIX-JvXG_6hk.js +0 -170
- package/dist/pig-CFb638Ap.js +0 -4
- package/dist/powershell-Cxo-_2A5.js +0 -4
- package/dist/properties-BPgT1xTB.js +0 -4
- package/dist/protobuf-BgHBaIIK.js +0 -4
- package/dist/pug-25-oS0SG.js +0 -4
- package/dist/puppet-DarIr20S.js +0 -4
- package/dist/python-BqmOsBsi.js +0 -4
- package/dist/q-D3QJCTup.js +0 -4
- package/dist/r-Cz_yBX4z.js +0 -4
- package/dist/rpm-DGOtYwAI.js +0 -5
- package/dist/ruby-DBZu4rPc.js +0 -4
- package/dist/sankeyDiagram-TZEHDZUN-DgkF38jx.js +0 -892
- package/dist/sas-Dd1D9qTq.js +0 -4
- package/dist/scheme-BmDjvTHX.js +0 -4
- package/dist/sequenceDiagram-WL72ISMW-BDmx9n95.js +0 -3652
- package/dist/shell-BL8zFSaj.js +0 -4
- package/dist/sieve-BAx2WqUP.js +0 -4
- package/dist/smalltalk-CYRzF7VV.js +0 -4
- package/dist/sparql-YWaDRO4A.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-C3xqeavR.js +0 -29
- package/dist/stex-B5O-env2.js +0 -4
- package/dist/stylus-lYsyLFc1.js +0 -4
- package/dist/swift-ClQz9z1n.js +0 -4
- package/dist/tcl-B3jhsfqY.js +0 -4
- package/dist/textile-Cb1Dw7Aq.js +0 -4
- package/dist/timeline-definition-IT6M3QCI-CkD_trIn.js +0 -856
- package/dist/toml-nHZhetdO.js +0 -4
- package/dist/troff-DuJAGWKH.js +0 -4
- package/dist/ttcn-BxrcwP21.js +0 -4
- package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
- package/dist/turtle-zCq949as.js +0 -4
- package/dist/vb-De5hElus.js +0 -4
- package/dist/vbscript-Cypcpv4F.js +0 -4
- package/dist/velocity-Di7l-yhe.js +0 -4
- package/dist/verilog-Bzi-S3g2.js +0 -4
- package/dist/vhdl-B0ZZITaW.js +0 -4
- package/dist/webidl-0sviiRcN.js +0 -4
- package/dist/xquery-B4qMVWaB.js +0 -4
- package/dist/yacas-Jt25Fuv8.js +0 -4
- package/dist/z80-CrcbYzmp.js +0 -4
- /package/dist/{apl-99A7dLQe.js → apl-CMUKiT2b.js} +0 -0
- /package/dist/{array-O78LT16Y.js → array-CEIRxyh3.js} +0 -0
- /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-C_r6K6db.js} +0 -0
- /package/dist/{asn1-CMrcTsT4.js → asn1-DnlnCQTu.js} +0 -0
- /package/dist/{asterisk-CqykImq7.js → asterisk-DaVJJDnV.js} +0 -0
- /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-CtQoQVkV.js} +0 -0
- /package/dist/{clike-CE0fXfM_.js → clike-CIAs0ABt.js} +0 -0
- /package/dist/{clojure-QkBEMU-g.js → clojure-C6tKQYjD.js} +0 -0
- /package/dist/{cmake-CU1jX7Mo.js → cmake-D-nfcg14.js} +0 -0
- /package/dist/{cobol-DMOKzzky.js → cobol-DYTC58p9.js} +0 -0
- /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-DctDWA58.js} +0 -0
- /package/dist/{colors-DmiH1bIH.js → colors-DR_aHfmQ.js} +0 -0
- /package/dist/{common-keywords-D3nPJNQP.js → common-keywords-FBrXPTcz.js} +0 -0
- /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-BmvTqU5y.js} +0 -0
- /package/dist/{crystal-Dy55yoYG.js → crystal-BPIK2UMa.js} +0 -0
- /package/dist/{css-CNU8w3HJ.js → css-CDo_Lwzn.js} +0 -0
- /package/dist/{cypher-q47DGzK7.js → cypher-KztbD63v.js} +0 -0
- /package/dist/{d-jEkaLvxX.js → d-HXBWOoe9.js} +0 -0
- /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-DMZFeDB8.js} +0 -0
- /package/dist/{diff-vb2-unFN.js → diff-B9rWZH0m.js} +0 -0
- /package/dist/{dtd-C9kR-bXa.js → dtd-LtAMP5y8.js} +0 -0
- /package/dist/{duckdb-keywords-B6HYCMOT.js → duckdb-keywords-CvJhR_Yd.js} +0 -0
- /package/dist/{dylan-BLckrK-V.js → dylan-DXMK92pf.js} +0 -0
- /package/dist/{ebnf-Cnp3L9jg.js → ebnf-2D4Ctp3y.js} +0 -0
- /package/dist/{ecl-CEsf6XVg.js → ecl-Dqq8ser2.js} +0 -0
- /package/dist/{eiffel-2KGZNzx6.js → eiffel-ChExWBDx.js} +0 -0
- /package/dist/{elm-D2s3K5wF.js → elm-BMBz2xbZ.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DdVSF4FD.js → emotion-is-prop-valid.esm-_z-EwK5u.js} +0 -0
- /package/dist/{erlang-0PMFOndk.js → erlang-CGSDzg9P.js} +0 -0
- /package/dist/{fcl-D9nccAWI.js → fcl-Ccj8Z5Xd.js} +0 -0
- /package/dist/{forth-DG89iUsu.js → forth-vTkfR0aY.js} +0 -0
- /package/dist/{fortran-ytKsAVvu.js → fortran-CF4LAVFn.js} +0 -0
- /package/dist/{gas-Cg2Fm0N2.js → gas-mMFbQ2x4.js} +0 -0
- /package/dist/{gherkin-B87FEnZ-.js → gherkin-DLS1q0XM.js} +0 -0
- /package/dist/{groovy-Dcs08AWD.js → groovy-Zt6CNPxV.js} +0 -0
- /package/dist/{haskell-cwkOuhx6.js → haskell-kVOgzpVy.js} +0 -0
- /package/dist/{haxe-DWEo4q10.js → haxe-Bo21F6gc.js} +0 -0
- /package/dist/{http-B8jdG64J.js → http-_DVAYWoR.js} +0 -0
- /package/dist/{idl-WWQwDcRV.js → idl-B865GSM-.js} +0 -0
- /package/dist/{init-DNBbYZd_.js → init-TaqZJsBY.js} +0 -0
- /package/dist/{invariant-wRzNXIsJ.js → invariant-hOqqBz8A.js} +0 -0
- /package/dist/{javascript-BeR74dxD.js → javascript-CSLuHpxZ.js} +0 -0
- /package/dist/{julia-UlvCUYGL.js → julia-BCOLeQif.js} +0 -0
- /package/dist/{livescript-GPmFcmYV.js → livescript-DqUzLZFs.js} +0 -0
- /package/dist/{lua-DYoT_0zM.js → lua-D0ciLwkO.js} +0 -0
- /package/dist/{math-CBNc2Ib0.js → math-CTnb-N1W.js} +0 -0
- /package/dist/{mathematica-DSFIQlbG.js → mathematica-DujD1RDf.js} +0 -0
- /package/dist/{mbox-ej8lFMdL.js → mbox-8OkSQMDn.js} +0 -0
- /package/dist/{mirc-CAdIdvHQ.js → mirc-D47x8yRQ.js} +0 -0
- /package/dist/{mllike-CjTB1lHF.js → mllike-Dcfw-g6D.js} +0 -0
- /package/dist/{modelica-BB68FYMa.js → modelica-BHtr9gKR.js} +0 -0
- /package/dist/{mscgen-BkbzgGGI.js → mscgen-uZedQc_A.js} +0 -0
- /package/dist/{mumps-Cu-28E9F.js → mumps-Bc9QS1-K.js} +0 -0
- /package/dist/{nginx-C1ofKPst.js → nginx-DasThI7R.js} +0 -0
- /package/dist/{ntriples-D9cQiZxZ.js → ntriples-Clpn9Mrg.js} +0 -0
- /package/dist/{objects-De59twF-.js → objects-UzwQd5gx.js} +0 -0
- /package/dist/{octave-BvtAnPX0.js → octave-DA2esRWi.js} +0 -0
- /package/dist/{oz-COaVHk2E.js → oz-D8i-brWx.js} +0 -0
- /package/dist/{pascal-BFpqVD2x.js → pascal-Dt1a0CeN.js} +0 -0
- /package/dist/{path-DwWbhZFI.js → path-7gr7eZmp.js} +0 -0
- /package/dist/{perl-DaiORxHP.js → perl-CXy9EfRp.js} +0 -0
- /package/dist/{pig-DFzRhmsF.js → pig-DnXnrjQg.js} +0 -0
- /package/dist/{powershell-BG2LQNKN.js → powershell-BYE6u-Qk.js} +0 -0
- /package/dist/{properties-CqJJR5QY.js → properties-DlhyusaK.js} +0 -0
- /package/dist/{protobuf-WwDYV1yY.js → protobuf-DoMSrsPi.js} +0 -0
- /package/dist/{puppet-QNY3w_uN.js → puppet-DGi4idFA.js} +0 -0
- /package/dist/{python-4QrQ3Ugi.js → python-CYhALYh0.js} +0 -0
- /package/dist/{q-DhwXuxE2.js → q-Cs_qWJkU.js} +0 -0
- /package/dist/{r-Df-nkR25.js → r-DWJSQl1c.js} +0 -0
- /package/dist/{range-BOiA8qqU.js → range-Bieq5MNc.js} +0 -0
- /package/dist/{rpm-Cokue07s.js → rpm-DIip1m0n.js} +0 -0
- /package/dist/{ruby-DrYcL3qF.js → ruby-NgZGoa7Q.js} +0 -0
- /package/dist/{sas-CoiPirA5.js → sas-DEKzCzM2.js} +0 -0
- /package/dist/{scheme-CwFLjzHv.js → scheme-CBrGar2n.js} +0 -0
- /package/dist/{semaphore-C8rmHdhj.js → semaphore-P832H4YT.js} +0 -0
- /package/dist/{shell-BFV-R24I.js → shell-D7XFPOM_.js} +0 -0
- /package/dist/{sieve-CxwXF5T9.js → sieve-BOxOVQ18.js} +0 -0
- /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-D-FXBgPn.js} +0 -0
- /package/dist/{smalltalk-QivVOCtX.js → smalltalk-DYK-HkUK.js} +0 -0
- /package/dist/{solr-BLvysN-c.js → solr-RZ9uTl59.js} +0 -0
- /package/dist/{sparql-nKsFk8j7.js → sparql-CU1uk9Py.js} +0 -0
- /package/dist/{spreadsheet-BWc8C2FT.js → spreadsheet-BNNUNXA2.js} +0 -0
- /package/dist/{sql-CWfUjlV1.js → sql-B4x8IkwU.js} +0 -0
- /package/dist/{stex-DtMAhV4-.js → stex-DIvyJfNO.js} +0 -0
- /package/dist/{stylus-BLKQAycn.js → stylus-BokZhKWB.js} +0 -0
- /package/dist/{swift-CJoKqiKj.js → swift-TlA42tbT.js} +0 -0
- /package/dist/{tcl-YTeYFNUc.js → tcl-C-m7N_9k.js} +0 -0
- /package/dist/{textile-C6rKQqMQ.js → textile-BWOWG894.js} +0 -0
- /package/dist/{tiddlywiki-ZXwTHGNT.js → tiddlywiki-DI0mF2WJ.js} +0 -0
- /package/dist/{tiki-C628O_u4.js → tiki-2HU6XLLn.js} +0 -0
- /package/dist/{toml-DxlPGbRy.js → toml-GapOS-6U.js} +0 -0
- /package/dist/{treemap-DY3NBr79.js → treemap-CQJ0bIDy.js} +0 -0
- /package/dist/{troff-DFCfH7Ku.js → troff-ChPXSGgg.js} +0 -0
- /package/dist/{ttcn-DAW-ERVP.js → ttcn-CGf_ktUb.js} +0 -0
- /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-E0kw_vEm.js} +0 -0
- /package/dist/{turtle-BneV2f8L.js → turtle-DDIYttZr.js} +0 -0
- /package/dist/{vb-D973Vxxh.js → vb-DsGz8YA-.js} +0 -0
- /package/dist/{vbscript-Dckaq3YO.js → vbscript-BfQcpKZn.js} +0 -0
- /package/dist/{velocity-DKty-GUC.js → velocity-BMi53hPb.js} +0 -0
- /package/dist/{verilog-aNaK_biA.js → verilog-B_WDxmCB.js} +0 -0
- /package/dist/{vhdl-CQuehnQy.js → vhdl-C52-TT0z.js} +0 -0
- /package/dist/{webidl-Bhg8vaMr.js → webidl-Cnphjlul.js} +0 -0
- /package/dist/{xquery-D2q16GaM.js → xquery-X_kWyOft.js} +0 -0
- /package/dist/{yacas-DHGOHnNa.js → yacas-Dpp9zAZ5.js} +0 -0
- /package/dist/{z80-BPhTmO22.js → z80-BZLZAthF.js} +0 -0
|
@@ -1,3131 +0,0 @@
|
|
|
1
|
-
var _a, _b;
|
|
2
|
-
import { t as Graph } from "./graphlib-Ns7y5crs.js";
|
|
3
|
-
import { t as clone_default } from "./clone-Q4Fqwn6q.js";
|
|
4
|
-
import "./purify.es-EnR5yhgI.js";
|
|
5
|
-
import { _ as basis_default } from "./step-BqHnkgWE.js";
|
|
6
|
-
import { t as line_default } from "./line-C43FIPBd.js";
|
|
7
|
-
import { a as decodeEntities, g as utils_default, l as getStylesFromArray } from "./chunk-S3R3BYOJ-BdgLc8AM.js";
|
|
8
|
-
import { i as log, r as __name, t as select_default } from "./src-DV3ha_nA.js";
|
|
9
|
-
import { $ as rgba_default, E as getUrl, I as sanitizeText, a as clear, b as getConfig2, c as configureSvgSize, h as evaluate, s as common_default, y as getConfig } from "./chunk-ABZYJK2D-BxBDji1u.js";
|
|
10
|
-
import { t as channel_default } from "./channel-BN070S0F.js";
|
|
11
|
-
import { t as getLineFunctionsWithOffset } from "./chunk-HN2XXSSU-Bv0QkeMr.js";
|
|
12
|
-
import { t as getSubGraphTitleMargins } from "./chunk-CVBHYZKI-CwazXVlJ.js";
|
|
13
|
-
import "./dist-DsoKosxi.js";
|
|
14
|
-
import { a as replaceIconSubstring, n as createText } from "./chunk-JA3XYJ7Z-CY4CRbV5.js";
|
|
15
|
-
import { t as getIconStyles } from "./chunk-FMBD7UC4-quJmebXa.js";
|
|
16
|
-
var parser = (function() {
|
|
17
|
-
var e = /* @__PURE__ */ __name(function(e2, S2, C2, w2) {
|
|
18
|
-
for (C2 || (C2 = {}), w2 = e2.length; w2--; C2[e2[w2]] = S2) ;
|
|
19
|
-
return C2;
|
|
20
|
-
}, "o"), S = [1, 15], C = [1, 7], w = [1, 13], T = [1, 14], E = [1, 19], D = [1, 16], O = [1, 17], A = [1, 18], j = [8, 30], M = [
|
|
21
|
-
8,
|
|
22
|
-
10,
|
|
23
|
-
21,
|
|
24
|
-
28,
|
|
25
|
-
29,
|
|
26
|
-
30,
|
|
27
|
-
31,
|
|
28
|
-
39,
|
|
29
|
-
43,
|
|
30
|
-
46
|
|
31
|
-
], N = [1, 23], P = [1, 24], F = [
|
|
32
|
-
8,
|
|
33
|
-
10,
|
|
34
|
-
15,
|
|
35
|
-
16,
|
|
36
|
-
21,
|
|
37
|
-
28,
|
|
38
|
-
29,
|
|
39
|
-
30,
|
|
40
|
-
31,
|
|
41
|
-
39,
|
|
42
|
-
43,
|
|
43
|
-
46
|
|
44
|
-
], I = [
|
|
45
|
-
8,
|
|
46
|
-
10,
|
|
47
|
-
15,
|
|
48
|
-
16,
|
|
49
|
-
21,
|
|
50
|
-
27,
|
|
51
|
-
28,
|
|
52
|
-
29,
|
|
53
|
-
30,
|
|
54
|
-
31,
|
|
55
|
-
39,
|
|
56
|
-
43,
|
|
57
|
-
46
|
|
58
|
-
], L = [1, 49], R = {
|
|
59
|
-
trace: /* @__PURE__ */ __name(function() {
|
|
60
|
-
}, "trace"),
|
|
61
|
-
yy: {},
|
|
62
|
-
symbols_: {
|
|
63
|
-
error: 2,
|
|
64
|
-
spaceLines: 3,
|
|
65
|
-
SPACELINE: 4,
|
|
66
|
-
NL: 5,
|
|
67
|
-
separator: 6,
|
|
68
|
-
SPACE: 7,
|
|
69
|
-
EOF: 8,
|
|
70
|
-
start: 9,
|
|
71
|
-
BLOCK_DIAGRAM_KEY: 10,
|
|
72
|
-
document: 11,
|
|
73
|
-
stop: 12,
|
|
74
|
-
statement: 13,
|
|
75
|
-
link: 14,
|
|
76
|
-
LINK: 15,
|
|
77
|
-
START_LINK: 16,
|
|
78
|
-
LINK_LABEL: 17,
|
|
79
|
-
STR: 18,
|
|
80
|
-
nodeStatement: 19,
|
|
81
|
-
columnsStatement: 20,
|
|
82
|
-
SPACE_BLOCK: 21,
|
|
83
|
-
blockStatement: 22,
|
|
84
|
-
classDefStatement: 23,
|
|
85
|
-
cssClassStatement: 24,
|
|
86
|
-
styleStatement: 25,
|
|
87
|
-
node: 26,
|
|
88
|
-
SIZE: 27,
|
|
89
|
-
COLUMNS: 28,
|
|
90
|
-
"id-block": 29,
|
|
91
|
-
end: 30,
|
|
92
|
-
NODE_ID: 31,
|
|
93
|
-
nodeShapeNLabel: 32,
|
|
94
|
-
dirList: 33,
|
|
95
|
-
DIR: 34,
|
|
96
|
-
NODE_DSTART: 35,
|
|
97
|
-
NODE_DEND: 36,
|
|
98
|
-
BLOCK_ARROW_START: 37,
|
|
99
|
-
BLOCK_ARROW_END: 38,
|
|
100
|
-
classDef: 39,
|
|
101
|
-
CLASSDEF_ID: 40,
|
|
102
|
-
CLASSDEF_STYLEOPTS: 41,
|
|
103
|
-
DEFAULT: 42,
|
|
104
|
-
class: 43,
|
|
105
|
-
CLASSENTITY_IDS: 44,
|
|
106
|
-
STYLECLASS: 45,
|
|
107
|
-
style: 46,
|
|
108
|
-
STYLE_ENTITY_IDS: 47,
|
|
109
|
-
STYLE_DEFINITION_DATA: 48,
|
|
110
|
-
$accept: 0,
|
|
111
|
-
$end: 1
|
|
112
|
-
},
|
|
113
|
-
terminals_: {
|
|
114
|
-
2: "error",
|
|
115
|
-
4: "SPACELINE",
|
|
116
|
-
5: "NL",
|
|
117
|
-
7: "SPACE",
|
|
118
|
-
8: "EOF",
|
|
119
|
-
10: "BLOCK_DIAGRAM_KEY",
|
|
120
|
-
15: "LINK",
|
|
121
|
-
16: "START_LINK",
|
|
122
|
-
17: "LINK_LABEL",
|
|
123
|
-
18: "STR",
|
|
124
|
-
21: "SPACE_BLOCK",
|
|
125
|
-
27: "SIZE",
|
|
126
|
-
28: "COLUMNS",
|
|
127
|
-
29: "id-block",
|
|
128
|
-
30: "end",
|
|
129
|
-
31: "NODE_ID",
|
|
130
|
-
34: "DIR",
|
|
131
|
-
35: "NODE_DSTART",
|
|
132
|
-
36: "NODE_DEND",
|
|
133
|
-
37: "BLOCK_ARROW_START",
|
|
134
|
-
38: "BLOCK_ARROW_END",
|
|
135
|
-
39: "classDef",
|
|
136
|
-
40: "CLASSDEF_ID",
|
|
137
|
-
41: "CLASSDEF_STYLEOPTS",
|
|
138
|
-
42: "DEFAULT",
|
|
139
|
-
43: "class",
|
|
140
|
-
44: "CLASSENTITY_IDS",
|
|
141
|
-
45: "STYLECLASS",
|
|
142
|
-
46: "style",
|
|
143
|
-
47: "STYLE_ENTITY_IDS",
|
|
144
|
-
48: "STYLE_DEFINITION_DATA"
|
|
145
|
-
},
|
|
146
|
-
productions_: [
|
|
147
|
-
0,
|
|
148
|
-
[3, 1],
|
|
149
|
-
[3, 2],
|
|
150
|
-
[3, 2],
|
|
151
|
-
[6, 1],
|
|
152
|
-
[6, 1],
|
|
153
|
-
[6, 1],
|
|
154
|
-
[9, 3],
|
|
155
|
-
[12, 1],
|
|
156
|
-
[12, 1],
|
|
157
|
-
[12, 2],
|
|
158
|
-
[12, 2],
|
|
159
|
-
[11, 1],
|
|
160
|
-
[11, 2],
|
|
161
|
-
[14, 1],
|
|
162
|
-
[14, 4],
|
|
163
|
-
[13, 1],
|
|
164
|
-
[13, 1],
|
|
165
|
-
[13, 1],
|
|
166
|
-
[13, 1],
|
|
167
|
-
[13, 1],
|
|
168
|
-
[13, 1],
|
|
169
|
-
[13, 1],
|
|
170
|
-
[19, 3],
|
|
171
|
-
[19, 2],
|
|
172
|
-
[19, 1],
|
|
173
|
-
[20, 1],
|
|
174
|
-
[22, 4],
|
|
175
|
-
[22, 3],
|
|
176
|
-
[26, 1],
|
|
177
|
-
[26, 2],
|
|
178
|
-
[33, 1],
|
|
179
|
-
[33, 2],
|
|
180
|
-
[32, 3],
|
|
181
|
-
[32, 4],
|
|
182
|
-
[23, 3],
|
|
183
|
-
[23, 3],
|
|
184
|
-
[24, 3],
|
|
185
|
-
[25, 3]
|
|
186
|
-
],
|
|
187
|
-
performAction: /* @__PURE__ */ __name(function(e2, S2, C2, w2, T2, E2, D2) {
|
|
188
|
-
var O2 = E2.length - 1;
|
|
189
|
-
switch (T2) {
|
|
190
|
-
case 4:
|
|
191
|
-
w2.getLogger().debug("Rule: separator (NL) ");
|
|
192
|
-
break;
|
|
193
|
-
case 5:
|
|
194
|
-
w2.getLogger().debug("Rule: separator (Space) ");
|
|
195
|
-
break;
|
|
196
|
-
case 6:
|
|
197
|
-
w2.getLogger().debug("Rule: separator (EOF) ");
|
|
198
|
-
break;
|
|
199
|
-
case 7:
|
|
200
|
-
w2.getLogger().debug("Rule: hierarchy: ", E2[O2 - 1]), w2.setHierarchy(E2[O2 - 1]);
|
|
201
|
-
break;
|
|
202
|
-
case 8:
|
|
203
|
-
w2.getLogger().debug("Stop NL ");
|
|
204
|
-
break;
|
|
205
|
-
case 9:
|
|
206
|
-
w2.getLogger().debug("Stop EOF ");
|
|
207
|
-
break;
|
|
208
|
-
case 10:
|
|
209
|
-
w2.getLogger().debug("Stop NL2 ");
|
|
210
|
-
break;
|
|
211
|
-
case 11:
|
|
212
|
-
w2.getLogger().debug("Stop EOF2 ");
|
|
213
|
-
break;
|
|
214
|
-
case 12:
|
|
215
|
-
w2.getLogger().debug("Rule: statement: ", E2[O2]), typeof E2[O2].length == "number" ? this.$ = E2[O2] : this.$ = [E2[O2]];
|
|
216
|
-
break;
|
|
217
|
-
case 13:
|
|
218
|
-
w2.getLogger().debug("Rule: statement #2: ", E2[O2 - 1]), this.$ = [E2[O2 - 1]].concat(E2[O2]);
|
|
219
|
-
break;
|
|
220
|
-
case 14:
|
|
221
|
-
w2.getLogger().debug("Rule: link: ", E2[O2], e2), this.$ = {
|
|
222
|
-
edgeTypeStr: E2[O2],
|
|
223
|
-
label: ""
|
|
224
|
-
};
|
|
225
|
-
break;
|
|
226
|
-
case 15:
|
|
227
|
-
w2.getLogger().debug("Rule: LABEL link: ", E2[O2 - 3], E2[O2 - 1], E2[O2]), this.$ = {
|
|
228
|
-
edgeTypeStr: E2[O2],
|
|
229
|
-
label: E2[O2 - 1]
|
|
230
|
-
};
|
|
231
|
-
break;
|
|
232
|
-
case 18:
|
|
233
|
-
let S3 = parseInt(E2[O2]);
|
|
234
|
-
this.$ = {
|
|
235
|
-
id: w2.generateId(),
|
|
236
|
-
type: "space",
|
|
237
|
-
label: "",
|
|
238
|
-
width: S3,
|
|
239
|
-
children: []
|
|
240
|
-
};
|
|
241
|
-
break;
|
|
242
|
-
case 23:
|
|
243
|
-
w2.getLogger().debug("Rule: (nodeStatement link node) ", E2[O2 - 2], E2[O2 - 1], E2[O2], " typestr: ", E2[O2 - 1].edgeTypeStr);
|
|
244
|
-
let C3 = w2.edgeStrToEdgeData(E2[O2 - 1].edgeTypeStr);
|
|
245
|
-
this.$ = [
|
|
246
|
-
{
|
|
247
|
-
id: E2[O2 - 2].id,
|
|
248
|
-
label: E2[O2 - 2].label,
|
|
249
|
-
type: E2[O2 - 2].type,
|
|
250
|
-
directions: E2[O2 - 2].directions
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: E2[O2 - 2].id + "-" + E2[O2].id,
|
|
254
|
-
start: E2[O2 - 2].id,
|
|
255
|
-
end: E2[O2].id,
|
|
256
|
-
label: E2[O2 - 1].label,
|
|
257
|
-
type: "edge",
|
|
258
|
-
directions: E2[O2].directions,
|
|
259
|
-
arrowTypeEnd: C3,
|
|
260
|
-
arrowTypeStart: "arrow_open"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
id: E2[O2].id,
|
|
264
|
-
label: E2[O2].label,
|
|
265
|
-
type: w2.typeStr2Type(E2[O2].typeStr),
|
|
266
|
-
directions: E2[O2].directions
|
|
267
|
-
}
|
|
268
|
-
];
|
|
269
|
-
break;
|
|
270
|
-
case 24:
|
|
271
|
-
w2.getLogger().debug("Rule: nodeStatement (abc88 node size) ", E2[O2 - 1], E2[O2]), this.$ = {
|
|
272
|
-
id: E2[O2 - 1].id,
|
|
273
|
-
label: E2[O2 - 1].label,
|
|
274
|
-
type: w2.typeStr2Type(E2[O2 - 1].typeStr),
|
|
275
|
-
directions: E2[O2 - 1].directions,
|
|
276
|
-
widthInColumns: parseInt(E2[O2], 10)
|
|
277
|
-
};
|
|
278
|
-
break;
|
|
279
|
-
case 25:
|
|
280
|
-
w2.getLogger().debug("Rule: nodeStatement (node) ", E2[O2]), this.$ = {
|
|
281
|
-
id: E2[O2].id,
|
|
282
|
-
label: E2[O2].label,
|
|
283
|
-
type: w2.typeStr2Type(E2[O2].typeStr),
|
|
284
|
-
directions: E2[O2].directions,
|
|
285
|
-
widthInColumns: 1
|
|
286
|
-
};
|
|
287
|
-
break;
|
|
288
|
-
case 26:
|
|
289
|
-
w2.getLogger().debug("APA123", this ? this : "na"), w2.getLogger().debug("COLUMNS: ", E2[O2]), this.$ = {
|
|
290
|
-
type: "column-setting",
|
|
291
|
-
columns: E2[O2] === "auto" ? -1 : parseInt(E2[O2])
|
|
292
|
-
};
|
|
293
|
-
break;
|
|
294
|
-
case 27:
|
|
295
|
-
w2.getLogger().debug("Rule: id-block statement : ", E2[O2 - 2], E2[O2 - 1]), w2.generateId(), this.$ = {
|
|
296
|
-
...E2[O2 - 2],
|
|
297
|
-
type: "composite",
|
|
298
|
-
children: E2[O2 - 1]
|
|
299
|
-
};
|
|
300
|
-
break;
|
|
301
|
-
case 28:
|
|
302
|
-
w2.getLogger().debug("Rule: blockStatement : ", E2[O2 - 2], E2[O2 - 1], E2[O2]), this.$ = {
|
|
303
|
-
id: w2.generateId(),
|
|
304
|
-
type: "composite",
|
|
305
|
-
label: "",
|
|
306
|
-
children: E2[O2 - 1]
|
|
307
|
-
};
|
|
308
|
-
break;
|
|
309
|
-
case 29:
|
|
310
|
-
w2.getLogger().debug("Rule: node (NODE_ID separator): ", E2[O2]), this.$ = { id: E2[O2] };
|
|
311
|
-
break;
|
|
312
|
-
case 30:
|
|
313
|
-
w2.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", E2[O2 - 1], E2[O2]), this.$ = {
|
|
314
|
-
id: E2[O2 - 1],
|
|
315
|
-
label: E2[O2].label,
|
|
316
|
-
typeStr: E2[O2].typeStr,
|
|
317
|
-
directions: E2[O2].directions
|
|
318
|
-
};
|
|
319
|
-
break;
|
|
320
|
-
case 31:
|
|
321
|
-
w2.getLogger().debug("Rule: dirList: ", E2[O2]), this.$ = [E2[O2]];
|
|
322
|
-
break;
|
|
323
|
-
case 32:
|
|
324
|
-
w2.getLogger().debug("Rule: dirList: ", E2[O2 - 1], E2[O2]), this.$ = [E2[O2 - 1]].concat(E2[O2]);
|
|
325
|
-
break;
|
|
326
|
-
case 33:
|
|
327
|
-
w2.getLogger().debug("Rule: nodeShapeNLabel: ", E2[O2 - 2], E2[O2 - 1], E2[O2]), this.$ = {
|
|
328
|
-
typeStr: E2[O2 - 2] + E2[O2],
|
|
329
|
-
label: E2[O2 - 1]
|
|
330
|
-
};
|
|
331
|
-
break;
|
|
332
|
-
case 34:
|
|
333
|
-
w2.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", E2[O2 - 3], E2[O2 - 2], " #3:", E2[O2 - 1], E2[O2]), this.$ = {
|
|
334
|
-
typeStr: E2[O2 - 3] + E2[O2],
|
|
335
|
-
label: E2[O2 - 2],
|
|
336
|
-
directions: E2[O2 - 1]
|
|
337
|
-
};
|
|
338
|
-
break;
|
|
339
|
-
case 35:
|
|
340
|
-
case 36:
|
|
341
|
-
this.$ = {
|
|
342
|
-
type: "classDef",
|
|
343
|
-
id: E2[O2 - 1].trim(),
|
|
344
|
-
css: E2[O2].trim()
|
|
345
|
-
};
|
|
346
|
-
break;
|
|
347
|
-
case 37:
|
|
348
|
-
this.$ = {
|
|
349
|
-
type: "applyClass",
|
|
350
|
-
id: E2[O2 - 1].trim(),
|
|
351
|
-
styleClass: E2[O2].trim()
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
354
|
-
case 38:
|
|
355
|
-
this.$ = {
|
|
356
|
-
type: "applyStyles",
|
|
357
|
-
id: E2[O2 - 1].trim(),
|
|
358
|
-
stylesStr: E2[O2].trim()
|
|
359
|
-
};
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
}, "anonymous"),
|
|
363
|
-
table: [
|
|
364
|
-
{
|
|
365
|
-
9: 1,
|
|
366
|
-
10: [1, 2]
|
|
367
|
-
},
|
|
368
|
-
{ 1: [3] },
|
|
369
|
-
{
|
|
370
|
-
10: S,
|
|
371
|
-
11: 3,
|
|
372
|
-
13: 4,
|
|
373
|
-
19: 5,
|
|
374
|
-
20: 6,
|
|
375
|
-
21: C,
|
|
376
|
-
22: 8,
|
|
377
|
-
23: 9,
|
|
378
|
-
24: 10,
|
|
379
|
-
25: 11,
|
|
380
|
-
26: 12,
|
|
381
|
-
28: w,
|
|
382
|
-
29: T,
|
|
383
|
-
31: E,
|
|
384
|
-
39: D,
|
|
385
|
-
43: O,
|
|
386
|
-
46: A
|
|
387
|
-
},
|
|
388
|
-
{ 8: [1, 20] },
|
|
389
|
-
e(j, [2, 12], {
|
|
390
|
-
13: 4,
|
|
391
|
-
19: 5,
|
|
392
|
-
20: 6,
|
|
393
|
-
22: 8,
|
|
394
|
-
23: 9,
|
|
395
|
-
24: 10,
|
|
396
|
-
25: 11,
|
|
397
|
-
26: 12,
|
|
398
|
-
11: 21,
|
|
399
|
-
10: S,
|
|
400
|
-
21: C,
|
|
401
|
-
28: w,
|
|
402
|
-
29: T,
|
|
403
|
-
31: E,
|
|
404
|
-
39: D,
|
|
405
|
-
43: O,
|
|
406
|
-
46: A
|
|
407
|
-
}),
|
|
408
|
-
e(M, [2, 16], {
|
|
409
|
-
14: 22,
|
|
410
|
-
15: N,
|
|
411
|
-
16: P
|
|
412
|
-
}),
|
|
413
|
-
e(M, [2, 17]),
|
|
414
|
-
e(M, [2, 18]),
|
|
415
|
-
e(M, [2, 19]),
|
|
416
|
-
e(M, [2, 20]),
|
|
417
|
-
e(M, [2, 21]),
|
|
418
|
-
e(M, [2, 22]),
|
|
419
|
-
e(F, [2, 25], { 27: [1, 25] }),
|
|
420
|
-
e(M, [2, 26]),
|
|
421
|
-
{
|
|
422
|
-
19: 26,
|
|
423
|
-
26: 12,
|
|
424
|
-
31: E
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
10: S,
|
|
428
|
-
11: 27,
|
|
429
|
-
13: 4,
|
|
430
|
-
19: 5,
|
|
431
|
-
20: 6,
|
|
432
|
-
21: C,
|
|
433
|
-
22: 8,
|
|
434
|
-
23: 9,
|
|
435
|
-
24: 10,
|
|
436
|
-
25: 11,
|
|
437
|
-
26: 12,
|
|
438
|
-
28: w,
|
|
439
|
-
29: T,
|
|
440
|
-
31: E,
|
|
441
|
-
39: D,
|
|
442
|
-
43: O,
|
|
443
|
-
46: A
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
40: [1, 28],
|
|
447
|
-
42: [1, 29]
|
|
448
|
-
},
|
|
449
|
-
{ 44: [1, 30] },
|
|
450
|
-
{ 47: [1, 31] },
|
|
451
|
-
e(I, [2, 29], {
|
|
452
|
-
32: 32,
|
|
453
|
-
35: [1, 33],
|
|
454
|
-
37: [1, 34]
|
|
455
|
-
}),
|
|
456
|
-
{ 1: [2, 7] },
|
|
457
|
-
e(j, [2, 13]),
|
|
458
|
-
{
|
|
459
|
-
26: 35,
|
|
460
|
-
31: E
|
|
461
|
-
},
|
|
462
|
-
{ 31: [2, 14] },
|
|
463
|
-
{ 17: [1, 36] },
|
|
464
|
-
e(F, [2, 24]),
|
|
465
|
-
{
|
|
466
|
-
10: S,
|
|
467
|
-
11: 37,
|
|
468
|
-
13: 4,
|
|
469
|
-
14: 22,
|
|
470
|
-
15: N,
|
|
471
|
-
16: P,
|
|
472
|
-
19: 5,
|
|
473
|
-
20: 6,
|
|
474
|
-
21: C,
|
|
475
|
-
22: 8,
|
|
476
|
-
23: 9,
|
|
477
|
-
24: 10,
|
|
478
|
-
25: 11,
|
|
479
|
-
26: 12,
|
|
480
|
-
28: w,
|
|
481
|
-
29: T,
|
|
482
|
-
31: E,
|
|
483
|
-
39: D,
|
|
484
|
-
43: O,
|
|
485
|
-
46: A
|
|
486
|
-
},
|
|
487
|
-
{ 30: [1, 38] },
|
|
488
|
-
{ 41: [1, 39] },
|
|
489
|
-
{ 41: [1, 40] },
|
|
490
|
-
{ 45: [1, 41] },
|
|
491
|
-
{ 48: [1, 42] },
|
|
492
|
-
e(I, [2, 30]),
|
|
493
|
-
{ 18: [1, 43] },
|
|
494
|
-
{ 18: [1, 44] },
|
|
495
|
-
e(F, [2, 23]),
|
|
496
|
-
{ 18: [1, 45] },
|
|
497
|
-
{ 30: [1, 46] },
|
|
498
|
-
e(M, [2, 28]),
|
|
499
|
-
e(M, [2, 35]),
|
|
500
|
-
e(M, [2, 36]),
|
|
501
|
-
e(M, [2, 37]),
|
|
502
|
-
e(M, [2, 38]),
|
|
503
|
-
{ 36: [1, 47] },
|
|
504
|
-
{
|
|
505
|
-
33: 48,
|
|
506
|
-
34: L
|
|
507
|
-
},
|
|
508
|
-
{ 15: [1, 50] },
|
|
509
|
-
e(M, [2, 27]),
|
|
510
|
-
e(I, [2, 33]),
|
|
511
|
-
{ 38: [1, 51] },
|
|
512
|
-
{
|
|
513
|
-
33: 52,
|
|
514
|
-
34: L,
|
|
515
|
-
38: [2, 31]
|
|
516
|
-
},
|
|
517
|
-
{ 31: [2, 15] },
|
|
518
|
-
e(I, [2, 34]),
|
|
519
|
-
{ 38: [2, 32] }
|
|
520
|
-
],
|
|
521
|
-
defaultActions: {
|
|
522
|
-
20: [2, 7],
|
|
523
|
-
23: [2, 14],
|
|
524
|
-
50: [2, 15],
|
|
525
|
-
52: [2, 32]
|
|
526
|
-
},
|
|
527
|
-
parseError: /* @__PURE__ */ __name(function(e2, S2) {
|
|
528
|
-
if (S2.recoverable) this.trace(e2);
|
|
529
|
-
else {
|
|
530
|
-
var C2 = Error(e2);
|
|
531
|
-
throw C2.hash = S2, C2;
|
|
532
|
-
}
|
|
533
|
-
}, "parseError"),
|
|
534
|
-
parse: /* @__PURE__ */ __name(function(e2) {
|
|
535
|
-
var S2 = this, C2 = [0], w2 = [], T2 = [null], E2 = [], D2 = this.table, O2 = "", A2 = 0, j2 = 0, M2 = 0, N2 = 2, P2 = 1, F2 = E2.slice.call(arguments, 1), I2 = Object.create(this.lexer), L2 = { yy: {} };
|
|
536
|
-
for (var R2 in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R2) && (L2.yy[R2] = this.yy[R2]);
|
|
537
|
-
I2.setInput(e2, L2.yy), L2.yy.lexer = I2, L2.yy.parser = this, I2.yylloc === void 0 && (I2.yylloc = {});
|
|
538
|
-
var z2 = I2.yylloc;
|
|
539
|
-
E2.push(z2);
|
|
540
|
-
var B = I2.options && I2.options.ranges;
|
|
541
|
-
typeof L2.yy.parseError == "function" ? this.parseError = L2.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
542
|
-
function V(e3) {
|
|
543
|
-
C2.length -= 2 * e3, T2.length -= e3, E2.length -= e3;
|
|
544
|
-
}
|
|
545
|
-
__name(V, "popStack");
|
|
546
|
-
function H() {
|
|
547
|
-
var e3 = w2.pop() || I2.lex() || P2;
|
|
548
|
-
return typeof e3 != "number" && (e3 instanceof Array && (w2 = e3, e3 = w2.pop()), e3 = S2.symbols_[e3] || e3), e3;
|
|
549
|
-
}
|
|
550
|
-
__name(H, "lex");
|
|
551
|
-
for (var U, W, G, K, q, J = {}, Y, X, Z, Q; ; ) {
|
|
552
|
-
if (G = C2[C2.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ?? (U = H()), K = D2[G] && D2[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
553
|
-
var $ = "";
|
|
554
|
-
for (Y in Q = [], D2[G]) this.terminals_[Y] && Y > N2 && Q.push("'" + this.terminals_[Y] + "'");
|
|
555
|
-
$ = I2.showPosition ? "Parse error on line " + (A2 + 1) + ":\n" + I2.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A2 + 1) + ": Unexpected " + (U == P2 ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
|
|
556
|
-
text: I2.match,
|
|
557
|
-
token: this.terminals_[U] || U,
|
|
558
|
-
line: I2.yylineno,
|
|
559
|
-
loc: z2,
|
|
560
|
-
expected: Q
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
564
|
-
switch (K[0]) {
|
|
565
|
-
case 1:
|
|
566
|
-
C2.push(U), T2.push(I2.yytext), E2.push(I2.yylloc), C2.push(K[1]), U = null, W ? (U = W, W = null) : (j2 = I2.yyleng, O2 = I2.yytext, A2 = I2.yylineno, z2 = I2.yylloc, M2 > 0 && M2--);
|
|
567
|
-
break;
|
|
568
|
-
case 2:
|
|
569
|
-
if (X = this.productions_[K[1]][1], J.$ = T2[T2.length - X], J._$ = {
|
|
570
|
-
first_line: E2[E2.length - (X || 1)].first_line,
|
|
571
|
-
last_line: E2[E2.length - 1].last_line,
|
|
572
|
-
first_column: E2[E2.length - (X || 1)].first_column,
|
|
573
|
-
last_column: E2[E2.length - 1].last_column
|
|
574
|
-
}, B && (J._$.range = [E2[E2.length - (X || 1)].range[0], E2[E2.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
575
|
-
O2,
|
|
576
|
-
j2,
|
|
577
|
-
A2,
|
|
578
|
-
L2.yy,
|
|
579
|
-
K[1],
|
|
580
|
-
T2,
|
|
581
|
-
E2
|
|
582
|
-
].concat(F2)), q !== void 0) return q;
|
|
583
|
-
X && (C2 = C2.slice(0, -1 * X * 2), T2 = T2.slice(0, -1 * X), E2 = E2.slice(0, -1 * X)), C2.push(this.productions_[K[1]][0]), T2.push(J.$), E2.push(J._$), Z = D2[C2[C2.length - 2]][C2[C2.length - 1]], C2.push(Z);
|
|
584
|
-
break;
|
|
585
|
-
case 3:
|
|
586
|
-
return true;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
return true;
|
|
590
|
-
}, "parse")
|
|
591
|
-
};
|
|
592
|
-
R.lexer = /* @__PURE__ */ (function() {
|
|
593
|
-
return {
|
|
594
|
-
EOF: 1,
|
|
595
|
-
parseError: /* @__PURE__ */ __name(function(e2, S2) {
|
|
596
|
-
if (this.yy.parser) this.yy.parser.parseError(e2, S2);
|
|
597
|
-
else throw Error(e2);
|
|
598
|
-
}, "parseError"),
|
|
599
|
-
setInput: /* @__PURE__ */ __name(function(e2, S2) {
|
|
600
|
-
return this.yy = S2 || this.yy || {}, this._input = e2, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
601
|
-
first_line: 1,
|
|
602
|
-
first_column: 0,
|
|
603
|
-
last_line: 1,
|
|
604
|
-
last_column: 0
|
|
605
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
606
|
-
}, "setInput"),
|
|
607
|
-
input: /* @__PURE__ */ __name(function() {
|
|
608
|
-
var e2 = this._input[0];
|
|
609
|
-
return this.yytext += e2, this.yyleng++, this.offset++, this.match += e2, this.matched += e2, e2.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e2;
|
|
610
|
-
}, "input"),
|
|
611
|
-
unput: /* @__PURE__ */ __name(function(e2) {
|
|
612
|
-
var S2 = e2.length, C2 = e2.split(/(?:\r\n?|\n)/g);
|
|
613
|
-
this._input = e2 + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S2), this.offset -= S2;
|
|
614
|
-
var w2 = this.match.split(/(?:\r\n?|\n)/g);
|
|
615
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C2.length - 1 && (this.yylineno -= C2.length - 1);
|
|
616
|
-
var T2 = this.yylloc.range;
|
|
617
|
-
return this.yylloc = {
|
|
618
|
-
first_line: this.yylloc.first_line,
|
|
619
|
-
last_line: this.yylineno + 1,
|
|
620
|
-
first_column: this.yylloc.first_column,
|
|
621
|
-
last_column: C2 ? (C2.length === w2.length ? this.yylloc.first_column : 0) + w2[w2.length - C2.length].length - C2[0].length : this.yylloc.first_column - S2
|
|
622
|
-
}, this.options.ranges && (this.yylloc.range = [T2[0], T2[0] + this.yyleng - S2]), this.yyleng = this.yytext.length, this;
|
|
623
|
-
}, "unput"),
|
|
624
|
-
more: /* @__PURE__ */ __name(function() {
|
|
625
|
-
return this._more = true, this;
|
|
626
|
-
}, "more"),
|
|
627
|
-
reject: /* @__PURE__ */ __name(function() {
|
|
628
|
-
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
629
|
-
else 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(), {
|
|
630
|
-
text: "",
|
|
631
|
-
token: null,
|
|
632
|
-
line: this.yylineno
|
|
633
|
-
});
|
|
634
|
-
return this;
|
|
635
|
-
}, "reject"),
|
|
636
|
-
less: /* @__PURE__ */ __name(function(e2) {
|
|
637
|
-
this.unput(this.match.slice(e2));
|
|
638
|
-
}, "less"),
|
|
639
|
-
pastInput: /* @__PURE__ */ __name(function() {
|
|
640
|
-
var e2 = this.matched.substr(0, this.matched.length - this.match.length);
|
|
641
|
-
return (e2.length > 20 ? "..." : "") + e2.substr(-20).replace(/\n/g, "");
|
|
642
|
-
}, "pastInput"),
|
|
643
|
-
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
644
|
-
var e2 = this.match;
|
|
645
|
-
return e2.length < 20 && (e2 += this._input.substr(0, 20 - e2.length)), (e2.substr(0, 20) + (e2.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
646
|
-
}, "upcomingInput"),
|
|
647
|
-
showPosition: /* @__PURE__ */ __name(function() {
|
|
648
|
-
var e2 = this.pastInput(), S2 = Array(e2.length + 1).join("-");
|
|
649
|
-
return e2 + this.upcomingInput() + "\n" + S2 + "^";
|
|
650
|
-
}, "showPosition"),
|
|
651
|
-
test_match: /* @__PURE__ */ __name(function(e2, S2) {
|
|
652
|
-
var C2, w2, T2;
|
|
653
|
-
if (this.options.backtrack_lexer && (T2 = {
|
|
654
|
-
yylineno: this.yylineno,
|
|
655
|
-
yylloc: {
|
|
656
|
-
first_line: this.yylloc.first_line,
|
|
657
|
-
last_line: this.last_line,
|
|
658
|
-
first_column: this.yylloc.first_column,
|
|
659
|
-
last_column: this.yylloc.last_column
|
|
660
|
-
},
|
|
661
|
-
yytext: this.yytext,
|
|
662
|
-
match: this.match,
|
|
663
|
-
matches: this.matches,
|
|
664
|
-
matched: this.matched,
|
|
665
|
-
yyleng: this.yyleng,
|
|
666
|
-
offset: this.offset,
|
|
667
|
-
_more: this._more,
|
|
668
|
-
_input: this._input,
|
|
669
|
-
yy: this.yy,
|
|
670
|
-
conditionStack: this.conditionStack.slice(0),
|
|
671
|
-
done: this.done
|
|
672
|
-
}, this.options.ranges && (T2.yylloc.range = this.yylloc.range.slice(0))), w2 = e2[0].match(/(?:\r\n?|\n).*/g), w2 && (this.yylineno += w2.length), this.yylloc = {
|
|
673
|
-
first_line: this.yylloc.last_line,
|
|
674
|
-
last_line: this.yylineno + 1,
|
|
675
|
-
first_column: this.yylloc.last_column,
|
|
676
|
-
last_column: w2 ? w2[w2.length - 1].length - w2[w2.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e2[0].length
|
|
677
|
-
}, this.yytext += e2[0], this.match += e2[0], this.matches = e2, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(e2[0].length), this.matched += e2[0], C2 = this.performAction.call(this, this.yy, this, S2, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), C2) return C2;
|
|
678
|
-
if (this._backtrack) {
|
|
679
|
-
for (var E2 in T2) this[E2] = T2[E2];
|
|
680
|
-
return false;
|
|
681
|
-
}
|
|
682
|
-
return false;
|
|
683
|
-
}, "test_match"),
|
|
684
|
-
next: /* @__PURE__ */ __name(function() {
|
|
685
|
-
if (this.done) return this.EOF;
|
|
686
|
-
this._input || (this.done = true);
|
|
687
|
-
var e2, S2, C2, w2;
|
|
688
|
-
this._more || (this.yytext = "", this.match = "");
|
|
689
|
-
for (var T2 = this._currentRules(), E2 = 0; E2 < T2.length; E2++) if (C2 = this._input.match(this.rules[T2[E2]]), C2 && (!S2 || C2[0].length > S2[0].length)) {
|
|
690
|
-
if (S2 = C2, w2 = E2, this.options.backtrack_lexer) {
|
|
691
|
-
if (e2 = this.test_match(C2, T2[E2]), e2 !== false) return e2;
|
|
692
|
-
if (this._backtrack) {
|
|
693
|
-
S2 = false;
|
|
694
|
-
continue;
|
|
695
|
-
} else return false;
|
|
696
|
-
} else if (!this.options.flex) break;
|
|
697
|
-
}
|
|
698
|
-
return S2 ? (e2 = this.test_match(S2, T2[w2]), e2 === false ? false : e2) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
699
|
-
text: "",
|
|
700
|
-
token: null,
|
|
701
|
-
line: this.yylineno
|
|
702
|
-
});
|
|
703
|
-
}, "next"),
|
|
704
|
-
lex: /* @__PURE__ */ __name(function() {
|
|
705
|
-
return this.next() || this.lex();
|
|
706
|
-
}, "lex"),
|
|
707
|
-
begin: /* @__PURE__ */ __name(function(e2) {
|
|
708
|
-
this.conditionStack.push(e2);
|
|
709
|
-
}, "begin"),
|
|
710
|
-
popState: /* @__PURE__ */ __name(function() {
|
|
711
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
712
|
-
}, "popState"),
|
|
713
|
-
_currentRules: /* @__PURE__ */ __name(function() {
|
|
714
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
715
|
-
}, "_currentRules"),
|
|
716
|
-
topState: /* @__PURE__ */ __name(function(e2) {
|
|
717
|
-
return e2 = this.conditionStack.length - 1 - Math.abs(e2 || 0), e2 >= 0 ? this.conditionStack[e2] : "INITIAL";
|
|
718
|
-
}, "topState"),
|
|
719
|
-
pushState: /* @__PURE__ */ __name(function(e2) {
|
|
720
|
-
this.begin(e2);
|
|
721
|
-
}, "pushState"),
|
|
722
|
-
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
723
|
-
return this.conditionStack.length;
|
|
724
|
-
}, "stateStackSize"),
|
|
725
|
-
options: {},
|
|
726
|
-
performAction: /* @__PURE__ */ __name(function(e2, S2, C2, w2) {
|
|
727
|
-
switch (C2) {
|
|
728
|
-
case 0:
|
|
729
|
-
return e2.getLogger().debug("Found block-beta"), 10;
|
|
730
|
-
case 1:
|
|
731
|
-
return e2.getLogger().debug("Found id-block"), 29;
|
|
732
|
-
case 2:
|
|
733
|
-
return e2.getLogger().debug("Found block"), 10;
|
|
734
|
-
case 3:
|
|
735
|
-
e2.getLogger().debug(".", S2.yytext);
|
|
736
|
-
break;
|
|
737
|
-
case 4:
|
|
738
|
-
e2.getLogger().debug("_", S2.yytext);
|
|
739
|
-
break;
|
|
740
|
-
case 5:
|
|
741
|
-
return 5;
|
|
742
|
-
case 6:
|
|
743
|
-
return S2.yytext = -1, 28;
|
|
744
|
-
case 7:
|
|
745
|
-
return S2.yytext = S2.yytext.replace(/columns\s+/, ""), e2.getLogger().debug("COLUMNS (LEX)", S2.yytext), 28;
|
|
746
|
-
case 8:
|
|
747
|
-
this.pushState("md_string");
|
|
748
|
-
break;
|
|
749
|
-
case 9:
|
|
750
|
-
return "MD_STR";
|
|
751
|
-
case 10:
|
|
752
|
-
this.popState();
|
|
753
|
-
break;
|
|
754
|
-
case 11:
|
|
755
|
-
this.pushState("string");
|
|
756
|
-
break;
|
|
757
|
-
case 12:
|
|
758
|
-
e2.getLogger().debug("LEX: POPPING STR:", S2.yytext), this.popState();
|
|
759
|
-
break;
|
|
760
|
-
case 13:
|
|
761
|
-
return e2.getLogger().debug("LEX: STR end:", S2.yytext), "STR";
|
|
762
|
-
case 14:
|
|
763
|
-
return S2.yytext = S2.yytext.replace(/space\:/, ""), e2.getLogger().debug("SPACE NUM (LEX)", S2.yytext), 21;
|
|
764
|
-
case 15:
|
|
765
|
-
return S2.yytext = "1", e2.getLogger().debug("COLUMNS (LEX)", S2.yytext), 21;
|
|
766
|
-
case 16:
|
|
767
|
-
return 42;
|
|
768
|
-
case 17:
|
|
769
|
-
return "LINKSTYLE";
|
|
770
|
-
case 18:
|
|
771
|
-
return "INTERPOLATE";
|
|
772
|
-
case 19:
|
|
773
|
-
return this.pushState("CLASSDEF"), 39;
|
|
774
|
-
case 20:
|
|
775
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
776
|
-
case 21:
|
|
777
|
-
return this.popState(), this.pushState("CLASSDEFID"), 40;
|
|
778
|
-
case 22:
|
|
779
|
-
return this.popState(), 41;
|
|
780
|
-
case 23:
|
|
781
|
-
return this.pushState("CLASS"), 43;
|
|
782
|
-
case 24:
|
|
783
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 44;
|
|
784
|
-
case 25:
|
|
785
|
-
return this.popState(), 45;
|
|
786
|
-
case 26:
|
|
787
|
-
return this.pushState("STYLE_STMNT"), 46;
|
|
788
|
-
case 27:
|
|
789
|
-
return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
|
|
790
|
-
case 28:
|
|
791
|
-
return this.popState(), 48;
|
|
792
|
-
case 29:
|
|
793
|
-
return this.pushState("acc_title"), "acc_title";
|
|
794
|
-
case 30:
|
|
795
|
-
return this.popState(), "acc_title_value";
|
|
796
|
-
case 31:
|
|
797
|
-
return this.pushState("acc_descr"), "acc_descr";
|
|
798
|
-
case 32:
|
|
799
|
-
return this.popState(), "acc_descr_value";
|
|
800
|
-
case 33:
|
|
801
|
-
this.pushState("acc_descr_multiline");
|
|
802
|
-
break;
|
|
803
|
-
case 34:
|
|
804
|
-
this.popState();
|
|
805
|
-
break;
|
|
806
|
-
case 35:
|
|
807
|
-
return "acc_descr_multiline_value";
|
|
808
|
-
case 36:
|
|
809
|
-
return 30;
|
|
810
|
-
case 37:
|
|
811
|
-
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
812
|
-
case 38:
|
|
813
|
-
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
814
|
-
case 39:
|
|
815
|
-
return this.popState(), e2.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
816
|
-
case 40:
|
|
817
|
-
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
818
|
-
case 41:
|
|
819
|
-
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
820
|
-
case 42:
|
|
821
|
-
return this.popState(), e2.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
822
|
-
case 43:
|
|
823
|
-
return this.popState(), e2.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
824
|
-
case 44:
|
|
825
|
-
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
826
|
-
case 45:
|
|
827
|
-
return this.popState(), e2.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
828
|
-
case 46:
|
|
829
|
-
return this.popState(), e2.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
830
|
-
case 47:
|
|
831
|
-
return this.popState(), e2.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
832
|
-
case 48:
|
|
833
|
-
return this.popState(), e2.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
834
|
-
case 49:
|
|
835
|
-
return this.popState(), e2.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
836
|
-
case 50:
|
|
837
|
-
return this.popState(), e2.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
838
|
-
case 51:
|
|
839
|
-
return this.popState(), e2.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
840
|
-
case 52:
|
|
841
|
-
return this.popState(), e2.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
842
|
-
case 53:
|
|
843
|
-
return this.popState(), e2.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
844
|
-
case 54:
|
|
845
|
-
return e2.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
|
|
846
|
-
case 55:
|
|
847
|
-
return e2.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
|
|
848
|
-
case 56:
|
|
849
|
-
return e2.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
|
|
850
|
-
case 57:
|
|
851
|
-
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
852
|
-
case 58:
|
|
853
|
-
return e2.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
|
|
854
|
-
case 59:
|
|
855
|
-
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
856
|
-
case 60:
|
|
857
|
-
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
858
|
-
case 61:
|
|
859
|
-
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
860
|
-
case 62:
|
|
861
|
-
return e2.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
|
|
862
|
-
case 63:
|
|
863
|
-
return e2.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
|
|
864
|
-
case 64:
|
|
865
|
-
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
866
|
-
case 65:
|
|
867
|
-
return this.pushState("NODE"), 35;
|
|
868
|
-
case 66:
|
|
869
|
-
return this.pushState("NODE"), 35;
|
|
870
|
-
case 67:
|
|
871
|
-
return this.pushState("NODE"), 35;
|
|
872
|
-
case 68:
|
|
873
|
-
return this.pushState("NODE"), 35;
|
|
874
|
-
case 69:
|
|
875
|
-
return this.pushState("NODE"), 35;
|
|
876
|
-
case 70:
|
|
877
|
-
return this.pushState("NODE"), 35;
|
|
878
|
-
case 71:
|
|
879
|
-
return this.pushState("NODE"), 35;
|
|
880
|
-
case 72:
|
|
881
|
-
return e2.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
|
|
882
|
-
case 73:
|
|
883
|
-
return this.pushState("BLOCK_ARROW"), e2.getLogger().debug("LEX ARR START"), 37;
|
|
884
|
-
case 74:
|
|
885
|
-
return e2.getLogger().debug("Lex: NODE_ID", S2.yytext), 31;
|
|
886
|
-
case 75:
|
|
887
|
-
return e2.getLogger().debug("Lex: EOF", S2.yytext), 8;
|
|
888
|
-
case 76:
|
|
889
|
-
this.pushState("md_string");
|
|
890
|
-
break;
|
|
891
|
-
case 77:
|
|
892
|
-
this.pushState("md_string");
|
|
893
|
-
break;
|
|
894
|
-
case 78:
|
|
895
|
-
return "NODE_DESCR";
|
|
896
|
-
case 79:
|
|
897
|
-
this.popState();
|
|
898
|
-
break;
|
|
899
|
-
case 80:
|
|
900
|
-
e2.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
901
|
-
break;
|
|
902
|
-
case 81:
|
|
903
|
-
e2.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
904
|
-
break;
|
|
905
|
-
case 82:
|
|
906
|
-
return e2.getLogger().debug("LEX: NODE_DESCR:", S2.yytext), "NODE_DESCR";
|
|
907
|
-
case 83:
|
|
908
|
-
e2.getLogger().debug("LEX POPPING"), this.popState();
|
|
909
|
-
break;
|
|
910
|
-
case 84:
|
|
911
|
-
e2.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
912
|
-
break;
|
|
913
|
-
case 85:
|
|
914
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (right): dir:", S2.yytext), "DIR";
|
|
915
|
-
case 86:
|
|
916
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (left):", S2.yytext), "DIR";
|
|
917
|
-
case 87:
|
|
918
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (x):", S2.yytext), "DIR";
|
|
919
|
-
case 88:
|
|
920
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (y):", S2.yytext), "DIR";
|
|
921
|
-
case 89:
|
|
922
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (up):", S2.yytext), "DIR";
|
|
923
|
-
case 90:
|
|
924
|
-
return S2.yytext = S2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (down):", S2.yytext), "DIR";
|
|
925
|
-
case 91:
|
|
926
|
-
return S2.yytext = "]>", e2.getLogger().debug("Lex (ARROW_DIR end):", S2.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
927
|
-
case 92:
|
|
928
|
-
return e2.getLogger().debug("Lex: LINK", "#" + S2.yytext + "#"), 15;
|
|
929
|
-
case 93:
|
|
930
|
-
return e2.getLogger().debug("Lex: LINK", S2.yytext), 15;
|
|
931
|
-
case 94:
|
|
932
|
-
return e2.getLogger().debug("Lex: LINK", S2.yytext), 15;
|
|
933
|
-
case 95:
|
|
934
|
-
return e2.getLogger().debug("Lex: LINK", S2.yytext), 15;
|
|
935
|
-
case 96:
|
|
936
|
-
return e2.getLogger().debug("Lex: START_LINK", S2.yytext), this.pushState("LLABEL"), 16;
|
|
937
|
-
case 97:
|
|
938
|
-
return e2.getLogger().debug("Lex: START_LINK", S2.yytext), this.pushState("LLABEL"), 16;
|
|
939
|
-
case 98:
|
|
940
|
-
return e2.getLogger().debug("Lex: START_LINK", S2.yytext), this.pushState("LLABEL"), 16;
|
|
941
|
-
case 99:
|
|
942
|
-
this.pushState("md_string");
|
|
943
|
-
break;
|
|
944
|
-
case 100:
|
|
945
|
-
return e2.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
946
|
-
case 101:
|
|
947
|
-
return this.popState(), e2.getLogger().debug("Lex: LINK", "#" + S2.yytext + "#"), 15;
|
|
948
|
-
case 102:
|
|
949
|
-
return this.popState(), e2.getLogger().debug("Lex: LINK", S2.yytext), 15;
|
|
950
|
-
case 103:
|
|
951
|
-
return this.popState(), e2.getLogger().debug("Lex: LINK", S2.yytext), 15;
|
|
952
|
-
case 104:
|
|
953
|
-
return e2.getLogger().debug("Lex: COLON", S2.yytext), S2.yytext = S2.yytext.slice(1), 27;
|
|
954
|
-
}
|
|
955
|
-
}, "anonymous"),
|
|
956
|
-
rules: [
|
|
957
|
-
/^(?:block-beta\b)/,
|
|
958
|
-
/^(?:block:)/,
|
|
959
|
-
/^(?:block\b)/,
|
|
960
|
-
/^(?:[\s]+)/,
|
|
961
|
-
/^(?:[\n]+)/,
|
|
962
|
-
/^(?:((\u000D\u000A)|(\u000A)))/,
|
|
963
|
-
/^(?:columns\s+auto\b)/,
|
|
964
|
-
/^(?:columns\s+[\d]+)/,
|
|
965
|
-
/^(?:["][`])/,
|
|
966
|
-
/^(?:[^`"]+)/,
|
|
967
|
-
/^(?:[`]["])/,
|
|
968
|
-
/^(?:["])/,
|
|
969
|
-
/^(?:["])/,
|
|
970
|
-
/^(?:[^"]*)/,
|
|
971
|
-
/^(?:space[:]\d+)/,
|
|
972
|
-
/^(?:space\b)/,
|
|
973
|
-
/^(?:default\b)/,
|
|
974
|
-
/^(?:linkStyle\b)/,
|
|
975
|
-
/^(?:interpolate\b)/,
|
|
976
|
-
/^(?:classDef\s+)/,
|
|
977
|
-
/^(?:DEFAULT\s+)/,
|
|
978
|
-
/^(?:\w+\s+)/,
|
|
979
|
-
/^(?:[^\n]*)/,
|
|
980
|
-
/^(?:class\s+)/,
|
|
981
|
-
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
982
|
-
/^(?:[^\n]*)/,
|
|
983
|
-
/^(?:style\s+)/,
|
|
984
|
-
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
985
|
-
/^(?:[^\n]*)/,
|
|
986
|
-
/^(?:accTitle\s*:\s*)/,
|
|
987
|
-
/^(?:(?!\n||)*[^\n]*)/,
|
|
988
|
-
/^(?:accDescr\s*:\s*)/,
|
|
989
|
-
/^(?:(?!\n||)*[^\n]*)/,
|
|
990
|
-
/^(?:accDescr\s*\{\s*)/,
|
|
991
|
-
/^(?:[\}])/,
|
|
992
|
-
/^(?:[^\}]*)/,
|
|
993
|
-
/^(?:end\b\s*)/,
|
|
994
|
-
/^(?:\(\(\()/,
|
|
995
|
-
/^(?:\)\)\))/,
|
|
996
|
-
/^(?:[\)]\))/,
|
|
997
|
-
/^(?:\}\})/,
|
|
998
|
-
/^(?:\})/,
|
|
999
|
-
/^(?:\(-)/,
|
|
1000
|
-
/^(?:-\))/,
|
|
1001
|
-
/^(?:\(\()/,
|
|
1002
|
-
/^(?:\]\])/,
|
|
1003
|
-
/^(?:\()/,
|
|
1004
|
-
/^(?:\]\))/,
|
|
1005
|
-
/^(?:\\\])/,
|
|
1006
|
-
/^(?:\/\])/,
|
|
1007
|
-
/^(?:\)\])/,
|
|
1008
|
-
/^(?:[\)])/,
|
|
1009
|
-
/^(?:\]>)/,
|
|
1010
|
-
/^(?:[\]])/,
|
|
1011
|
-
/^(?:-\))/,
|
|
1012
|
-
/^(?:\(-)/,
|
|
1013
|
-
/^(?:\)\))/,
|
|
1014
|
-
/^(?:\))/,
|
|
1015
|
-
/^(?:\(\(\()/,
|
|
1016
|
-
/^(?:\(\()/,
|
|
1017
|
-
/^(?:\{\{)/,
|
|
1018
|
-
/^(?:\{)/,
|
|
1019
|
-
/^(?:>)/,
|
|
1020
|
-
/^(?:\(\[)/,
|
|
1021
|
-
/^(?:\()/,
|
|
1022
|
-
/^(?:\[\[)/,
|
|
1023
|
-
/^(?:\[\|)/,
|
|
1024
|
-
/^(?:\[\()/,
|
|
1025
|
-
/^(?:\)\)\))/,
|
|
1026
|
-
/^(?:\[\\)/,
|
|
1027
|
-
/^(?:\[\/)/,
|
|
1028
|
-
/^(?:\[\\)/,
|
|
1029
|
-
/^(?:\[)/,
|
|
1030
|
-
/^(?:<\[)/,
|
|
1031
|
-
/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
|
|
1032
|
-
/^(?:$)/,
|
|
1033
|
-
/^(?:["][`])/,
|
|
1034
|
-
/^(?:["][`])/,
|
|
1035
|
-
/^(?:[^`"]+)/,
|
|
1036
|
-
/^(?:[`]["])/,
|
|
1037
|
-
/^(?:["])/,
|
|
1038
|
-
/^(?:["])/,
|
|
1039
|
-
/^(?:[^"]+)/,
|
|
1040
|
-
/^(?:["])/,
|
|
1041
|
-
/^(?:\]>\s*\()/,
|
|
1042
|
-
/^(?:,?\s*right\s*)/,
|
|
1043
|
-
/^(?:,?\s*left\s*)/,
|
|
1044
|
-
/^(?:,?\s*x\s*)/,
|
|
1045
|
-
/^(?:,?\s*y\s*)/,
|
|
1046
|
-
/^(?:,?\s*up\s*)/,
|
|
1047
|
-
/^(?:,?\s*down\s*)/,
|
|
1048
|
-
/^(?:\)\s*)/,
|
|
1049
|
-
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1050
|
-
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1051
|
-
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1052
|
-
/^(?:\s*~~[\~]+\s*)/,
|
|
1053
|
-
/^(?:\s*[xo<]?--\s*)/,
|
|
1054
|
-
/^(?:\s*[xo<]?==\s*)/,
|
|
1055
|
-
/^(?:\s*[xo<]?-\.\s*)/,
|
|
1056
|
-
/^(?:["][`])/,
|
|
1057
|
-
/^(?:["])/,
|
|
1058
|
-
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1059
|
-
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1060
|
-
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1061
|
-
/^(?::\d+)/
|
|
1062
|
-
],
|
|
1063
|
-
conditions: {
|
|
1064
|
-
STYLE_DEFINITION: {
|
|
1065
|
-
rules: [28],
|
|
1066
|
-
inclusive: false
|
|
1067
|
-
},
|
|
1068
|
-
STYLE_STMNT: {
|
|
1069
|
-
rules: [27],
|
|
1070
|
-
inclusive: false
|
|
1071
|
-
},
|
|
1072
|
-
CLASSDEFID: {
|
|
1073
|
-
rules: [22],
|
|
1074
|
-
inclusive: false
|
|
1075
|
-
},
|
|
1076
|
-
CLASSDEF: {
|
|
1077
|
-
rules: [20, 21],
|
|
1078
|
-
inclusive: false
|
|
1079
|
-
},
|
|
1080
|
-
CLASS_STYLE: {
|
|
1081
|
-
rules: [25],
|
|
1082
|
-
inclusive: false
|
|
1083
|
-
},
|
|
1084
|
-
CLASS: {
|
|
1085
|
-
rules: [24],
|
|
1086
|
-
inclusive: false
|
|
1087
|
-
},
|
|
1088
|
-
LLABEL: {
|
|
1089
|
-
rules: [
|
|
1090
|
-
99,
|
|
1091
|
-
100,
|
|
1092
|
-
101,
|
|
1093
|
-
102,
|
|
1094
|
-
103
|
|
1095
|
-
],
|
|
1096
|
-
inclusive: false
|
|
1097
|
-
},
|
|
1098
|
-
ARROW_DIR: {
|
|
1099
|
-
rules: [
|
|
1100
|
-
85,
|
|
1101
|
-
86,
|
|
1102
|
-
87,
|
|
1103
|
-
88,
|
|
1104
|
-
89,
|
|
1105
|
-
90,
|
|
1106
|
-
91
|
|
1107
|
-
],
|
|
1108
|
-
inclusive: false
|
|
1109
|
-
},
|
|
1110
|
-
BLOCK_ARROW: {
|
|
1111
|
-
rules: [
|
|
1112
|
-
76,
|
|
1113
|
-
81,
|
|
1114
|
-
84
|
|
1115
|
-
],
|
|
1116
|
-
inclusive: false
|
|
1117
|
-
},
|
|
1118
|
-
NODE: {
|
|
1119
|
-
rules: [
|
|
1120
|
-
37,
|
|
1121
|
-
38,
|
|
1122
|
-
39,
|
|
1123
|
-
40,
|
|
1124
|
-
41,
|
|
1125
|
-
42,
|
|
1126
|
-
43,
|
|
1127
|
-
44,
|
|
1128
|
-
45,
|
|
1129
|
-
46,
|
|
1130
|
-
47,
|
|
1131
|
-
48,
|
|
1132
|
-
49,
|
|
1133
|
-
50,
|
|
1134
|
-
51,
|
|
1135
|
-
52,
|
|
1136
|
-
53,
|
|
1137
|
-
77,
|
|
1138
|
-
80
|
|
1139
|
-
],
|
|
1140
|
-
inclusive: false
|
|
1141
|
-
},
|
|
1142
|
-
md_string: {
|
|
1143
|
-
rules: [
|
|
1144
|
-
9,
|
|
1145
|
-
10,
|
|
1146
|
-
78,
|
|
1147
|
-
79
|
|
1148
|
-
],
|
|
1149
|
-
inclusive: false
|
|
1150
|
-
},
|
|
1151
|
-
space: {
|
|
1152
|
-
rules: [],
|
|
1153
|
-
inclusive: false
|
|
1154
|
-
},
|
|
1155
|
-
string: {
|
|
1156
|
-
rules: [
|
|
1157
|
-
12,
|
|
1158
|
-
13,
|
|
1159
|
-
82,
|
|
1160
|
-
83
|
|
1161
|
-
],
|
|
1162
|
-
inclusive: false
|
|
1163
|
-
},
|
|
1164
|
-
acc_descr_multiline: {
|
|
1165
|
-
rules: [34, 35],
|
|
1166
|
-
inclusive: false
|
|
1167
|
-
},
|
|
1168
|
-
acc_descr: {
|
|
1169
|
-
rules: [32],
|
|
1170
|
-
inclusive: false
|
|
1171
|
-
},
|
|
1172
|
-
acc_title: {
|
|
1173
|
-
rules: [30],
|
|
1174
|
-
inclusive: false
|
|
1175
|
-
},
|
|
1176
|
-
INITIAL: {
|
|
1177
|
-
rules: [
|
|
1178
|
-
0,
|
|
1179
|
-
1,
|
|
1180
|
-
2,
|
|
1181
|
-
3,
|
|
1182
|
-
4,
|
|
1183
|
-
5,
|
|
1184
|
-
6,
|
|
1185
|
-
7,
|
|
1186
|
-
8,
|
|
1187
|
-
11,
|
|
1188
|
-
14,
|
|
1189
|
-
15,
|
|
1190
|
-
16,
|
|
1191
|
-
17,
|
|
1192
|
-
18,
|
|
1193
|
-
19,
|
|
1194
|
-
23,
|
|
1195
|
-
26,
|
|
1196
|
-
29,
|
|
1197
|
-
31,
|
|
1198
|
-
33,
|
|
1199
|
-
36,
|
|
1200
|
-
54,
|
|
1201
|
-
55,
|
|
1202
|
-
56,
|
|
1203
|
-
57,
|
|
1204
|
-
58,
|
|
1205
|
-
59,
|
|
1206
|
-
60,
|
|
1207
|
-
61,
|
|
1208
|
-
62,
|
|
1209
|
-
63,
|
|
1210
|
-
64,
|
|
1211
|
-
65,
|
|
1212
|
-
66,
|
|
1213
|
-
67,
|
|
1214
|
-
68,
|
|
1215
|
-
69,
|
|
1216
|
-
70,
|
|
1217
|
-
71,
|
|
1218
|
-
72,
|
|
1219
|
-
73,
|
|
1220
|
-
74,
|
|
1221
|
-
75,
|
|
1222
|
-
92,
|
|
1223
|
-
93,
|
|
1224
|
-
94,
|
|
1225
|
-
95,
|
|
1226
|
-
96,
|
|
1227
|
-
97,
|
|
1228
|
-
98,
|
|
1229
|
-
104
|
|
1230
|
-
],
|
|
1231
|
-
inclusive: true
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
})();
|
|
1236
|
-
function z() {
|
|
1237
|
-
this.yy = {};
|
|
1238
|
-
}
|
|
1239
|
-
return __name(z, "Parser"), z.prototype = R, R.Parser = z, new z();
|
|
1240
|
-
})();
|
|
1241
|
-
parser.parser = parser;
|
|
1242
|
-
var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), COLOR_KEYWORD = "color", FILL_KEYWORD = "fill", BG_FILL = "bgFill", STYLECLASS_SEP = ",", config = getConfig2(), classes = /* @__PURE__ */ new Map(), sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, config), "sanitizeText"), addStyleClass = /* @__PURE__ */ __name(function(e, S = "") {
|
|
1243
|
-
let C = classes.get(e);
|
|
1244
|
-
C || (C = {
|
|
1245
|
-
id: e,
|
|
1246
|
-
styles: [],
|
|
1247
|
-
textStyles: []
|
|
1248
|
-
}, classes.set(e, C)), S == null ? void 0 : S.split(STYLECLASS_SEP).forEach((e2) => {
|
|
1249
|
-
let S2 = e2.replace(/([^;]*);/, "$1").trim();
|
|
1250
|
-
if (RegExp(COLOR_KEYWORD).exec(e2)) {
|
|
1251
|
-
let e3 = S2.replace(FILL_KEYWORD, BG_FILL).replace(COLOR_KEYWORD, FILL_KEYWORD);
|
|
1252
|
-
C.textStyles.push(e3);
|
|
1253
|
-
}
|
|
1254
|
-
C.styles.push(S2);
|
|
1255
|
-
});
|
|
1256
|
-
}, "addStyleClass"), addStyle2Node = /* @__PURE__ */ __name(function(e, S = "") {
|
|
1257
|
-
let C = blockDatabase.get(e);
|
|
1258
|
-
S != null && (C.styles = S.split(STYLECLASS_SEP));
|
|
1259
|
-
}, "addStyle2Node"), setCssClass = /* @__PURE__ */ __name(function(e, S) {
|
|
1260
|
-
e.split(",").forEach(function(e2) {
|
|
1261
|
-
let C = blockDatabase.get(e2);
|
|
1262
|
-
if (C === void 0) {
|
|
1263
|
-
let S2 = e2.trim();
|
|
1264
|
-
C = {
|
|
1265
|
-
id: S2,
|
|
1266
|
-
type: "na",
|
|
1267
|
-
children: []
|
|
1268
|
-
}, blockDatabase.set(S2, C);
|
|
1269
|
-
}
|
|
1270
|
-
C.classes || (C.classes = []), C.classes.push(S);
|
|
1271
|
-
});
|
|
1272
|
-
}, "setCssClass"), populateBlockDatabase = /* @__PURE__ */ __name((e, C) => {
|
|
1273
|
-
var _a2;
|
|
1274
|
-
let w = e.flat(), T = [], E = ((_a2 = w.find((e2) => (e2 == null ? void 0 : e2.type) === "column-setting")) == null ? void 0 : _a2.columns) ?? -1;
|
|
1275
|
-
for (let e2 of w) {
|
|
1276
|
-
if (typeof E == "number" && E > 0 && e2.type !== "column-setting" && typeof e2.widthInColumns == "number" && e2.widthInColumns > E && log.warn(`Block ${e2.id} width ${e2.widthInColumns} exceeds configured column width ${E}`), e2.label && (e2.label = sanitizeText2(e2.label)), e2.type === "classDef") {
|
|
1277
|
-
addStyleClass(e2.id, e2.css);
|
|
1278
|
-
continue;
|
|
1279
|
-
}
|
|
1280
|
-
if (e2.type === "applyClass") {
|
|
1281
|
-
setCssClass(e2.id, (e2 == null ? void 0 : e2.styleClass) ?? "");
|
|
1282
|
-
continue;
|
|
1283
|
-
}
|
|
1284
|
-
if (e2.type === "applyStyles") {
|
|
1285
|
-
(e2 == null ? void 0 : e2.stylesStr) && addStyle2Node(e2.id, e2 == null ? void 0 : e2.stylesStr);
|
|
1286
|
-
continue;
|
|
1287
|
-
}
|
|
1288
|
-
if (e2.type === "column-setting") C.columns = e2.columns ?? -1;
|
|
1289
|
-
else if (e2.type === "edge") {
|
|
1290
|
-
let S = (edgeCount.get(e2.id) ?? 0) + 1;
|
|
1291
|
-
edgeCount.set(e2.id, S), e2.id = S + "-" + e2.id, edgeList.push(e2);
|
|
1292
|
-
} else {
|
|
1293
|
-
e2.label || (e2.type === "composite" ? e2.label = "" : e2.label = e2.id);
|
|
1294
|
-
let C2 = blockDatabase.get(e2.id);
|
|
1295
|
-
if (C2 === void 0 ? blockDatabase.set(e2.id, e2) : (e2.type !== "na" && (C2.type = e2.type), e2.label !== e2.id && (C2.label = e2.label)), e2.children && populateBlockDatabase(e2.children, e2), e2.type === "space") {
|
|
1296
|
-
let C3 = e2.width ?? 1;
|
|
1297
|
-
for (let w2 = 0; w2 < C3; w2++) {
|
|
1298
|
-
let C4 = clone_default(e2);
|
|
1299
|
-
C4.id = C4.id + "-" + w2, blockDatabase.set(C4.id, C4), T.push(C4);
|
|
1300
|
-
}
|
|
1301
|
-
} else C2 === void 0 && T.push(e2);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
C.children = T;
|
|
1305
|
-
}, "populateBlockDatabase"), blocks = [], rootBlock = {
|
|
1306
|
-
id: "root",
|
|
1307
|
-
type: "composite",
|
|
1308
|
-
children: [],
|
|
1309
|
-
columns: -1
|
|
1310
|
-
}, clear2 = /* @__PURE__ */ __name(() => {
|
|
1311
|
-
log.debug("Clear called"), clear(), rootBlock = {
|
|
1312
|
-
id: "root",
|
|
1313
|
-
type: "composite",
|
|
1314
|
-
children: [],
|
|
1315
|
-
columns: -1
|
|
1316
|
-
}, blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]), blocks = [], classes = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map();
|
|
1317
|
-
}, "clear");
|
|
1318
|
-
function typeStr2Type(e) {
|
|
1319
|
-
switch (log.debug("typeStr2Type", e), e) {
|
|
1320
|
-
case "[]":
|
|
1321
|
-
return "square";
|
|
1322
|
-
case "()":
|
|
1323
|
-
return log.debug("we have a round"), "round";
|
|
1324
|
-
case "(())":
|
|
1325
|
-
return "circle";
|
|
1326
|
-
case ">]":
|
|
1327
|
-
return "rect_left_inv_arrow";
|
|
1328
|
-
case "{}":
|
|
1329
|
-
return "diamond";
|
|
1330
|
-
case "{{}}":
|
|
1331
|
-
return "hexagon";
|
|
1332
|
-
case "([])":
|
|
1333
|
-
return "stadium";
|
|
1334
|
-
case "[[]]":
|
|
1335
|
-
return "subroutine";
|
|
1336
|
-
case "[()]":
|
|
1337
|
-
return "cylinder";
|
|
1338
|
-
case "((()))":
|
|
1339
|
-
return "doublecircle";
|
|
1340
|
-
case "[//]":
|
|
1341
|
-
return "lean_right";
|
|
1342
|
-
case "[\\\\]":
|
|
1343
|
-
return "lean_left";
|
|
1344
|
-
case "[/\\]":
|
|
1345
|
-
return "trapezoid";
|
|
1346
|
-
case "[\\/]":
|
|
1347
|
-
return "inv_trapezoid";
|
|
1348
|
-
case "<[]>":
|
|
1349
|
-
return "block_arrow";
|
|
1350
|
-
default:
|
|
1351
|
-
return "na";
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
__name(typeStr2Type, "typeStr2Type");
|
|
1355
|
-
function edgeTypeStr2Type(e) {
|
|
1356
|
-
switch (log.debug("typeStr2Type", e), e) {
|
|
1357
|
-
case "==":
|
|
1358
|
-
return "thick";
|
|
1359
|
-
default:
|
|
1360
|
-
return "normal";
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
__name(edgeTypeStr2Type, "edgeTypeStr2Type");
|
|
1364
|
-
function edgeStrToEdgeData(e) {
|
|
1365
|
-
switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
|
|
1366
|
-
case "x":
|
|
1367
|
-
return "arrow_cross";
|
|
1368
|
-
case "o":
|
|
1369
|
-
return "arrow_circle";
|
|
1370
|
-
case ">":
|
|
1371
|
-
return "arrow_point";
|
|
1372
|
-
default:
|
|
1373
|
-
return "";
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
__name(edgeStrToEdgeData, "edgeStrToEdgeData");
|
|
1377
|
-
var cnt = 0, blockDB_default = {
|
|
1378
|
-
getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
|
|
1379
|
-
typeStr2Type,
|
|
1380
|
-
edgeTypeStr2Type,
|
|
1381
|
-
edgeStrToEdgeData,
|
|
1382
|
-
getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
|
|
1383
|
-
getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
|
|
1384
|
-
getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
|
|
1385
|
-
getEdges: /* @__PURE__ */ __name(() => edgeList, "getEdges"),
|
|
1386
|
-
setHierarchy: /* @__PURE__ */ __name((e) => {
|
|
1387
|
-
rootBlock.children = e, populateBlockDatabase(e, rootBlock), blocks = rootBlock.children;
|
|
1388
|
-
}, "setHierarchy"),
|
|
1389
|
-
getBlock: /* @__PURE__ */ __name((e) => blockDatabase.get(e), "getBlock"),
|
|
1390
|
-
setBlock: /* @__PURE__ */ __name((e) => {
|
|
1391
|
-
blockDatabase.set(e.id, e);
|
|
1392
|
-
}, "setBlock"),
|
|
1393
|
-
getColumns: /* @__PURE__ */ __name((e) => {
|
|
1394
|
-
let S = blockDatabase.get(e);
|
|
1395
|
-
return S ? S.columns ? S.columns : S.children ? S.children.length : -1 : -1;
|
|
1396
|
-
}, "getColumns"),
|
|
1397
|
-
getClasses: /* @__PURE__ */ __name(function() {
|
|
1398
|
-
return classes;
|
|
1399
|
-
}, "getClasses"),
|
|
1400
|
-
clear: clear2,
|
|
1401
|
-
generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId")
|
|
1402
|
-
}, fade = /* @__PURE__ */ __name((e, S) => {
|
|
1403
|
-
let C = channel_default;
|
|
1404
|
-
return rgba_default(C(e, "r"), C(e, "g"), C(e, "b"), S);
|
|
1405
|
-
}, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
|
|
1406
|
-
font-family: ${e.fontFamily};
|
|
1407
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
1408
|
-
}
|
|
1409
|
-
.cluster-label text {
|
|
1410
|
-
fill: ${e.titleColor};
|
|
1411
|
-
}
|
|
1412
|
-
.cluster-label span,p {
|
|
1413
|
-
color: ${e.titleColor};
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
.label text,span,p {
|
|
1419
|
-
fill: ${e.nodeTextColor || e.textColor};
|
|
1420
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
.node rect,
|
|
1424
|
-
.node circle,
|
|
1425
|
-
.node ellipse,
|
|
1426
|
-
.node polygon,
|
|
1427
|
-
.node path {
|
|
1428
|
-
fill: ${e.mainBkg};
|
|
1429
|
-
stroke: ${e.nodeBorder};
|
|
1430
|
-
stroke-width: 1px;
|
|
1431
|
-
}
|
|
1432
|
-
.flowchart-label text {
|
|
1433
|
-
text-anchor: middle;
|
|
1434
|
-
}
|
|
1435
|
-
// .flowchart-label .text-outer-tspan {
|
|
1436
|
-
// text-anchor: middle;
|
|
1437
|
-
// }
|
|
1438
|
-
// .flowchart-label .text-inner-tspan {
|
|
1439
|
-
// text-anchor: start;
|
|
1440
|
-
// }
|
|
1441
|
-
|
|
1442
|
-
.node .label {
|
|
1443
|
-
text-align: center;
|
|
1444
|
-
}
|
|
1445
|
-
.node.clickable {
|
|
1446
|
-
cursor: pointer;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
.arrowheadPath {
|
|
1450
|
-
fill: ${e.arrowheadColor};
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
.edgePath .path {
|
|
1454
|
-
stroke: ${e.lineColor};
|
|
1455
|
-
stroke-width: 2.0px;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
.flowchart-link {
|
|
1459
|
-
stroke: ${e.lineColor};
|
|
1460
|
-
fill: none;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
.edgeLabel {
|
|
1464
|
-
background-color: ${e.edgeLabelBackground};
|
|
1465
|
-
rect {
|
|
1466
|
-
opacity: 0.5;
|
|
1467
|
-
background-color: ${e.edgeLabelBackground};
|
|
1468
|
-
fill: ${e.edgeLabelBackground};
|
|
1469
|
-
}
|
|
1470
|
-
text-align: center;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
/* For html labels only */
|
|
1474
|
-
.labelBkg {
|
|
1475
|
-
background-color: ${fade(e.edgeLabelBackground, 0.5)};
|
|
1476
|
-
// background-color:
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
.node .cluster {
|
|
1480
|
-
// fill: ${fade(e.mainBkg, 0.5)};
|
|
1481
|
-
fill: ${fade(e.clusterBkg, 0.5)};
|
|
1482
|
-
stroke: ${fade(e.clusterBorder, 0.2)};
|
|
1483
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
1484
|
-
stroke-width: 1px;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
.cluster text {
|
|
1488
|
-
fill: ${e.titleColor};
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
.cluster span,p {
|
|
1492
|
-
color: ${e.titleColor};
|
|
1493
|
-
}
|
|
1494
|
-
/* .cluster div {
|
|
1495
|
-
color: ${e.titleColor};
|
|
1496
|
-
} */
|
|
1497
|
-
|
|
1498
|
-
div.mermaidTooltip {
|
|
1499
|
-
position: absolute;
|
|
1500
|
-
text-align: center;
|
|
1501
|
-
max-width: 200px;
|
|
1502
|
-
padding: 2px;
|
|
1503
|
-
font-family: ${e.fontFamily};
|
|
1504
|
-
font-size: 12px;
|
|
1505
|
-
background: ${e.tertiaryColor};
|
|
1506
|
-
border: 1px solid ${e.border2};
|
|
1507
|
-
border-radius: 2px;
|
|
1508
|
-
pointer-events: none;
|
|
1509
|
-
z-index: 100;
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
.flowchartTitleText {
|
|
1513
|
-
text-anchor: middle;
|
|
1514
|
-
font-size: 18px;
|
|
1515
|
-
fill: ${e.textColor};
|
|
1516
|
-
}
|
|
1517
|
-
${getIconStyles()}
|
|
1518
|
-
`, "getStyles"), insertMarkers = /* @__PURE__ */ __name((e, S, C, w) => {
|
|
1519
|
-
S.forEach((S2) => {
|
|
1520
|
-
markers[S2](e, C, w);
|
|
1521
|
-
});
|
|
1522
|
-
}, "insertMarkers"), markers = {
|
|
1523
|
-
extension: /* @__PURE__ */ __name((e, S, C) => {
|
|
1524
|
-
log.trace("Making markers for ", C), e.append("defs").append("marker").attr("id", C + "_" + S + "-extensionStart").attr("class", "marker extension " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-extensionEnd").attr("class", "marker extension " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
1525
|
-
}, "extension"),
|
|
1526
|
-
composition: /* @__PURE__ */ __name((e, S, C) => {
|
|
1527
|
-
e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionStart").attr("class", "marker composition " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionEnd").attr("class", "marker composition " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1528
|
-
}, "composition"),
|
|
1529
|
-
aggregation: /* @__PURE__ */ __name((e, S, C) => {
|
|
1530
|
-
e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationStart").attr("class", "marker aggregation " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationEnd").attr("class", "marker aggregation " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1531
|
-
}, "aggregation"),
|
|
1532
|
-
dependency: /* @__PURE__ */ __name((e, S, C) => {
|
|
1533
|
-
e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyStart").attr("class", "marker dependency " + S).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyEnd").attr("class", "marker dependency " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1534
|
-
}, "dependency"),
|
|
1535
|
-
lollipop: /* @__PURE__ */ __name((e, S, C) => {
|
|
1536
|
-
e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopStart").attr("class", "marker lollipop " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopEnd").attr("class", "marker lollipop " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
1537
|
-
}, "lollipop"),
|
|
1538
|
-
point: /* @__PURE__ */ __name((e, S, C) => {
|
|
1539
|
-
e.append("marker").attr("id", C + "_" + S + "-pointEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-pointStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1540
|
-
}, "point"),
|
|
1541
|
-
circle: /* @__PURE__ */ __name((e, S, C) => {
|
|
1542
|
-
e.append("marker").attr("id", C + "_" + S + "-circleEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-circleStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1543
|
-
}, "circle"),
|
|
1544
|
-
cross: /* @__PURE__ */ __name((e, S, C) => {
|
|
1545
|
-
e.append("marker").attr("id", C + "_" + S + "-crossEnd").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-crossStart").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
1546
|
-
}, "cross"),
|
|
1547
|
-
barb: /* @__PURE__ */ __name((e, S, C) => {
|
|
1548
|
-
e.append("defs").append("marker").attr("id", C + "_" + S + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
1549
|
-
}, "barb")
|
|
1550
|
-
}, markers_default = insertMarkers, padding = ((_b = (_a = getConfig2()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) ?? 8;
|
|
1551
|
-
function calculateBlockPosition(e, S) {
|
|
1552
|
-
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1553
|
-
if (S < 0 || !Number.isInteger(S)) throw Error("Position must be a non-negative integer." + S);
|
|
1554
|
-
return e < 0 ? {
|
|
1555
|
-
px: S,
|
|
1556
|
-
py: 0
|
|
1557
|
-
} : e === 1 ? {
|
|
1558
|
-
px: 0,
|
|
1559
|
-
py: S
|
|
1560
|
-
} : {
|
|
1561
|
-
px: S % e,
|
|
1562
|
-
py: Math.floor(S / e)
|
|
1563
|
-
};
|
|
1564
|
-
}
|
|
1565
|
-
__name(calculateBlockPosition, "calculateBlockPosition");
|
|
1566
|
-
var getMaxChildSize = /* @__PURE__ */ __name((e) => {
|
|
1567
|
-
let S = 0, C = 0;
|
|
1568
|
-
for (let w of e.children) {
|
|
1569
|
-
let { width: T, height: E, x: D, y: k } = w.size ?? {
|
|
1570
|
-
width: 0,
|
|
1571
|
-
height: 0,
|
|
1572
|
-
x: 0,
|
|
1573
|
-
y: 0
|
|
1574
|
-
};
|
|
1575
|
-
log.debug("getMaxChildSize abc95 child:", w.id, "width:", T, "height:", E, "x:", D, "y:", k, w.type), w.type !== "space" && (T > S && (S = T / (e.widthInColumns ?? 1)), E > C && (C = E));
|
|
1576
|
-
}
|
|
1577
|
-
return {
|
|
1578
|
-
width: S,
|
|
1579
|
-
height: C
|
|
1580
|
-
};
|
|
1581
|
-
}, "getMaxChildSize");
|
|
1582
|
-
function setBlockSizes(e, S, C = 0, w = 0) {
|
|
1583
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
1584
|
-
log.debug("setBlockSizes abc95 (start)", e.id, (_a2 = e == null ? void 0 : e.size) == null ? void 0 : _a2.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", C), ((_b2 = e == null ? void 0 : e.size) == null ? void 0 : _b2.width) || (e.size = {
|
|
1585
|
-
width: C,
|
|
1586
|
-
height: w,
|
|
1587
|
-
x: 0,
|
|
1588
|
-
y: 0
|
|
1589
|
-
});
|
|
1590
|
-
let T = 0, E = 0;
|
|
1591
|
-
if (((_c = e.children) == null ? void 0 : _c.length) > 0) {
|
|
1592
|
-
for (let C2 of e.children) setBlockSizes(C2, S);
|
|
1593
|
-
let D = getMaxChildSize(e);
|
|
1594
|
-
T = D.width, E = D.height, log.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", T, E);
|
|
1595
|
-
for (let S2 of e.children) S2.size && (log.debug(`abc95 Setting size of children of ${e.id} id=${S2.id} ${T} ${E} ${JSON.stringify(S2.size)}`), S2.size.width = T * (S2.widthInColumns ?? 1) + padding * ((S2.widthInColumns ?? 1) - 1), S2.size.height = E, S2.size.x = 0, S2.size.y = 0, log.debug(`abc95 updating size of ${e.id} children child:${S2.id} maxWidth:${T} maxHeight:${E}`));
|
|
1596
|
-
for (let C2 of e.children) setBlockSizes(C2, S, T, E);
|
|
1597
|
-
let k = e.columns ?? -1, A = 0;
|
|
1598
|
-
for (let S2 of e.children) A += S2.widthInColumns ?? 1;
|
|
1599
|
-
let j = e.children.length;
|
|
1600
|
-
k > 0 && k < A && (j = k);
|
|
1601
|
-
let M = Math.ceil(A / j), N = j * (T + padding) + padding, P = M * (E + padding) + padding;
|
|
1602
|
-
if (N < C) {
|
|
1603
|
-
log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${C} siblingHeight ${w} width ${N}`), N = C, P = w;
|
|
1604
|
-
let S2 = (C - j * padding - padding) / j, D2 = (w - M * padding - padding) / M;
|
|
1605
|
-
log.debug("Size indata abc88", e.id, "childWidth", S2, "maxWidth", T), log.debug("Size indata abc88", e.id, "childHeight", D2, "maxHeight", E), log.debug("Size indata abc88 xSize", j, "padding", padding);
|
|
1606
|
-
for (let C2 of e.children) C2.size && (C2.size.width = S2, C2.size.height = D2, C2.size.x = 0, C2.size.y = 0);
|
|
1607
|
-
}
|
|
1608
|
-
if (log.debug(`abc95 (finale calc) ${e.id} xSize ${j} ySize ${M} columns ${k}${e.children.length} width=${Math.max(N, ((_d = e.size) == null ? void 0 : _d.width) || 0)}`), N < (((_e = e == null ? void 0 : e.size) == null ? void 0 : _e.width) || 0)) {
|
|
1609
|
-
N = ((_f = e == null ? void 0 : e.size) == null ? void 0 : _f.width) || 0;
|
|
1610
|
-
let S2 = k > 0 ? Math.min(e.children.length, k) : e.children.length;
|
|
1611
|
-
if (S2 > 0) {
|
|
1612
|
-
let C2 = (N - S2 * padding - padding) / S2;
|
|
1613
|
-
log.debug("abc95 (growing to fit) width", e.id, N, (_g = e.size) == null ? void 0 : _g.width, C2);
|
|
1614
|
-
for (let S3 of e.children) S3.size && (S3.size.width = C2);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
e.size = {
|
|
1618
|
-
width: N,
|
|
1619
|
-
height: P,
|
|
1620
|
-
x: 0,
|
|
1621
|
-
y: 0
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
log.debug("setBlockSizes abc94 (done)", e.id, (_h = e == null ? void 0 : e.size) == null ? void 0 : _h.x, (_i = e == null ? void 0 : e.size) == null ? void 0 : _i.width, (_j = e == null ? void 0 : e.size) == null ? void 0 : _j.y, (_k = e == null ? void 0 : e.size) == null ? void 0 : _k.height);
|
|
1625
|
-
}
|
|
1626
|
-
__name(setBlockSizes, "setBlockSizes");
|
|
1627
|
-
function layoutBlocks(e, S) {
|
|
1628
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
1629
|
-
log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(_a2 = e == null ? void 0 : e.size) == null ? void 0 : _a2.x} y: ${(_b2 = e == null ? void 0 : e.size) == null ? void 0 : _b2.y} width: ${(_c = e == null ? void 0 : e.size) == null ? void 0 : _c.width}`);
|
|
1630
|
-
let C = e.columns ?? -1;
|
|
1631
|
-
if (log.debug("layoutBlocks columns abc95", e.id, "=>", C, e), e.children && e.children.length > 0) {
|
|
1632
|
-
let w = ((_e = (_d = e == null ? void 0 : e.children[0]) == null ? void 0 : _d.size) == null ? void 0 : _e.width) ?? 0, T = e.children.length * w + (e.children.length - 1) * padding;
|
|
1633
|
-
log.debug("widthOfChildren 88", T, "posX");
|
|
1634
|
-
let E = 0;
|
|
1635
|
-
log.debug("abc91 block?.size?.x", e.id, (_f = e == null ? void 0 : e.size) == null ? void 0 : _f.x);
|
|
1636
|
-
let D = ((_g = e == null ? void 0 : e.size) == null ? void 0 : _g.x) ? ((_h = e == null ? void 0 : e.size) == null ? void 0 : _h.x) + (-((_i = e == null ? void 0 : e.size) == null ? void 0 : _i.width) / 2 || 0) : -padding, k = 0;
|
|
1637
|
-
for (let w2 of e.children) {
|
|
1638
|
-
let T2 = e;
|
|
1639
|
-
if (!w2.size) continue;
|
|
1640
|
-
let { width: A, height: j } = w2.size, { px: M, py: N } = calculateBlockPosition(C, E);
|
|
1641
|
-
if (N != k && (k = N, D = ((_j = e == null ? void 0 : e.size) == null ? void 0 : _j.x) ? ((_k = e == null ? void 0 : e.size) == null ? void 0 : _k.x) + (-((_l = e == null ? void 0 : e.size) == null ? void 0 : _l.width) / 2 || 0) : -padding, log.debug("New row in layout for block", e.id, " and child ", w2.id, k)), log.debug(`abc89 layout blocks (child) id: ${w2.id} Pos: ${E} (px, py) ${M},${N} (${(_m = T2 == null ? void 0 : T2.size) == null ? void 0 : _m.x},${(_n = T2 == null ? void 0 : T2.size) == null ? void 0 : _n.y}) parent: ${T2.id} width: ${A}${padding}`), T2.size) {
|
|
1642
|
-
let e2 = A / 2;
|
|
1643
|
-
w2.size.x = D + padding + e2, log.debug(`abc91 layout blocks (calc) px, pyid:${w2.id} startingPos=X${D} new startingPosX${w2.size.x} ${e2} padding=${padding} width=${A} halfWidth=${e2} => x:${w2.size.x} y:${w2.size.y} ${w2.widthInColumns} (width * (child?.w || 1)) / 2 ${A * ((w2 == null ? void 0 : w2.widthInColumns) ?? 1) / 2}`), D = w2.size.x + e2, w2.size.y = T2.size.y - T2.size.height / 2 + N * (j + padding) + j / 2 + padding, log.debug(`abc88 layout blocks (calc) px, pyid:${w2.id}startingPosX${D}${padding}${e2}=>x:${w2.size.x}y:${w2.size.y}${w2.widthInColumns}(width * (child?.w || 1)) / 2${A * ((w2 == null ? void 0 : w2.widthInColumns) ?? 1) / 2}`);
|
|
1644
|
-
}
|
|
1645
|
-
w2.children && layoutBlocks(w2, S);
|
|
1646
|
-
let P = (w2 == null ? void 0 : w2.widthInColumns) ?? 1;
|
|
1647
|
-
C > 0 && (P = Math.min(P, C - E % C)), E += P, log.debug("abc88 columnsPos", w2, E);
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(_o = e == null ? void 0 : e.size) == null ? void 0 : _o.x} y: ${(_p = e == null ? void 0 : e.size) == null ? void 0 : _p.y} width: ${(_q = e == null ? void 0 : e.size) == null ? void 0 : _q.width}`);
|
|
1651
|
-
}
|
|
1652
|
-
__name(layoutBlocks, "layoutBlocks");
|
|
1653
|
-
function findBounds(e, { minX: S, minY: C, maxX: w, maxY: T } = {
|
|
1654
|
-
minX: 0,
|
|
1655
|
-
minY: 0,
|
|
1656
|
-
maxX: 0,
|
|
1657
|
-
maxY: 0
|
|
1658
|
-
}) {
|
|
1659
|
-
if (e.size && e.id !== "root") {
|
|
1660
|
-
let { x: E, y: D, width: O, height: k } = e.size;
|
|
1661
|
-
E - O / 2 < S && (S = E - O / 2), D - k / 2 < C && (C = D - k / 2), E + O / 2 > w && (w = E + O / 2), D + k / 2 > T && (T = D + k / 2);
|
|
1662
|
-
}
|
|
1663
|
-
if (e.children) for (let E of e.children) ({ minX: S, minY: C, maxX: w, maxY: T } = findBounds(E, {
|
|
1664
|
-
minX: S,
|
|
1665
|
-
minY: C,
|
|
1666
|
-
maxX: w,
|
|
1667
|
-
maxY: T
|
|
1668
|
-
}));
|
|
1669
|
-
return {
|
|
1670
|
-
minX: S,
|
|
1671
|
-
minY: C,
|
|
1672
|
-
maxX: w,
|
|
1673
|
-
maxY: T
|
|
1674
|
-
};
|
|
1675
|
-
}
|
|
1676
|
-
__name(findBounds, "findBounds");
|
|
1677
|
-
function layout(e) {
|
|
1678
|
-
let S = e.getBlock("root");
|
|
1679
|
-
if (!S) return;
|
|
1680
|
-
setBlockSizes(S, e, 0, 0), layoutBlocks(S, e), log.debug("getBlocks", JSON.stringify(S, null, 2));
|
|
1681
|
-
let { minX: C, minY: w, maxX: T, maxY: E } = findBounds(S), D = E - w;
|
|
1682
|
-
return {
|
|
1683
|
-
x: C,
|
|
1684
|
-
y: w,
|
|
1685
|
-
width: T - C,
|
|
1686
|
-
height: D
|
|
1687
|
-
};
|
|
1688
|
-
}
|
|
1689
|
-
__name(layout, "layout");
|
|
1690
|
-
function applyStyle(e, S) {
|
|
1691
|
-
S && e.attr("style", S);
|
|
1692
|
-
}
|
|
1693
|
-
__name(applyStyle, "applyStyle");
|
|
1694
|
-
function addHtmlLabel(e, S) {
|
|
1695
|
-
let C = select_default(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), w = C.append("xhtml:div"), T = e.label, E = e.isNode ? "nodeLabel" : "edgeLabel", D = w.append("span");
|
|
1696
|
-
return D.html(sanitizeText(T, S)), applyStyle(D, e.labelStyle), D.attr("class", E), applyStyle(w, e.labelStyle), w.style("display", "inline-block"), w.style("white-space", "nowrap"), w.attr("xmlns", "http://www.w3.org/1999/xhtml"), C.node();
|
|
1697
|
-
}
|
|
1698
|
-
__name(addHtmlLabel, "addHtmlLabel");
|
|
1699
|
-
var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w) => {
|
|
1700
|
-
let E = e || "";
|
|
1701
|
-
typeof E == "object" && (E = E[0]);
|
|
1702
|
-
let D = getConfig2();
|
|
1703
|
-
if (evaluate(D.flowchart.htmlLabels)) return E = E.replace(/\\n|\n/g, "<br />"), log.debug("vertexText" + E), addHtmlLabel({
|
|
1704
|
-
isNode: w,
|
|
1705
|
-
label: await replaceIconSubstring(decodeEntities(E)),
|
|
1706
|
-
labelStyle: S.replace("fill:", "color:")
|
|
1707
|
-
}, D);
|
|
1708
|
-
{
|
|
1709
|
-
let e2 = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1710
|
-
e2.setAttribute("style", S.replace("color:", "fill:"));
|
|
1711
|
-
let w2 = [];
|
|
1712
|
-
w2 = typeof E == "string" ? E.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(E) ? E : [];
|
|
1713
|
-
for (let S2 of w2) {
|
|
1714
|
-
let w3 = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1715
|
-
w3.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), w3.setAttribute("dy", "1em"), w3.setAttribute("x", "0"), C ? w3.setAttribute("class", "title-row") : w3.setAttribute("class", "row"), w3.textContent = S2.trim(), e2.appendChild(w3);
|
|
1716
|
-
}
|
|
1717
|
-
return e2;
|
|
1718
|
-
}
|
|
1719
|
-
}, "createLabel"), addEdgeMarkers = /* @__PURE__ */ __name((e, S, C, w, T) => {
|
|
1720
|
-
S.arrowTypeStart && addEdgeMarker(e, "start", S.arrowTypeStart, C, w, T), S.arrowTypeEnd && addEdgeMarker(e, "end", S.arrowTypeEnd, C, w, T);
|
|
1721
|
-
}, "addEdgeMarkers"), arrowTypesMap = {
|
|
1722
|
-
arrow_cross: "cross",
|
|
1723
|
-
arrow_point: "point",
|
|
1724
|
-
arrow_barb: "barb",
|
|
1725
|
-
arrow_circle: "circle",
|
|
1726
|
-
aggregation: "aggregation",
|
|
1727
|
-
extension: "extension",
|
|
1728
|
-
composition: "composition",
|
|
1729
|
-
dependency: "dependency",
|
|
1730
|
-
lollipop: "lollipop"
|
|
1731
|
-
}, addEdgeMarker = /* @__PURE__ */ __name((e, S, C, w, T, E) => {
|
|
1732
|
-
let D = arrowTypesMap[C];
|
|
1733
|
-
if (!D) {
|
|
1734
|
-
log.warn(`Unknown arrow type: ${C}`);
|
|
1735
|
-
return;
|
|
1736
|
-
}
|
|
1737
|
-
let k = S === "start" ? "Start" : "End";
|
|
1738
|
-
e.attr(`marker-${S}`, `url(${w}#${T}_${E}-${D}${k})`);
|
|
1739
|
-
}, "addEdgeMarker"), edgeLabels = {}, terminalLabels = {}, insertEdgeLabel = /* @__PURE__ */ __name(async (e, S) => {
|
|
1740
|
-
let C = getConfig2(), w = evaluate(C.flowchart.htmlLabels), T = S.labelType === "markdown" ? createText(e, S.label, {
|
|
1741
|
-
style: S.labelStyle,
|
|
1742
|
-
useHtmlLabels: w,
|
|
1743
|
-
addSvgBackground: true
|
|
1744
|
-
}, C) : await createLabel_default(S.label, S.labelStyle), E = e.insert("g").attr("class", "edgeLabel"), D = E.insert("g").attr("class", "label");
|
|
1745
|
-
D.node().appendChild(T);
|
|
1746
|
-
let O = T.getBBox();
|
|
1747
|
-
if (w) {
|
|
1748
|
-
let e2 = T.children[0], S2 = select_default(T);
|
|
1749
|
-
O = e2.getBoundingClientRect(), S2.attr("width", O.width), S2.attr("height", O.height);
|
|
1750
|
-
}
|
|
1751
|
-
D.attr("transform", "translate(" + -O.width / 2 + ", " + -O.height / 2 + ")"), edgeLabels[S.id] = E, S.width = O.width, S.height = O.height;
|
|
1752
|
-
let k;
|
|
1753
|
-
if (S.startLabelLeft) {
|
|
1754
|
-
let C2 = await createLabel_default(S.startLabelLeft, S.labelStyle), w2 = e.insert("g").attr("class", "edgeTerminals"), T2 = w2.insert("g").attr("class", "inner");
|
|
1755
|
-
k = T2.node().appendChild(C2);
|
|
1756
|
-
let E2 = C2.getBBox();
|
|
1757
|
-
T2.attr("transform", "translate(" + -E2.width / 2 + ", " + -E2.height / 2 + ")"), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = w2, setTerminalWidth(k, S.startLabelLeft);
|
|
1758
|
-
}
|
|
1759
|
-
if (S.startLabelRight) {
|
|
1760
|
-
let C2 = await createLabel_default(S.startLabelRight, S.labelStyle), w2 = e.insert("g").attr("class", "edgeTerminals"), T2 = w2.insert("g").attr("class", "inner");
|
|
1761
|
-
k = w2.node().appendChild(C2), T2.node().appendChild(C2);
|
|
1762
|
-
let E2 = C2.getBBox();
|
|
1763
|
-
T2.attr("transform", "translate(" + -E2.width / 2 + ", " + -E2.height / 2 + ")"), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = w2, setTerminalWidth(k, S.startLabelRight);
|
|
1764
|
-
}
|
|
1765
|
-
if (S.endLabelLeft) {
|
|
1766
|
-
let C2 = await createLabel_default(S.endLabelLeft, S.labelStyle), w2 = e.insert("g").attr("class", "edgeTerminals"), T2 = w2.insert("g").attr("class", "inner");
|
|
1767
|
-
k = T2.node().appendChild(C2);
|
|
1768
|
-
let E2 = C2.getBBox();
|
|
1769
|
-
T2.attr("transform", "translate(" + -E2.width / 2 + ", " + -E2.height / 2 + ")"), w2.node().appendChild(C2), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = w2, setTerminalWidth(k, S.endLabelLeft);
|
|
1770
|
-
}
|
|
1771
|
-
if (S.endLabelRight) {
|
|
1772
|
-
let C2 = await createLabel_default(S.endLabelRight, S.labelStyle), w2 = e.insert("g").attr("class", "edgeTerminals"), T2 = w2.insert("g").attr("class", "inner");
|
|
1773
|
-
k = T2.node().appendChild(C2);
|
|
1774
|
-
let E2 = C2.getBBox();
|
|
1775
|
-
T2.attr("transform", "translate(" + -E2.width / 2 + ", " + -E2.height / 2 + ")"), w2.node().appendChild(C2), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = w2, setTerminalWidth(k, S.endLabelRight);
|
|
1776
|
-
}
|
|
1777
|
-
return T;
|
|
1778
|
-
}, "insertEdgeLabel");
|
|
1779
|
-
function setTerminalWidth(e, S) {
|
|
1780
|
-
getConfig2().flowchart.htmlLabels && e && (e.style.width = S.length * 9 + "px", e.style.height = "12px");
|
|
1781
|
-
}
|
|
1782
|
-
__name(setTerminalWidth, "setTerminalWidth");
|
|
1783
|
-
var positionEdgeLabel = /* @__PURE__ */ __name((e, S) => {
|
|
1784
|
-
log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], S);
|
|
1785
|
-
let C = S.updatedPath ? S.updatedPath : S.originalPath, { subGraphTitleTotalMargin: w } = getSubGraphTitleMargins(getConfig2());
|
|
1786
|
-
if (e.label) {
|
|
1787
|
-
let T = edgeLabels[e.id], D = e.x, k = e.y;
|
|
1788
|
-
if (C) {
|
|
1789
|
-
let w2 = utils_default.calcLabelPosition(C);
|
|
1790
|
-
log.debug("Moving label " + e.label + " from (", D, ",", k, ") to (", w2.x, ",", w2.y, ") abc88"), S.updatedPath && (D = w2.x, k = w2.y);
|
|
1791
|
-
}
|
|
1792
|
-
T.attr("transform", `translate(${D}, ${k + w / 2})`);
|
|
1793
|
-
}
|
|
1794
|
-
if (e.startLabelLeft) {
|
|
1795
|
-
let S2 = terminalLabels[e.id].startLeft, w2 = e.x, T = e.y;
|
|
1796
|
-
if (C) {
|
|
1797
|
-
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", C);
|
|
1798
|
-
w2 = S3.x, T = S3.y;
|
|
1799
|
-
}
|
|
1800
|
-
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1801
|
-
}
|
|
1802
|
-
if (e.startLabelRight) {
|
|
1803
|
-
let S2 = terminalLabels[e.id].startRight, w2 = e.x, T = e.y;
|
|
1804
|
-
if (C) {
|
|
1805
|
-
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", C);
|
|
1806
|
-
w2 = S3.x, T = S3.y;
|
|
1807
|
-
}
|
|
1808
|
-
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1809
|
-
}
|
|
1810
|
-
if (e.endLabelLeft) {
|
|
1811
|
-
let S2 = terminalLabels[e.id].endLeft, w2 = e.x, T = e.y;
|
|
1812
|
-
if (C) {
|
|
1813
|
-
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", C);
|
|
1814
|
-
w2 = S3.x, T = S3.y;
|
|
1815
|
-
}
|
|
1816
|
-
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1817
|
-
}
|
|
1818
|
-
if (e.endLabelRight) {
|
|
1819
|
-
let S2 = terminalLabels[e.id].endRight, w2 = e.x, T = e.y;
|
|
1820
|
-
if (C) {
|
|
1821
|
-
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", C);
|
|
1822
|
-
w2 = S3.x, T = S3.y;
|
|
1823
|
-
}
|
|
1824
|
-
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1825
|
-
}
|
|
1826
|
-
}, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, S) => {
|
|
1827
|
-
let C = e.x, w = e.y, T = Math.abs(S.x - C), E = Math.abs(S.y - w), D = e.width / 2, O = e.height / 2;
|
|
1828
|
-
return T >= D || E >= O;
|
|
1829
|
-
}, "outsideNode"), intersection = /* @__PURE__ */ __name((e, S, C) => {
|
|
1830
|
-
log.debug(`intersection calc abc89:
|
|
1831
|
-
outsidePoint: ${JSON.stringify(S)}
|
|
1832
|
-
insidePoint : ${JSON.stringify(C)}
|
|
1833
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
1834
|
-
let w = e.x, T = e.y, E = Math.abs(w - C.x), D = e.width / 2, k = C.x < S.x ? D - E : D + E, A = e.height / 2, j = Math.abs(S.y - C.y), M = Math.abs(S.x - C.x);
|
|
1835
|
-
if (Math.abs(T - S.y) * D > Math.abs(w - S.x) * A) {
|
|
1836
|
-
let e2 = C.y < S.y ? S.y - A - T : T - A - S.y;
|
|
1837
|
-
k = M * e2 / j;
|
|
1838
|
-
let w2 = {
|
|
1839
|
-
x: C.x < S.x ? C.x + k : C.x - M + k,
|
|
1840
|
-
y: C.y < S.y ? C.y + j - e2 : C.y - j + e2
|
|
1841
|
-
};
|
|
1842
|
-
return k === 0 && (w2.x = S.x, w2.y = S.y), M === 0 && (w2.x = S.x), j === 0 && (w2.y = S.y), log.debug(`abc89 topp/bott calc, Q ${j}, q ${e2}, R ${M}, r ${k}`, w2), w2;
|
|
1843
|
-
} else {
|
|
1844
|
-
k = C.x < S.x ? S.x - D - w : w - D - S.x;
|
|
1845
|
-
let e2 = j * k / M, T2 = C.x < S.x ? C.x + M - k : C.x - M + k, E2 = C.y < S.y ? C.y + e2 : C.y - e2;
|
|
1846
|
-
return log.debug(`sides calc abc89, Q ${j}, q ${e2}, R ${M}, r ${k}`, {
|
|
1847
|
-
_x: T2,
|
|
1848
|
-
_y: E2
|
|
1849
|
-
}), k === 0 && (T2 = S.x, E2 = S.y), M === 0 && (T2 = S.x), j === 0 && (E2 = S.y), {
|
|
1850
|
-
x: T2,
|
|
1851
|
-
y: E2
|
|
1852
|
-
};
|
|
1853
|
-
}
|
|
1854
|
-
}, "intersection"), cutPathAtIntersect = /* @__PURE__ */ __name((e, S) => {
|
|
1855
|
-
log.debug("abc88 cutPathAtIntersect", e, S);
|
|
1856
|
-
let C = [], w = e[0], T = false;
|
|
1857
|
-
return e.forEach((e2) => {
|
|
1858
|
-
if (!outsideNode(S, e2) && !T) {
|
|
1859
|
-
let E = intersection(S, w, e2), D = false;
|
|
1860
|
-
C.forEach((e3) => {
|
|
1861
|
-
D || (D = e3.x === E.x && e3.y === E.y);
|
|
1862
|
-
}), C.some((e3) => e3.x === E.x && e3.y === E.y) || C.push(E), T = true;
|
|
1863
|
-
} else w = e2, T || C.push(e2);
|
|
1864
|
-
}), C;
|
|
1865
|
-
}, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, S, T, E, D, k, A) {
|
|
1866
|
-
let j = T.points;
|
|
1867
|
-
log.debug("abc88 InsertEdge: edge=", T, "e=", S);
|
|
1868
|
-
let N = false, P = k.node(S.v);
|
|
1869
|
-
var I = k.node(S.w);
|
|
1870
|
-
(I == null ? void 0 : I.intersect) && (P == null ? void 0 : P.intersect) && (j = j.slice(1, T.points.length - 1), j.unshift(P.intersect(j[0])), j.push(I.intersect(j[j.length - 1]))), T.toCluster && (log.debug("to cluster abc88", E[T.toCluster]), j = cutPathAtIntersect(T.points, E[T.toCluster].node), N = true), T.fromCluster && (log.debug("from cluster abc88", E[T.fromCluster]), j = cutPathAtIntersect(j.reverse(), E[T.fromCluster].node).reverse(), N = true);
|
|
1871
|
-
let L = j.filter((e2) => !Number.isNaN(e2.y)), R = basis_default;
|
|
1872
|
-
T.curve && (D === "graph" || D === "flowchart") && (R = T.curve);
|
|
1873
|
-
let { x: z, y: B } = getLineFunctionsWithOffset(T), H = line_default().x(z).y(B).curve(R), U;
|
|
1874
|
-
switch (T.thickness) {
|
|
1875
|
-
case "normal":
|
|
1876
|
-
U = "edge-thickness-normal";
|
|
1877
|
-
break;
|
|
1878
|
-
case "thick":
|
|
1879
|
-
U = "edge-thickness-thick";
|
|
1880
|
-
break;
|
|
1881
|
-
case "invisible":
|
|
1882
|
-
U = "edge-thickness-thick";
|
|
1883
|
-
break;
|
|
1884
|
-
default:
|
|
1885
|
-
U = "";
|
|
1886
|
-
}
|
|
1887
|
-
switch (T.pattern) {
|
|
1888
|
-
case "solid":
|
|
1889
|
-
U += " edge-pattern-solid";
|
|
1890
|
-
break;
|
|
1891
|
-
case "dotted":
|
|
1892
|
-
U += " edge-pattern-dotted";
|
|
1893
|
-
break;
|
|
1894
|
-
case "dashed":
|
|
1895
|
-
U += " edge-pattern-dashed";
|
|
1896
|
-
break;
|
|
1897
|
-
}
|
|
1898
|
-
let W = e.append("path").attr("d", H(L)).attr("id", T.id).attr("class", " " + U + (T.classes ? " " + T.classes : "")).attr("style", T.style), G = "";
|
|
1899
|
-
(getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (G = getUrl(true)), addEdgeMarkers(W, T, G, A, D);
|
|
1900
|
-
let K = {};
|
|
1901
|
-
return N && (K.updatedPath = j), K.originalPath = T.points, K;
|
|
1902
|
-
}, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
|
|
1903
|
-
let S = /* @__PURE__ */ new Set();
|
|
1904
|
-
for (let C of e) switch (C) {
|
|
1905
|
-
case "x":
|
|
1906
|
-
S.add("right"), S.add("left");
|
|
1907
|
-
break;
|
|
1908
|
-
case "y":
|
|
1909
|
-
S.add("up"), S.add("down");
|
|
1910
|
-
break;
|
|
1911
|
-
default:
|
|
1912
|
-
S.add(C);
|
|
1913
|
-
break;
|
|
1914
|
-
}
|
|
1915
|
-
return S;
|
|
1916
|
-
}, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C) => {
|
|
1917
|
-
let w = expandAndDeduplicateDirections(e), T = S.height + 2 * C.padding, E = T / 2, D = S.width + 2 * E + C.padding, O = C.padding / 2;
|
|
1918
|
-
return w.has("right") && w.has("left") && w.has("up") && w.has("down") ? [
|
|
1919
|
-
{
|
|
1920
|
-
x: 0,
|
|
1921
|
-
y: 0
|
|
1922
|
-
},
|
|
1923
|
-
{
|
|
1924
|
-
x: E,
|
|
1925
|
-
y: 0
|
|
1926
|
-
},
|
|
1927
|
-
{
|
|
1928
|
-
x: D / 2,
|
|
1929
|
-
y: 2 * O
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
x: D - E,
|
|
1933
|
-
y: 0
|
|
1934
|
-
},
|
|
1935
|
-
{
|
|
1936
|
-
x: D,
|
|
1937
|
-
y: 0
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
x: D,
|
|
1941
|
-
y: -T / 3
|
|
1942
|
-
},
|
|
1943
|
-
{
|
|
1944
|
-
x: D + 2 * O,
|
|
1945
|
-
y: -T / 2
|
|
1946
|
-
},
|
|
1947
|
-
{
|
|
1948
|
-
x: D,
|
|
1949
|
-
y: -2 * T / 3
|
|
1950
|
-
},
|
|
1951
|
-
{
|
|
1952
|
-
x: D,
|
|
1953
|
-
y: -T
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
x: D - E,
|
|
1957
|
-
y: -T
|
|
1958
|
-
},
|
|
1959
|
-
{
|
|
1960
|
-
x: D / 2,
|
|
1961
|
-
y: -T - 2 * O
|
|
1962
|
-
},
|
|
1963
|
-
{
|
|
1964
|
-
x: E,
|
|
1965
|
-
y: -T
|
|
1966
|
-
},
|
|
1967
|
-
{
|
|
1968
|
-
x: 0,
|
|
1969
|
-
y: -T
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
x: 0,
|
|
1973
|
-
y: -2 * T / 3
|
|
1974
|
-
},
|
|
1975
|
-
{
|
|
1976
|
-
x: -2 * O,
|
|
1977
|
-
y: -T / 2
|
|
1978
|
-
},
|
|
1979
|
-
{
|
|
1980
|
-
x: 0,
|
|
1981
|
-
y: -T / 3
|
|
1982
|
-
}
|
|
1983
|
-
] : w.has("right") && w.has("left") && w.has("up") ? [
|
|
1984
|
-
{
|
|
1985
|
-
x: E,
|
|
1986
|
-
y: 0
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
x: D - E,
|
|
1990
|
-
y: 0
|
|
1991
|
-
},
|
|
1992
|
-
{
|
|
1993
|
-
x: D,
|
|
1994
|
-
y: -T / 2
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
x: D - E,
|
|
1998
|
-
y: -T
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
x: E,
|
|
2002
|
-
y: -T
|
|
2003
|
-
},
|
|
2004
|
-
{
|
|
2005
|
-
x: 0,
|
|
2006
|
-
y: -T / 2
|
|
2007
|
-
}
|
|
2008
|
-
] : w.has("right") && w.has("left") && w.has("down") ? [
|
|
2009
|
-
{
|
|
2010
|
-
x: 0,
|
|
2011
|
-
y: 0
|
|
2012
|
-
},
|
|
2013
|
-
{
|
|
2014
|
-
x: E,
|
|
2015
|
-
y: -T
|
|
2016
|
-
},
|
|
2017
|
-
{
|
|
2018
|
-
x: D - E,
|
|
2019
|
-
y: -T
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
x: D,
|
|
2023
|
-
y: 0
|
|
2024
|
-
}
|
|
2025
|
-
] : w.has("right") && w.has("up") && w.has("down") ? [
|
|
2026
|
-
{
|
|
2027
|
-
x: 0,
|
|
2028
|
-
y: 0
|
|
2029
|
-
},
|
|
2030
|
-
{
|
|
2031
|
-
x: D,
|
|
2032
|
-
y: -E
|
|
2033
|
-
},
|
|
2034
|
-
{
|
|
2035
|
-
x: D,
|
|
2036
|
-
y: -T + E
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
x: 0,
|
|
2040
|
-
y: -T
|
|
2041
|
-
}
|
|
2042
|
-
] : w.has("left") && w.has("up") && w.has("down") ? [
|
|
2043
|
-
{
|
|
2044
|
-
x: D,
|
|
2045
|
-
y: 0
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
x: 0,
|
|
2049
|
-
y: -E
|
|
2050
|
-
},
|
|
2051
|
-
{
|
|
2052
|
-
x: 0,
|
|
2053
|
-
y: -T + E
|
|
2054
|
-
},
|
|
2055
|
-
{
|
|
2056
|
-
x: D,
|
|
2057
|
-
y: -T
|
|
2058
|
-
}
|
|
2059
|
-
] : w.has("right") && w.has("left") ? [
|
|
2060
|
-
{
|
|
2061
|
-
x: E,
|
|
2062
|
-
y: 0
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
x: E,
|
|
2066
|
-
y: -O
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
x: D - E,
|
|
2070
|
-
y: -O
|
|
2071
|
-
},
|
|
2072
|
-
{
|
|
2073
|
-
x: D - E,
|
|
2074
|
-
y: 0
|
|
2075
|
-
},
|
|
2076
|
-
{
|
|
2077
|
-
x: D,
|
|
2078
|
-
y: -T / 2
|
|
2079
|
-
},
|
|
2080
|
-
{
|
|
2081
|
-
x: D - E,
|
|
2082
|
-
y: -T
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
x: D - E,
|
|
2086
|
-
y: -T + O
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
x: E,
|
|
2090
|
-
y: -T + O
|
|
2091
|
-
},
|
|
2092
|
-
{
|
|
2093
|
-
x: E,
|
|
2094
|
-
y: -T
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
x: 0,
|
|
2098
|
-
y: -T / 2
|
|
2099
|
-
}
|
|
2100
|
-
] : w.has("up") && w.has("down") ? [
|
|
2101
|
-
{
|
|
2102
|
-
x: D / 2,
|
|
2103
|
-
y: 0
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
x: 0,
|
|
2107
|
-
y: -O
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
x: E,
|
|
2111
|
-
y: -O
|
|
2112
|
-
},
|
|
2113
|
-
{
|
|
2114
|
-
x: E,
|
|
2115
|
-
y: -T + O
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
x: 0,
|
|
2119
|
-
y: -T + O
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
x: D / 2,
|
|
2123
|
-
y: -T
|
|
2124
|
-
},
|
|
2125
|
-
{
|
|
2126
|
-
x: D,
|
|
2127
|
-
y: -T + O
|
|
2128
|
-
},
|
|
2129
|
-
{
|
|
2130
|
-
x: D - E,
|
|
2131
|
-
y: -T + O
|
|
2132
|
-
},
|
|
2133
|
-
{
|
|
2134
|
-
x: D - E,
|
|
2135
|
-
y: -O
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
x: D,
|
|
2139
|
-
y: -O
|
|
2140
|
-
}
|
|
2141
|
-
] : w.has("right") && w.has("up") ? [
|
|
2142
|
-
{
|
|
2143
|
-
x: 0,
|
|
2144
|
-
y: 0
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
x: D,
|
|
2148
|
-
y: -E
|
|
2149
|
-
},
|
|
2150
|
-
{
|
|
2151
|
-
x: 0,
|
|
2152
|
-
y: -T
|
|
2153
|
-
}
|
|
2154
|
-
] : w.has("right") && w.has("down") ? [
|
|
2155
|
-
{
|
|
2156
|
-
x: 0,
|
|
2157
|
-
y: 0
|
|
2158
|
-
},
|
|
2159
|
-
{
|
|
2160
|
-
x: D,
|
|
2161
|
-
y: 0
|
|
2162
|
-
},
|
|
2163
|
-
{
|
|
2164
|
-
x: 0,
|
|
2165
|
-
y: -T
|
|
2166
|
-
}
|
|
2167
|
-
] : w.has("left") && w.has("up") ? [
|
|
2168
|
-
{
|
|
2169
|
-
x: D,
|
|
2170
|
-
y: 0
|
|
2171
|
-
},
|
|
2172
|
-
{
|
|
2173
|
-
x: 0,
|
|
2174
|
-
y: -E
|
|
2175
|
-
},
|
|
2176
|
-
{
|
|
2177
|
-
x: D,
|
|
2178
|
-
y: -T
|
|
2179
|
-
}
|
|
2180
|
-
] : w.has("left") && w.has("down") ? [
|
|
2181
|
-
{
|
|
2182
|
-
x: D,
|
|
2183
|
-
y: 0
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
x: 0,
|
|
2187
|
-
y: 0
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
x: D,
|
|
2191
|
-
y: -T
|
|
2192
|
-
}
|
|
2193
|
-
] : w.has("right") ? [
|
|
2194
|
-
{
|
|
2195
|
-
x: E,
|
|
2196
|
-
y: -O
|
|
2197
|
-
},
|
|
2198
|
-
{
|
|
2199
|
-
x: E,
|
|
2200
|
-
y: -O
|
|
2201
|
-
},
|
|
2202
|
-
{
|
|
2203
|
-
x: D - E,
|
|
2204
|
-
y: -O
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
x: D - E,
|
|
2208
|
-
y: 0
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
x: D,
|
|
2212
|
-
y: -T / 2
|
|
2213
|
-
},
|
|
2214
|
-
{
|
|
2215
|
-
x: D - E,
|
|
2216
|
-
y: -T
|
|
2217
|
-
},
|
|
2218
|
-
{
|
|
2219
|
-
x: D - E,
|
|
2220
|
-
y: -T + O
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
x: E,
|
|
2224
|
-
y: -T + O
|
|
2225
|
-
},
|
|
2226
|
-
{
|
|
2227
|
-
x: E,
|
|
2228
|
-
y: -T + O
|
|
2229
|
-
}
|
|
2230
|
-
] : w.has("left") ? [
|
|
2231
|
-
{
|
|
2232
|
-
x: E,
|
|
2233
|
-
y: 0
|
|
2234
|
-
},
|
|
2235
|
-
{
|
|
2236
|
-
x: E,
|
|
2237
|
-
y: -O
|
|
2238
|
-
},
|
|
2239
|
-
{
|
|
2240
|
-
x: D - E,
|
|
2241
|
-
y: -O
|
|
2242
|
-
},
|
|
2243
|
-
{
|
|
2244
|
-
x: D - E,
|
|
2245
|
-
y: -T + O
|
|
2246
|
-
},
|
|
2247
|
-
{
|
|
2248
|
-
x: E,
|
|
2249
|
-
y: -T + O
|
|
2250
|
-
},
|
|
2251
|
-
{
|
|
2252
|
-
x: E,
|
|
2253
|
-
y: -T
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
x: 0,
|
|
2257
|
-
y: -T / 2
|
|
2258
|
-
}
|
|
2259
|
-
] : w.has("up") ? [
|
|
2260
|
-
{
|
|
2261
|
-
x: E,
|
|
2262
|
-
y: -O
|
|
2263
|
-
},
|
|
2264
|
-
{
|
|
2265
|
-
x: E,
|
|
2266
|
-
y: -T + O
|
|
2267
|
-
},
|
|
2268
|
-
{
|
|
2269
|
-
x: 0,
|
|
2270
|
-
y: -T + O
|
|
2271
|
-
},
|
|
2272
|
-
{
|
|
2273
|
-
x: D / 2,
|
|
2274
|
-
y: -T
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
x: D,
|
|
2278
|
-
y: -T + O
|
|
2279
|
-
},
|
|
2280
|
-
{
|
|
2281
|
-
x: D - E,
|
|
2282
|
-
y: -T + O
|
|
2283
|
-
},
|
|
2284
|
-
{
|
|
2285
|
-
x: D - E,
|
|
2286
|
-
y: -O
|
|
2287
|
-
}
|
|
2288
|
-
] : w.has("down") ? [
|
|
2289
|
-
{
|
|
2290
|
-
x: D / 2,
|
|
2291
|
-
y: 0
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
x: 0,
|
|
2295
|
-
y: -O
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
x: E,
|
|
2299
|
-
y: -O
|
|
2300
|
-
},
|
|
2301
|
-
{
|
|
2302
|
-
x: E,
|
|
2303
|
-
y: -T + O
|
|
2304
|
-
},
|
|
2305
|
-
{
|
|
2306
|
-
x: D - E,
|
|
2307
|
-
y: -T + O
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
x: D - E,
|
|
2311
|
-
y: -O
|
|
2312
|
-
},
|
|
2313
|
-
{
|
|
2314
|
-
x: D,
|
|
2315
|
-
y: -O
|
|
2316
|
-
}
|
|
2317
|
-
] : [{
|
|
2318
|
-
x: 0,
|
|
2319
|
-
y: 0
|
|
2320
|
-
}];
|
|
2321
|
-
}, "getArrowPoints");
|
|
2322
|
-
function intersectNode(e, S) {
|
|
2323
|
-
return e.intersect(S);
|
|
2324
|
-
}
|
|
2325
|
-
__name(intersectNode, "intersectNode");
|
|
2326
|
-
var intersect_node_default = intersectNode;
|
|
2327
|
-
function intersectEllipse(e, S, C, w) {
|
|
2328
|
-
var T = e.x, E = e.y, D = T - w.x, O = E - w.y, k = Math.sqrt(S * S * O * O + C * C * D * D), A = Math.abs(S * C * D / k);
|
|
2329
|
-
w.x < T && (A = -A);
|
|
2330
|
-
var j = Math.abs(S * C * O / k);
|
|
2331
|
-
return w.y < E && (j = -j), {
|
|
2332
|
-
x: T + A,
|
|
2333
|
-
y: E + j
|
|
2334
|
-
};
|
|
2335
|
-
}
|
|
2336
|
-
__name(intersectEllipse, "intersectEllipse");
|
|
2337
|
-
var intersect_ellipse_default = intersectEllipse;
|
|
2338
|
-
function intersectCircle(e, S, C) {
|
|
2339
|
-
return intersect_ellipse_default(e, S, S, C);
|
|
2340
|
-
}
|
|
2341
|
-
__name(intersectCircle, "intersectCircle");
|
|
2342
|
-
var intersect_circle_default = intersectCircle;
|
|
2343
|
-
function intersectLine(e, S, C, w) {
|
|
2344
|
-
var T = S.y - e.y, E, D = e.x - S.x, O, k = S.x * e.y - e.x * S.y, A, j, M, N = T * C.x + D * C.y + k, P = T * w.x + D * w.y + k, F, I, L, R, z;
|
|
2345
|
-
if (!(N !== 0 && P !== 0 && sameSign(N, P)) && (E = w.y - C.y, O = C.x - w.x, A = w.x * C.y - C.x * w.y, j = E * e.x + O * e.y + A, M = E * S.x + O * S.y + A, !(j !== 0 && M !== 0 && sameSign(j, M)) && (F = T * O - E * D, F !== 0))) return I = Math.abs(F / 2), L = D * A - O * k, R = L < 0 ? (L - I) / F : (L + I) / F, L = E * k - T * A, z = L < 0 ? (L - I) / F : (L + I) / F, {
|
|
2346
|
-
x: R,
|
|
2347
|
-
y: z
|
|
2348
|
-
};
|
|
2349
|
-
}
|
|
2350
|
-
__name(intersectLine, "intersectLine");
|
|
2351
|
-
function sameSign(e, S) {
|
|
2352
|
-
return e * S > 0;
|
|
2353
|
-
}
|
|
2354
|
-
__name(sameSign, "sameSign");
|
|
2355
|
-
var intersect_line_default = intersectLine, intersect_polygon_default = intersectPolygon;
|
|
2356
|
-
function intersectPolygon(e, S, C) {
|
|
2357
|
-
var w = e.x, T = e.y, E = [], D = Infinity, O = Infinity;
|
|
2358
|
-
typeof S.forEach == "function" ? S.forEach(function(e2) {
|
|
2359
|
-
D = Math.min(D, e2.x), O = Math.min(O, e2.y);
|
|
2360
|
-
}) : (D = Math.min(D, S.x), O = Math.min(O, S.y));
|
|
2361
|
-
for (var k = w - e.width / 2 - D, A = T - e.height / 2 - O, j = 0; j < S.length; j++) {
|
|
2362
|
-
var M = S[j], N = S[j < S.length - 1 ? j + 1 : 0], P = intersect_line_default(e, C, {
|
|
2363
|
-
x: k + M.x,
|
|
2364
|
-
y: A + M.y
|
|
2365
|
-
}, {
|
|
2366
|
-
x: k + N.x,
|
|
2367
|
-
y: A + N.y
|
|
2368
|
-
});
|
|
2369
|
-
P && E.push(P);
|
|
2370
|
-
}
|
|
2371
|
-
return E.length ? (E.length > 1 && E.sort(function(e2, S2) {
|
|
2372
|
-
var w2 = e2.x - C.x, T2 = e2.y - C.y, E2 = Math.sqrt(w2 * w2 + T2 * T2), D2 = S2.x - C.x, O2 = S2.y - C.y, k2 = Math.sqrt(D2 * D2 + O2 * O2);
|
|
2373
|
-
return E2 < k2 ? -1 : E2 === k2 ? 0 : 1;
|
|
2374
|
-
}), E[0]) : e;
|
|
2375
|
-
}
|
|
2376
|
-
__name(intersectPolygon, "intersectPolygon");
|
|
2377
|
-
var intersect_default = {
|
|
2378
|
-
node: intersect_node_default,
|
|
2379
|
-
circle: intersect_circle_default,
|
|
2380
|
-
ellipse: intersect_ellipse_default,
|
|
2381
|
-
polygon: intersect_polygon_default,
|
|
2382
|
-
rect: /* @__PURE__ */ __name((e, S) => {
|
|
2383
|
-
var C = e.x, w = e.y, T = S.x - C, E = S.y - w, D = e.width / 2, O = e.height / 2, k, A;
|
|
2384
|
-
return Math.abs(E) * D > Math.abs(T) * O ? (E < 0 && (O = -O), k = E === 0 ? 0 : O * T / E, A = O) : (T < 0 && (D = -D), k = D, A = T === 0 ? 0 : D * E / T), {
|
|
2385
|
-
x: C + k,
|
|
2386
|
-
y: w + A
|
|
2387
|
-
};
|
|
2388
|
-
}, "intersectRect")
|
|
2389
|
-
}, labelHelper = /* @__PURE__ */ __name(async (e, S, C, w) => {
|
|
2390
|
-
let E = getConfig2(), D, O = S.useHtmlLabels || evaluate(E.flowchart.htmlLabels);
|
|
2391
|
-
D = C || "node default";
|
|
2392
|
-
let j = e.insert("g").attr("class", D).attr("id", S.domId || S.id), M = j.insert("g").attr("class", "label").attr("style", S.labelStyle), P;
|
|
2393
|
-
P = S.labelText === void 0 ? "" : typeof S.labelText == "string" ? S.labelText : S.labelText[0];
|
|
2394
|
-
let I = M.node(), R;
|
|
2395
|
-
R = S.labelType === "markdown" ? createText(M, sanitizeText(decodeEntities(P), E), {
|
|
2396
|
-
useHtmlLabels: O,
|
|
2397
|
-
width: S.width || E.flowchart.wrappingWidth,
|
|
2398
|
-
classes: "markdown-node-label"
|
|
2399
|
-
}, E) : I.appendChild(await createLabel_default(sanitizeText(decodeEntities(P), E), S.labelStyle, false, w));
|
|
2400
|
-
let z = R.getBBox(), B = S.padding / 2;
|
|
2401
|
-
if (evaluate(E.flowchart.htmlLabels)) {
|
|
2402
|
-
let e2 = R.children[0], S2 = select_default(R), C2 = e2.getElementsByTagName("img");
|
|
2403
|
-
if (C2) {
|
|
2404
|
-
let e3 = P.replace(/<img[^>]*>/g, "").trim() === "";
|
|
2405
|
-
await Promise.all([...C2].map((S3) => new Promise((C3) => {
|
|
2406
|
-
function w2() {
|
|
2407
|
-
if (S3.style.display = "flex", S3.style.flexDirection = "column", e3) {
|
|
2408
|
-
let e4 = E.fontSize ? E.fontSize : window.getComputedStyle(document.body).fontSize, C4 = parseInt(e4, 10) * 5 + "px";
|
|
2409
|
-
S3.style.minWidth = C4, S3.style.maxWidth = C4;
|
|
2410
|
-
} else S3.style.width = "100%";
|
|
2411
|
-
C3(S3);
|
|
2412
|
-
}
|
|
2413
|
-
__name(w2, "setupImage"), setTimeout(() => {
|
|
2414
|
-
S3.complete && w2();
|
|
2415
|
-
}), S3.addEventListener("error", w2), S3.addEventListener("load", w2);
|
|
2416
|
-
})));
|
|
2417
|
-
}
|
|
2418
|
-
z = e2.getBoundingClientRect(), S2.attr("width", z.width), S2.attr("height", z.height);
|
|
2419
|
-
}
|
|
2420
|
-
return O ? M.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")") : M.attr("transform", "translate(0, " + -z.height / 2 + ")"), S.centerLabel && M.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")"), M.insert("rect", ":first-child"), {
|
|
2421
|
-
shapeSvg: j,
|
|
2422
|
-
bbox: z,
|
|
2423
|
-
halfPadding: B,
|
|
2424
|
-
label: M
|
|
2425
|
-
};
|
|
2426
|
-
}, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, S) => {
|
|
2427
|
-
let C = S.node().getBBox();
|
|
2428
|
-
e.width = C.width, e.height = C.height;
|
|
2429
|
-
}, "updateNodeBounds");
|
|
2430
|
-
function insertPolygonShape(e, S, C, w) {
|
|
2431
|
-
return e.insert("polygon", ":first-child").attr("points", w.map(function(e2) {
|
|
2432
|
-
return e2.x + "," + e2.y;
|
|
2433
|
-
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -S / 2 + "," + C / 2 + ")");
|
|
2434
|
-
}
|
|
2435
|
-
__name(insertPolygonShape, "insertPolygonShape");
|
|
2436
|
-
var note_default = /* @__PURE__ */ __name(async (e, S) => {
|
|
2437
|
-
S.useHtmlLabels || getConfig2().flowchart.htmlLabels || (S.centerLabel = true);
|
|
2438
|
-
let { shapeSvg: C, bbox: w, halfPadding: T } = await labelHelper(e, S, "node " + S.classes, true);
|
|
2439
|
-
log.info("Classes = ", S.classes);
|
|
2440
|
-
let E = C.insert("rect", ":first-child");
|
|
2441
|
-
return E.attr("rx", S.rx).attr("ry", S.ry).attr("x", -w.width / 2 - T).attr("y", -w.height / 2 - T).attr("width", w.width + S.padding).attr("height", w.height + S.padding), updateNodeBounds(S, E), S.intersect = function(e2) {
|
|
2442
|
-
return intersect_default.rect(S, e2);
|
|
2443
|
-
}, C;
|
|
2444
|
-
}, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, S) => `${S || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, S) => {
|
|
2445
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding + (w.height + S.padding), E = [
|
|
2446
|
-
{
|
|
2447
|
-
x: T / 2,
|
|
2448
|
-
y: 0
|
|
2449
|
-
},
|
|
2450
|
-
{
|
|
2451
|
-
x: T,
|
|
2452
|
-
y: -T / 2
|
|
2453
|
-
},
|
|
2454
|
-
{
|
|
2455
|
-
x: T / 2,
|
|
2456
|
-
y: -T
|
|
2457
|
-
},
|
|
2458
|
-
{
|
|
2459
|
-
x: 0,
|
|
2460
|
-
y: -T / 2
|
|
2461
|
-
}
|
|
2462
|
-
];
|
|
2463
|
-
log.info("Question main (Circle)");
|
|
2464
|
-
let D = insertPolygonShape(C, T, T, E);
|
|
2465
|
-
return D.attr("style", S.style), updateNodeBounds(S, D), S.intersect = function(e2) {
|
|
2466
|
-
return log.warn("Intersect called"), intersect_default.polygon(S, E, e2);
|
|
2467
|
-
}, C;
|
|
2468
|
-
}, "question"), choice = /* @__PURE__ */ __name((e, S) => {
|
|
2469
|
-
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id);
|
|
2470
|
-
return C.insert("polygon", ":first-child").attr("points", [
|
|
2471
|
-
{
|
|
2472
|
-
x: 0,
|
|
2473
|
-
y: 28 / 2
|
|
2474
|
-
},
|
|
2475
|
-
{
|
|
2476
|
-
x: 28 / 2,
|
|
2477
|
-
y: 0
|
|
2478
|
-
},
|
|
2479
|
-
{
|
|
2480
|
-
x: 0,
|
|
2481
|
-
y: -28 / 2
|
|
2482
|
-
},
|
|
2483
|
-
{
|
|
2484
|
-
x: -28 / 2,
|
|
2485
|
-
y: 0
|
|
2486
|
-
}
|
|
2487
|
-
].map(function(e2) {
|
|
2488
|
-
return e2.x + "," + e2.y;
|
|
2489
|
-
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), S.width = 28, S.height = 28, S.intersect = function(e2) {
|
|
2490
|
-
return intersect_default.circle(S, 14, e2);
|
|
2491
|
-
}, C;
|
|
2492
|
-
}, "choice"), hexagon = /* @__PURE__ */ __name(async (e, S) => {
|
|
2493
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.height + S.padding, E = T / 4, D = w.width + 2 * E + S.padding, O = [
|
|
2494
|
-
{
|
|
2495
|
-
x: E,
|
|
2496
|
-
y: 0
|
|
2497
|
-
},
|
|
2498
|
-
{
|
|
2499
|
-
x: D - E,
|
|
2500
|
-
y: 0
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
x: D,
|
|
2504
|
-
y: -T / 2
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
x: D - E,
|
|
2508
|
-
y: -T
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
x: E,
|
|
2512
|
-
y: -T
|
|
2513
|
-
},
|
|
2514
|
-
{
|
|
2515
|
-
x: 0,
|
|
2516
|
-
y: -T / 2
|
|
2517
|
-
}
|
|
2518
|
-
], k = insertPolygonShape(C, D, T, O);
|
|
2519
|
-
return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e2) {
|
|
2520
|
-
return intersect_default.polygon(S, O, e2);
|
|
2521
|
-
}, C;
|
|
2522
|
-
}, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2523
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, true), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = getArrowPoints(S.directions, w, S), k = insertPolygonShape(C, D, T, O);
|
|
2524
|
-
return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e2) {
|
|
2525
|
-
return intersect_default.polygon(S, O, e2);
|
|
2526
|
-
}, C;
|
|
2527
|
-
}, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2528
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2529
|
-
{
|
|
2530
|
-
x: -E / 2,
|
|
2531
|
-
y: 0
|
|
2532
|
-
},
|
|
2533
|
-
{
|
|
2534
|
-
x: T,
|
|
2535
|
-
y: 0
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
x: T,
|
|
2539
|
-
y: -E
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
x: -E / 2,
|
|
2543
|
-
y: -E
|
|
2544
|
-
},
|
|
2545
|
-
{
|
|
2546
|
-
x: 0,
|
|
2547
|
-
y: -E / 2
|
|
2548
|
-
}
|
|
2549
|
-
];
|
|
2550
|
-
return insertPolygonShape(C, T, E, D).attr("style", S.style), S.width = T + E, S.height = E, S.intersect = function(e2) {
|
|
2551
|
-
return intersect_default.polygon(S, D, e2);
|
|
2552
|
-
}, C;
|
|
2553
|
-
}, "rect_left_inv_arrow"), lean_right = /* @__PURE__ */ __name(async (e, S) => {
|
|
2554
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2555
|
-
{
|
|
2556
|
-
x: -2 * E / 6,
|
|
2557
|
-
y: 0
|
|
2558
|
-
},
|
|
2559
|
-
{
|
|
2560
|
-
x: T - E / 6,
|
|
2561
|
-
y: 0
|
|
2562
|
-
},
|
|
2563
|
-
{
|
|
2564
|
-
x: T + 2 * E / 6,
|
|
2565
|
-
y: -E
|
|
2566
|
-
},
|
|
2567
|
-
{
|
|
2568
|
-
x: E / 6,
|
|
2569
|
-
y: -E
|
|
2570
|
-
}
|
|
2571
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2572
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2573
|
-
return intersect_default.polygon(S, D, e2);
|
|
2574
|
-
}, C;
|
|
2575
|
-
}, "lean_right"), lean_left = /* @__PURE__ */ __name(async (e, S) => {
|
|
2576
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2577
|
-
{
|
|
2578
|
-
x: 2 * E / 6,
|
|
2579
|
-
y: 0
|
|
2580
|
-
},
|
|
2581
|
-
{
|
|
2582
|
-
x: T + E / 6,
|
|
2583
|
-
y: 0
|
|
2584
|
-
},
|
|
2585
|
-
{
|
|
2586
|
-
x: T - 2 * E / 6,
|
|
2587
|
-
y: -E
|
|
2588
|
-
},
|
|
2589
|
-
{
|
|
2590
|
-
x: -E / 6,
|
|
2591
|
-
y: -E
|
|
2592
|
-
}
|
|
2593
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2594
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2595
|
-
return intersect_default.polygon(S, D, e2);
|
|
2596
|
-
}, C;
|
|
2597
|
-
}, "lean_left"), trapezoid = /* @__PURE__ */ __name(async (e, S) => {
|
|
2598
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2599
|
-
{
|
|
2600
|
-
x: -2 * E / 6,
|
|
2601
|
-
y: 0
|
|
2602
|
-
},
|
|
2603
|
-
{
|
|
2604
|
-
x: T + 2 * E / 6,
|
|
2605
|
-
y: 0
|
|
2606
|
-
},
|
|
2607
|
-
{
|
|
2608
|
-
x: T - E / 6,
|
|
2609
|
-
y: -E
|
|
2610
|
-
},
|
|
2611
|
-
{
|
|
2612
|
-
x: E / 6,
|
|
2613
|
-
y: -E
|
|
2614
|
-
}
|
|
2615
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2616
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2617
|
-
return intersect_default.polygon(S, D, e2);
|
|
2618
|
-
}, C;
|
|
2619
|
-
}, "trapezoid"), inv_trapezoid = /* @__PURE__ */ __name(async (e, S) => {
|
|
2620
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2621
|
-
{
|
|
2622
|
-
x: E / 6,
|
|
2623
|
-
y: 0
|
|
2624
|
-
},
|
|
2625
|
-
{
|
|
2626
|
-
x: T - E / 6,
|
|
2627
|
-
y: 0
|
|
2628
|
-
},
|
|
2629
|
-
{
|
|
2630
|
-
x: T + 2 * E / 6,
|
|
2631
|
-
y: -E
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
x: -2 * E / 6,
|
|
2635
|
-
y: -E
|
|
2636
|
-
}
|
|
2637
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2638
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2639
|
-
return intersect_default.polygon(S, D, e2);
|
|
2640
|
-
}, C;
|
|
2641
|
-
}, "inv_trapezoid"), rect_right_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2642
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2643
|
-
{
|
|
2644
|
-
x: 0,
|
|
2645
|
-
y: 0
|
|
2646
|
-
},
|
|
2647
|
-
{
|
|
2648
|
-
x: T + E / 2,
|
|
2649
|
-
y: 0
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
x: T,
|
|
2653
|
-
y: -E / 2
|
|
2654
|
-
},
|
|
2655
|
-
{
|
|
2656
|
-
x: T + E / 2,
|
|
2657
|
-
y: -E
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
x: 0,
|
|
2661
|
-
y: -E
|
|
2662
|
-
}
|
|
2663
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2664
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2665
|
-
return intersect_default.polygon(S, D, e2);
|
|
2666
|
-
}, C;
|
|
2667
|
-
}, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, S) => {
|
|
2668
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O;
|
|
2669
|
-
return updateNodeBounds(S, C.attr("label-offset-y", D).insert("path", ":first-child").attr("style", S.style).attr("d", k).attr("transform", "translate(" + -T / 2 + "," + -(O / 2 + D) + ")")), S.intersect = function(e2) {
|
|
2670
|
-
let C2 = intersect_default.rect(S, e2), w2 = C2.x - S.x;
|
|
2671
|
-
if (E != 0 && (Math.abs(w2) < S.width / 2 || Math.abs(w2) == S.width / 2 && Math.abs(C2.y - S.y) > S.height / 2 - D)) {
|
|
2672
|
-
let T2 = D * D * (1 - w2 * w2 / (E * E));
|
|
2673
|
-
T2 != 0 && (T2 = Math.sqrt(T2)), T2 = D - T2, e2.y - S.y > 0 && (T2 = -T2), C2.y += T2;
|
|
2674
|
-
}
|
|
2675
|
-
return C2;
|
|
2676
|
-
}, C;
|
|
2677
|
-
}, "cylinder"), rect = /* @__PURE__ */ __name(async (e, S) => {
|
|
2678
|
-
let { shapeSvg: C, bbox: w, halfPadding: T } = await labelHelper(e, S, "node " + S.classes + " " + S.class, true), E = C.insert("rect", ":first-child"), D = S.positioned ? S.width : w.width + S.padding, k = S.positioned ? S.height : w.height + S.padding, A = S.positioned ? -D / 2 : -w.width / 2 - T, j = S.positioned ? -k / 2 : -w.height / 2 - T;
|
|
2679
|
-
if (E.attr("class", "basic label-container").attr("style", S.style).attr("rx", S.rx).attr("ry", S.ry).attr("x", A).attr("y", j).attr("width", D).attr("height", k), S.props) {
|
|
2680
|
-
let e2 = new Set(Object.keys(S.props));
|
|
2681
|
-
S.props.borders && (applyNodePropertyBorders(E, S.props.borders, D, k), e2.delete("borders")), e2.forEach((e3) => {
|
|
2682
|
-
log.warn(`Unknown node property ${e3}`);
|
|
2683
|
-
});
|
|
2684
|
-
}
|
|
2685
|
-
return updateNodeBounds(S, E), S.intersect = function(e2) {
|
|
2686
|
-
return intersect_default.rect(S, e2);
|
|
2687
|
-
}, C;
|
|
2688
|
-
}, "rect"), composite = /* @__PURE__ */ __name(async (e, S) => {
|
|
2689
|
-
let { shapeSvg: C, bbox: w, halfPadding: T } = await labelHelper(e, S, "node " + S.classes, true), E = C.insert("rect", ":first-child"), D = S.positioned ? S.width : w.width + S.padding, k = S.positioned ? S.height : w.height + S.padding, A = S.positioned ? -D / 2 : -w.width / 2 - T, j = S.positioned ? -k / 2 : -w.height / 2 - T;
|
|
2690
|
-
if (E.attr("class", "basic cluster composite label-container").attr("style", S.style).attr("rx", S.rx).attr("ry", S.ry).attr("x", A).attr("y", j).attr("width", D).attr("height", k), S.props) {
|
|
2691
|
-
let e2 = new Set(Object.keys(S.props));
|
|
2692
|
-
S.props.borders && (applyNodePropertyBorders(E, S.props.borders, D, k), e2.delete("borders")), e2.forEach((e3) => {
|
|
2693
|
-
log.warn(`Unknown node property ${e3}`);
|
|
2694
|
-
});
|
|
2695
|
-
}
|
|
2696
|
-
return updateNodeBounds(S, E), S.intersect = function(e2) {
|
|
2697
|
-
return intersect_default.rect(S, e2);
|
|
2698
|
-
}, C;
|
|
2699
|
-
}, "composite"), labelRect = /* @__PURE__ */ __name(async (e, S) => {
|
|
2700
|
-
let { shapeSvg: C } = await labelHelper(e, S, "label", true);
|
|
2701
|
-
log.trace("Classes = ", S.class);
|
|
2702
|
-
let w = C.insert("rect", ":first-child");
|
|
2703
|
-
if (w.attr("width", 0).attr("height", 0), C.attr("class", "label edgeLabel"), S.props) {
|
|
2704
|
-
let e2 = new Set(Object.keys(S.props));
|
|
2705
|
-
S.props.borders && (applyNodePropertyBorders(w, S.props.borders, 0, 0), e2.delete("borders")), e2.forEach((e3) => {
|
|
2706
|
-
log.warn(`Unknown node property ${e3}`);
|
|
2707
|
-
});
|
|
2708
|
-
}
|
|
2709
|
-
return updateNodeBounds(S, w), S.intersect = function(e2) {
|
|
2710
|
-
return intersect_default.rect(S, e2);
|
|
2711
|
-
}, C;
|
|
2712
|
-
}, "labelRect");
|
|
2713
|
-
function applyNodePropertyBorders(e, S, C, w) {
|
|
2714
|
-
let T = [], E = /* @__PURE__ */ __name((e2) => {
|
|
2715
|
-
T.push(e2, 0);
|
|
2716
|
-
}, "addBorder"), D = /* @__PURE__ */ __name((e2) => {
|
|
2717
|
-
T.push(0, e2);
|
|
2718
|
-
}, "skipBorder");
|
|
2719
|
-
S.includes("t") ? (log.debug("add top border"), E(C)) : D(C), S.includes("r") ? (log.debug("add right border"), E(w)) : D(w), S.includes("b") ? (log.debug("add bottom border"), E(C)) : D(C), S.includes("l") ? (log.debug("add left border"), E(w)) : D(w), e.attr("stroke-dasharray", T.join(" "));
|
|
2720
|
-
}
|
|
2721
|
-
__name(applyNodePropertyBorders, "applyNodePropertyBorders");
|
|
2722
|
-
var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
2723
|
-
let C;
|
|
2724
|
-
C = S.classes ? "node " + S.classes : "node default";
|
|
2725
|
-
let w = e.insert("g").attr("class", C).attr("id", S.domId || S.id), T = w.insert("rect", ":first-child"), E = w.insert("line"), D = w.insert("g").attr("class", "label"), k = S.labelText.flat ? S.labelText.flat() : S.labelText, j = "";
|
|
2726
|
-
j = typeof k == "object" ? k[0] : k, log.info("Label text abc79", j, k, typeof k == "object");
|
|
2727
|
-
let M = D.node().appendChild(await createLabel_default(j, S.labelStyle, true, true)), N = {
|
|
2728
|
-
width: 0,
|
|
2729
|
-
height: 0
|
|
2730
|
-
};
|
|
2731
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2732
|
-
let e2 = M.children[0], S2 = select_default(M);
|
|
2733
|
-
N = e2.getBoundingClientRect(), S2.attr("width", N.width), S2.attr("height", N.height);
|
|
2734
|
-
}
|
|
2735
|
-
log.info("Text 2", k);
|
|
2736
|
-
let P = k.slice(1, k.length), I = M.getBBox(), R = D.node().appendChild(await createLabel_default(P.join ? P.join("<br/>") : P, S.labelStyle, true, true));
|
|
2737
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2738
|
-
let e2 = R.children[0], S2 = select_default(R);
|
|
2739
|
-
N = e2.getBoundingClientRect(), S2.attr("width", N.width), S2.attr("height", N.height);
|
|
2740
|
-
}
|
|
2741
|
-
let z = S.padding / 2;
|
|
2742
|
-
return select_default(R).attr("transform", "translate( " + (N.width > I.width ? 0 : (I.width - N.width) / 2) + ", " + (I.height + z + 5) + ")"), select_default(M).attr("transform", "translate( " + (N.width < I.width ? 0 : -(I.width - N.width) / 2) + ", 0)"), N = D.node().getBBox(), D.attr("transform", "translate(" + -N.width / 2 + ", " + (-N.height / 2 - z + 3) + ")"), T.attr("class", "outer title-state").attr("x", -N.width / 2 - z).attr("y", -N.height / 2 - z).attr("width", N.width + S.padding).attr("height", N.height + S.padding), E.attr("class", "divider").attr("x1", -N.width / 2 - z).attr("x2", N.width / 2 + z).attr("y1", -N.height / 2 - z + I.height + z).attr("y2", -N.height / 2 - z + I.height + z), updateNodeBounds(S, T), S.intersect = function(e2) {
|
|
2743
|
-
return intersect_default.rect(S, e2);
|
|
2744
|
-
}, w;
|
|
2745
|
-
}, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, S) => {
|
|
2746
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.height + S.padding, E = w.width + T / 4 + S.padding;
|
|
2747
|
-
return updateNodeBounds(S, C.insert("rect", ":first-child").attr("style", S.style).attr("rx", T / 2).attr("ry", T / 2).attr("x", -E / 2).attr("y", -T / 2).attr("width", E).attr("height", T)), S.intersect = function(e2) {
|
|
2748
|
-
return intersect_default.rect(S, e2);
|
|
2749
|
-
}, C;
|
|
2750
|
-
}, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, S) => {
|
|
2751
|
-
let { shapeSvg: C, bbox: w, halfPadding: T } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), E = C.insert("circle", ":first-child");
|
|
2752
|
-
return E.attr("style", S.style).attr("rx", S.rx).attr("ry", S.ry).attr("r", w.width / 2 + T).attr("width", w.width + S.padding).attr("height", w.height + S.padding), log.info("Circle main"), updateNodeBounds(S, E), S.intersect = function(e2) {
|
|
2753
|
-
return log.info("Circle intersect", S, w.width / 2 + T, e2), intersect_default.circle(S, w.width / 2 + T, e2);
|
|
2754
|
-
}, C;
|
|
2755
|
-
}, "circle"), doublecircle = /* @__PURE__ */ __name(async (e, S) => {
|
|
2756
|
-
let { shapeSvg: C, bbox: w, halfPadding: T } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), E = C.insert("g", ":first-child"), D = E.insert("circle"), k = E.insert("circle");
|
|
2757
|
-
return E.attr("class", S.class), D.attr("style", S.style).attr("rx", S.rx).attr("ry", S.ry).attr("r", w.width / 2 + T + 5).attr("width", w.width + S.padding + 10).attr("height", w.height + S.padding + 10), k.attr("style", S.style).attr("rx", S.rx).attr("ry", S.ry).attr("r", w.width / 2 + T).attr("width", w.width + S.padding).attr("height", w.height + S.padding), log.info("DoubleCircle main"), updateNodeBounds(S, D), S.intersect = function(e2) {
|
|
2758
|
-
return log.info("DoubleCircle intersect", S, w.width / 2 + T + 5, e2), intersect_default.circle(S, w.width / 2 + T + 5, e2);
|
|
2759
|
-
}, C;
|
|
2760
|
-
}, "doublecircle"), subroutine = /* @__PURE__ */ __name(async (e, S) => {
|
|
2761
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2762
|
-
{
|
|
2763
|
-
x: 0,
|
|
2764
|
-
y: 0
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
x: T,
|
|
2768
|
-
y: 0
|
|
2769
|
-
},
|
|
2770
|
-
{
|
|
2771
|
-
x: T,
|
|
2772
|
-
y: -E
|
|
2773
|
-
},
|
|
2774
|
-
{
|
|
2775
|
-
x: 0,
|
|
2776
|
-
y: -E
|
|
2777
|
-
},
|
|
2778
|
-
{
|
|
2779
|
-
x: 0,
|
|
2780
|
-
y: 0
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
x: -8,
|
|
2784
|
-
y: 0
|
|
2785
|
-
},
|
|
2786
|
-
{
|
|
2787
|
-
x: T + 8,
|
|
2788
|
-
y: 0
|
|
2789
|
-
},
|
|
2790
|
-
{
|
|
2791
|
-
x: T + 8,
|
|
2792
|
-
y: -E
|
|
2793
|
-
},
|
|
2794
|
-
{
|
|
2795
|
-
x: -8,
|
|
2796
|
-
y: -E
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
x: -8,
|
|
2800
|
-
y: 0
|
|
2801
|
-
}
|
|
2802
|
-
], O = insertPolygonShape(C, T, E, D);
|
|
2803
|
-
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e2) {
|
|
2804
|
-
return intersect_default.polygon(S, D, e2);
|
|
2805
|
-
}, C;
|
|
2806
|
-
}, "subroutine"), start = /* @__PURE__ */ __name((e, S) => {
|
|
2807
|
-
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child");
|
|
2808
|
-
return w.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), updateNodeBounds(S, w), S.intersect = function(e2) {
|
|
2809
|
-
return intersect_default.circle(S, 7, e2);
|
|
2810
|
-
}, C;
|
|
2811
|
-
}, "start"), forkJoin = /* @__PURE__ */ __name((e, S, C) => {
|
|
2812
|
-
let w = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), T = 70, E = 10;
|
|
2813
|
-
return C === "LR" && (T = 10, E = 70), updateNodeBounds(S, w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join")), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e2) {
|
|
2814
|
-
return intersect_default.rect(S, e2);
|
|
2815
|
-
}, w;
|
|
2816
|
-
}, "forkJoin"), shapes = {
|
|
2817
|
-
rhombus: question,
|
|
2818
|
-
composite,
|
|
2819
|
-
question,
|
|
2820
|
-
rect,
|
|
2821
|
-
labelRect,
|
|
2822
|
-
rectWithTitle,
|
|
2823
|
-
choice,
|
|
2824
|
-
circle: circle2,
|
|
2825
|
-
doublecircle,
|
|
2826
|
-
stadium,
|
|
2827
|
-
hexagon,
|
|
2828
|
-
block_arrow,
|
|
2829
|
-
rect_left_inv_arrow,
|
|
2830
|
-
lean_right,
|
|
2831
|
-
lean_left,
|
|
2832
|
-
trapezoid,
|
|
2833
|
-
inv_trapezoid,
|
|
2834
|
-
rect_right_inv_arrow,
|
|
2835
|
-
cylinder,
|
|
2836
|
-
start,
|
|
2837
|
-
end: /* @__PURE__ */ __name((e, S) => {
|
|
2838
|
-
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child"), T = C.insert("circle", ":first-child");
|
|
2839
|
-
return T.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), w.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), updateNodeBounds(S, T), S.intersect = function(e2) {
|
|
2840
|
-
return intersect_default.circle(S, 7, e2);
|
|
2841
|
-
}, C;
|
|
2842
|
-
}, "end"),
|
|
2843
|
-
note: note_default,
|
|
2844
|
-
subroutine,
|
|
2845
|
-
fork: forkJoin,
|
|
2846
|
-
join: forkJoin,
|
|
2847
|
-
class_box: /* @__PURE__ */ __name(async (e, S) => {
|
|
2848
|
-
var _a2;
|
|
2849
|
-
let C = S.padding / 2, w;
|
|
2850
|
-
w = S.classes ? "node " + S.classes : "node default";
|
|
2851
|
-
let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("line"), k = 0, j = 4, M = T.insert("g").attr("class", "label"), N = 0, P = (_a2 = S.classData.annotations) == null ? void 0 : _a2[0], I = S.classData.annotations[0] ? "\xAB" + S.classData.annotations[0] + "\xBB" : "", R = M.node().appendChild(await createLabel_default(I, S.labelStyle, true, true)), z = R.getBBox();
|
|
2852
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2853
|
-
let e2 = R.children[0], S2 = select_default(R);
|
|
2854
|
-
z = e2.getBoundingClientRect(), S2.attr("width", z.width), S2.attr("height", z.height);
|
|
2855
|
-
}
|
|
2856
|
-
S.classData.annotations[0] && (j += z.height + 4, k += z.width);
|
|
2857
|
-
let B = S.classData.label;
|
|
2858
|
-
S.classData.type !== void 0 && S.classData.type !== "" && (getConfig2().flowchart.htmlLabels ? B += "<" + S.classData.type + ">" : B += "<" + S.classData.type + ">");
|
|
2859
|
-
let V = M.node().appendChild(await createLabel_default(B, S.labelStyle, true, true));
|
|
2860
|
-
select_default(V).attr("class", "classTitle");
|
|
2861
|
-
let H = V.getBBox();
|
|
2862
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2863
|
-
let e2 = V.children[0], S2 = select_default(V);
|
|
2864
|
-
H = e2.getBoundingClientRect(), S2.attr("width", H.width), S2.attr("height", H.height);
|
|
2865
|
-
}
|
|
2866
|
-
j += H.height + 4, H.width > k && (k = H.width);
|
|
2867
|
-
let U = [];
|
|
2868
|
-
S.classData.members.forEach(async (e2) => {
|
|
2869
|
-
let C2 = e2.getDisplayDetails(), w2 = C2.displayText;
|
|
2870
|
-
getConfig2().flowchart.htmlLabels && (w2 = w2.replace(/</g, "<").replace(/>/g, ">"));
|
|
2871
|
-
let T2 = M.node().appendChild(await createLabel_default(w2, C2.cssStyle ? C2.cssStyle : S.labelStyle, true, true)), E2 = T2.getBBox();
|
|
2872
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2873
|
-
let e3 = T2.children[0], S2 = select_default(T2);
|
|
2874
|
-
E2 = e3.getBoundingClientRect(), S2.attr("width", E2.width), S2.attr("height", E2.height);
|
|
2875
|
-
}
|
|
2876
|
-
E2.width > k && (k = E2.width), j += E2.height + 4, U.push(T2);
|
|
2877
|
-
}), j += 8;
|
|
2878
|
-
let W = [];
|
|
2879
|
-
if (S.classData.methods.forEach(async (e2) => {
|
|
2880
|
-
let C2 = e2.getDisplayDetails(), w2 = C2.displayText;
|
|
2881
|
-
getConfig2().flowchart.htmlLabels && (w2 = w2.replace(/</g, "<").replace(/>/g, ">"));
|
|
2882
|
-
let T2 = M.node().appendChild(await createLabel_default(w2, C2.cssStyle ? C2.cssStyle : S.labelStyle, true, true)), E2 = T2.getBBox();
|
|
2883
|
-
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2884
|
-
let e3 = T2.children[0], S2 = select_default(T2);
|
|
2885
|
-
E2 = e3.getBoundingClientRect(), S2.attr("width", E2.width), S2.attr("height", E2.height);
|
|
2886
|
-
}
|
|
2887
|
-
E2.width > k && (k = E2.width), j += E2.height + 4, W.push(T2);
|
|
2888
|
-
}), j += 8, P) {
|
|
2889
|
-
let e2 = (k - z.width) / 2;
|
|
2890
|
-
select_default(R).attr("transform", "translate( " + (-1 * k / 2 + e2) + ", " + -1 * j / 2 + ")"), N = z.height + 4;
|
|
2891
|
-
}
|
|
2892
|
-
let G = (k - H.width) / 2;
|
|
2893
|
-
return select_default(V).attr("transform", "translate( " + (-1 * k / 2 + G) + ", " + (-1 * j / 2 + N) + ")"), N += H.height + 4, D.attr("class", "divider").attr("x1", -k / 2 - C).attr("x2", k / 2 + C).attr("y1", -j / 2 - C + 8 + N).attr("y2", -j / 2 - C + 8 + N), N += 8, U.forEach((e2) => {
|
|
2894
|
-
select_default(e2).attr("transform", "translate( " + -k / 2 + ", " + (-1 * j / 2 + N + 8 / 2) + ")");
|
|
2895
|
-
let S2 = e2 == null ? void 0 : e2.getBBox();
|
|
2896
|
-
N += ((S2 == null ? void 0 : S2.height) ?? 0) + 4;
|
|
2897
|
-
}), N += 8, O.attr("class", "divider").attr("x1", -k / 2 - C).attr("x2", k / 2 + C).attr("y1", -j / 2 - C + 8 + N).attr("y2", -j / 2 - C + 8 + N), N += 8, W.forEach((e2) => {
|
|
2898
|
-
select_default(e2).attr("transform", "translate( " + -k / 2 + ", " + (-1 * j / 2 + N) + ")");
|
|
2899
|
-
let S2 = e2 == null ? void 0 : e2.getBBox();
|
|
2900
|
-
N += ((S2 == null ? void 0 : S2.height) ?? 0) + 4;
|
|
2901
|
-
}), E.attr("style", S.style).attr("class", "outer title-state").attr("x", -k / 2 - C).attr("y", -(j / 2) - C).attr("width", k + S.padding).attr("height", j + S.padding), updateNodeBounds(S, E), S.intersect = function(e2) {
|
|
2902
|
-
return intersect_default.rect(S, e2);
|
|
2903
|
-
}, T;
|
|
2904
|
-
}, "class_box")
|
|
2905
|
-
}, nodeElems = {}, insertNode = /* @__PURE__ */ __name(async (e, S, C) => {
|
|
2906
|
-
let w, T;
|
|
2907
|
-
if (S.link) {
|
|
2908
|
-
let E;
|
|
2909
|
-
getConfig2().securityLevel === "sandbox" ? E = "_top" : S.linkTarget && (E = S.linkTarget || "_blank"), w = e.insert("svg:a").attr("xlink:href", S.link).attr("target", E), T = await shapes[S.shape](w, S, C);
|
|
2910
|
-
} else T = await shapes[S.shape](e, S, C), w = T;
|
|
2911
|
-
return S.tooltip && T.attr("title", S.tooltip), S.class && T.attr("class", "node default " + S.class), nodeElems[S.id] = w, S.haveCallback && nodeElems[S.id].attr("class", nodeElems[S.id].attr("class") + " clickable"), w;
|
|
2912
|
-
}, "insertNode"), positionNode = /* @__PURE__ */ __name((e) => {
|
|
2913
|
-
let S = nodeElems[e.id];
|
|
2914
|
-
log.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
2915
|
-
let C = e.diff || 0;
|
|
2916
|
-
return e.clusterNode ? S.attr("transform", "translate(" + (e.x + C - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : S.attr("transform", "translate(" + e.x + ", " + e.y + ")"), C;
|
|
2917
|
-
}, "positionNode");
|
|
2918
|
-
function getNodeFromBlock(e, S, C = false) {
|
|
2919
|
-
var _a2, _b2, _c;
|
|
2920
|
-
let w = e, T = "default";
|
|
2921
|
-
(((_a2 = w == null ? void 0 : w.classes) == null ? void 0 : _a2.length) || 0) > 0 && (T = ((w == null ? void 0 : w.classes) ?? []).join(" ")), T += " flowchart-label";
|
|
2922
|
-
let E = 0, O = "", k;
|
|
2923
|
-
switch (w.type) {
|
|
2924
|
-
case "round":
|
|
2925
|
-
E = 5, O = "rect";
|
|
2926
|
-
break;
|
|
2927
|
-
case "composite":
|
|
2928
|
-
E = 0, O = "composite", k = 0;
|
|
2929
|
-
break;
|
|
2930
|
-
case "square":
|
|
2931
|
-
O = "rect";
|
|
2932
|
-
break;
|
|
2933
|
-
case "diamond":
|
|
2934
|
-
O = "question";
|
|
2935
|
-
break;
|
|
2936
|
-
case "hexagon":
|
|
2937
|
-
O = "hexagon";
|
|
2938
|
-
break;
|
|
2939
|
-
case "block_arrow":
|
|
2940
|
-
O = "block_arrow";
|
|
2941
|
-
break;
|
|
2942
|
-
case "odd":
|
|
2943
|
-
O = "rect_left_inv_arrow";
|
|
2944
|
-
break;
|
|
2945
|
-
case "lean_right":
|
|
2946
|
-
O = "lean_right";
|
|
2947
|
-
break;
|
|
2948
|
-
case "lean_left":
|
|
2949
|
-
O = "lean_left";
|
|
2950
|
-
break;
|
|
2951
|
-
case "trapezoid":
|
|
2952
|
-
O = "trapezoid";
|
|
2953
|
-
break;
|
|
2954
|
-
case "inv_trapezoid":
|
|
2955
|
-
O = "inv_trapezoid";
|
|
2956
|
-
break;
|
|
2957
|
-
case "rect_left_inv_arrow":
|
|
2958
|
-
O = "rect_left_inv_arrow";
|
|
2959
|
-
break;
|
|
2960
|
-
case "circle":
|
|
2961
|
-
O = "circle";
|
|
2962
|
-
break;
|
|
2963
|
-
case "ellipse":
|
|
2964
|
-
O = "ellipse";
|
|
2965
|
-
break;
|
|
2966
|
-
case "stadium":
|
|
2967
|
-
O = "stadium";
|
|
2968
|
-
break;
|
|
2969
|
-
case "subroutine":
|
|
2970
|
-
O = "subroutine";
|
|
2971
|
-
break;
|
|
2972
|
-
case "cylinder":
|
|
2973
|
-
O = "cylinder";
|
|
2974
|
-
break;
|
|
2975
|
-
case "group":
|
|
2976
|
-
O = "rect";
|
|
2977
|
-
break;
|
|
2978
|
-
case "doublecircle":
|
|
2979
|
-
O = "doublecircle";
|
|
2980
|
-
break;
|
|
2981
|
-
default:
|
|
2982
|
-
O = "rect";
|
|
2983
|
-
}
|
|
2984
|
-
let A = getStylesFromArray((w == null ? void 0 : w.styles) ?? []), j = w.label, M = w.size ?? {
|
|
2985
|
-
width: 0,
|
|
2986
|
-
height: 0,
|
|
2987
|
-
x: 0,
|
|
2988
|
-
y: 0
|
|
2989
|
-
};
|
|
2990
|
-
return {
|
|
2991
|
-
labelStyle: A.labelStyle,
|
|
2992
|
-
shape: O,
|
|
2993
|
-
labelText: j,
|
|
2994
|
-
rx: E,
|
|
2995
|
-
ry: E,
|
|
2996
|
-
class: T,
|
|
2997
|
-
style: A.style,
|
|
2998
|
-
id: w.id,
|
|
2999
|
-
directions: w.directions,
|
|
3000
|
-
width: M.width,
|
|
3001
|
-
height: M.height,
|
|
3002
|
-
x: M.x,
|
|
3003
|
-
y: M.y,
|
|
3004
|
-
positioned: C,
|
|
3005
|
-
intersect: void 0,
|
|
3006
|
-
type: w.type,
|
|
3007
|
-
padding: k ?? ((_c = (_b2 = getConfig()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) ?? 0
|
|
3008
|
-
};
|
|
3009
|
-
}
|
|
3010
|
-
__name(getNodeFromBlock, "getNodeFromBlock");
|
|
3011
|
-
async function calculateBlockSize(e, S, C) {
|
|
3012
|
-
let w = getNodeFromBlock(S, C, false);
|
|
3013
|
-
if (w.type === "group") return;
|
|
3014
|
-
let T = await insertNode(e, w, { config: getConfig() }), E = T.node().getBBox(), D = C.getBlock(w.id);
|
|
3015
|
-
D.size = {
|
|
3016
|
-
width: E.width,
|
|
3017
|
-
height: E.height,
|
|
3018
|
-
x: 0,
|
|
3019
|
-
y: 0,
|
|
3020
|
-
node: T
|
|
3021
|
-
}, C.setBlock(D), T.remove();
|
|
3022
|
-
}
|
|
3023
|
-
__name(calculateBlockSize, "calculateBlockSize");
|
|
3024
|
-
async function insertBlockPositioned(e, S, C) {
|
|
3025
|
-
let w = getNodeFromBlock(S, C, true);
|
|
3026
|
-
C.getBlock(w.id).type !== "space" && (await insertNode(e, w, { config: getConfig() }), S.intersect = w == null ? void 0 : w.intersect, positionNode(w));
|
|
3027
|
-
}
|
|
3028
|
-
__name(insertBlockPositioned, "insertBlockPositioned");
|
|
3029
|
-
async function performOperations(e, S, C, w) {
|
|
3030
|
-
for (let T of S) await w(e, T, C), T.children && await performOperations(e, T.children, C, w);
|
|
3031
|
-
}
|
|
3032
|
-
__name(performOperations, "performOperations");
|
|
3033
|
-
async function calculateBlockSizes(e, S, C) {
|
|
3034
|
-
await performOperations(e, S, C, calculateBlockSize);
|
|
3035
|
-
}
|
|
3036
|
-
__name(calculateBlockSizes, "calculateBlockSizes");
|
|
3037
|
-
async function insertBlocks(e, S, C) {
|
|
3038
|
-
await performOperations(e, S, C, insertBlockPositioned);
|
|
3039
|
-
}
|
|
3040
|
-
__name(insertBlocks, "insertBlocks");
|
|
3041
|
-
async function insertEdges(S, C, w, T, E) {
|
|
3042
|
-
let D = new Graph({
|
|
3043
|
-
multigraph: true,
|
|
3044
|
-
compound: true
|
|
3045
|
-
});
|
|
3046
|
-
D.setGraph({
|
|
3047
|
-
rankdir: "TB",
|
|
3048
|
-
nodesep: 10,
|
|
3049
|
-
ranksep: 10,
|
|
3050
|
-
marginx: 8,
|
|
3051
|
-
marginy: 8
|
|
3052
|
-
});
|
|
3053
|
-
for (let e of w) e.size && D.setNode(e.id, {
|
|
3054
|
-
width: e.size.width,
|
|
3055
|
-
height: e.size.height,
|
|
3056
|
-
intersect: e.intersect
|
|
3057
|
-
});
|
|
3058
|
-
for (let e of C) if (e.start && e.end) {
|
|
3059
|
-
let C2 = T.getBlock(e.start), w2 = T.getBlock(e.end);
|
|
3060
|
-
if ((C2 == null ? void 0 : C2.size) && (w2 == null ? void 0 : w2.size)) {
|
|
3061
|
-
let T2 = C2.size, O = w2.size, k = [
|
|
3062
|
-
{
|
|
3063
|
-
x: T2.x,
|
|
3064
|
-
y: T2.y
|
|
3065
|
-
},
|
|
3066
|
-
{
|
|
3067
|
-
x: T2.x + (O.x - T2.x) / 2,
|
|
3068
|
-
y: T2.y + (O.y - T2.y) / 2
|
|
3069
|
-
},
|
|
3070
|
-
{
|
|
3071
|
-
x: O.x,
|
|
3072
|
-
y: O.y
|
|
3073
|
-
}
|
|
3074
|
-
];
|
|
3075
|
-
insertEdge(S, {
|
|
3076
|
-
v: e.start,
|
|
3077
|
-
w: e.end,
|
|
3078
|
-
name: e.id
|
|
3079
|
-
}, {
|
|
3080
|
-
...e,
|
|
3081
|
-
arrowTypeEnd: e.arrowTypeEnd,
|
|
3082
|
-
arrowTypeStart: e.arrowTypeStart,
|
|
3083
|
-
points: k,
|
|
3084
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
3085
|
-
}, void 0, "block", D, E), e.label && (await insertEdgeLabel(S, {
|
|
3086
|
-
...e,
|
|
3087
|
-
label: e.label,
|
|
3088
|
-
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
3089
|
-
arrowTypeEnd: e.arrowTypeEnd,
|
|
3090
|
-
arrowTypeStart: e.arrowTypeStart,
|
|
3091
|
-
points: k,
|
|
3092
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
3093
|
-
}), positionEdgeLabel({
|
|
3094
|
-
...e,
|
|
3095
|
-
x: k[1].x,
|
|
3096
|
-
y: k[1].y
|
|
3097
|
-
}, { originalPath: k }));
|
|
3098
|
-
}
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3101
|
-
__name(insertEdges, "insertEdges");
|
|
3102
|
-
var diagram = {
|
|
3103
|
-
parser: block_default,
|
|
3104
|
-
db: blockDB_default,
|
|
3105
|
-
renderer: {
|
|
3106
|
-
draw: /* @__PURE__ */ __name(async function(e, S, C, w) {
|
|
3107
|
-
let { securityLevel: T, block: E } = getConfig(), D = w.db, k;
|
|
3108
|
-
T === "sandbox" && (k = select_default("#i" + S));
|
|
3109
|
-
let j = select_default(T === "sandbox" ? k.nodes()[0].contentDocument.body : "body"), M = T === "sandbox" ? j.select(`[id="${S}"]`) : select_default(`[id="${S}"]`);
|
|
3110
|
-
markers_default(M, [
|
|
3111
|
-
"point",
|
|
3112
|
-
"circle",
|
|
3113
|
-
"cross"
|
|
3114
|
-
], w.type, S);
|
|
3115
|
-
let N = D.getBlocks(), P = D.getBlocksFlat(), F = D.getEdges(), L = M.insert("g").attr("class", "block");
|
|
3116
|
-
await calculateBlockSizes(L, N, D);
|
|
3117
|
-
let R = layout(D);
|
|
3118
|
-
if (await insertBlocks(L, N, D), await insertEdges(L, F, P, D, S), R) {
|
|
3119
|
-
let e2 = R, S2 = Math.max(1, Math.round(0.125 * (e2.width / e2.height))), C2 = e2.height + S2 + 10, w2 = e2.width + 10, { useMaxWidth: T2 } = E;
|
|
3120
|
-
configureSvgSize(M, C2, w2, !!T2), log.debug("Here Bounds", R, e2), M.attr("viewBox", `${e2.x - 5} ${e2.y - 5} ${e2.width + 10} ${e2.height + 10}`);
|
|
3121
|
-
}
|
|
3122
|
-
}, "draw"),
|
|
3123
|
-
getClasses: /* @__PURE__ */ __name(function(e, S) {
|
|
3124
|
-
return S.db.getClasses();
|
|
3125
|
-
}, "getClasses")
|
|
3126
|
-
},
|
|
3127
|
-
styles: styles_default
|
|
3128
|
-
};
|
|
3129
|
-
export {
|
|
3130
|
-
diagram
|
|
3131
|
-
};
|