@marimo-team/islands 0.23.17-dev54 → 0.23.17-dev55
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-BBZRR1-C.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
- package/dist/{ErrorBoundary-CptUP1_t.js → ErrorBoundary-BniTEhHn.js} +7 -7
- package/dist/{ImageComparisonComponent-fdY0LUuf.js → ImageComparisonComponent-B7b8DcJI.js} +4 -4
- 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-BnIS9Mvg.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-CfGr729i.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/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
- package/dist/brainfuck-BCunvTbd.js +4 -0
- package/dist/{button-8aS1QcHr.js → button-Dr2uAwhT.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-C_3ITiA6.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
- package/dist/{capabilities-D23lgbH_.js → capabilities-BilXeZ7p.js} +2 -2
- package/dist/{channel-Bg4StoYP.js → channel-CuV_jmG4.js} +1 -1
- package/dist/{chat-ui-JS5FK7Ls.js → chat-ui-o-tATfmW.js} +32 -33
- package/dist/{check-D-BaEjEh.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-CFmDWujZ.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-C0gy-pwj.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-C4JhRtt8.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-D3s0CL4V.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-eotljhmB.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-BPcuM5bj.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
- package/dist/{chunk-JA3XYJ7Z-Bpyllnke.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-BlDVQnXS.js → common-D2ngWI-H.js} +36 -36
- package/dist/commonlisp-BDYrVBNC.js +4 -0
- package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
- package/dist/{copy-BkA3t7rJ.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/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
- package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
- package/dist/{diagram-S2PKOQOG-B1wW-oRg.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
- package/dist/{diagram-PSM6KHXK-DK8uv8Yo.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-DQj6A7SE.js → dist-72nb8Uag.js} +3 -3
- package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
- package/dist/{dist-BNeJ8P-4.js → dist-Awj73yUw.js} +3 -3
- package/dist/{dist-v-kAJfMq.js → dist-B0Ctcrt9.js} +1 -1
- package/dist/{dist-DjQRRttD.js → dist-B1Donbpk.js} +2 -2
- package/dist/dist-BC6wzWNb.js +5 -0
- package/dist/dist-BMd_RcOy.js +5 -0
- package/dist/dist-BZEWjN6r.js +5 -0
- package/dist/{dist-B-upo54Y.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-DGQmYLkh.js → dist-C0ifRfXi.js} +1 -1
- package/dist/{dist-BxR-g1ig.js → dist-C3mEki35.js} +2 -2
- package/dist/{dist-BT96P4oR.js → dist-CNfV2vDI.js} +2 -2
- package/dist/{dist-CBraAJlT.js → dist-COcQ5Vyc.js} +4 -4
- package/dist/dist-CRCm4Fuo.js +5 -0
- package/dist/{dist-Slyx4vXr.js → dist-CSZpLb9d.js} +1 -1
- package/dist/{dist-BvvQUFUK.js → dist-CWswQBvu.js} +1 -1
- package/dist/{dist-DFQ91Mx1.js → dist-CXYro_Nw.js} +4 -4
- package/dist/{dist-BrKNRKC8.js → dist-Ckfsc8C3.js} +2 -2
- package/dist/{dist-CWYsUX_O.js → dist-Cyq6Pxtv.js} +1 -1
- package/dist/{dist-Ba1WFESi.js → dist-D-BWPyoX.js} +5 -5
- package/dist/{dist-BDwn6WIk.js → dist-D-YB6j-O.js} +2 -2
- package/dist/{dist-dJeh9ef4.js → dist-D1vYHETp.js} +2 -2
- package/dist/{dist-3F1XDSYc.js → dist-D9-ePb6D.js} +2 -2
- package/dist/dist-DBPEbGkd.js +8 -0
- package/dist/{dist-DK0pFEmc.js → dist-DC409ROm.js} +1 -1
- package/dist/{dist-B1W12VzQ.js → dist-DJRUd9aM.js} +2 -2
- package/dist/{dist-Ddb0VFS3.js → dist-DLvxZEAK.js} +2 -2
- package/dist/dist-DSsl8IAI.js +5 -0
- package/dist/{dist-B6au1PTB.js → dist-D_ulymry.js} +2 -2
- package/dist/{dist-DgkJegw4.js → dist-DgY27bJ4.js} +3 -3
- package/dist/{dist-CDBV8n0I.js → dist-DiwVZiK7.js} +1 -1
- package/dist/{dist-CdKRSqjo.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-D8SX5Qdg.js → dist-iZ8-rtUy.js} +2 -2
- package/dist/{dist-DarwE0ZO.js → dist-j30bBjjN.js} +6 -6
- package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
- package/dist/{dist-BUzxp0Xf.js → dist-sxRUVPmt.js} +1 -1
- package/dist/dist-uA2RbGmY.js +5 -0
- package/dist/{dist-PQDZaPEo.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-Cj186Id-.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
- package/dist/erlang-DPD-9M5g.js +4 -0
- package/dist/{error-banner-dmkbm21G.js → error-banner-BwCLtmkH.js} +6 -6
- package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
- package/dist/{esm-DEQU-LUO.js → esm-Dusmf6uu.js} +105 -105
- package/dist/{esm-D8vjxCyn.js → esm-QLUgkqzZ.js} +6 -6
- package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
- package/dist/{extends-DDOVg_b8.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-xc-Msa0v.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-CyTNN635.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-BHmg0rCT.js → html-to-image-BOiFHx3u.js} +7464 -2995
- 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-B4ddy8Jy.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-C2o4LTpc.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-jhGlnPMR.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-CzHncDvS.js → label-CMh2d8pJ.js} +6 -6
- package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
- package/dist/{linear-BOGUO8Cd.js → linear-6pDlrp1I.js} +4 -4
- package/dist/livescript-BDUooIeL.js +4 -0
- package/dist/{loader-C7SfUdOD.js → loader-DTnbNSVZ.js} +3 -3
- package/dist/lua-CswAWSkH.js +4 -0
- package/dist/main.js +70 -71
- 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-5xLUaD4Q.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-Bq50n-bG.js → precisionRound-BOoJTbDj.js} +1 -1
- package/dist/{process-output-hGrYEMdn.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/python-WE57eUzD.js +4 -0
- package/dist/q-CR8xPodo.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-_dxtOvzG.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-Cg17A6rO.js → react-vega-zyfTF9SY.js} +26 -26
- package/dist/{requirementDiagram-UZGBJVZJ-D13iq26A.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
- package/dist/{reveal-component-C-bXmcGz.js → reveal-component-BnID65Ih.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-uMKNvMRZ.js → spec-BL1GSUUF.js} +4 -4
- package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
- package/dist/{stateDiagram-FKZM4ZOC-D5HAk2nG.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-BUDhKc0s.js → strings-DMLVGXRo.js} +10 -10
- 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-dl1H9WIW.js → swiper-component-Cx0cRWLk.js} +6 -6
- package/dist/tcl-phm9c5Nd.js +4 -0
- package/dist/textile-CphjAg90.js +4 -0
- package/dist/{time-CQnohwNM.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-BiyuFdnT.js → toDate-BGM7kFtQ.js} +6 -6
- package/dist/toml-BUuMK772.js +4 -0
- package/dist/{tooltip-CkCWlUOf.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-uENjXsiC.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-DqJLysjC.js → useAsyncData-CDcbh-Qv.js} +5 -5
- package/dist/{useDateFormatter-BeN3fHMH.js → useDateFormatter-B_vTzxpm.js} +4 -4
- package/dist/{useDeepCompareMemoize-CvlmHAmy.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
- package/dist/{useIframeCapabilities-pLC-ceDP.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
- package/dist/{useLifecycle-D4N02q82.js → useLifecycle-Bw4wRj_O.js} +7 -7
- package/dist/{useTheme-Dur2p3iC.js → useTheme-BzEXeAR5.js} +6 -6
- package/dist/vb-VOIzXwm9.js +4 -0
- package/dist/vbscript-D0WfcnVk.js +4 -0
- package/dist/{vega-component-Cft458Sr.js → vega-component-CJug-VdR.js} +24 -24
- package/dist/{vega-embed-container-S9gRu4TZ.js → vega-embed-container-BRjjqRGz.js} +9 -9
- package/dist/{vega-loader.browser-CmLRI3wk.js → vega-loader.browser-CGb-2Kwi.js} +4 -4
- 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-BteofzPY.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-yTHHzJiv.js → zod-BFY2SnzC.js} +6 -6
- package/package.json +1 -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/blockDiagram-VD42YOAC-hD9KGMwe.js +0 -3131
- package/dist/brainfuck-4G-7_gq_.js +0 -4
- package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
- package/dist/chunk-ABZYJK2D-BK1Rtvs7.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-7ui7-6r0.js +0 -10
- package/dist/chunk-JZLCHNYA-B4cRqwyW.js +0 -4901
- package/dist/chunk-N4CR4FBY-B3gMBPd2.js +0 -65
- package/dist/chunk-QXUST7PY-Dd6bFvvl.js +0 -498
- package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
- package/dist/chunk-TZMSLE5B-CA_LyLfN.js +0 -63
- package/dist/classDiagram-2ON5EDUG-DX1IPeNG.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-BOkyBkSn.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-Dtksc2Ic.js +0 -296
- package/dist/diagram-QEK2KX5R-BiGjCFD8.js +0 -228
- package/dist/diff-DJIRmJ1g.js +0 -4
- package/dist/dist-BDzVdDo2.js +0 -8
- package/dist/dist-BH2Tq1S1.js +0 -5
- package/dist/dist-BIhBrzqg.js +0 -5
- package/dist/dist-BLCsvXTG.js +0 -6
- package/dist/dist-BNVtuFdd.js +0 -5
- package/dist/dist-CEJ6Lowi.js +0 -5
- package/dist/dist-CYoa69kj.js +0 -5
- package/dist/dist-CnZyXFq3.js +0 -8
- package/dist/dist-D-4HaJKc.js +0 -8
- package/dist/dist-DIGyvbg3.js +0 -5
- package/dist/dist-DIhaoCL4.js +0 -5
- package/dist/dist-DgQleHmb.js +0 -8
- package/dist/dist-JaoLzZmt.js +0 -5
- package/dist/dist-pEX0t8ZV.js +0 -6
- 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-BajNb0ER.js +0 -2170
- package/dist/gas-Bb1Vmv_N.js +0 -4
- package/dist/gherkin-C9Lyidgd.js +0 -4
- package/dist/gitGraphDiagram-V2S2FVAM-DOqdyiwH.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-BH1Wx7lK.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-CcP2SLvE.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-QtR5ck48.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-DH-_Uzcr.js +0 -892
- package/dist/sas-Dd1D9qTq.js +0 -4
- package/dist/scheme-BmDjvTHX.js +0 -4
- package/dist/sequenceDiagram-WL72ISMW-DZrj5IJC.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-DAfwaV0Z.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-O5etBvZb.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-BsfI21d_.js → defaultLocale-CMezyvMc.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/{dist-Cds3J-EE.js → dist-BJ2IUa0l.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/{purify.es-dp2utXxY.js → purify.es-DR5PNXwx.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
|
@@ -0,0 +1,3284 @@
|
|
|
1
|
+
import { t as Graph } from "./graphlib-DMVIRZap.js";
|
|
2
|
+
import "./purify.es-DR5PNXwx.js";
|
|
3
|
+
import { _ as basis_default } from "./step-BqVgkWtk.js";
|
|
4
|
+
import { t as line_default } from "./line-Bc27KE1D.js";
|
|
5
|
+
import { A as float32ArrayTag, B as stringTag, D as booleanTag, E as arrayTag, F as mapTag, G as uint8ClampedArrayTag, H as uint16ArrayTag, I as numberTag, K as getTag, L as objectTag, M as int16ArrayTag, N as int32ArrayTag, O as dataViewTag, P as int8ArrayTag, R as regexpTag, T as arrayBufferTag, U as uint32ArrayTag, V as symbolTag, W as uint8ArrayTag, _ as utils_default, j as float64ArrayTag, k as dateTag, o as decodeEntities, u as getStylesFromArray, w as argumentsTag, x as isPrimitive, y as isTypedArray, z as setTag } from "./chunk-NSK5VX7P-BmmoJBbx.js";
|
|
6
|
+
import { n as log, t as select_default } from "./src-BwVZVGyf.js";
|
|
7
|
+
import { n as __name } from "./chunk-Y2CYZVJY-DX3DSigL.js";
|
|
8
|
+
import { O as getUrl, T as getEffectiveHtmlLabels, a as clear, b as getConfig, c as configureSvgSize, rt as rgba_default, s as common_default, x as getConfig2, z as sanitizeText } from "./chunk-I66GZJ75-9xAsFrdW.js";
|
|
9
|
+
import { t as channel_default } from "./channel-CuV_jmG4.js";
|
|
10
|
+
import "./dist-HaLHv0k5.js";
|
|
11
|
+
import { n as getSubGraphTitleMargins, t as configureLabelImages } from "./chunk-UBXNYLIW-C8LueN5Q.js";
|
|
12
|
+
import "./chunk-4I5QYGJK-CYJC3pkC.js";
|
|
13
|
+
import { n as createText } from "./chunk-WRU74C26-DLgw-V0j.js";
|
|
14
|
+
import { n as getLineFunctionsWithOffset, t as computeLabelTransform } from "./chunk-7BUUIJ7U-CkIbJNZo.js";
|
|
15
|
+
import { t as getIconStyles } from "./chunk-5VM5RSS4-ChXEBudA.js";
|
|
16
|
+
function isArray(e) {
|
|
17
|
+
return Array.isArray(e);
|
|
18
|
+
}
|
|
19
|
+
function clone(e) {
|
|
20
|
+
if (isPrimitive(e)) return e;
|
|
21
|
+
let C = getTag(e);
|
|
22
|
+
if (!isCloneableObject(e)) return {};
|
|
23
|
+
if (isArray(e)) {
|
|
24
|
+
let C2 = Array.from(e);
|
|
25
|
+
return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (C2.index = e.index, C2.input = e.input), C2;
|
|
26
|
+
}
|
|
27
|
+
if (isTypedArray(e)) {
|
|
28
|
+
let C2 = e, w2 = C2.constructor;
|
|
29
|
+
return new w2(C2.buffer, C2.byteOffset, C2.length);
|
|
30
|
+
}
|
|
31
|
+
if (C === "[object ArrayBuffer]") return new ArrayBuffer(e.byteLength);
|
|
32
|
+
if (C === "[object DataView]") {
|
|
33
|
+
let C2 = e, w2 = C2.buffer, T = C2.byteOffset, E = C2.byteLength, D = new ArrayBuffer(E), O = new Uint8Array(w2, T, E);
|
|
34
|
+
return new Uint8Array(D).set(O), new DataView(D);
|
|
35
|
+
}
|
|
36
|
+
if (C === "[object Boolean]" || C === "[object Number]" || C === "[object String]") {
|
|
37
|
+
let w2 = e.constructor, T = new w2(e.valueOf());
|
|
38
|
+
return C === "[object String]" ? cloneStringObjectProperties(T, e) : copyOwnProperties(T, e), T;
|
|
39
|
+
}
|
|
40
|
+
if (C === "[object Date]") return new Date(Number(e));
|
|
41
|
+
if (C === "[object RegExp]") {
|
|
42
|
+
let C2 = e, w2 = new RegExp(C2.source, C2.flags);
|
|
43
|
+
return w2.lastIndex = C2.lastIndex, w2;
|
|
44
|
+
}
|
|
45
|
+
if (C === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(e));
|
|
46
|
+
if (C === "[object Map]") {
|
|
47
|
+
let C2 = e, w2 = /* @__PURE__ */ new Map();
|
|
48
|
+
return C2.forEach((e2, C3) => {
|
|
49
|
+
w2.set(C3, e2);
|
|
50
|
+
}), w2;
|
|
51
|
+
}
|
|
52
|
+
if (C === "[object Set]") {
|
|
53
|
+
let C2 = e, w2 = /* @__PURE__ */ new Set();
|
|
54
|
+
return C2.forEach((e2) => {
|
|
55
|
+
w2.add(e2);
|
|
56
|
+
}), w2;
|
|
57
|
+
}
|
|
58
|
+
if (C === "[object Arguments]") {
|
|
59
|
+
let C2 = e, w2 = {};
|
|
60
|
+
return copyOwnProperties(w2, C2), w2.length = C2.length, w2[Symbol.iterator] = C2[Symbol.iterator], w2;
|
|
61
|
+
}
|
|
62
|
+
let w = {};
|
|
63
|
+
return copyPrototype(w, e), copyOwnProperties(w, e), copySymbolProperties(w, e), w;
|
|
64
|
+
}
|
|
65
|
+
function isCloneableObject(e) {
|
|
66
|
+
switch (getTag(e)) {
|
|
67
|
+
case argumentsTag:
|
|
68
|
+
case arrayTag:
|
|
69
|
+
case arrayBufferTag:
|
|
70
|
+
case dataViewTag:
|
|
71
|
+
case booleanTag:
|
|
72
|
+
case dateTag:
|
|
73
|
+
case float32ArrayTag:
|
|
74
|
+
case float64ArrayTag:
|
|
75
|
+
case int8ArrayTag:
|
|
76
|
+
case int16ArrayTag:
|
|
77
|
+
case int32ArrayTag:
|
|
78
|
+
case mapTag:
|
|
79
|
+
case numberTag:
|
|
80
|
+
case objectTag:
|
|
81
|
+
case regexpTag:
|
|
82
|
+
case setTag:
|
|
83
|
+
case stringTag:
|
|
84
|
+
case symbolTag:
|
|
85
|
+
case uint8ArrayTag:
|
|
86
|
+
case uint8ClampedArrayTag:
|
|
87
|
+
case uint16ArrayTag:
|
|
88
|
+
case uint32ArrayTag:
|
|
89
|
+
return true;
|
|
90
|
+
default:
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function copyOwnProperties(e, C) {
|
|
95
|
+
for (let w in C) Object.hasOwn(C, w) && (e[w] = C[w]);
|
|
96
|
+
}
|
|
97
|
+
function copySymbolProperties(e, C) {
|
|
98
|
+
let w = Object.getOwnPropertySymbols(C);
|
|
99
|
+
for (let T = 0; T < w.length; T++) {
|
|
100
|
+
let E = w[T];
|
|
101
|
+
Object.prototype.propertyIsEnumerable.call(C, E) && (e[E] = C[E]);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function cloneStringObjectProperties(e, C) {
|
|
105
|
+
let w = C.valueOf().length;
|
|
106
|
+
for (let T in C) Object.hasOwn(C, T) && (Number.isNaN(Number(T)) || Number(T) >= w) && (e[T] = C[T]);
|
|
107
|
+
}
|
|
108
|
+
function copyPrototype(e, C) {
|
|
109
|
+
let w = Object.getPrototypeOf(C);
|
|
110
|
+
w !== null && typeof C.constructor == "function" && Object.setPrototypeOf(e, w);
|
|
111
|
+
}
|
|
112
|
+
var parser = (function() {
|
|
113
|
+
var e = /* @__PURE__ */ __name(function(e2, C2, w2, T2) {
|
|
114
|
+
for (w2 || (w2 = {}), T2 = e2.length; T2--; w2[e2[T2]] = C2) ;
|
|
115
|
+
return w2;
|
|
116
|
+
}, "o"), C = [1, 15], w = [1, 7], T = [1, 13], E = [1, 14], D = [1, 19], O = [1, 16], k = [1, 17], A = [1, 18], j = [8, 30], M = [
|
|
117
|
+
8,
|
|
118
|
+
10,
|
|
119
|
+
21,
|
|
120
|
+
28,
|
|
121
|
+
29,
|
|
122
|
+
30,
|
|
123
|
+
31,
|
|
124
|
+
39,
|
|
125
|
+
43,
|
|
126
|
+
46
|
|
127
|
+
], N = [1, 23], P = [1, 24], F = [
|
|
128
|
+
8,
|
|
129
|
+
10,
|
|
130
|
+
15,
|
|
131
|
+
16,
|
|
132
|
+
21,
|
|
133
|
+
28,
|
|
134
|
+
29,
|
|
135
|
+
30,
|
|
136
|
+
31,
|
|
137
|
+
39,
|
|
138
|
+
43,
|
|
139
|
+
46
|
|
140
|
+
], I = [
|
|
141
|
+
8,
|
|
142
|
+
10,
|
|
143
|
+
15,
|
|
144
|
+
16,
|
|
145
|
+
21,
|
|
146
|
+
27,
|
|
147
|
+
28,
|
|
148
|
+
29,
|
|
149
|
+
30,
|
|
150
|
+
31,
|
|
151
|
+
39,
|
|
152
|
+
43,
|
|
153
|
+
46
|
|
154
|
+
], L = [1, 49], R = {
|
|
155
|
+
trace: /* @__PURE__ */ __name(function() {
|
|
156
|
+
}, "trace"),
|
|
157
|
+
yy: {},
|
|
158
|
+
symbols_: {
|
|
159
|
+
error: 2,
|
|
160
|
+
spaceLines: 3,
|
|
161
|
+
SPACELINE: 4,
|
|
162
|
+
NL: 5,
|
|
163
|
+
separator: 6,
|
|
164
|
+
SPACE: 7,
|
|
165
|
+
EOF: 8,
|
|
166
|
+
start: 9,
|
|
167
|
+
BLOCK_DIAGRAM_KEY: 10,
|
|
168
|
+
document: 11,
|
|
169
|
+
stop: 12,
|
|
170
|
+
statement: 13,
|
|
171
|
+
link: 14,
|
|
172
|
+
LINK: 15,
|
|
173
|
+
START_LINK: 16,
|
|
174
|
+
LINK_LABEL: 17,
|
|
175
|
+
STR: 18,
|
|
176
|
+
nodeStatement: 19,
|
|
177
|
+
columnsStatement: 20,
|
|
178
|
+
SPACE_BLOCK: 21,
|
|
179
|
+
blockStatement: 22,
|
|
180
|
+
classDefStatement: 23,
|
|
181
|
+
cssClassStatement: 24,
|
|
182
|
+
styleStatement: 25,
|
|
183
|
+
node: 26,
|
|
184
|
+
SIZE: 27,
|
|
185
|
+
COLUMNS: 28,
|
|
186
|
+
"id-block": 29,
|
|
187
|
+
end: 30,
|
|
188
|
+
NODE_ID: 31,
|
|
189
|
+
nodeShapeNLabel: 32,
|
|
190
|
+
dirList: 33,
|
|
191
|
+
DIR: 34,
|
|
192
|
+
NODE_DSTART: 35,
|
|
193
|
+
NODE_DEND: 36,
|
|
194
|
+
BLOCK_ARROW_START: 37,
|
|
195
|
+
BLOCK_ARROW_END: 38,
|
|
196
|
+
classDef: 39,
|
|
197
|
+
CLASSDEF_ID: 40,
|
|
198
|
+
CLASSDEF_STYLEOPTS: 41,
|
|
199
|
+
DEFAULT: 42,
|
|
200
|
+
class: 43,
|
|
201
|
+
CLASSENTITY_IDS: 44,
|
|
202
|
+
STYLECLASS: 45,
|
|
203
|
+
style: 46,
|
|
204
|
+
STYLE_ENTITY_IDS: 47,
|
|
205
|
+
STYLE_DEFINITION_DATA: 48,
|
|
206
|
+
$accept: 0,
|
|
207
|
+
$end: 1
|
|
208
|
+
},
|
|
209
|
+
terminals_: {
|
|
210
|
+
2: "error",
|
|
211
|
+
4: "SPACELINE",
|
|
212
|
+
5: "NL",
|
|
213
|
+
7: "SPACE",
|
|
214
|
+
8: "EOF",
|
|
215
|
+
10: "BLOCK_DIAGRAM_KEY",
|
|
216
|
+
15: "LINK",
|
|
217
|
+
16: "START_LINK",
|
|
218
|
+
17: "LINK_LABEL",
|
|
219
|
+
18: "STR",
|
|
220
|
+
21: "SPACE_BLOCK",
|
|
221
|
+
27: "SIZE",
|
|
222
|
+
28: "COLUMNS",
|
|
223
|
+
29: "id-block",
|
|
224
|
+
30: "end",
|
|
225
|
+
31: "NODE_ID",
|
|
226
|
+
34: "DIR",
|
|
227
|
+
35: "NODE_DSTART",
|
|
228
|
+
36: "NODE_DEND",
|
|
229
|
+
37: "BLOCK_ARROW_START",
|
|
230
|
+
38: "BLOCK_ARROW_END",
|
|
231
|
+
39: "classDef",
|
|
232
|
+
40: "CLASSDEF_ID",
|
|
233
|
+
41: "CLASSDEF_STYLEOPTS",
|
|
234
|
+
42: "DEFAULT",
|
|
235
|
+
43: "class",
|
|
236
|
+
44: "CLASSENTITY_IDS",
|
|
237
|
+
45: "STYLECLASS",
|
|
238
|
+
46: "style",
|
|
239
|
+
47: "STYLE_ENTITY_IDS",
|
|
240
|
+
48: "STYLE_DEFINITION_DATA"
|
|
241
|
+
},
|
|
242
|
+
productions_: [
|
|
243
|
+
0,
|
|
244
|
+
[3, 1],
|
|
245
|
+
[3, 2],
|
|
246
|
+
[3, 2],
|
|
247
|
+
[6, 1],
|
|
248
|
+
[6, 1],
|
|
249
|
+
[6, 1],
|
|
250
|
+
[9, 3],
|
|
251
|
+
[12, 1],
|
|
252
|
+
[12, 1],
|
|
253
|
+
[12, 2],
|
|
254
|
+
[12, 2],
|
|
255
|
+
[11, 1],
|
|
256
|
+
[11, 2],
|
|
257
|
+
[14, 1],
|
|
258
|
+
[14, 4],
|
|
259
|
+
[13, 1],
|
|
260
|
+
[13, 1],
|
|
261
|
+
[13, 1],
|
|
262
|
+
[13, 1],
|
|
263
|
+
[13, 1],
|
|
264
|
+
[13, 1],
|
|
265
|
+
[13, 1],
|
|
266
|
+
[19, 3],
|
|
267
|
+
[19, 2],
|
|
268
|
+
[19, 1],
|
|
269
|
+
[20, 1],
|
|
270
|
+
[22, 4],
|
|
271
|
+
[22, 3],
|
|
272
|
+
[26, 1],
|
|
273
|
+
[26, 2],
|
|
274
|
+
[33, 1],
|
|
275
|
+
[33, 2],
|
|
276
|
+
[32, 3],
|
|
277
|
+
[32, 4],
|
|
278
|
+
[23, 3],
|
|
279
|
+
[23, 3],
|
|
280
|
+
[24, 3],
|
|
281
|
+
[25, 3]
|
|
282
|
+
],
|
|
283
|
+
performAction: /* @__PURE__ */ __name(function(e2, C2, w2, T2, E2, D2, O2) {
|
|
284
|
+
var k2 = D2.length - 1;
|
|
285
|
+
switch (E2) {
|
|
286
|
+
case 4:
|
|
287
|
+
T2.getLogger().debug("Rule: separator (NL) ");
|
|
288
|
+
break;
|
|
289
|
+
case 5:
|
|
290
|
+
T2.getLogger().debug("Rule: separator (Space) ");
|
|
291
|
+
break;
|
|
292
|
+
case 6:
|
|
293
|
+
T2.getLogger().debug("Rule: separator (EOF) ");
|
|
294
|
+
break;
|
|
295
|
+
case 7:
|
|
296
|
+
T2.getLogger().debug("Rule: hierarchy: ", D2[k2 - 1]), T2.setHierarchy(D2[k2 - 1]);
|
|
297
|
+
break;
|
|
298
|
+
case 8:
|
|
299
|
+
T2.getLogger().debug("Stop NL ");
|
|
300
|
+
break;
|
|
301
|
+
case 9:
|
|
302
|
+
T2.getLogger().debug("Stop EOF ");
|
|
303
|
+
break;
|
|
304
|
+
case 10:
|
|
305
|
+
T2.getLogger().debug("Stop NL2 ");
|
|
306
|
+
break;
|
|
307
|
+
case 11:
|
|
308
|
+
T2.getLogger().debug("Stop EOF2 ");
|
|
309
|
+
break;
|
|
310
|
+
case 12:
|
|
311
|
+
T2.getLogger().debug("Rule: statement: ", D2[k2]), typeof D2[k2].length == "number" ? this.$ = D2[k2] : this.$ = [D2[k2]];
|
|
312
|
+
break;
|
|
313
|
+
case 13:
|
|
314
|
+
T2.getLogger().debug("Rule: statement #2: ", D2[k2 - 1]), this.$ = [D2[k2 - 1]].concat(D2[k2]);
|
|
315
|
+
break;
|
|
316
|
+
case 14:
|
|
317
|
+
T2.getLogger().debug("Rule: link: ", D2[k2], e2), this.$ = {
|
|
318
|
+
edgeTypeStr: D2[k2],
|
|
319
|
+
label: ""
|
|
320
|
+
};
|
|
321
|
+
break;
|
|
322
|
+
case 15:
|
|
323
|
+
T2.getLogger().debug("Rule: LABEL link: ", D2[k2 - 3], D2[k2 - 1], D2[k2]), this.$ = {
|
|
324
|
+
edgeTypeStr: D2[k2],
|
|
325
|
+
label: D2[k2 - 1]
|
|
326
|
+
};
|
|
327
|
+
break;
|
|
328
|
+
case 18:
|
|
329
|
+
let C3 = parseInt(D2[k2]);
|
|
330
|
+
this.$ = {
|
|
331
|
+
id: T2.generateId(),
|
|
332
|
+
type: "space",
|
|
333
|
+
label: "",
|
|
334
|
+
width: C3,
|
|
335
|
+
children: []
|
|
336
|
+
};
|
|
337
|
+
break;
|
|
338
|
+
case 23:
|
|
339
|
+
T2.getLogger().debug("Rule: (nodeStatement link node) ", D2[k2 - 2], D2[k2 - 1], D2[k2], " typestr: ", D2[k2 - 1].edgeTypeStr);
|
|
340
|
+
let w3 = T2.edgeStrToEdgeData(D2[k2 - 1].edgeTypeStr), E3 = T2.edgeStrToEdgeStartData(D2[k2 - 1].edgeTypeStr), O3 = T2.edgeStrToThickness(D2[k2 - 1].edgeTypeStr), A2 = T2.edgeStrToPattern(D2[k2 - 1].edgeTypeStr);
|
|
341
|
+
this.$ = [
|
|
342
|
+
{
|
|
343
|
+
id: D2[k2 - 2].id,
|
|
344
|
+
label: D2[k2 - 2].label,
|
|
345
|
+
type: D2[k2 - 2].type,
|
|
346
|
+
directions: D2[k2 - 2].directions
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
id: D2[k2 - 2].id + "-" + D2[k2].id,
|
|
350
|
+
start: D2[k2 - 2].id,
|
|
351
|
+
end: D2[k2].id,
|
|
352
|
+
label: D2[k2 - 1].label,
|
|
353
|
+
type: "edge",
|
|
354
|
+
thickness: O3,
|
|
355
|
+
pattern: A2,
|
|
356
|
+
directions: D2[k2].directions,
|
|
357
|
+
arrowTypeEnd: w3,
|
|
358
|
+
arrowTypeStart: E3
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: D2[k2].id,
|
|
362
|
+
label: D2[k2].label,
|
|
363
|
+
type: T2.typeStr2Type(D2[k2].typeStr),
|
|
364
|
+
directions: D2[k2].directions
|
|
365
|
+
}
|
|
366
|
+
];
|
|
367
|
+
break;
|
|
368
|
+
case 24:
|
|
369
|
+
T2.getLogger().debug("Rule: nodeStatement (abc88 node size) ", D2[k2 - 1], D2[k2]), this.$ = {
|
|
370
|
+
id: D2[k2 - 1].id,
|
|
371
|
+
label: D2[k2 - 1].label,
|
|
372
|
+
type: T2.typeStr2Type(D2[k2 - 1].typeStr),
|
|
373
|
+
directions: D2[k2 - 1].directions,
|
|
374
|
+
widthInColumns: parseInt(D2[k2], 10)
|
|
375
|
+
};
|
|
376
|
+
break;
|
|
377
|
+
case 25:
|
|
378
|
+
T2.getLogger().debug("Rule: nodeStatement (node) ", D2[k2]), this.$ = {
|
|
379
|
+
id: D2[k2].id,
|
|
380
|
+
label: D2[k2].label,
|
|
381
|
+
type: T2.typeStr2Type(D2[k2].typeStr),
|
|
382
|
+
directions: D2[k2].directions,
|
|
383
|
+
widthInColumns: 1
|
|
384
|
+
};
|
|
385
|
+
break;
|
|
386
|
+
case 26:
|
|
387
|
+
T2.getLogger().debug("APA123", this ? this : "na"), T2.getLogger().debug("COLUMNS: ", D2[k2]), this.$ = {
|
|
388
|
+
type: "column-setting",
|
|
389
|
+
columns: D2[k2] === "auto" ? -1 : parseInt(D2[k2])
|
|
390
|
+
};
|
|
391
|
+
break;
|
|
392
|
+
case 27:
|
|
393
|
+
T2.getLogger().debug("Rule: id-block statement : ", D2[k2 - 2], D2[k2 - 1]), T2.generateId(), this.$ = {
|
|
394
|
+
...D2[k2 - 2],
|
|
395
|
+
type: "composite",
|
|
396
|
+
children: D2[k2 - 1]
|
|
397
|
+
};
|
|
398
|
+
break;
|
|
399
|
+
case 28:
|
|
400
|
+
T2.getLogger().debug("Rule: blockStatement : ", D2[k2 - 2], D2[k2 - 1], D2[k2]), this.$ = {
|
|
401
|
+
id: T2.generateId(),
|
|
402
|
+
type: "composite",
|
|
403
|
+
label: "",
|
|
404
|
+
children: D2[k2 - 1]
|
|
405
|
+
};
|
|
406
|
+
break;
|
|
407
|
+
case 29:
|
|
408
|
+
T2.getLogger().debug("Rule: node (NODE_ID separator): ", D2[k2]), this.$ = { id: D2[k2] };
|
|
409
|
+
break;
|
|
410
|
+
case 30:
|
|
411
|
+
T2.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", D2[k2 - 1], D2[k2]), this.$ = {
|
|
412
|
+
id: D2[k2 - 1],
|
|
413
|
+
label: D2[k2].label,
|
|
414
|
+
typeStr: D2[k2].typeStr,
|
|
415
|
+
directions: D2[k2].directions
|
|
416
|
+
};
|
|
417
|
+
break;
|
|
418
|
+
case 31:
|
|
419
|
+
T2.getLogger().debug("Rule: dirList: ", D2[k2]), this.$ = [D2[k2]];
|
|
420
|
+
break;
|
|
421
|
+
case 32:
|
|
422
|
+
T2.getLogger().debug("Rule: dirList: ", D2[k2 - 1], D2[k2]), this.$ = [D2[k2 - 1]].concat(D2[k2]);
|
|
423
|
+
break;
|
|
424
|
+
case 33:
|
|
425
|
+
T2.getLogger().debug("Rule: nodeShapeNLabel: ", D2[k2 - 2], D2[k2 - 1], D2[k2]), this.$ = {
|
|
426
|
+
typeStr: D2[k2 - 2] + D2[k2],
|
|
427
|
+
label: D2[k2 - 1]
|
|
428
|
+
};
|
|
429
|
+
break;
|
|
430
|
+
case 34:
|
|
431
|
+
T2.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", D2[k2 - 3], D2[k2 - 2], " #3:", D2[k2 - 1], D2[k2]), this.$ = {
|
|
432
|
+
typeStr: D2[k2 - 3] + D2[k2],
|
|
433
|
+
label: D2[k2 - 2],
|
|
434
|
+
directions: D2[k2 - 1]
|
|
435
|
+
};
|
|
436
|
+
break;
|
|
437
|
+
case 35:
|
|
438
|
+
case 36:
|
|
439
|
+
this.$ = {
|
|
440
|
+
type: "classDef",
|
|
441
|
+
id: D2[k2 - 1].trim(),
|
|
442
|
+
css: D2[k2].trim()
|
|
443
|
+
};
|
|
444
|
+
break;
|
|
445
|
+
case 37:
|
|
446
|
+
this.$ = {
|
|
447
|
+
type: "applyClass",
|
|
448
|
+
id: D2[k2 - 1].trim(),
|
|
449
|
+
styleClass: D2[k2].trim()
|
|
450
|
+
};
|
|
451
|
+
break;
|
|
452
|
+
case 38:
|
|
453
|
+
this.$ = {
|
|
454
|
+
type: "applyStyles",
|
|
455
|
+
id: D2[k2 - 1].trim(),
|
|
456
|
+
stylesStr: D2[k2].trim()
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}, "anonymous"),
|
|
461
|
+
table: [
|
|
462
|
+
{
|
|
463
|
+
9: 1,
|
|
464
|
+
10: [1, 2]
|
|
465
|
+
},
|
|
466
|
+
{ 1: [3] },
|
|
467
|
+
{
|
|
468
|
+
10: C,
|
|
469
|
+
11: 3,
|
|
470
|
+
13: 4,
|
|
471
|
+
19: 5,
|
|
472
|
+
20: 6,
|
|
473
|
+
21: w,
|
|
474
|
+
22: 8,
|
|
475
|
+
23: 9,
|
|
476
|
+
24: 10,
|
|
477
|
+
25: 11,
|
|
478
|
+
26: 12,
|
|
479
|
+
28: T,
|
|
480
|
+
29: E,
|
|
481
|
+
31: D,
|
|
482
|
+
39: O,
|
|
483
|
+
43: k,
|
|
484
|
+
46: A
|
|
485
|
+
},
|
|
486
|
+
{ 8: [1, 20] },
|
|
487
|
+
e(j, [2, 12], {
|
|
488
|
+
13: 4,
|
|
489
|
+
19: 5,
|
|
490
|
+
20: 6,
|
|
491
|
+
22: 8,
|
|
492
|
+
23: 9,
|
|
493
|
+
24: 10,
|
|
494
|
+
25: 11,
|
|
495
|
+
26: 12,
|
|
496
|
+
11: 21,
|
|
497
|
+
10: C,
|
|
498
|
+
21: w,
|
|
499
|
+
28: T,
|
|
500
|
+
29: E,
|
|
501
|
+
31: D,
|
|
502
|
+
39: O,
|
|
503
|
+
43: k,
|
|
504
|
+
46: A
|
|
505
|
+
}),
|
|
506
|
+
e(M, [2, 16], {
|
|
507
|
+
14: 22,
|
|
508
|
+
15: N,
|
|
509
|
+
16: P
|
|
510
|
+
}),
|
|
511
|
+
e(M, [2, 17]),
|
|
512
|
+
e(M, [2, 18]),
|
|
513
|
+
e(M, [2, 19]),
|
|
514
|
+
e(M, [2, 20]),
|
|
515
|
+
e(M, [2, 21]),
|
|
516
|
+
e(M, [2, 22]),
|
|
517
|
+
e(F, [2, 25], { 27: [1, 25] }),
|
|
518
|
+
e(M, [2, 26]),
|
|
519
|
+
{
|
|
520
|
+
19: 26,
|
|
521
|
+
26: 12,
|
|
522
|
+
31: D
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
10: C,
|
|
526
|
+
11: 27,
|
|
527
|
+
13: 4,
|
|
528
|
+
19: 5,
|
|
529
|
+
20: 6,
|
|
530
|
+
21: w,
|
|
531
|
+
22: 8,
|
|
532
|
+
23: 9,
|
|
533
|
+
24: 10,
|
|
534
|
+
25: 11,
|
|
535
|
+
26: 12,
|
|
536
|
+
28: T,
|
|
537
|
+
29: E,
|
|
538
|
+
31: D,
|
|
539
|
+
39: O,
|
|
540
|
+
43: k,
|
|
541
|
+
46: A
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
40: [1, 28],
|
|
545
|
+
42: [1, 29]
|
|
546
|
+
},
|
|
547
|
+
{ 44: [1, 30] },
|
|
548
|
+
{ 47: [1, 31] },
|
|
549
|
+
e(I, [2, 29], {
|
|
550
|
+
32: 32,
|
|
551
|
+
35: [1, 33],
|
|
552
|
+
37: [1, 34]
|
|
553
|
+
}),
|
|
554
|
+
{ 1: [2, 7] },
|
|
555
|
+
e(j, [2, 13]),
|
|
556
|
+
{
|
|
557
|
+
26: 35,
|
|
558
|
+
31: D
|
|
559
|
+
},
|
|
560
|
+
{ 31: [2, 14] },
|
|
561
|
+
{ 17: [1, 36] },
|
|
562
|
+
e(F, [2, 24]),
|
|
563
|
+
{
|
|
564
|
+
10: C,
|
|
565
|
+
11: 37,
|
|
566
|
+
13: 4,
|
|
567
|
+
14: 22,
|
|
568
|
+
15: N,
|
|
569
|
+
16: P,
|
|
570
|
+
19: 5,
|
|
571
|
+
20: 6,
|
|
572
|
+
21: w,
|
|
573
|
+
22: 8,
|
|
574
|
+
23: 9,
|
|
575
|
+
24: 10,
|
|
576
|
+
25: 11,
|
|
577
|
+
26: 12,
|
|
578
|
+
28: T,
|
|
579
|
+
29: E,
|
|
580
|
+
31: D,
|
|
581
|
+
39: O,
|
|
582
|
+
43: k,
|
|
583
|
+
46: A
|
|
584
|
+
},
|
|
585
|
+
{ 30: [1, 38] },
|
|
586
|
+
{ 41: [1, 39] },
|
|
587
|
+
{ 41: [1, 40] },
|
|
588
|
+
{ 45: [1, 41] },
|
|
589
|
+
{ 48: [1, 42] },
|
|
590
|
+
e(I, [2, 30]),
|
|
591
|
+
{ 18: [1, 43] },
|
|
592
|
+
{ 18: [1, 44] },
|
|
593
|
+
e(F, [2, 23]),
|
|
594
|
+
{ 18: [1, 45] },
|
|
595
|
+
{ 30: [1, 46] },
|
|
596
|
+
e(M, [2, 28]),
|
|
597
|
+
e(M, [2, 35]),
|
|
598
|
+
e(M, [2, 36]),
|
|
599
|
+
e(M, [2, 37]),
|
|
600
|
+
e(M, [2, 38]),
|
|
601
|
+
{ 36: [1, 47] },
|
|
602
|
+
{
|
|
603
|
+
33: 48,
|
|
604
|
+
34: L
|
|
605
|
+
},
|
|
606
|
+
{ 15: [1, 50] },
|
|
607
|
+
e(M, [2, 27]),
|
|
608
|
+
e(I, [2, 33]),
|
|
609
|
+
{ 38: [1, 51] },
|
|
610
|
+
{
|
|
611
|
+
33: 52,
|
|
612
|
+
34: L,
|
|
613
|
+
38: [2, 31]
|
|
614
|
+
},
|
|
615
|
+
{ 31: [2, 15] },
|
|
616
|
+
e(I, [2, 34]),
|
|
617
|
+
{ 38: [2, 32] }
|
|
618
|
+
],
|
|
619
|
+
defaultActions: {
|
|
620
|
+
20: [2, 7],
|
|
621
|
+
23: [2, 14],
|
|
622
|
+
50: [2, 15],
|
|
623
|
+
52: [2, 32]
|
|
624
|
+
},
|
|
625
|
+
parseError: /* @__PURE__ */ __name(function(e2, C2) {
|
|
626
|
+
if (C2.recoverable) this.trace(e2);
|
|
627
|
+
else {
|
|
628
|
+
var w2 = Error(e2);
|
|
629
|
+
throw w2.hash = C2, w2;
|
|
630
|
+
}
|
|
631
|
+
}, "parseError"),
|
|
632
|
+
parse: /* @__PURE__ */ __name(function(e2) {
|
|
633
|
+
var C2 = this, w2 = [0], T2 = [], E2 = [null], D2 = [], O2 = this.table, k2 = "", A2 = 0, j2 = 0, M2 = 0, N2 = 2, P2 = 1, F2 = D2.slice.call(arguments, 1), I2 = Object.create(this.lexer), L2 = { yy: {} };
|
|
634
|
+
for (var R2 in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R2) && (L2.yy[R2] = this.yy[R2]);
|
|
635
|
+
I2.setInput(e2, L2.yy), L2.yy.lexer = I2, L2.yy.parser = this, I2.yylloc === void 0 && (I2.yylloc = {});
|
|
636
|
+
var z2 = I2.yylloc;
|
|
637
|
+
D2.push(z2);
|
|
638
|
+
var B = I2.options && I2.options.ranges;
|
|
639
|
+
typeof L2.yy.parseError == "function" ? this.parseError = L2.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
640
|
+
function V(e3) {
|
|
641
|
+
w2.length -= 2 * e3, E2.length -= e3, D2.length -= e3;
|
|
642
|
+
}
|
|
643
|
+
__name(V, "popStack");
|
|
644
|
+
function H() {
|
|
645
|
+
var e3 = T2.pop() || I2.lex() || P2;
|
|
646
|
+
return typeof e3 != "number" && (e3 instanceof Array && (T2 = e3, e3 = T2.pop()), e3 = C2.symbols_[e3] || e3), e3;
|
|
647
|
+
}
|
|
648
|
+
__name(H, "lex");
|
|
649
|
+
for (var U, W, G, K, q, J = {}, Y, X, Z, Q; ; ) {
|
|
650
|
+
if (G = w2[w2.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ?? (U = H()), K = O2[G] && O2[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
651
|
+
var $ = "";
|
|
652
|
+
for (Y in Q = [], O2[G]) this.terminals_[Y] && Y > N2 && Q.push("'" + this.terminals_[Y] + "'");
|
|
653
|
+
$ = 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($, {
|
|
654
|
+
text: I2.match,
|
|
655
|
+
token: this.terminals_[U] || U,
|
|
656
|
+
line: I2.yylineno,
|
|
657
|
+
loc: z2,
|
|
658
|
+
expected: Q
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
662
|
+
switch (K[0]) {
|
|
663
|
+
case 1:
|
|
664
|
+
w2.push(U), E2.push(I2.yytext), D2.push(I2.yylloc), w2.push(K[1]), U = null, W ? (U = W, W = null) : (j2 = I2.yyleng, k2 = I2.yytext, A2 = I2.yylineno, z2 = I2.yylloc, M2 > 0 && M2--);
|
|
665
|
+
break;
|
|
666
|
+
case 2:
|
|
667
|
+
if (X = this.productions_[K[1]][1], J.$ = E2[E2.length - X], J._$ = {
|
|
668
|
+
first_line: D2[D2.length - (X || 1)].first_line,
|
|
669
|
+
last_line: D2[D2.length - 1].last_line,
|
|
670
|
+
first_column: D2[D2.length - (X || 1)].first_column,
|
|
671
|
+
last_column: D2[D2.length - 1].last_column
|
|
672
|
+
}, B && (J._$.range = [D2[D2.length - (X || 1)].range[0], D2[D2.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
673
|
+
k2,
|
|
674
|
+
j2,
|
|
675
|
+
A2,
|
|
676
|
+
L2.yy,
|
|
677
|
+
K[1],
|
|
678
|
+
E2,
|
|
679
|
+
D2
|
|
680
|
+
].concat(F2)), q !== void 0) return q;
|
|
681
|
+
X && (w2 = w2.slice(0, -1 * X * 2), E2 = E2.slice(0, -1 * X), D2 = D2.slice(0, -1 * X)), w2.push(this.productions_[K[1]][0]), E2.push(J.$), D2.push(J._$), Z = O2[w2[w2.length - 2]][w2[w2.length - 1]], w2.push(Z);
|
|
682
|
+
break;
|
|
683
|
+
case 3:
|
|
684
|
+
return true;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
return true;
|
|
688
|
+
}, "parse")
|
|
689
|
+
};
|
|
690
|
+
R.lexer = /* @__PURE__ */ (function() {
|
|
691
|
+
return {
|
|
692
|
+
EOF: 1,
|
|
693
|
+
parseError: /* @__PURE__ */ __name(function(e2, C2) {
|
|
694
|
+
if (this.yy.parser) this.yy.parser.parseError(e2, C2);
|
|
695
|
+
else throw Error(e2);
|
|
696
|
+
}, "parseError"),
|
|
697
|
+
setInput: /* @__PURE__ */ __name(function(e2, C2) {
|
|
698
|
+
return this.yy = C2 || 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 = {
|
|
699
|
+
first_line: 1,
|
|
700
|
+
first_column: 0,
|
|
701
|
+
last_line: 1,
|
|
702
|
+
last_column: 0
|
|
703
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
704
|
+
}, "setInput"),
|
|
705
|
+
input: /* @__PURE__ */ __name(function() {
|
|
706
|
+
var e2 = this._input[0];
|
|
707
|
+
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;
|
|
708
|
+
}, "input"),
|
|
709
|
+
unput: /* @__PURE__ */ __name(function(e2) {
|
|
710
|
+
var C2 = e2.length, w2 = e2.split(/(?:\r\n?|\n)/g);
|
|
711
|
+
this._input = e2 + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - C2), this.offset -= C2;
|
|
712
|
+
var T2 = this.match.split(/(?:\r\n?|\n)/g);
|
|
713
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), w2.length - 1 && (this.yylineno -= w2.length - 1);
|
|
714
|
+
var E2 = this.yylloc.range;
|
|
715
|
+
return this.yylloc = {
|
|
716
|
+
first_line: this.yylloc.first_line,
|
|
717
|
+
last_line: this.yylineno + 1,
|
|
718
|
+
first_column: this.yylloc.first_column,
|
|
719
|
+
last_column: w2 ? (w2.length === T2.length ? this.yylloc.first_column : 0) + T2[T2.length - w2.length].length - w2[0].length : this.yylloc.first_column - C2
|
|
720
|
+
}, this.options.ranges && (this.yylloc.range = [E2[0], E2[0] + this.yyleng - C2]), this.yyleng = this.yytext.length, this;
|
|
721
|
+
}, "unput"),
|
|
722
|
+
more: /* @__PURE__ */ __name(function() {
|
|
723
|
+
return this._more = true, this;
|
|
724
|
+
}, "more"),
|
|
725
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
726
|
+
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
727
|
+
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(), {
|
|
728
|
+
text: "",
|
|
729
|
+
token: null,
|
|
730
|
+
line: this.yylineno
|
|
731
|
+
});
|
|
732
|
+
return this;
|
|
733
|
+
}, "reject"),
|
|
734
|
+
less: /* @__PURE__ */ __name(function(e2) {
|
|
735
|
+
this.unput(this.match.slice(e2));
|
|
736
|
+
}, "less"),
|
|
737
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
738
|
+
var e2 = this.matched.substr(0, this.matched.length - this.match.length);
|
|
739
|
+
return (e2.length > 20 ? "..." : "") + e2.substr(-20).replace(/\n/g, "");
|
|
740
|
+
}, "pastInput"),
|
|
741
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
742
|
+
var e2 = this.match;
|
|
743
|
+
return e2.length < 20 && (e2 += this._input.substr(0, 20 - e2.length)), (e2.substr(0, 20) + (e2.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
744
|
+
}, "upcomingInput"),
|
|
745
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
746
|
+
var e2 = this.pastInput(), C2 = Array(e2.length + 1).join("-");
|
|
747
|
+
return e2 + this.upcomingInput() + "\n" + C2 + "^";
|
|
748
|
+
}, "showPosition"),
|
|
749
|
+
test_match: /* @__PURE__ */ __name(function(e2, C2) {
|
|
750
|
+
var w2, T2, E2;
|
|
751
|
+
if (this.options.backtrack_lexer && (E2 = {
|
|
752
|
+
yylineno: this.yylineno,
|
|
753
|
+
yylloc: {
|
|
754
|
+
first_line: this.yylloc.first_line,
|
|
755
|
+
last_line: this.last_line,
|
|
756
|
+
first_column: this.yylloc.first_column,
|
|
757
|
+
last_column: this.yylloc.last_column
|
|
758
|
+
},
|
|
759
|
+
yytext: this.yytext,
|
|
760
|
+
match: this.match,
|
|
761
|
+
matches: this.matches,
|
|
762
|
+
matched: this.matched,
|
|
763
|
+
yyleng: this.yyleng,
|
|
764
|
+
offset: this.offset,
|
|
765
|
+
_more: this._more,
|
|
766
|
+
_input: this._input,
|
|
767
|
+
yy: this.yy,
|
|
768
|
+
conditionStack: this.conditionStack.slice(0),
|
|
769
|
+
done: this.done
|
|
770
|
+
}, this.options.ranges && (E2.yylloc.range = this.yylloc.range.slice(0))), T2 = e2[0].match(/(?:\r\n?|\n).*/g), T2 && (this.yylineno += T2.length), this.yylloc = {
|
|
771
|
+
first_line: this.yylloc.last_line,
|
|
772
|
+
last_line: this.yylineno + 1,
|
|
773
|
+
first_column: this.yylloc.last_column,
|
|
774
|
+
last_column: T2 ? T2[T2.length - 1].length - T2[T2.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e2[0].length
|
|
775
|
+
}, 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], w2 = this.performAction.call(this, this.yy, this, C2, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), w2) return w2;
|
|
776
|
+
if (this._backtrack) {
|
|
777
|
+
for (var D2 in E2) this[D2] = E2[D2];
|
|
778
|
+
return false;
|
|
779
|
+
}
|
|
780
|
+
return false;
|
|
781
|
+
}, "test_match"),
|
|
782
|
+
next: /* @__PURE__ */ __name(function() {
|
|
783
|
+
if (this.done) return this.EOF;
|
|
784
|
+
this._input || (this.done = true);
|
|
785
|
+
var e2, C2, w2, T2;
|
|
786
|
+
this._more || (this.yytext = "", this.match = "");
|
|
787
|
+
for (var E2 = this._currentRules(), D2 = 0; D2 < E2.length; D2++) if (w2 = this._input.match(this.rules[E2[D2]]), w2 && (!C2 || w2[0].length > C2[0].length)) {
|
|
788
|
+
if (C2 = w2, T2 = D2, this.options.backtrack_lexer) {
|
|
789
|
+
if (e2 = this.test_match(w2, E2[D2]), e2 !== false) return e2;
|
|
790
|
+
if (this._backtrack) {
|
|
791
|
+
C2 = false;
|
|
792
|
+
continue;
|
|
793
|
+
} else return false;
|
|
794
|
+
} else if (!this.options.flex) break;
|
|
795
|
+
}
|
|
796
|
+
return C2 ? (e2 = this.test_match(C2, E2[T2]), e2 === false ? false : e2) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
797
|
+
text: "",
|
|
798
|
+
token: null,
|
|
799
|
+
line: this.yylineno
|
|
800
|
+
});
|
|
801
|
+
}, "next"),
|
|
802
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
803
|
+
return this.next() || this.lex();
|
|
804
|
+
}, "lex"),
|
|
805
|
+
begin: /* @__PURE__ */ __name(function(e2) {
|
|
806
|
+
this.conditionStack.push(e2);
|
|
807
|
+
}, "begin"),
|
|
808
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
809
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
810
|
+
}, "popState"),
|
|
811
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
812
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
813
|
+
}, "_currentRules"),
|
|
814
|
+
topState: /* @__PURE__ */ __name(function(e2) {
|
|
815
|
+
return e2 = this.conditionStack.length - 1 - Math.abs(e2 || 0), e2 >= 0 ? this.conditionStack[e2] : "INITIAL";
|
|
816
|
+
}, "topState"),
|
|
817
|
+
pushState: /* @__PURE__ */ __name(function(e2) {
|
|
818
|
+
this.begin(e2);
|
|
819
|
+
}, "pushState"),
|
|
820
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
821
|
+
return this.conditionStack.length;
|
|
822
|
+
}, "stateStackSize"),
|
|
823
|
+
options: {},
|
|
824
|
+
performAction: /* @__PURE__ */ __name(function(e2, C2, w2, T2) {
|
|
825
|
+
switch (w2) {
|
|
826
|
+
case 0:
|
|
827
|
+
return e2.getLogger().debug("Found block-beta"), 10;
|
|
828
|
+
case 1:
|
|
829
|
+
return e2.getLogger().debug("Found id-block"), 29;
|
|
830
|
+
case 2:
|
|
831
|
+
return e2.getLogger().debug("Found block"), 10;
|
|
832
|
+
case 3:
|
|
833
|
+
e2.getLogger().debug(".", C2.yytext);
|
|
834
|
+
break;
|
|
835
|
+
case 4:
|
|
836
|
+
e2.getLogger().debug("_", C2.yytext);
|
|
837
|
+
break;
|
|
838
|
+
case 5:
|
|
839
|
+
return 5;
|
|
840
|
+
case 6:
|
|
841
|
+
return C2.yytext = -1, 28;
|
|
842
|
+
case 7:
|
|
843
|
+
return C2.yytext = C2.yytext.replace(/columns\s+/, ""), e2.getLogger().debug("COLUMNS (LEX)", C2.yytext), 28;
|
|
844
|
+
case 8:
|
|
845
|
+
this.pushState("md_string");
|
|
846
|
+
break;
|
|
847
|
+
case 9:
|
|
848
|
+
return "MD_STR";
|
|
849
|
+
case 10:
|
|
850
|
+
this.popState();
|
|
851
|
+
break;
|
|
852
|
+
case 11:
|
|
853
|
+
this.pushState("string");
|
|
854
|
+
break;
|
|
855
|
+
case 12:
|
|
856
|
+
e2.getLogger().debug("LEX: POPPING STR:", C2.yytext), this.popState();
|
|
857
|
+
break;
|
|
858
|
+
case 13:
|
|
859
|
+
return e2.getLogger().debug("LEX: STR end:", C2.yytext), "STR";
|
|
860
|
+
case 14:
|
|
861
|
+
return C2.yytext = C2.yytext.replace(/space\:/, ""), e2.getLogger().debug("SPACE NUM (LEX)", C2.yytext), 21;
|
|
862
|
+
case 15:
|
|
863
|
+
return C2.yytext = "1", e2.getLogger().debug("COLUMNS (LEX)", C2.yytext), 21;
|
|
864
|
+
case 16:
|
|
865
|
+
return 42;
|
|
866
|
+
case 17:
|
|
867
|
+
return "LINKSTYLE";
|
|
868
|
+
case 18:
|
|
869
|
+
return "INTERPOLATE";
|
|
870
|
+
case 19:
|
|
871
|
+
return this.pushState("CLASSDEF"), 39;
|
|
872
|
+
case 20:
|
|
873
|
+
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
874
|
+
case 21:
|
|
875
|
+
return this.popState(), this.pushState("CLASSDEFID"), 40;
|
|
876
|
+
case 22:
|
|
877
|
+
return this.popState(), 41;
|
|
878
|
+
case 23:
|
|
879
|
+
return this.pushState("CLASS"), 43;
|
|
880
|
+
case 24:
|
|
881
|
+
return this.popState(), this.pushState("CLASS_STYLE"), 44;
|
|
882
|
+
case 25:
|
|
883
|
+
return this.popState(), 45;
|
|
884
|
+
case 26:
|
|
885
|
+
return this.pushState("STYLE_STMNT"), 46;
|
|
886
|
+
case 27:
|
|
887
|
+
return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
|
|
888
|
+
case 28:
|
|
889
|
+
return this.popState(), 48;
|
|
890
|
+
case 29:
|
|
891
|
+
return this.pushState("acc_title"), "acc_title";
|
|
892
|
+
case 30:
|
|
893
|
+
return this.popState(), "acc_title_value";
|
|
894
|
+
case 31:
|
|
895
|
+
return this.pushState("acc_descr"), "acc_descr";
|
|
896
|
+
case 32:
|
|
897
|
+
return this.popState(), "acc_descr_value";
|
|
898
|
+
case 33:
|
|
899
|
+
this.pushState("acc_descr_multiline");
|
|
900
|
+
break;
|
|
901
|
+
case 34:
|
|
902
|
+
this.popState();
|
|
903
|
+
break;
|
|
904
|
+
case 35:
|
|
905
|
+
return "acc_descr_multiline_value";
|
|
906
|
+
case 36:
|
|
907
|
+
return 30;
|
|
908
|
+
case 37:
|
|
909
|
+
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
910
|
+
case 38:
|
|
911
|
+
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
912
|
+
case 39:
|
|
913
|
+
return this.popState(), e2.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
914
|
+
case 40:
|
|
915
|
+
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
916
|
+
case 41:
|
|
917
|
+
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
918
|
+
case 42:
|
|
919
|
+
return this.popState(), e2.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
920
|
+
case 43:
|
|
921
|
+
return this.popState(), e2.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
922
|
+
case 44:
|
|
923
|
+
return this.popState(), e2.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
924
|
+
case 45:
|
|
925
|
+
return this.popState(), e2.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
926
|
+
case 46:
|
|
927
|
+
return this.popState(), e2.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
928
|
+
case 47:
|
|
929
|
+
return this.popState(), e2.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
930
|
+
case 48:
|
|
931
|
+
return this.popState(), e2.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
932
|
+
case 49:
|
|
933
|
+
return this.popState(), e2.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
934
|
+
case 50:
|
|
935
|
+
return this.popState(), e2.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
936
|
+
case 51:
|
|
937
|
+
return this.popState(), e2.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
938
|
+
case 52:
|
|
939
|
+
return this.popState(), e2.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
940
|
+
case 53:
|
|
941
|
+
return this.popState(), e2.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
942
|
+
case 54:
|
|
943
|
+
return e2.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
|
|
944
|
+
case 55:
|
|
945
|
+
return e2.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
|
|
946
|
+
case 56:
|
|
947
|
+
return e2.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
|
|
948
|
+
case 57:
|
|
949
|
+
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
950
|
+
case 58:
|
|
951
|
+
return e2.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
|
|
952
|
+
case 59:
|
|
953
|
+
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
954
|
+
case 60:
|
|
955
|
+
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
956
|
+
case 61:
|
|
957
|
+
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
958
|
+
case 62:
|
|
959
|
+
return e2.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
|
|
960
|
+
case 63:
|
|
961
|
+
return e2.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
|
|
962
|
+
case 64:
|
|
963
|
+
return e2.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
964
|
+
case 65:
|
|
965
|
+
return this.pushState("NODE"), 35;
|
|
966
|
+
case 66:
|
|
967
|
+
return this.pushState("NODE"), 35;
|
|
968
|
+
case 67:
|
|
969
|
+
return this.pushState("NODE"), 35;
|
|
970
|
+
case 68:
|
|
971
|
+
return this.pushState("NODE"), 35;
|
|
972
|
+
case 69:
|
|
973
|
+
return this.pushState("NODE"), 35;
|
|
974
|
+
case 70:
|
|
975
|
+
return this.pushState("NODE"), 35;
|
|
976
|
+
case 71:
|
|
977
|
+
return this.pushState("NODE"), 35;
|
|
978
|
+
case 72:
|
|
979
|
+
return e2.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
|
|
980
|
+
case 73:
|
|
981
|
+
return this.pushState("BLOCK_ARROW"), e2.getLogger().debug("LEX ARR START"), 37;
|
|
982
|
+
case 74:
|
|
983
|
+
return e2.getLogger().debug("Lex: NODE_ID", C2.yytext), 31;
|
|
984
|
+
case 75:
|
|
985
|
+
return e2.getLogger().debug("Lex: EOF", C2.yytext), 8;
|
|
986
|
+
case 76:
|
|
987
|
+
this.pushState("md_string");
|
|
988
|
+
break;
|
|
989
|
+
case 77:
|
|
990
|
+
this.pushState("md_string");
|
|
991
|
+
break;
|
|
992
|
+
case 78:
|
|
993
|
+
return "NODE_DESCR";
|
|
994
|
+
case 79:
|
|
995
|
+
this.popState();
|
|
996
|
+
break;
|
|
997
|
+
case 80:
|
|
998
|
+
e2.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
999
|
+
break;
|
|
1000
|
+
case 81:
|
|
1001
|
+
e2.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
1002
|
+
break;
|
|
1003
|
+
case 82:
|
|
1004
|
+
return e2.getLogger().debug("LEX: NODE_DESCR:", C2.yytext), "NODE_DESCR";
|
|
1005
|
+
case 83:
|
|
1006
|
+
e2.getLogger().debug("LEX POPPING"), this.popState();
|
|
1007
|
+
break;
|
|
1008
|
+
case 84:
|
|
1009
|
+
e2.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
1010
|
+
break;
|
|
1011
|
+
case 85:
|
|
1012
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (right): dir:", C2.yytext), "DIR";
|
|
1013
|
+
case 86:
|
|
1014
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (left):", C2.yytext), "DIR";
|
|
1015
|
+
case 87:
|
|
1016
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (x):", C2.yytext), "DIR";
|
|
1017
|
+
case 88:
|
|
1018
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (y):", C2.yytext), "DIR";
|
|
1019
|
+
case 89:
|
|
1020
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (up):", C2.yytext), "DIR";
|
|
1021
|
+
case 90:
|
|
1022
|
+
return C2.yytext = C2.yytext.replace(/^,\s*/, ""), e2.getLogger().debug("Lex (down):", C2.yytext), "DIR";
|
|
1023
|
+
case 91:
|
|
1024
|
+
return C2.yytext = "]>", e2.getLogger().debug("Lex (ARROW_DIR end):", C2.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
1025
|
+
case 92:
|
|
1026
|
+
return e2.getLogger().debug("Lex: LINK", "#" + C2.yytext + "#"), 15;
|
|
1027
|
+
case 93:
|
|
1028
|
+
return e2.getLogger().debug("Lex: LINK", C2.yytext), 15;
|
|
1029
|
+
case 94:
|
|
1030
|
+
return e2.getLogger().debug("Lex: LINK", C2.yytext), 15;
|
|
1031
|
+
case 95:
|
|
1032
|
+
return e2.getLogger().debug("Lex: LINK", C2.yytext), 15;
|
|
1033
|
+
case 96:
|
|
1034
|
+
return e2.getLogger().debug("Lex: START_LINK", C2.yytext), this.pushState("LLABEL"), 16;
|
|
1035
|
+
case 97:
|
|
1036
|
+
return e2.getLogger().debug("Lex: START_LINK", C2.yytext), this.pushState("LLABEL"), 16;
|
|
1037
|
+
case 98:
|
|
1038
|
+
return e2.getLogger().debug("Lex: START_LINK", C2.yytext), this.pushState("LLABEL"), 16;
|
|
1039
|
+
case 99:
|
|
1040
|
+
this.pushState("md_string");
|
|
1041
|
+
break;
|
|
1042
|
+
case 100:
|
|
1043
|
+
return e2.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
1044
|
+
case 101:
|
|
1045
|
+
return this.popState(), e2.getLogger().debug("Lex: LINK", "#" + C2.yytext + "#"), 15;
|
|
1046
|
+
case 102:
|
|
1047
|
+
return this.popState(), e2.getLogger().debug("Lex: LINK", C2.yytext), 15;
|
|
1048
|
+
case 103:
|
|
1049
|
+
return this.popState(), e2.getLogger().debug("Lex: LINK", C2.yytext), 15;
|
|
1050
|
+
case 104:
|
|
1051
|
+
return e2.getLogger().debug("Lex: COLON", C2.yytext), C2.yytext = C2.yytext.slice(1), 27;
|
|
1052
|
+
}
|
|
1053
|
+
}, "anonymous"),
|
|
1054
|
+
rules: [
|
|
1055
|
+
/^(?:block-beta\b)/,
|
|
1056
|
+
/^(?:block:)/,
|
|
1057
|
+
/^(?:block\b)/,
|
|
1058
|
+
/^(?:[\s]+)/,
|
|
1059
|
+
/^(?:[\n]+)/,
|
|
1060
|
+
/^(?:((\u000D\u000A)|(\u000A)))/,
|
|
1061
|
+
/^(?:columns\s+auto\b)/,
|
|
1062
|
+
/^(?:columns\s+[\d]+)/,
|
|
1063
|
+
/^(?:["][`])/,
|
|
1064
|
+
/^(?:[^`"]+)/,
|
|
1065
|
+
/^(?:[`]["])/,
|
|
1066
|
+
/^(?:["])/,
|
|
1067
|
+
/^(?:["])/,
|
|
1068
|
+
/^(?:[^"]*)/,
|
|
1069
|
+
/^(?:space[:]\d+)/,
|
|
1070
|
+
/^(?:space\b)/,
|
|
1071
|
+
/^(?:default\b)/,
|
|
1072
|
+
/^(?:linkStyle\b)/,
|
|
1073
|
+
/^(?:interpolate\b)/,
|
|
1074
|
+
/^(?:classDef\s+)/,
|
|
1075
|
+
/^(?:DEFAULT\s+)/,
|
|
1076
|
+
/^(?:\w+\s+)/,
|
|
1077
|
+
/^(?:[^\n]*)/,
|
|
1078
|
+
/^(?:class\s+)/,
|
|
1079
|
+
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
1080
|
+
/^(?:[^\n]*)/,
|
|
1081
|
+
/^(?:style\s+)/,
|
|
1082
|
+
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
1083
|
+
/^(?:[^\n]*)/,
|
|
1084
|
+
/^(?:accTitle\s*:\s*)/,
|
|
1085
|
+
/^(?:(?!\n||)*[^\n]*)/,
|
|
1086
|
+
/^(?:accDescr\s*:\s*)/,
|
|
1087
|
+
/^(?:(?!\n||)*[^\n]*)/,
|
|
1088
|
+
/^(?:accDescr\s*\{\s*)/,
|
|
1089
|
+
/^(?:[\}])/,
|
|
1090
|
+
/^(?:[^\}]*)/,
|
|
1091
|
+
/^(?:end\b\s*)/,
|
|
1092
|
+
/^(?:\(\(\()/,
|
|
1093
|
+
/^(?:\)\)\))/,
|
|
1094
|
+
/^(?:[\)]\))/,
|
|
1095
|
+
/^(?:\}\})/,
|
|
1096
|
+
/^(?:\})/,
|
|
1097
|
+
/^(?:\(-)/,
|
|
1098
|
+
/^(?:-\))/,
|
|
1099
|
+
/^(?:\(\()/,
|
|
1100
|
+
/^(?:\]\])/,
|
|
1101
|
+
/^(?:\()/,
|
|
1102
|
+
/^(?:\]\))/,
|
|
1103
|
+
/^(?:\\\])/,
|
|
1104
|
+
/^(?:\/\])/,
|
|
1105
|
+
/^(?:\)\])/,
|
|
1106
|
+
/^(?:[\)])/,
|
|
1107
|
+
/^(?:\]>)/,
|
|
1108
|
+
/^(?:[\]])/,
|
|
1109
|
+
/^(?:-\))/,
|
|
1110
|
+
/^(?:\(-)/,
|
|
1111
|
+
/^(?:\)\))/,
|
|
1112
|
+
/^(?:\))/,
|
|
1113
|
+
/^(?:\(\(\()/,
|
|
1114
|
+
/^(?:\(\()/,
|
|
1115
|
+
/^(?:\{\{)/,
|
|
1116
|
+
/^(?:\{)/,
|
|
1117
|
+
/^(?:>)/,
|
|
1118
|
+
/^(?:\(\[)/,
|
|
1119
|
+
/^(?:\()/,
|
|
1120
|
+
/^(?:\[\[)/,
|
|
1121
|
+
/^(?:\[\|)/,
|
|
1122
|
+
/^(?:\[\()/,
|
|
1123
|
+
/^(?:\)\)\))/,
|
|
1124
|
+
/^(?:\[\\)/,
|
|
1125
|
+
/^(?:\[\/)/,
|
|
1126
|
+
/^(?:\[\\)/,
|
|
1127
|
+
/^(?:\[)/,
|
|
1128
|
+
/^(?:<\[)/,
|
|
1129
|
+
/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
|
|
1130
|
+
/^(?:$)/,
|
|
1131
|
+
/^(?:["][`])/,
|
|
1132
|
+
/^(?:["][`])/,
|
|
1133
|
+
/^(?:[^`"]+)/,
|
|
1134
|
+
/^(?:[`]["])/,
|
|
1135
|
+
/^(?:["])/,
|
|
1136
|
+
/^(?:["])/,
|
|
1137
|
+
/^(?:[^"]+)/,
|
|
1138
|
+
/^(?:["])/,
|
|
1139
|
+
/^(?:\]>\s*\()/,
|
|
1140
|
+
/^(?:,?\s*right\s*)/,
|
|
1141
|
+
/^(?:,?\s*left\s*)/,
|
|
1142
|
+
/^(?:,?\s*x\s*)/,
|
|
1143
|
+
/^(?:,?\s*y\s*)/,
|
|
1144
|
+
/^(?:,?\s*up\s*)/,
|
|
1145
|
+
/^(?:,?\s*down\s*)/,
|
|
1146
|
+
/^(?:\)\s*)/,
|
|
1147
|
+
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1148
|
+
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1149
|
+
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1150
|
+
/^(?:\s*~~[\~]+\s*)/,
|
|
1151
|
+
/^(?:\s*[xo<]?--\s*)/,
|
|
1152
|
+
/^(?:\s*[xo<]?==\s*)/,
|
|
1153
|
+
/^(?:\s*[xo<]?-\.\s*)/,
|
|
1154
|
+
/^(?:["][`])/,
|
|
1155
|
+
/^(?:["])/,
|
|
1156
|
+
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1157
|
+
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1158
|
+
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1159
|
+
/^(?::\d+)/
|
|
1160
|
+
],
|
|
1161
|
+
conditions: {
|
|
1162
|
+
STYLE_DEFINITION: {
|
|
1163
|
+
rules: [28],
|
|
1164
|
+
inclusive: false
|
|
1165
|
+
},
|
|
1166
|
+
STYLE_STMNT: {
|
|
1167
|
+
rules: [27],
|
|
1168
|
+
inclusive: false
|
|
1169
|
+
},
|
|
1170
|
+
CLASSDEFID: {
|
|
1171
|
+
rules: [22],
|
|
1172
|
+
inclusive: false
|
|
1173
|
+
},
|
|
1174
|
+
CLASSDEF: {
|
|
1175
|
+
rules: [20, 21],
|
|
1176
|
+
inclusive: false
|
|
1177
|
+
},
|
|
1178
|
+
CLASS_STYLE: {
|
|
1179
|
+
rules: [25],
|
|
1180
|
+
inclusive: false
|
|
1181
|
+
},
|
|
1182
|
+
CLASS: {
|
|
1183
|
+
rules: [24],
|
|
1184
|
+
inclusive: false
|
|
1185
|
+
},
|
|
1186
|
+
LLABEL: {
|
|
1187
|
+
rules: [
|
|
1188
|
+
99,
|
|
1189
|
+
100,
|
|
1190
|
+
101,
|
|
1191
|
+
102,
|
|
1192
|
+
103
|
|
1193
|
+
],
|
|
1194
|
+
inclusive: false
|
|
1195
|
+
},
|
|
1196
|
+
ARROW_DIR: {
|
|
1197
|
+
rules: [
|
|
1198
|
+
85,
|
|
1199
|
+
86,
|
|
1200
|
+
87,
|
|
1201
|
+
88,
|
|
1202
|
+
89,
|
|
1203
|
+
90,
|
|
1204
|
+
91
|
|
1205
|
+
],
|
|
1206
|
+
inclusive: false
|
|
1207
|
+
},
|
|
1208
|
+
BLOCK_ARROW: {
|
|
1209
|
+
rules: [
|
|
1210
|
+
76,
|
|
1211
|
+
81,
|
|
1212
|
+
84
|
|
1213
|
+
],
|
|
1214
|
+
inclusive: false
|
|
1215
|
+
},
|
|
1216
|
+
NODE: {
|
|
1217
|
+
rules: [
|
|
1218
|
+
37,
|
|
1219
|
+
38,
|
|
1220
|
+
39,
|
|
1221
|
+
40,
|
|
1222
|
+
41,
|
|
1223
|
+
42,
|
|
1224
|
+
43,
|
|
1225
|
+
44,
|
|
1226
|
+
45,
|
|
1227
|
+
46,
|
|
1228
|
+
47,
|
|
1229
|
+
48,
|
|
1230
|
+
49,
|
|
1231
|
+
50,
|
|
1232
|
+
51,
|
|
1233
|
+
52,
|
|
1234
|
+
53,
|
|
1235
|
+
77,
|
|
1236
|
+
80
|
|
1237
|
+
],
|
|
1238
|
+
inclusive: false
|
|
1239
|
+
},
|
|
1240
|
+
md_string: {
|
|
1241
|
+
rules: [
|
|
1242
|
+
9,
|
|
1243
|
+
10,
|
|
1244
|
+
78,
|
|
1245
|
+
79
|
|
1246
|
+
],
|
|
1247
|
+
inclusive: false
|
|
1248
|
+
},
|
|
1249
|
+
space: {
|
|
1250
|
+
rules: [],
|
|
1251
|
+
inclusive: false
|
|
1252
|
+
},
|
|
1253
|
+
string: {
|
|
1254
|
+
rules: [
|
|
1255
|
+
12,
|
|
1256
|
+
13,
|
|
1257
|
+
82,
|
|
1258
|
+
83
|
|
1259
|
+
],
|
|
1260
|
+
inclusive: false
|
|
1261
|
+
},
|
|
1262
|
+
acc_descr_multiline: {
|
|
1263
|
+
rules: [34, 35],
|
|
1264
|
+
inclusive: false
|
|
1265
|
+
},
|
|
1266
|
+
acc_descr: {
|
|
1267
|
+
rules: [32],
|
|
1268
|
+
inclusive: false
|
|
1269
|
+
},
|
|
1270
|
+
acc_title: {
|
|
1271
|
+
rules: [30],
|
|
1272
|
+
inclusive: false
|
|
1273
|
+
},
|
|
1274
|
+
INITIAL: {
|
|
1275
|
+
rules: [
|
|
1276
|
+
0,
|
|
1277
|
+
1,
|
|
1278
|
+
2,
|
|
1279
|
+
3,
|
|
1280
|
+
4,
|
|
1281
|
+
5,
|
|
1282
|
+
6,
|
|
1283
|
+
7,
|
|
1284
|
+
8,
|
|
1285
|
+
11,
|
|
1286
|
+
14,
|
|
1287
|
+
15,
|
|
1288
|
+
16,
|
|
1289
|
+
17,
|
|
1290
|
+
18,
|
|
1291
|
+
19,
|
|
1292
|
+
23,
|
|
1293
|
+
26,
|
|
1294
|
+
29,
|
|
1295
|
+
31,
|
|
1296
|
+
33,
|
|
1297
|
+
36,
|
|
1298
|
+
54,
|
|
1299
|
+
55,
|
|
1300
|
+
56,
|
|
1301
|
+
57,
|
|
1302
|
+
58,
|
|
1303
|
+
59,
|
|
1304
|
+
60,
|
|
1305
|
+
61,
|
|
1306
|
+
62,
|
|
1307
|
+
63,
|
|
1308
|
+
64,
|
|
1309
|
+
65,
|
|
1310
|
+
66,
|
|
1311
|
+
67,
|
|
1312
|
+
68,
|
|
1313
|
+
69,
|
|
1314
|
+
70,
|
|
1315
|
+
71,
|
|
1316
|
+
72,
|
|
1317
|
+
73,
|
|
1318
|
+
74,
|
|
1319
|
+
75,
|
|
1320
|
+
92,
|
|
1321
|
+
93,
|
|
1322
|
+
94,
|
|
1323
|
+
95,
|
|
1324
|
+
96,
|
|
1325
|
+
97,
|
|
1326
|
+
98,
|
|
1327
|
+
104
|
|
1328
|
+
],
|
|
1329
|
+
inclusive: true
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
})();
|
|
1334
|
+
function z() {
|
|
1335
|
+
this.yy = {};
|
|
1336
|
+
}
|
|
1337
|
+
return __name(z, "Parser"), z.prototype = R, R.Parser = z, new z();
|
|
1338
|
+
})();
|
|
1339
|
+
parser.parser = parser;
|
|
1340
|
+
var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), COLOR_KEYWORD = "color", FILL_KEYWORD = "fill", BG_FILL = "bgFill", STYLECLASS_SEP = ",", classes = /* @__PURE__ */ new Map(), diagramId = "", sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, getConfig2()), "sanitizeText"), addStyleClass = /* @__PURE__ */ __name(function(e, C = "") {
|
|
1341
|
+
let w = classes.get(e);
|
|
1342
|
+
w || (w = {
|
|
1343
|
+
id: e,
|
|
1344
|
+
styles: [],
|
|
1345
|
+
textStyles: []
|
|
1346
|
+
}, classes.set(e, w)), C == null ? void 0 : C.split(STYLECLASS_SEP).forEach((e2) => {
|
|
1347
|
+
let C2 = e2.replace(/([^;]*);/, "$1").trim();
|
|
1348
|
+
if (RegExp(COLOR_KEYWORD).exec(e2)) {
|
|
1349
|
+
let e3 = C2.replace(FILL_KEYWORD, BG_FILL).replace(COLOR_KEYWORD, FILL_KEYWORD);
|
|
1350
|
+
w.textStyles.push(e3);
|
|
1351
|
+
}
|
|
1352
|
+
w.styles.push(C2);
|
|
1353
|
+
});
|
|
1354
|
+
}, "addStyleClass"), addStyle2Node = /* @__PURE__ */ __name(function(e, C = "") {
|
|
1355
|
+
let w = blockDatabase.get(e);
|
|
1356
|
+
C != null && (w.styles = C.split(STYLECLASS_SEP));
|
|
1357
|
+
}, "addStyle2Node"), setCssClass = /* @__PURE__ */ __name(function(e, C) {
|
|
1358
|
+
e.split(",").forEach(function(e2) {
|
|
1359
|
+
let w = blockDatabase.get(e2);
|
|
1360
|
+
if (w === void 0) {
|
|
1361
|
+
let C2 = e2.trim();
|
|
1362
|
+
w = {
|
|
1363
|
+
id: C2,
|
|
1364
|
+
type: "na",
|
|
1365
|
+
children: []
|
|
1366
|
+
}, blockDatabase.set(C2, w);
|
|
1367
|
+
}
|
|
1368
|
+
w.classes || (w.classes = []), w.classes.push(C);
|
|
1369
|
+
});
|
|
1370
|
+
}, "setCssClass"), populateBlockDatabase = /* @__PURE__ */ __name((e, C) => {
|
|
1371
|
+
var _a;
|
|
1372
|
+
let w = e.flat(), T = [], E = ((_a = w.find((e2) => (e2 == null ? void 0 : e2.type) === "column-setting")) == null ? void 0 : _a.columns) ?? -1;
|
|
1373
|
+
for (let e2 of w) {
|
|
1374
|
+
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") {
|
|
1375
|
+
addStyleClass(e2.id, e2.css);
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
if (e2.type === "applyClass") {
|
|
1379
|
+
setCssClass(e2.id, (e2 == null ? void 0 : e2.styleClass) ?? "");
|
|
1380
|
+
continue;
|
|
1381
|
+
}
|
|
1382
|
+
if (e2.type === "applyStyles") {
|
|
1383
|
+
(e2 == null ? void 0 : e2.stylesStr) && addStyle2Node(e2.id, e2 == null ? void 0 : e2.stylesStr);
|
|
1384
|
+
continue;
|
|
1385
|
+
}
|
|
1386
|
+
if (e2.type === "column-setting") C.columns = e2.columns ?? -1;
|
|
1387
|
+
else if (e2.type === "edge") {
|
|
1388
|
+
let C2 = (edgeCount.get(e2.id) ?? 0) + 1;
|
|
1389
|
+
edgeCount.set(e2.id, C2), e2.id = C2 + "-" + e2.id, edgeList.push(e2);
|
|
1390
|
+
} else {
|
|
1391
|
+
e2.label || (e2.type === "composite" ? e2.label = "" : e2.label = e2.id);
|
|
1392
|
+
let C2 = blockDatabase.get(e2.id);
|
|
1393
|
+
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") {
|
|
1394
|
+
let C3 = e2.width ?? 1;
|
|
1395
|
+
for (let w2 = 0; w2 < C3; w2++) {
|
|
1396
|
+
let C4 = clone(e2);
|
|
1397
|
+
C4.id = C4.id + "-" + w2, blockDatabase.set(C4.id, C4), T.push(C4);
|
|
1398
|
+
}
|
|
1399
|
+
} else C2 === void 0 && T.push(e2);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
C.children = T;
|
|
1403
|
+
}, "populateBlockDatabase"), blocks = [], rootBlock = {
|
|
1404
|
+
id: "root",
|
|
1405
|
+
type: "composite",
|
|
1406
|
+
children: [],
|
|
1407
|
+
columns: -1
|
|
1408
|
+
}, clear2 = /* @__PURE__ */ __name(() => {
|
|
1409
|
+
log.debug("Clear called"), clear(), rootBlock = {
|
|
1410
|
+
id: "root",
|
|
1411
|
+
type: "composite",
|
|
1412
|
+
children: [],
|
|
1413
|
+
columns: -1
|
|
1414
|
+
}, blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]), blocks = [], classes = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), diagramId = "";
|
|
1415
|
+
}, "clear");
|
|
1416
|
+
function typeStr2Type(e) {
|
|
1417
|
+
switch (log.debug("typeStr2Type", e), e) {
|
|
1418
|
+
case "[]":
|
|
1419
|
+
return "square";
|
|
1420
|
+
case "()":
|
|
1421
|
+
return log.debug("we have a round"), "round";
|
|
1422
|
+
case "(())":
|
|
1423
|
+
return "circle";
|
|
1424
|
+
case ">]":
|
|
1425
|
+
return "rect_left_inv_arrow";
|
|
1426
|
+
case "{}":
|
|
1427
|
+
return "diamond";
|
|
1428
|
+
case "{{}}":
|
|
1429
|
+
return "hexagon";
|
|
1430
|
+
case "([])":
|
|
1431
|
+
return "stadium";
|
|
1432
|
+
case "[[]]":
|
|
1433
|
+
return "subroutine";
|
|
1434
|
+
case "[()]":
|
|
1435
|
+
return "cylinder";
|
|
1436
|
+
case "((()))":
|
|
1437
|
+
return "doublecircle";
|
|
1438
|
+
case "[//]":
|
|
1439
|
+
return "lean_right";
|
|
1440
|
+
case "[\\\\]":
|
|
1441
|
+
return "lean_left";
|
|
1442
|
+
case "[/\\]":
|
|
1443
|
+
return "trapezoid";
|
|
1444
|
+
case "[\\/]":
|
|
1445
|
+
return "inv_trapezoid";
|
|
1446
|
+
case "<[]>":
|
|
1447
|
+
return "block_arrow";
|
|
1448
|
+
default:
|
|
1449
|
+
return "na";
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
__name(typeStr2Type, "typeStr2Type");
|
|
1453
|
+
function edgeTypeStr2Type(e) {
|
|
1454
|
+
switch (log.debug("typeStr2Type", e), e) {
|
|
1455
|
+
case "==":
|
|
1456
|
+
return "thick";
|
|
1457
|
+
default:
|
|
1458
|
+
return "normal";
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
__name(edgeTypeStr2Type, "edgeTypeStr2Type");
|
|
1462
|
+
function edgeStrToEdgeData(e) {
|
|
1463
|
+
switch (e.trim().slice(-1)) {
|
|
1464
|
+
case "x":
|
|
1465
|
+
return "arrow_cross";
|
|
1466
|
+
case "o":
|
|
1467
|
+
return "arrow_circle";
|
|
1468
|
+
case ">":
|
|
1469
|
+
return "arrow_point";
|
|
1470
|
+
default:
|
|
1471
|
+
return "";
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
__name(edgeStrToEdgeData, "edgeStrToEdgeData");
|
|
1475
|
+
function edgeStrToEdgeStartData(e) {
|
|
1476
|
+
switch (e.trim().charAt(0)) {
|
|
1477
|
+
case "x":
|
|
1478
|
+
return "arrow_cross";
|
|
1479
|
+
case "o":
|
|
1480
|
+
return "arrow_circle";
|
|
1481
|
+
case "<":
|
|
1482
|
+
return "arrow_point";
|
|
1483
|
+
default:
|
|
1484
|
+
return "arrow_open";
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
__name(edgeStrToEdgeStartData, "edgeStrToEdgeStartData");
|
|
1488
|
+
function edgeStrToThickness(e) {
|
|
1489
|
+
return e.includes("==") ? "thick" : "normal";
|
|
1490
|
+
}
|
|
1491
|
+
__name(edgeStrToThickness, "edgeStrToThickness");
|
|
1492
|
+
function edgeStrToPattern(e) {
|
|
1493
|
+
return e.includes(".-") ? "dotted" : "solid";
|
|
1494
|
+
}
|
|
1495
|
+
__name(edgeStrToPattern, "edgeStrToPattern");
|
|
1496
|
+
var cnt = 0, blockDB_default = {
|
|
1497
|
+
getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
|
|
1498
|
+
typeStr2Type,
|
|
1499
|
+
edgeTypeStr2Type,
|
|
1500
|
+
edgeStrToEdgeData,
|
|
1501
|
+
edgeStrToEdgeStartData,
|
|
1502
|
+
edgeStrToThickness,
|
|
1503
|
+
edgeStrToPattern,
|
|
1504
|
+
getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
|
|
1505
|
+
getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
|
|
1506
|
+
getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
|
|
1507
|
+
getEdges: /* @__PURE__ */ __name(() => edgeList, "getEdges"),
|
|
1508
|
+
setHierarchy: /* @__PURE__ */ __name((e) => {
|
|
1509
|
+
rootBlock.children = e, populateBlockDatabase(e, rootBlock), blocks = rootBlock.children;
|
|
1510
|
+
}, "setHierarchy"),
|
|
1511
|
+
getBlock: /* @__PURE__ */ __name((e) => blockDatabase.get(e), "getBlock"),
|
|
1512
|
+
setBlock: /* @__PURE__ */ __name((e) => {
|
|
1513
|
+
blockDatabase.set(e.id, e);
|
|
1514
|
+
}, "setBlock"),
|
|
1515
|
+
getColumns: /* @__PURE__ */ __name((e) => {
|
|
1516
|
+
let C = blockDatabase.get(e);
|
|
1517
|
+
return C ? C.columns ? C.columns : C.children ? C.children.length : -1 : -1;
|
|
1518
|
+
}, "getColumns"),
|
|
1519
|
+
getClasses: /* @__PURE__ */ __name(function() {
|
|
1520
|
+
return classes;
|
|
1521
|
+
}, "getClasses"),
|
|
1522
|
+
clear: clear2,
|
|
1523
|
+
generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId"),
|
|
1524
|
+
setDiagramId: /* @__PURE__ */ __name((e) => {
|
|
1525
|
+
diagramId = e;
|
|
1526
|
+
}, "setDiagramId"),
|
|
1527
|
+
getDiagramId: /* @__PURE__ */ __name(() => diagramId, "getDiagramId")
|
|
1528
|
+
}, fade = /* @__PURE__ */ __name((e, C) => {
|
|
1529
|
+
let w = channel_default;
|
|
1530
|
+
return rgba_default(w(e, "r"), w(e, "g"), w(e, "b"), C);
|
|
1531
|
+
}, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
|
|
1532
|
+
font-family: ${e.fontFamily};
|
|
1533
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
1534
|
+
}
|
|
1535
|
+
.cluster-label text {
|
|
1536
|
+
fill: ${e.titleColor};
|
|
1537
|
+
}
|
|
1538
|
+
.cluster-label span,p {
|
|
1539
|
+
color: ${e.titleColor};
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
.label text,span,p {
|
|
1545
|
+
fill: ${e.nodeTextColor || e.textColor};
|
|
1546
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.node rect,
|
|
1550
|
+
.node circle,
|
|
1551
|
+
.node ellipse,
|
|
1552
|
+
.node polygon,
|
|
1553
|
+
.node path {
|
|
1554
|
+
fill: ${e.mainBkg};
|
|
1555
|
+
stroke: ${e.nodeBorder};
|
|
1556
|
+
stroke-width: 1px;
|
|
1557
|
+
}
|
|
1558
|
+
.flowchart-label text {
|
|
1559
|
+
text-anchor: middle;
|
|
1560
|
+
}
|
|
1561
|
+
// .flowchart-label .text-outer-tspan {
|
|
1562
|
+
// text-anchor: middle;
|
|
1563
|
+
// }
|
|
1564
|
+
// .flowchart-label .text-inner-tspan {
|
|
1565
|
+
// text-anchor: start;
|
|
1566
|
+
// }
|
|
1567
|
+
|
|
1568
|
+
.node .label {
|
|
1569
|
+
text-align: center;
|
|
1570
|
+
}
|
|
1571
|
+
.node.clickable {
|
|
1572
|
+
cursor: pointer;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.arrowheadPath {
|
|
1576
|
+
fill: ${e.arrowheadColor};
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
.edgePath .path {
|
|
1580
|
+
stroke: ${e.lineColor};
|
|
1581
|
+
stroke-width: 2.0px;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.flowchart-link {
|
|
1585
|
+
stroke: ${e.lineColor};
|
|
1586
|
+
fill: none;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.edgeLabel {
|
|
1590
|
+
background-color: ${e.edgeLabelBackground};
|
|
1591
|
+
/*
|
|
1592
|
+
* This is for backward compatibility with existing code that didn't
|
|
1593
|
+
* add a \`<p>\` around edge labels.
|
|
1594
|
+
*
|
|
1595
|
+
* TODO: We should probably remove this in a future release.
|
|
1596
|
+
*/
|
|
1597
|
+
p {
|
|
1598
|
+
margin: 0;
|
|
1599
|
+
padding: 0;
|
|
1600
|
+
display: inline;
|
|
1601
|
+
}
|
|
1602
|
+
rect {
|
|
1603
|
+
opacity: 0.5;
|
|
1604
|
+
background-color: ${e.edgeLabelBackground};
|
|
1605
|
+
fill: ${e.edgeLabelBackground};
|
|
1606
|
+
}
|
|
1607
|
+
text-align: center;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
/* For html labels only */
|
|
1611
|
+
.labelBkg {
|
|
1612
|
+
background-color: ${e.edgeLabelBackground};
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.node .cluster {
|
|
1616
|
+
// fill: ${fade(e.mainBkg, 0.5)};
|
|
1617
|
+
fill: ${fade(e.clusterBkg, 0.5)};
|
|
1618
|
+
stroke: ${fade(e.clusterBorder, 0.2)};
|
|
1619
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
1620
|
+
stroke-width: 1px;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
.cluster text {
|
|
1624
|
+
fill: ${e.titleColor};
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
.cluster span,p {
|
|
1628
|
+
color: ${e.titleColor};
|
|
1629
|
+
}
|
|
1630
|
+
/* .cluster div {
|
|
1631
|
+
color: ${e.titleColor};
|
|
1632
|
+
} */
|
|
1633
|
+
|
|
1634
|
+
div.mermaidTooltip {
|
|
1635
|
+
position: absolute;
|
|
1636
|
+
text-align: center;
|
|
1637
|
+
max-width: 200px;
|
|
1638
|
+
padding: 2px;
|
|
1639
|
+
font-family: ${e.fontFamily};
|
|
1640
|
+
font-size: 12px;
|
|
1641
|
+
background: ${e.tertiaryColor};
|
|
1642
|
+
border: 1px solid ${e.border2};
|
|
1643
|
+
border-radius: 2px;
|
|
1644
|
+
pointer-events: none;
|
|
1645
|
+
z-index: 100;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.flowchartTitleText {
|
|
1649
|
+
text-anchor: middle;
|
|
1650
|
+
font-size: 18px;
|
|
1651
|
+
fill: ${e.textColor};
|
|
1652
|
+
}
|
|
1653
|
+
${getIconStyles()}
|
|
1654
|
+
`, "getStyles"), insertMarkers = /* @__PURE__ */ __name((e, C, w, T) => {
|
|
1655
|
+
C.forEach((C2) => {
|
|
1656
|
+
markers[C2](e, w, T);
|
|
1657
|
+
});
|
|
1658
|
+
}, "insertMarkers"), markers = {
|
|
1659
|
+
extension: /* @__PURE__ */ __name((e, C, w) => {
|
|
1660
|
+
log.trace("Making markers for ", w), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionStart").attr("class", "marker extension " + C).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", w + "_" + C + "-extensionEnd").attr("class", "marker extension " + C).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");
|
|
1661
|
+
}, "extension"),
|
|
1662
|
+
composition: /* @__PURE__ */ __name((e, C, w) => {
|
|
1663
|
+
e.append("defs").append("marker").attr("id", w + "_" + C + "-compositionStart").attr("class", "marker composition " + C).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", w + "_" + C + "-compositionEnd").attr("class", "marker composition " + C).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");
|
|
1664
|
+
}, "composition"),
|
|
1665
|
+
aggregation: /* @__PURE__ */ __name((e, C, w) => {
|
|
1666
|
+
e.append("defs").append("marker").attr("id", w + "_" + C + "-aggregationStart").attr("class", "marker aggregation " + C).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", w + "_" + C + "-aggregationEnd").attr("class", "marker aggregation " + C).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");
|
|
1667
|
+
}, "aggregation"),
|
|
1668
|
+
dependency: /* @__PURE__ */ __name((e, C, w) => {
|
|
1669
|
+
e.append("defs").append("marker").attr("id", w + "_" + C + "-dependencyStart").attr("class", "marker dependency " + C).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", w + "_" + C + "-dependencyEnd").attr("class", "marker dependency " + C).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");
|
|
1670
|
+
}, "dependency"),
|
|
1671
|
+
lollipop: /* @__PURE__ */ __name((e, C, w) => {
|
|
1672
|
+
e.append("defs").append("marker").attr("id", w + "_" + C + "-lollipopStart").attr("class", "marker lollipop " + C).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", w + "_" + C + "-lollipopEnd").attr("class", "marker lollipop " + C).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);
|
|
1673
|
+
}, "lollipop"),
|
|
1674
|
+
point: /* @__PURE__ */ __name((e, C, w) => {
|
|
1675
|
+
e.append("marker").attr("id", w + "_" + C + "-pointEnd").attr("class", "marker " + C).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", w + "_" + C + "-pointStart").attr("class", "marker " + C).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");
|
|
1676
|
+
}, "point"),
|
|
1677
|
+
circle: /* @__PURE__ */ __name((e, C, w) => {
|
|
1678
|
+
e.append("marker").attr("id", w + "_" + C + "-circleEnd").attr("class", "marker " + C).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", w + "_" + C + "-circleStart").attr("class", "marker " + C).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");
|
|
1679
|
+
}, "circle"),
|
|
1680
|
+
cross: /* @__PURE__ */ __name((e, C, w) => {
|
|
1681
|
+
e.append("marker").attr("id", w + "_" + C + "-crossEnd").attr("class", "marker cross " + C).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", w + "_" + C + "-crossStart").attr("class", "marker cross " + C).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");
|
|
1682
|
+
}, "cross"),
|
|
1683
|
+
barb: /* @__PURE__ */ __name((e, C, w) => {
|
|
1684
|
+
e.append("defs").append("marker").attr("id", w + "_" + C + "-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");
|
|
1685
|
+
}, "barb")
|
|
1686
|
+
}, markers_default = insertMarkers;
|
|
1687
|
+
function calculateBlockPosition(e, C) {
|
|
1688
|
+
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1689
|
+
if (C < 0 || !Number.isInteger(C)) throw Error("Position must be a non-negative integer." + C);
|
|
1690
|
+
return e < 0 ? {
|
|
1691
|
+
px: C,
|
|
1692
|
+
py: 0
|
|
1693
|
+
} : e === 1 ? {
|
|
1694
|
+
px: 0,
|
|
1695
|
+
py: C
|
|
1696
|
+
} : {
|
|
1697
|
+
px: C % e,
|
|
1698
|
+
py: Math.floor(C / e)
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
__name(calculateBlockPosition, "calculateBlockPosition");
|
|
1702
|
+
var getMaxChildSize = /* @__PURE__ */ __name((e) => {
|
|
1703
|
+
let C = 0, w = 0;
|
|
1704
|
+
for (let T of e.children) {
|
|
1705
|
+
let { width: e2, height: E, x: D, y: O } = T.size ?? {
|
|
1706
|
+
width: 0,
|
|
1707
|
+
height: 0,
|
|
1708
|
+
x: 0,
|
|
1709
|
+
y: 0
|
|
1710
|
+
};
|
|
1711
|
+
if (log.debug("getMaxChildSize abc95 child:", T.id, "width:", e2, "height:", E, "x:", D, "y:", O, T.type), T.type === "space") continue;
|
|
1712
|
+
let k = e2 / (T.widthInColumns ?? 1);
|
|
1713
|
+
k > C && (C = k), E > w && (w = E);
|
|
1714
|
+
}
|
|
1715
|
+
return {
|
|
1716
|
+
width: C,
|
|
1717
|
+
height: w
|
|
1718
|
+
};
|
|
1719
|
+
}, "getMaxChildSize");
|
|
1720
|
+
function setBlockSizes(e, C, w = 0, T = 0, E = 8) {
|
|
1721
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
1722
|
+
log.debug("setBlockSizes abc95 (start)", e.id, (_a = e == null ? void 0 : e.size) == null ? void 0 : _a.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", w), ((_b = e == null ? void 0 : e.size) == null ? void 0 : _b.width) || (e.size = {
|
|
1723
|
+
width: w,
|
|
1724
|
+
height: T,
|
|
1725
|
+
x: 0,
|
|
1726
|
+
y: 0
|
|
1727
|
+
});
|
|
1728
|
+
let D = 0, O = 0;
|
|
1729
|
+
if (((_c = e.children) == null ? void 0 : _c.length) > 0) {
|
|
1730
|
+
for (let w2 of e.children) setBlockSizes(w2, C, 0, 0, E);
|
|
1731
|
+
let k = getMaxChildSize(e);
|
|
1732
|
+
D = k.width, O = k.height, log.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", D, O);
|
|
1733
|
+
for (let C2 of e.children) C2.size && (log.debug(`abc95 Setting size of children of ${e.id} id=${C2.id} ${D} ${O} ${JSON.stringify(C2.size)}`), C2.size.width = D * (C2.widthInColumns ?? 1) + E * ((C2.widthInColumns ?? 1) - 1), C2.size.height = O, C2.size.x = 0, C2.size.y = 0, log.debug(`abc95 updating size of ${e.id} children child:${C2.id} maxWidth:${D} maxHeight:${O}`));
|
|
1734
|
+
for (let w2 of e.children) setBlockSizes(w2, C, D, O, E);
|
|
1735
|
+
let A = e.columns ?? -1, j = 0;
|
|
1736
|
+
for (let C2 of e.children) j += C2.widthInColumns ?? 1;
|
|
1737
|
+
let M = e.children.length;
|
|
1738
|
+
A > 0 && A < j && (M = A);
|
|
1739
|
+
let N = Math.ceil(j / M), P = M * (D + E) + E, F = N * (O + E) + E;
|
|
1740
|
+
if (P < w) {
|
|
1741
|
+
log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${w} siblingHeight ${T} width ${P}`), P = w, F = T;
|
|
1742
|
+
let C2 = (w - M * E - E) / M, k2 = (T - N * E - E) / N;
|
|
1743
|
+
log.debug("Size indata abc88", e.id, "childWidth", C2, "maxWidth", D), log.debug("Size indata abc88", e.id, "childHeight", k2, "maxHeight", O), log.debug("Size indata abc88 xSize", M, "padding", E);
|
|
1744
|
+
for (let w2 of e.children) w2.size && (w2.size.width = C2, w2.size.height = k2, w2.size.x = 0, w2.size.y = 0);
|
|
1745
|
+
}
|
|
1746
|
+
if (log.debug(`abc95 (finale calc) ${e.id} xSize ${M} ySize ${N} columns ${A}${e.children.length} width=${Math.max(P, ((_d = e.size) == null ? void 0 : _d.width) || 0)}`), P < (((_e = e == null ? void 0 : e.size) == null ? void 0 : _e.width) || 0)) {
|
|
1747
|
+
P = ((_f = e == null ? void 0 : e.size) == null ? void 0 : _f.width) || 0;
|
|
1748
|
+
let C2 = A > 0 ? Math.min(e.children.length, A) : e.children.length;
|
|
1749
|
+
if (C2 > 0) {
|
|
1750
|
+
let w2 = (P - C2 * E - E) / C2;
|
|
1751
|
+
log.debug("abc95 (growing to fit) width", e.id, P, (_g = e.size) == null ? void 0 : _g.width, w2);
|
|
1752
|
+
for (let C3 of e.children) C3.size && (C3.size.width = w2);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
e.size = {
|
|
1756
|
+
width: P,
|
|
1757
|
+
height: F,
|
|
1758
|
+
x: 0,
|
|
1759
|
+
y: 0
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
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);
|
|
1763
|
+
}
|
|
1764
|
+
__name(setBlockSizes, "setBlockSizes");
|
|
1765
|
+
function layoutBlocks(e, C, w = 8) {
|
|
1766
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
1767
|
+
log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(_a = e == null ? void 0 : e.size) == null ? void 0 : _a.x} y: ${(_b = e == null ? void 0 : e.size) == null ? void 0 : _b.y} width: ${(_c = e == null ? void 0 : e.size) == null ? void 0 : _c.width}`);
|
|
1768
|
+
let T = e.columns ?? -1;
|
|
1769
|
+
if (log.debug("layoutBlocks columns abc95", e.id, "=>", T, e), e.children && e.children.length > 0) {
|
|
1770
|
+
let E = ((_e = (_d = e == null ? void 0 : e.children[0]) == null ? void 0 : _d.size) == null ? void 0 : _e.width) ?? 0, D = e.children.length * E + (e.children.length - 1) * w;
|
|
1771
|
+
log.debug("widthOfChildren 88", D, "posX");
|
|
1772
|
+
let O = /* @__PURE__ */ new Map();
|
|
1773
|
+
{
|
|
1774
|
+
let C2 = 0;
|
|
1775
|
+
for (let w2 of e.children) {
|
|
1776
|
+
if (!w2.size) continue;
|
|
1777
|
+
let { py: e2 } = calculateBlockPosition(T, C2), E2 = O.get(e2) ?? 0;
|
|
1778
|
+
w2.size.height > E2 && O.set(e2, w2.size.height);
|
|
1779
|
+
let D2 = (w2 == null ? void 0 : w2.widthInColumns) ?? 1;
|
|
1780
|
+
T > 0 && (D2 = Math.min(D2, T - C2 % T)), C2 += D2;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
let k = /* @__PURE__ */ new Map();
|
|
1784
|
+
{
|
|
1785
|
+
let e2 = 0, C2 = [...O.keys()].sort((e3, C3) => e3 - C3);
|
|
1786
|
+
for (let T2 of C2) k.set(T2, e2), e2 += (O.get(T2) ?? 0) + w;
|
|
1787
|
+
}
|
|
1788
|
+
let A = 0;
|
|
1789
|
+
log.debug("abc91 block?.size?.x", e.id, (_f = e == null ? void 0 : e.size) == null ? void 0 : _f.x);
|
|
1790
|
+
let j = ((_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) : -w, M = 0;
|
|
1791
|
+
for (let E2 of e.children) {
|
|
1792
|
+
let D2 = e;
|
|
1793
|
+
if (!E2.size) continue;
|
|
1794
|
+
let { width: N, height: P } = E2.size, { px: F, py: I } = calculateBlockPosition(T, A);
|
|
1795
|
+
if (I != M && (M = I, j = ((_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) : -w, log.debug("New row in layout for block", e.id, " and child ", E2.id, M)), log.debug(`abc89 layout blocks (child) id: ${E2.id} Pos: ${A} (px, py) ${F},${I} (${(_m = D2 == null ? void 0 : D2.size) == null ? void 0 : _m.x},${(_n = D2 == null ? void 0 : D2.size) == null ? void 0 : _n.y}) parent: ${D2.id} width: ${N}${w}`), D2.size) {
|
|
1796
|
+
let e2 = N / 2;
|
|
1797
|
+
E2.size.x = j + w + e2, log.debug(`abc91 layout blocks (calc) px, pyid:${E2.id} startingPos=X${j} new startingPosX${E2.size.x} ${e2} padding=${w} width=${N} halfWidth=${e2} => x:${E2.size.x} y:${E2.size.y} ${E2.widthInColumns} (width * (child?.w || 1)) / 2 ${N * ((E2 == null ? void 0 : E2.widthInColumns) ?? 1) / 2}`), j = E2.size.x + e2;
|
|
1798
|
+
let C2 = k.get(I) ?? 0, T2 = O.get(I) ?? P;
|
|
1799
|
+
E2.size.y = D2.size.y - D2.size.height / 2 + C2 + T2 / 2 + w, log.debug(`abc88 layout blocks (calc) px, pyid:${E2.id}startingPosX${j}${w}${e2}=>x:${E2.size.x}y:${E2.size.y}${E2.widthInColumns}(width * (child?.w || 1)) / 2${N * ((E2 == null ? void 0 : E2.widthInColumns) ?? 1) / 2}`);
|
|
1800
|
+
}
|
|
1801
|
+
E2.children && layoutBlocks(E2, C, w);
|
|
1802
|
+
let L = (E2 == null ? void 0 : E2.widthInColumns) ?? 1;
|
|
1803
|
+
T > 0 && (L = Math.min(L, T - A % T)), A += L, log.debug("abc88 columnsPos", E2, A);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
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}`);
|
|
1807
|
+
}
|
|
1808
|
+
__name(layoutBlocks, "layoutBlocks");
|
|
1809
|
+
function findBounds(e, { minX: C, minY: w, maxX: T, maxY: E } = {
|
|
1810
|
+
minX: 0,
|
|
1811
|
+
minY: 0,
|
|
1812
|
+
maxX: 0,
|
|
1813
|
+
maxY: 0
|
|
1814
|
+
}) {
|
|
1815
|
+
if (e.size && e.id !== "root") {
|
|
1816
|
+
let { x: D, y: O, width: k, height: A } = e.size;
|
|
1817
|
+
D - k / 2 < C && (C = D - k / 2), O - A / 2 < w && (w = O - A / 2), D + k / 2 > T && (T = D + k / 2), O + A / 2 > E && (E = O + A / 2);
|
|
1818
|
+
}
|
|
1819
|
+
if (e.children) for (let D of e.children) ({ minX: C, minY: w, maxX: T, maxY: E } = findBounds(D, {
|
|
1820
|
+
minX: C,
|
|
1821
|
+
minY: w,
|
|
1822
|
+
maxX: T,
|
|
1823
|
+
maxY: E
|
|
1824
|
+
}));
|
|
1825
|
+
return {
|
|
1826
|
+
minX: C,
|
|
1827
|
+
minY: w,
|
|
1828
|
+
maxX: T,
|
|
1829
|
+
maxY: E
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
__name(findBounds, "findBounds");
|
|
1833
|
+
function layout(e) {
|
|
1834
|
+
var _a, _b;
|
|
1835
|
+
let C = e.getBlock("root");
|
|
1836
|
+
if (!C) return;
|
|
1837
|
+
let w = ((_b = (_a = getConfig2()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) ?? 8;
|
|
1838
|
+
setBlockSizes(C, e, 0, 0, w), layoutBlocks(C, e, w), log.debug("getBlocks", JSON.stringify(C, null, 2));
|
|
1839
|
+
let { minX: T, minY: E, maxX: D, maxY: O } = findBounds(C), k = O - E;
|
|
1840
|
+
return {
|
|
1841
|
+
x: T,
|
|
1842
|
+
y: E,
|
|
1843
|
+
width: D - T,
|
|
1844
|
+
height: k
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
__name(layout, "layout");
|
|
1848
|
+
var createLabel_default = /* @__PURE__ */ __name(async (e, C, w, T = false, E = false) => {
|
|
1849
|
+
let D = C || "";
|
|
1850
|
+
typeof D == "object" && (D = D[0]);
|
|
1851
|
+
let O = getConfig2(), k = getEffectiveHtmlLabels(O);
|
|
1852
|
+
return await createText(e, D, {
|
|
1853
|
+
style: w,
|
|
1854
|
+
isTitle: T,
|
|
1855
|
+
useHtmlLabels: k,
|
|
1856
|
+
markdown: false,
|
|
1857
|
+
isNode: E,
|
|
1858
|
+
width: Infinity
|
|
1859
|
+
}, O);
|
|
1860
|
+
}, "createLabel"), addEdgeMarkers = /* @__PURE__ */ __name((e, C, w, T, E) => {
|
|
1861
|
+
C.arrowTypeStart && addEdgeMarker(e, "start", C.arrowTypeStart, w, T, E), C.arrowTypeEnd && addEdgeMarker(e, "end", C.arrowTypeEnd, w, T, E);
|
|
1862
|
+
}, "addEdgeMarkers"), arrowTypesMap = {
|
|
1863
|
+
arrow_cross: "cross",
|
|
1864
|
+
arrow_point: "point",
|
|
1865
|
+
arrow_barb: "barb",
|
|
1866
|
+
arrow_circle: "circle",
|
|
1867
|
+
aggregation: "aggregation",
|
|
1868
|
+
extension: "extension",
|
|
1869
|
+
composition: "composition",
|
|
1870
|
+
dependency: "dependency",
|
|
1871
|
+
lollipop: "lollipop"
|
|
1872
|
+
}, addEdgeMarker = /* @__PURE__ */ __name((e, C, w, T, E, D) => {
|
|
1873
|
+
let O = arrowTypesMap[w];
|
|
1874
|
+
if (!O) {
|
|
1875
|
+
log.warn(`Unknown arrow type: ${w}`);
|
|
1876
|
+
return;
|
|
1877
|
+
}
|
|
1878
|
+
let k = C === "start" ? "Start" : "End";
|
|
1879
|
+
e.attr(`marker-${C}`, `url(${T}#${E}_${D}-${O}${k})`);
|
|
1880
|
+
}, "addEdgeMarker"), edgeLabels = {}, terminalLabels = {}, insertEdgeLabel = /* @__PURE__ */ __name(async (e, C) => {
|
|
1881
|
+
let w = getConfig2(), T = getEffectiveHtmlLabels(w), E = e.insert("g").attr("class", "edgeLabel"), D = E.insert("g").attr("class", "label"), O = C.labelType === "markdown", k = await createText(e, C.label, {
|
|
1882
|
+
style: C.labelStyle,
|
|
1883
|
+
useHtmlLabels: T,
|
|
1884
|
+
addSvgBackground: O,
|
|
1885
|
+
isNode: false,
|
|
1886
|
+
markdown: O,
|
|
1887
|
+
width: O ? void 0 : Infinity
|
|
1888
|
+
}, w);
|
|
1889
|
+
D.node().appendChild(k);
|
|
1890
|
+
let A = k.getBBox(), j = A;
|
|
1891
|
+
if (T) {
|
|
1892
|
+
let e2 = k.children[0], C2 = select_default(k);
|
|
1893
|
+
A = e2.getBoundingClientRect(), j = A, C2.attr("width", A.width), C2.attr("height", A.height);
|
|
1894
|
+
} else {
|
|
1895
|
+
let e2 = select_default(k).select("text").node();
|
|
1896
|
+
e2 && typeof e2.getBBox == "function" && (j = e2.getBBox());
|
|
1897
|
+
}
|
|
1898
|
+
D.attr("transform", computeLabelTransform(j, T)), edgeLabels[C.id] = E, C.width = A.width, C.height = A.height;
|
|
1899
|
+
let M;
|
|
1900
|
+
if (C.startLabelLeft) {
|
|
1901
|
+
let w2 = e.insert("g").attr("class", "edgeTerminals"), E2 = w2.insert("g").attr("class", "inner"), D2 = await createLabel_default(E2, C.startLabelLeft, C.labelStyle);
|
|
1902
|
+
M = D2;
|
|
1903
|
+
let O2 = D2.getBBox();
|
|
1904
|
+
if (T) {
|
|
1905
|
+
let e2 = D2.children[0], C2 = select_default(D2);
|
|
1906
|
+
O2 = e2.getBoundingClientRect(), C2.attr("width", O2.width), C2.attr("height", O2.height);
|
|
1907
|
+
}
|
|
1908
|
+
E2.attr("transform", computeLabelTransform(O2, T)), terminalLabels[C.id] || (terminalLabels[C.id] = {}), terminalLabels[C.id].startLeft = w2, setTerminalWidth(M, C.startLabelLeft);
|
|
1909
|
+
}
|
|
1910
|
+
if (C.startLabelRight) {
|
|
1911
|
+
let w2 = e.insert("g").attr("class", "edgeTerminals"), E2 = w2.insert("g").attr("class", "inner"), D2 = await createLabel_default(E2, C.startLabelRight, C.labelStyle);
|
|
1912
|
+
M = D2;
|
|
1913
|
+
let O2 = D2.getBBox();
|
|
1914
|
+
if (T) {
|
|
1915
|
+
let e2 = D2.children[0], C2 = select_default(D2);
|
|
1916
|
+
O2 = e2.getBoundingClientRect(), C2.attr("width", O2.width), C2.attr("height", O2.height);
|
|
1917
|
+
}
|
|
1918
|
+
E2.attr("transform", computeLabelTransform(O2, T)), terminalLabels[C.id] || (terminalLabels[C.id] = {}), terminalLabels[C.id].startRight = w2, setTerminalWidth(M, C.startLabelRight);
|
|
1919
|
+
}
|
|
1920
|
+
if (C.endLabelLeft) {
|
|
1921
|
+
let w2 = e.insert("g").attr("class", "edgeTerminals"), E2 = w2.insert("g").attr("class", "inner"), D2 = await createLabel_default(w2, C.endLabelLeft, C.labelStyle);
|
|
1922
|
+
M = D2;
|
|
1923
|
+
let O2 = D2.getBBox();
|
|
1924
|
+
if (T) {
|
|
1925
|
+
let e2 = D2.children[0], C2 = select_default(D2);
|
|
1926
|
+
O2 = e2.getBoundingClientRect(), C2.attr("width", O2.width), C2.attr("height", O2.height);
|
|
1927
|
+
}
|
|
1928
|
+
E2.attr("transform", computeLabelTransform(O2, T)), terminalLabels[C.id] || (terminalLabels[C.id] = {}), terminalLabels[C.id].endLeft = w2, setTerminalWidth(M, C.endLabelLeft);
|
|
1929
|
+
}
|
|
1930
|
+
if (C.endLabelRight) {
|
|
1931
|
+
let w2 = e.insert("g").attr("class", "edgeTerminals"), E2 = w2.insert("g").attr("class", "inner"), D2 = await createLabel_default(w2, C.endLabelRight, C.labelStyle);
|
|
1932
|
+
M = D2;
|
|
1933
|
+
let O2 = D2.getBBox();
|
|
1934
|
+
if (T) {
|
|
1935
|
+
let e2 = D2.children[0], C2 = select_default(D2);
|
|
1936
|
+
O2 = e2.getBoundingClientRect(), C2.attr("width", O2.width), C2.attr("height", O2.height);
|
|
1937
|
+
}
|
|
1938
|
+
E2.attr("transform", computeLabelTransform(O2, T)), terminalLabels[C.id] || (terminalLabels[C.id] = {}), terminalLabels[C.id].endRight = w2, setTerminalWidth(M, C.endLabelRight);
|
|
1939
|
+
}
|
|
1940
|
+
return k;
|
|
1941
|
+
}, "insertEdgeLabel");
|
|
1942
|
+
function setTerminalWidth(e, C) {
|
|
1943
|
+
getEffectiveHtmlLabels(getConfig2()) && e && (e.style.width = C.length * 9 + "px", e.style.height = "12px");
|
|
1944
|
+
}
|
|
1945
|
+
__name(setTerminalWidth, "setTerminalWidth");
|
|
1946
|
+
var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
|
|
1947
|
+
log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], C);
|
|
1948
|
+
let w = C.updatedPath ? C.updatedPath : C.originalPath, { subGraphTitleTotalMargin: T } = getSubGraphTitleMargins(getConfig2());
|
|
1949
|
+
if (e.label) {
|
|
1950
|
+
let E = edgeLabels[e.id], D = e.x, O = e.y;
|
|
1951
|
+
if (w) {
|
|
1952
|
+
let T2 = utils_default.calcLabelPosition(w);
|
|
1953
|
+
log.debug("Moving label " + e.label + " from (", D, ",", O, ") to (", T2.x, ",", T2.y, ") abc88"), C.updatedPath && (D = T2.x, O = T2.y);
|
|
1954
|
+
}
|
|
1955
|
+
E.attr("transform", `translate(${D}, ${O + T / 2})`);
|
|
1956
|
+
}
|
|
1957
|
+
if (e.startLabelLeft) {
|
|
1958
|
+
let C2 = terminalLabels[e.id].startLeft, T2 = e.x, E = e.y;
|
|
1959
|
+
if (w) {
|
|
1960
|
+
let C3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", w);
|
|
1961
|
+
T2 = C3.x, E = C3.y;
|
|
1962
|
+
}
|
|
1963
|
+
C2.attr("transform", `translate(${T2}, ${E})`);
|
|
1964
|
+
}
|
|
1965
|
+
if (e.startLabelRight) {
|
|
1966
|
+
let C2 = terminalLabels[e.id].startRight, T2 = e.x, E = e.y;
|
|
1967
|
+
if (w) {
|
|
1968
|
+
let C3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", w);
|
|
1969
|
+
T2 = C3.x, E = C3.y;
|
|
1970
|
+
}
|
|
1971
|
+
C2.attr("transform", `translate(${T2}, ${E})`);
|
|
1972
|
+
}
|
|
1973
|
+
if (e.endLabelLeft) {
|
|
1974
|
+
let C2 = terminalLabels[e.id].endLeft, T2 = e.x, E = e.y;
|
|
1975
|
+
if (w) {
|
|
1976
|
+
let C3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", w);
|
|
1977
|
+
T2 = C3.x, E = C3.y;
|
|
1978
|
+
}
|
|
1979
|
+
C2.attr("transform", `translate(${T2}, ${E})`);
|
|
1980
|
+
}
|
|
1981
|
+
if (e.endLabelRight) {
|
|
1982
|
+
let C2 = terminalLabels[e.id].endRight, T2 = e.x, E = e.y;
|
|
1983
|
+
if (w) {
|
|
1984
|
+
let C3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", w);
|
|
1985
|
+
T2 = C3.x, E = C3.y;
|
|
1986
|
+
}
|
|
1987
|
+
C2.attr("transform", `translate(${T2}, ${E})`);
|
|
1988
|
+
}
|
|
1989
|
+
}, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, C) => {
|
|
1990
|
+
let w = e.x, T = e.y, E = Math.abs(C.x - w), D = Math.abs(C.y - T), O = e.width / 2, k = e.height / 2;
|
|
1991
|
+
return E >= O || D >= k;
|
|
1992
|
+
}, "outsideNode"), intersection = /* @__PURE__ */ __name((e, C, w) => {
|
|
1993
|
+
log.debug(`intersection calc abc89:
|
|
1994
|
+
outsidePoint: ${JSON.stringify(C)}
|
|
1995
|
+
insidePoint : ${JSON.stringify(w)}
|
|
1996
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
1997
|
+
let T = e.x, E = e.y, D = Math.abs(T - w.x), O = e.width / 2, k = w.x < C.x ? O - D : O + D, A = e.height / 2, j = Math.abs(C.y - w.y), M = Math.abs(C.x - w.x);
|
|
1998
|
+
if (Math.abs(E - C.y) * O > Math.abs(T - C.x) * A) {
|
|
1999
|
+
let e2 = w.y < C.y ? C.y - A - E : E - A - C.y;
|
|
2000
|
+
k = M * e2 / j;
|
|
2001
|
+
let T2 = {
|
|
2002
|
+
x: w.x < C.x ? w.x + k : w.x - M + k,
|
|
2003
|
+
y: w.y < C.y ? w.y + j - e2 : w.y - j + e2
|
|
2004
|
+
};
|
|
2005
|
+
return k === 0 && (T2.x = C.x, T2.y = C.y), M === 0 && (T2.x = C.x), j === 0 && (T2.y = C.y), log.debug(`abc89 topp/bott calc, Q ${j}, q ${e2}, R ${M}, r ${k}`, T2), T2;
|
|
2006
|
+
} else {
|
|
2007
|
+
k = w.x < C.x ? C.x - O - T : T - O - C.x;
|
|
2008
|
+
let e2 = j * k / M, E2 = w.x < C.x ? w.x + M - k : w.x - M + k, D2 = w.y < C.y ? w.y + e2 : w.y - e2;
|
|
2009
|
+
return log.debug(`sides calc abc89, Q ${j}, q ${e2}, R ${M}, r ${k}`, {
|
|
2010
|
+
_x: E2,
|
|
2011
|
+
_y: D2
|
|
2012
|
+
}), k === 0 && (E2 = C.x, D2 = C.y), M === 0 && (E2 = C.x), j === 0 && (D2 = C.y), {
|
|
2013
|
+
x: E2,
|
|
2014
|
+
y: D2
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
}, "intersection"), cutPathAtIntersect = /* @__PURE__ */ __name((e, C) => {
|
|
2018
|
+
log.debug("abc88 cutPathAtIntersect", e, C);
|
|
2019
|
+
let w = [], T = e[0], E = false;
|
|
2020
|
+
return e.forEach((e2) => {
|
|
2021
|
+
if (!outsideNode(C, e2) && !E) {
|
|
2022
|
+
let D = intersection(C, T, e2), O = false;
|
|
2023
|
+
w.forEach((e3) => {
|
|
2024
|
+
O || (O = e3.x === D.x && e3.y === D.y);
|
|
2025
|
+
}), w.some((e3) => e3.x === D.x && e3.y === D.y) || w.push(D), E = true;
|
|
2026
|
+
} else T = e2, E || w.push(e2);
|
|
2027
|
+
}), w;
|
|
2028
|
+
}, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, T, E, D, O, k, A) {
|
|
2029
|
+
let j = E.points;
|
|
2030
|
+
log.debug("abc88 InsertEdge: edge=", E, "e=", T);
|
|
2031
|
+
let M = false, N = k.node(T.v);
|
|
2032
|
+
var P = k.node(T.w);
|
|
2033
|
+
(P == null ? void 0 : P.intersect) && (N == null ? void 0 : N.intersect) && (j = j.slice(1, E.points.length - 1), j.unshift(N.intersect(j[0])), j.push(P.intersect(j[j.length - 1]))), E.toCluster && (log.debug("to cluster abc88", D[E.toCluster]), j = cutPathAtIntersect(E.points, D[E.toCluster].node), M = true), E.fromCluster && (log.debug("from cluster abc88", D[E.fromCluster]), j = cutPathAtIntersect(j.reverse(), D[E.fromCluster].node).reverse(), M = true);
|
|
2034
|
+
let F = j.filter((e2) => !Number.isNaN(e2.y)), I = basis_default;
|
|
2035
|
+
E.curve && (O === "graph" || O === "flowchart") && (I = E.curve);
|
|
2036
|
+
let { x: L, y: R } = getLineFunctionsWithOffset(E), z = line_default().x(L).y(R).curve(I), B;
|
|
2037
|
+
switch (E.thickness) {
|
|
2038
|
+
case "normal":
|
|
2039
|
+
B = "edge-thickness-normal";
|
|
2040
|
+
break;
|
|
2041
|
+
case "thick":
|
|
2042
|
+
B = "edge-thickness-thick";
|
|
2043
|
+
break;
|
|
2044
|
+
case "invisible":
|
|
2045
|
+
B = "edge-thickness-thick";
|
|
2046
|
+
break;
|
|
2047
|
+
default:
|
|
2048
|
+
B = "";
|
|
2049
|
+
}
|
|
2050
|
+
switch (E.pattern) {
|
|
2051
|
+
case "solid":
|
|
2052
|
+
B += " edge-pattern-solid";
|
|
2053
|
+
break;
|
|
2054
|
+
case "dotted":
|
|
2055
|
+
B += " edge-pattern-dotted";
|
|
2056
|
+
break;
|
|
2057
|
+
case "dashed":
|
|
2058
|
+
B += " edge-pattern-dashed";
|
|
2059
|
+
break;
|
|
2060
|
+
}
|
|
2061
|
+
let V = e.append("path").attr("d", z(F)).attr("id", E.id).attr("class", " " + B + (E.classes ? " " + E.classes : "")).attr("style", E.style), H = "";
|
|
2062
|
+
(getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (H = getUrl(true)), addEdgeMarkers(V, E, H, A, O);
|
|
2063
|
+
let U = {};
|
|
2064
|
+
return M && (U.updatedPath = j), U.originalPath = E.points, U;
|
|
2065
|
+
}, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
|
|
2066
|
+
let C = /* @__PURE__ */ new Set();
|
|
2067
|
+
for (let w of e) switch (w) {
|
|
2068
|
+
case "x":
|
|
2069
|
+
C.add("right"), C.add("left");
|
|
2070
|
+
break;
|
|
2071
|
+
case "y":
|
|
2072
|
+
C.add("up"), C.add("down");
|
|
2073
|
+
break;
|
|
2074
|
+
default:
|
|
2075
|
+
C.add(w);
|
|
2076
|
+
break;
|
|
2077
|
+
}
|
|
2078
|
+
return C;
|
|
2079
|
+
}, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, C, w, T) => {
|
|
2080
|
+
let E = expandAndDeduplicateDirections(e), D = C.height + 2 * w.padding, O = D / 2, k = T ?? C.width + 2 * O + w.padding, A = w.padding / 2;
|
|
2081
|
+
return E.has("right") && E.has("left") && E.has("up") && E.has("down") ? [
|
|
2082
|
+
{
|
|
2083
|
+
x: 0,
|
|
2084
|
+
y: 0
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
x: O,
|
|
2088
|
+
y: 0
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
x: k / 2,
|
|
2092
|
+
y: 2 * A
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
x: k - O,
|
|
2096
|
+
y: 0
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
x: k,
|
|
2100
|
+
y: 0
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
x: k,
|
|
2104
|
+
y: -D / 3
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
x: k + 2 * A,
|
|
2108
|
+
y: -D / 2
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
x: k,
|
|
2112
|
+
y: -2 * D / 3
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
x: k,
|
|
2116
|
+
y: -D
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
x: k - O,
|
|
2120
|
+
y: -D
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
x: k / 2,
|
|
2124
|
+
y: -D - 2 * A
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
x: O,
|
|
2128
|
+
y: -D
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
x: 0,
|
|
2132
|
+
y: -D
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
x: 0,
|
|
2136
|
+
y: -2 * D / 3
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
x: -2 * A,
|
|
2140
|
+
y: -D / 2
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
x: 0,
|
|
2144
|
+
y: -D / 3
|
|
2145
|
+
}
|
|
2146
|
+
] : E.has("right") && E.has("left") && E.has("up") ? [
|
|
2147
|
+
{
|
|
2148
|
+
x: O,
|
|
2149
|
+
y: 0
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
x: k - O,
|
|
2153
|
+
y: 0
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
x: k,
|
|
2157
|
+
y: -D / 2
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
x: k - O,
|
|
2161
|
+
y: -D
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
x: O,
|
|
2165
|
+
y: -D
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
x: 0,
|
|
2169
|
+
y: -D / 2
|
|
2170
|
+
}
|
|
2171
|
+
] : E.has("right") && E.has("left") && E.has("down") ? [
|
|
2172
|
+
{
|
|
2173
|
+
x: 0,
|
|
2174
|
+
y: 0
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
x: O,
|
|
2178
|
+
y: -D
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
x: k - O,
|
|
2182
|
+
y: -D
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
x: k,
|
|
2186
|
+
y: 0
|
|
2187
|
+
}
|
|
2188
|
+
] : E.has("right") && E.has("up") && E.has("down") ? [
|
|
2189
|
+
{
|
|
2190
|
+
x: 0,
|
|
2191
|
+
y: 0
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
x: k,
|
|
2195
|
+
y: -O
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
x: k,
|
|
2199
|
+
y: -D + O
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
x: 0,
|
|
2203
|
+
y: -D
|
|
2204
|
+
}
|
|
2205
|
+
] : E.has("left") && E.has("up") && E.has("down") ? [
|
|
2206
|
+
{
|
|
2207
|
+
x: k,
|
|
2208
|
+
y: 0
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
x: 0,
|
|
2212
|
+
y: -O
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
x: 0,
|
|
2216
|
+
y: -D + O
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
x: k,
|
|
2220
|
+
y: -D
|
|
2221
|
+
}
|
|
2222
|
+
] : E.has("right") && E.has("left") ? [
|
|
2223
|
+
{
|
|
2224
|
+
x: O,
|
|
2225
|
+
y: 0
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
x: O,
|
|
2229
|
+
y: -A
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
x: k - O,
|
|
2233
|
+
y: -A
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
x: k - O,
|
|
2237
|
+
y: 0
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
x: k,
|
|
2241
|
+
y: -D / 2
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
x: k - O,
|
|
2245
|
+
y: -D
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
x: k - O,
|
|
2249
|
+
y: -D + A
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
x: O,
|
|
2253
|
+
y: -D + A
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
x: O,
|
|
2257
|
+
y: -D
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
x: 0,
|
|
2261
|
+
y: -D / 2
|
|
2262
|
+
}
|
|
2263
|
+
] : E.has("up") && E.has("down") ? [
|
|
2264
|
+
{
|
|
2265
|
+
x: k / 2,
|
|
2266
|
+
y: 0
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
x: 0,
|
|
2270
|
+
y: -A
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
x: O,
|
|
2274
|
+
y: -A
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
x: O,
|
|
2278
|
+
y: -D + A
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
x: 0,
|
|
2282
|
+
y: -D + A
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
x: k / 2,
|
|
2286
|
+
y: -D
|
|
2287
|
+
},
|
|
2288
|
+
{
|
|
2289
|
+
x: k,
|
|
2290
|
+
y: -D + A
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
x: k - O,
|
|
2294
|
+
y: -D + A
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
x: k - O,
|
|
2298
|
+
y: -A
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
x: k,
|
|
2302
|
+
y: -A
|
|
2303
|
+
}
|
|
2304
|
+
] : E.has("right") && E.has("up") ? [
|
|
2305
|
+
{
|
|
2306
|
+
x: 0,
|
|
2307
|
+
y: 0
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
x: k,
|
|
2311
|
+
y: -O
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
x: 0,
|
|
2315
|
+
y: -D
|
|
2316
|
+
}
|
|
2317
|
+
] : E.has("right") && E.has("down") ? [
|
|
2318
|
+
{
|
|
2319
|
+
x: 0,
|
|
2320
|
+
y: 0
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
x: k,
|
|
2324
|
+
y: 0
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
x: 0,
|
|
2328
|
+
y: -D
|
|
2329
|
+
}
|
|
2330
|
+
] : E.has("left") && E.has("up") ? [
|
|
2331
|
+
{
|
|
2332
|
+
x: k,
|
|
2333
|
+
y: 0
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
x: 0,
|
|
2337
|
+
y: -O
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
x: k,
|
|
2341
|
+
y: -D
|
|
2342
|
+
}
|
|
2343
|
+
] : E.has("left") && E.has("down") ? [
|
|
2344
|
+
{
|
|
2345
|
+
x: k,
|
|
2346
|
+
y: 0
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
x: 0,
|
|
2350
|
+
y: 0
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
x: k,
|
|
2354
|
+
y: -D
|
|
2355
|
+
}
|
|
2356
|
+
] : E.has("right") ? [
|
|
2357
|
+
{
|
|
2358
|
+
x: O,
|
|
2359
|
+
y: -A
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
x: O,
|
|
2363
|
+
y: -A
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
x: k - O,
|
|
2367
|
+
y: -A
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
x: k - O,
|
|
2371
|
+
y: 0
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
x: k,
|
|
2375
|
+
y: -D / 2
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
x: k - O,
|
|
2379
|
+
y: -D
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
x: k - O,
|
|
2383
|
+
y: -D + A
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
x: O,
|
|
2387
|
+
y: -D + A
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
x: O,
|
|
2391
|
+
y: -D + A
|
|
2392
|
+
}
|
|
2393
|
+
] : E.has("left") ? [
|
|
2394
|
+
{
|
|
2395
|
+
x: O,
|
|
2396
|
+
y: 0
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
x: O,
|
|
2400
|
+
y: -A
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
x: k - O,
|
|
2404
|
+
y: -A
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
x: k - O,
|
|
2408
|
+
y: -D + A
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
x: O,
|
|
2412
|
+
y: -D + A
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
x: O,
|
|
2416
|
+
y: -D
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
x: 0,
|
|
2420
|
+
y: -D / 2
|
|
2421
|
+
}
|
|
2422
|
+
] : E.has("up") ? [
|
|
2423
|
+
{
|
|
2424
|
+
x: O,
|
|
2425
|
+
y: -A
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
x: O,
|
|
2429
|
+
y: -D + A
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
x: 0,
|
|
2433
|
+
y: -D + A
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
x: k / 2,
|
|
2437
|
+
y: -D
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
x: k,
|
|
2441
|
+
y: -D + A
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
x: k - O,
|
|
2445
|
+
y: -D + A
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
x: k - O,
|
|
2449
|
+
y: -A
|
|
2450
|
+
}
|
|
2451
|
+
] : E.has("down") ? [
|
|
2452
|
+
{
|
|
2453
|
+
x: k / 2,
|
|
2454
|
+
y: 0
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
x: 0,
|
|
2458
|
+
y: -A
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
x: O,
|
|
2462
|
+
y: -A
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
x: O,
|
|
2466
|
+
y: -D + A
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
x: k - O,
|
|
2470
|
+
y: -D + A
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
x: k - O,
|
|
2474
|
+
y: -A
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
x: k,
|
|
2478
|
+
y: -A
|
|
2479
|
+
}
|
|
2480
|
+
] : [{
|
|
2481
|
+
x: 0,
|
|
2482
|
+
y: 0
|
|
2483
|
+
}];
|
|
2484
|
+
}, "getArrowPoints");
|
|
2485
|
+
function intersectNode(e, C) {
|
|
2486
|
+
return e.intersect(C);
|
|
2487
|
+
}
|
|
2488
|
+
__name(intersectNode, "intersectNode");
|
|
2489
|
+
var intersect_node_default = intersectNode;
|
|
2490
|
+
function intersectEllipse(e, C, w, T) {
|
|
2491
|
+
var E = e.x, D = e.y, O = E - T.x, k = D - T.y, A = Math.sqrt(C * C * k * k + w * w * O * O), j = Math.abs(C * w * O / A);
|
|
2492
|
+
T.x < E && (j = -j);
|
|
2493
|
+
var M = Math.abs(C * w * k / A);
|
|
2494
|
+
return T.y < D && (M = -M), {
|
|
2495
|
+
x: E + j,
|
|
2496
|
+
y: D + M
|
|
2497
|
+
};
|
|
2498
|
+
}
|
|
2499
|
+
__name(intersectEllipse, "intersectEllipse");
|
|
2500
|
+
var intersect_ellipse_default = intersectEllipse;
|
|
2501
|
+
function intersectCircle(e, C, w) {
|
|
2502
|
+
return intersect_ellipse_default(e, C, C, w);
|
|
2503
|
+
}
|
|
2504
|
+
__name(intersectCircle, "intersectCircle");
|
|
2505
|
+
var intersect_circle_default = intersectCircle;
|
|
2506
|
+
function intersectLine(e, C, w, T) {
|
|
2507
|
+
var E = C.y - e.y, D, O = e.x - C.x, k, A = C.x * e.y - e.x * C.y, j, M, N, P = E * w.x + O * w.y + A, F = E * T.x + O * T.y + A, I, L, R, z, B;
|
|
2508
|
+
if (!(P !== 0 && F !== 0 && sameSign(P, F)) && (D = T.y - w.y, k = w.x - T.x, j = T.x * w.y - w.x * T.y, M = D * e.x + k * e.y + j, N = D * C.x + k * C.y + j, !(M !== 0 && N !== 0 && sameSign(M, N)) && (I = E * k - D * O, I !== 0))) return L = Math.abs(I / 2), R = O * j - k * A, z = R < 0 ? (R - L) / I : (R + L) / I, R = D * A - E * j, B = R < 0 ? (R - L) / I : (R + L) / I, {
|
|
2509
|
+
x: z,
|
|
2510
|
+
y: B
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
__name(intersectLine, "intersectLine");
|
|
2514
|
+
function sameSign(e, C) {
|
|
2515
|
+
return e * C > 0;
|
|
2516
|
+
}
|
|
2517
|
+
__name(sameSign, "sameSign");
|
|
2518
|
+
var intersect_line_default = intersectLine, intersect_polygon_default = intersectPolygon;
|
|
2519
|
+
function intersectPolygon(e, C, w) {
|
|
2520
|
+
var T = e.x, E = e.y, D = [], O = Infinity, k = Infinity;
|
|
2521
|
+
typeof C.forEach == "function" ? C.forEach(function(e2) {
|
|
2522
|
+
O = Math.min(O, e2.x), k = Math.min(k, e2.y);
|
|
2523
|
+
}) : (O = Math.min(O, C.x), k = Math.min(k, C.y));
|
|
2524
|
+
for (var A = T - e.width / 2 - O, j = E - e.height / 2 - k, M = 0; M < C.length; M++) {
|
|
2525
|
+
var N = C[M], P = C[M < C.length - 1 ? M + 1 : 0], F = intersect_line_default(e, w, {
|
|
2526
|
+
x: A + N.x,
|
|
2527
|
+
y: j + N.y
|
|
2528
|
+
}, {
|
|
2529
|
+
x: A + P.x,
|
|
2530
|
+
y: j + P.y
|
|
2531
|
+
});
|
|
2532
|
+
F && D.push(F);
|
|
2533
|
+
}
|
|
2534
|
+
return D.length ? (D.length > 1 && D.sort(function(e2, C2) {
|
|
2535
|
+
var T2 = e2.x - w.x, E2 = e2.y - w.y, D2 = Math.sqrt(T2 * T2 + E2 * E2), O2 = C2.x - w.x, k2 = C2.y - w.y, A2 = Math.sqrt(O2 * O2 + k2 * k2);
|
|
2536
|
+
return D2 < A2 ? -1 : D2 === A2 ? 0 : 1;
|
|
2537
|
+
}), D[0]) : e;
|
|
2538
|
+
}
|
|
2539
|
+
__name(intersectPolygon, "intersectPolygon");
|
|
2540
|
+
var intersect_default = {
|
|
2541
|
+
node: intersect_node_default,
|
|
2542
|
+
circle: intersect_circle_default,
|
|
2543
|
+
ellipse: intersect_ellipse_default,
|
|
2544
|
+
polygon: intersect_polygon_default,
|
|
2545
|
+
rect: /* @__PURE__ */ __name((e, C) => {
|
|
2546
|
+
var w = e.x, T = e.y, E = C.x - w, D = C.y - T, O = e.width / 2, k = e.height / 2, A, j;
|
|
2547
|
+
return Math.abs(D) * O > Math.abs(E) * k ? (D < 0 && (k = -k), A = D === 0 ? 0 : k * E / D, j = k) : (E < 0 && (O = -O), A = O, j = E === 0 ? 0 : O * D / E), {
|
|
2548
|
+
x: w + A,
|
|
2549
|
+
y: T + j
|
|
2550
|
+
};
|
|
2551
|
+
}, "intersectRect")
|
|
2552
|
+
}, labelHelper = /* @__PURE__ */ __name(async (e, C, w, T) => {
|
|
2553
|
+
let E = getConfig2(), D, O = C.useHtmlLabels || getEffectiveHtmlLabels(E);
|
|
2554
|
+
D = w || "node default";
|
|
2555
|
+
let k = e.insert("g").attr("class", D).attr("id", C.domId || C.id), A = k.insert("g").attr("class", "label").attr("style", C.labelStyle), j;
|
|
2556
|
+
j = C.labelText === void 0 ? "" : typeof C.labelText == "string" ? C.labelText : C.labelText[0];
|
|
2557
|
+
let M;
|
|
2558
|
+
M = C.labelType === "markdown" ? createText(A, sanitizeText(decodeEntities(j), E), {
|
|
2559
|
+
useHtmlLabels: O,
|
|
2560
|
+
width: C.width || E.flowchart.wrappingWidth,
|
|
2561
|
+
classes: "markdown-node-label"
|
|
2562
|
+
}, E) : await createLabel_default(A, sanitizeText(decodeEntities(j), E), C.labelStyle, false, T);
|
|
2563
|
+
let N = M.getBBox(), P = C.padding / 2;
|
|
2564
|
+
if (getEffectiveHtmlLabels(E)) {
|
|
2565
|
+
let e2 = M.children[0], C2 = select_default(M);
|
|
2566
|
+
await configureLabelImages(e2, j), N = e2.getBoundingClientRect(), C2.attr("width", N.width), C2.attr("height", N.height);
|
|
2567
|
+
}
|
|
2568
|
+
return O ? A.attr("transform", "translate(" + -N.width / 2 + ", " + -N.height / 2 + ")") : A.attr("transform", "translate(0, " + -N.height / 2 + ")"), C.centerLabel && A.attr("transform", "translate(" + -N.width / 2 + ", " + -N.height / 2 + ")"), A.insert("rect", ":first-child"), {
|
|
2569
|
+
shapeSvg: k,
|
|
2570
|
+
bbox: N,
|
|
2571
|
+
halfPadding: P,
|
|
2572
|
+
label: A
|
|
2573
|
+
};
|
|
2574
|
+
}, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, C) => {
|
|
2575
|
+
let w = C.node().getBBox();
|
|
2576
|
+
e.width = w.width, e.height = w.height;
|
|
2577
|
+
}, "updateNodeBounds");
|
|
2578
|
+
function insertPolygonShape(e, C, w, T) {
|
|
2579
|
+
return e.insert("polygon", ":first-child").attr("points", T.map(function(e2) {
|
|
2580
|
+
return e2.x + "," + e2.y;
|
|
2581
|
+
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -C / 2 + "," + w / 2 + ")");
|
|
2582
|
+
}
|
|
2583
|
+
__name(insertPolygonShape, "insertPolygonShape");
|
|
2584
|
+
var note_default = /* @__PURE__ */ __name(async (e, C) => {
|
|
2585
|
+
C.useHtmlLabels || getEffectiveHtmlLabels(getConfig2()) || (C.centerLabel = true);
|
|
2586
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, true);
|
|
2587
|
+
log.info("Classes = ", C.classes);
|
|
2588
|
+
let D = w.insert("rect", ":first-child");
|
|
2589
|
+
return D.attr("rx", C.rx).attr("ry", C.ry).attr("x", -T.width / 2 - E).attr("y", -T.height / 2 - E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), updateNodeBounds(C, D), C.intersect = function(e2) {
|
|
2590
|
+
return intersect_default.rect(C, e2);
|
|
2591
|
+
}, w;
|
|
2592
|
+
}, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, C) => `${C || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, C) => {
|
|
2593
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding + (T.height + C.padding), D = [
|
|
2594
|
+
{
|
|
2595
|
+
x: E / 2,
|
|
2596
|
+
y: 0
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
x: E,
|
|
2600
|
+
y: -E / 2
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
x: E / 2,
|
|
2604
|
+
y: -E
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
x: 0,
|
|
2608
|
+
y: -E / 2
|
|
2609
|
+
}
|
|
2610
|
+
];
|
|
2611
|
+
log.info("Question main (Circle)");
|
|
2612
|
+
let O = insertPolygonShape(w, E, E, D);
|
|
2613
|
+
return O.attr("style", C.style), updateNodeBounds(C, O), C.intersect = function(e2) {
|
|
2614
|
+
return log.warn("Intersect called"), intersect_default.polygon(C, D, e2);
|
|
2615
|
+
}, w;
|
|
2616
|
+
}, "question"), choice = /* @__PURE__ */ __name((e, C) => {
|
|
2617
|
+
let w = e.insert("g").attr("class", "node default").attr("id", C.domId || C.id);
|
|
2618
|
+
return w.insert("polygon", ":first-child").attr("points", [
|
|
2619
|
+
{
|
|
2620
|
+
x: 0,
|
|
2621
|
+
y: 28 / 2
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
x: 28 / 2,
|
|
2625
|
+
y: 0
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
x: 0,
|
|
2629
|
+
y: -28 / 2
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
x: -28 / 2,
|
|
2633
|
+
y: 0
|
|
2634
|
+
}
|
|
2635
|
+
].map(function(e2) {
|
|
2636
|
+
return e2.x + "," + e2.y;
|
|
2637
|
+
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), C.width = 28, C.height = 28, C.intersect = function(e2) {
|
|
2638
|
+
return intersect_default.circle(C, 14, e2);
|
|
2639
|
+
}, w;
|
|
2640
|
+
}, "choice"), hexagon = /* @__PURE__ */ __name(async (e, C) => {
|
|
2641
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = C.positioned ? C.height : T.height + C.padding, D = E / 4, O = C.positioned ? C.width : T.width + 2 * D + C.padding, k = [
|
|
2642
|
+
{
|
|
2643
|
+
x: D,
|
|
2644
|
+
y: 0
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
x: O - D,
|
|
2648
|
+
y: 0
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
x: O,
|
|
2652
|
+
y: -E / 2
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
x: O - D,
|
|
2656
|
+
y: -E
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
x: D,
|
|
2660
|
+
y: -E
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
x: 0,
|
|
2664
|
+
y: -E / 2
|
|
2665
|
+
}
|
|
2666
|
+
], A = insertPolygonShape(w, O, E, k);
|
|
2667
|
+
return A.attr("style", C.style), updateNodeBounds(C, A), C.intersect = function(e2) {
|
|
2668
|
+
return intersect_default.polygon(C, k, e2);
|
|
2669
|
+
}, w;
|
|
2670
|
+
}, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, C) => {
|
|
2671
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, void 0, true), E = T.height + 2 * C.padding, D = E / 2, O = T.width + 2 * D + C.padding, k = C.positioned && (C.widthInColumns ?? 1) > 1 && C.width > O ? C.width : O, A = getArrowPoints(C.directions, T, C, k), j = insertPolygonShape(w, k, E, A);
|
|
2672
|
+
return j.attr("style", C.style), updateNodeBounds(C, j), C.intersect = function(e2) {
|
|
2673
|
+
return intersect_default.polygon(C, A, e2);
|
|
2674
|
+
}, w;
|
|
2675
|
+
}, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, C) => {
|
|
2676
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2677
|
+
{
|
|
2678
|
+
x: -D / 2,
|
|
2679
|
+
y: 0
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
x: E,
|
|
2683
|
+
y: 0
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
x: E,
|
|
2687
|
+
y: -D
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
x: -D / 2,
|
|
2691
|
+
y: -D
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
x: 0,
|
|
2695
|
+
y: -D / 2
|
|
2696
|
+
}
|
|
2697
|
+
];
|
|
2698
|
+
return insertPolygonShape(w, E, D, O).attr("style", C.style), C.width = E + D, C.height = D, C.intersect = function(e2) {
|
|
2699
|
+
return intersect_default.polygon(C, O, e2);
|
|
2700
|
+
}, w;
|
|
2701
|
+
}, "rect_left_inv_arrow"), lean_right = /* @__PURE__ */ __name(async (e, C) => {
|
|
2702
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2703
|
+
{
|
|
2704
|
+
x: -2 * D / 6,
|
|
2705
|
+
y: 0
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
x: E - D / 6,
|
|
2709
|
+
y: 0
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
x: E + 2 * D / 6,
|
|
2713
|
+
y: -D
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
x: D / 6,
|
|
2717
|
+
y: -D
|
|
2718
|
+
}
|
|
2719
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2720
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2721
|
+
return intersect_default.polygon(C, O, e2);
|
|
2722
|
+
}, w;
|
|
2723
|
+
}, "lean_right"), lean_left = /* @__PURE__ */ __name(async (e, C) => {
|
|
2724
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2725
|
+
{
|
|
2726
|
+
x: 2 * D / 6,
|
|
2727
|
+
y: 0
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
x: E + D / 6,
|
|
2731
|
+
y: 0
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
x: E - 2 * D / 6,
|
|
2735
|
+
y: -D
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
x: -D / 6,
|
|
2739
|
+
y: -D
|
|
2740
|
+
}
|
|
2741
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2742
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2743
|
+
return intersect_default.polygon(C, O, e2);
|
|
2744
|
+
}, w;
|
|
2745
|
+
}, "lean_left"), trapezoid = /* @__PURE__ */ __name(async (e, C) => {
|
|
2746
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2747
|
+
{
|
|
2748
|
+
x: -2 * D / 6,
|
|
2749
|
+
y: 0
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
x: E + 2 * D / 6,
|
|
2753
|
+
y: 0
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
x: E - D / 6,
|
|
2757
|
+
y: -D
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
x: D / 6,
|
|
2761
|
+
y: -D
|
|
2762
|
+
}
|
|
2763
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2764
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2765
|
+
return intersect_default.polygon(C, O, e2);
|
|
2766
|
+
}, w;
|
|
2767
|
+
}, "trapezoid"), inv_trapezoid = /* @__PURE__ */ __name(async (e, C) => {
|
|
2768
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2769
|
+
{
|
|
2770
|
+
x: D / 6,
|
|
2771
|
+
y: 0
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
x: E - D / 6,
|
|
2775
|
+
y: 0
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
x: E + 2 * D / 6,
|
|
2779
|
+
y: -D
|
|
2780
|
+
},
|
|
2781
|
+
{
|
|
2782
|
+
x: -2 * D / 6,
|
|
2783
|
+
y: -D
|
|
2784
|
+
}
|
|
2785
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2786
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2787
|
+
return intersect_default.polygon(C, O, e2);
|
|
2788
|
+
}, w;
|
|
2789
|
+
}, "inv_trapezoid"), rect_right_inv_arrow = /* @__PURE__ */ __name(async (e, C) => {
|
|
2790
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2791
|
+
{
|
|
2792
|
+
x: 0,
|
|
2793
|
+
y: 0
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
x: E + D / 2,
|
|
2797
|
+
y: 0
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
x: E,
|
|
2801
|
+
y: -D / 2
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
x: E + D / 2,
|
|
2805
|
+
y: -D
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
x: 0,
|
|
2809
|
+
y: -D
|
|
2810
|
+
}
|
|
2811
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2812
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2813
|
+
return intersect_default.polygon(C, O, e2);
|
|
2814
|
+
}, w;
|
|
2815
|
+
}, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, C) => {
|
|
2816
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = E / 2, O = D / (2.5 + E / 50), k = T.height + O + C.padding, A = "M 0," + O + " a " + D + "," + O + " 0,0,0 " + E + " 0 a " + D + "," + O + " 0,0,0 " + -E + " 0 l 0," + k + " a " + D + "," + O + " 0,0,0 " + E + " 0 l 0," + -k;
|
|
2817
|
+
return updateNodeBounds(C, w.attr("label-offset-y", O).insert("path", ":first-child").attr("style", C.style).attr("d", A).attr("transform", "translate(" + -E / 2 + "," + -(k / 2 + O) + ")")), C.intersect = function(e2) {
|
|
2818
|
+
let w2 = intersect_default.rect(C, e2), T2 = w2.x - C.x;
|
|
2819
|
+
if (D != 0 && (Math.abs(T2) < C.width / 2 || Math.abs(T2) == C.width / 2 && Math.abs(w2.y - C.y) > C.height / 2 - O)) {
|
|
2820
|
+
let E2 = O * O * (1 - T2 * T2 / (D * D));
|
|
2821
|
+
E2 != 0 && (E2 = Math.sqrt(E2)), E2 = O - E2, e2.y - C.y > 0 && (E2 = -E2), w2.y += E2;
|
|
2822
|
+
}
|
|
2823
|
+
return w2;
|
|
2824
|
+
}, w;
|
|
2825
|
+
}, "cylinder"), rect = /* @__PURE__ */ __name(async (e, C) => {
|
|
2826
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes + " " + C.class, true), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
|
|
2827
|
+
if (D.attr("class", "basic label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
|
|
2828
|
+
let e2 = new Set(Object.keys(C.props));
|
|
2829
|
+
C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e2.delete("borders")), e2.forEach((e3) => {
|
|
2830
|
+
log.warn(`Unknown node property ${e3}`);
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
return updateNodeBounds(C, D), C.intersect = function(e2) {
|
|
2834
|
+
return intersect_default.rect(C, e2);
|
|
2835
|
+
}, w;
|
|
2836
|
+
}, "rect"), composite = /* @__PURE__ */ __name(async (e, C) => {
|
|
2837
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, true), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
|
|
2838
|
+
if (D.attr("class", "basic cluster composite label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
|
|
2839
|
+
let e2 = new Set(Object.keys(C.props));
|
|
2840
|
+
C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e2.delete("borders")), e2.forEach((e3) => {
|
|
2841
|
+
log.warn(`Unknown node property ${e3}`);
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2844
|
+
return updateNodeBounds(C, D), C.intersect = function(e2) {
|
|
2845
|
+
return intersect_default.rect(C, e2);
|
|
2846
|
+
}, w;
|
|
2847
|
+
}, "composite"), labelRect = /* @__PURE__ */ __name(async (e, C) => {
|
|
2848
|
+
let { shapeSvg: w } = await labelHelper(e, C, "label", true);
|
|
2849
|
+
log.trace("Classes = ", C.class);
|
|
2850
|
+
let T = w.insert("rect", ":first-child");
|
|
2851
|
+
if (T.attr("width", 0).attr("height", 0), w.attr("class", "label edgeLabel"), C.props) {
|
|
2852
|
+
let e2 = new Set(Object.keys(C.props));
|
|
2853
|
+
C.props.borders && (applyNodePropertyBorders(T, C.props.borders, 0, 0), e2.delete("borders")), e2.forEach((e3) => {
|
|
2854
|
+
log.warn(`Unknown node property ${e3}`);
|
|
2855
|
+
});
|
|
2856
|
+
}
|
|
2857
|
+
return updateNodeBounds(C, T), C.intersect = function(e2) {
|
|
2858
|
+
return intersect_default.rect(C, e2);
|
|
2859
|
+
}, w;
|
|
2860
|
+
}, "labelRect");
|
|
2861
|
+
function applyNodePropertyBorders(e, C, w, T) {
|
|
2862
|
+
let E = [], D = /* @__PURE__ */ __name((e2) => {
|
|
2863
|
+
E.push(e2, 0);
|
|
2864
|
+
}, "addBorder"), O = /* @__PURE__ */ __name((e2) => {
|
|
2865
|
+
E.push(0, e2);
|
|
2866
|
+
}, "skipBorder");
|
|
2867
|
+
C.includes("t") ? (log.debug("add top border"), D(w)) : O(w), C.includes("r") ? (log.debug("add right border"), D(T)) : O(T), C.includes("b") ? (log.debug("add bottom border"), D(w)) : O(w), C.includes("l") ? (log.debug("add left border"), D(T)) : O(T), e.attr("stroke-dasharray", E.join(" "));
|
|
2868
|
+
}
|
|
2869
|
+
__name(applyNodePropertyBorders, "applyNodePropertyBorders");
|
|
2870
|
+
var rectWithTitle = /* @__PURE__ */ __name(async (e, C) => {
|
|
2871
|
+
let w;
|
|
2872
|
+
w = C.classes ? "node " + C.classes : "node default";
|
|
2873
|
+
let T = e.insert("g").attr("class", w).attr("id", C.domId || C.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("g").attr("class", "label"), k = C.labelText.flat ? C.labelText.flat() : C.labelText, A = "";
|
|
2874
|
+
A = typeof k == "object" ? k[0] : k, log.info("Label text abc79", A, k, typeof k == "object");
|
|
2875
|
+
let j = await createLabel_default(O, A, C.labelStyle, true, true), M = {
|
|
2876
|
+
width: 0,
|
|
2877
|
+
height: 0
|
|
2878
|
+
};
|
|
2879
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2880
|
+
let e2 = j.children[0], C2 = select_default(j);
|
|
2881
|
+
M = e2.getBoundingClientRect(), C2.attr("width", M.width), C2.attr("height", M.height);
|
|
2882
|
+
}
|
|
2883
|
+
log.info("Text 2", k);
|
|
2884
|
+
let N = k.slice(1, k.length), P = j.getBBox(), F = await createLabel_default(O, N.join ? N.join("<br/>") : N, C.labelStyle, true, true);
|
|
2885
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2886
|
+
let e2 = F.children[0], C2 = select_default(F);
|
|
2887
|
+
M = e2.getBoundingClientRect(), C2.attr("width", M.width), C2.attr("height", M.height);
|
|
2888
|
+
}
|
|
2889
|
+
let I = C.padding / 2;
|
|
2890
|
+
return select_default(F).attr("transform", "translate( " + (M.width > P.width ? 0 : (P.width - M.width) / 2) + ", " + (P.height + I + 5) + ")"), select_default(j).attr("transform", "translate( " + (M.width < P.width ? 0 : -(P.width - M.width) / 2) + ", 0)"), M = O.node().getBBox(), O.attr("transform", "translate(" + -M.width / 2 + ", " + (-M.height / 2 - I + 3) + ")"), E.attr("class", "outer title-state").attr("x", -M.width / 2 - I).attr("y", -M.height / 2 - I).attr("width", M.width + C.padding).attr("height", M.height + C.padding), D.attr("class", "divider").attr("x1", -M.width / 2 - I).attr("x2", M.width / 2 + I).attr("y1", -M.height / 2 - I + P.height + I).attr("y2", -M.height / 2 - I + P.height + I), updateNodeBounds(C, E), C.intersect = function(e2) {
|
|
2891
|
+
return intersect_default.rect(C, e2);
|
|
2892
|
+
}, T;
|
|
2893
|
+
}, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, C) => {
|
|
2894
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.height + C.padding, D = T.width + E / 4 + C.padding;
|
|
2895
|
+
return updateNodeBounds(C, w.insert("rect", ":first-child").attr("style", C.style).attr("rx", E / 2).attr("ry", E / 2).attr("x", -D / 2).attr("y", -E / 2).attr("width", D).attr("height", E)), C.intersect = function(e2) {
|
|
2896
|
+
return intersect_default.rect(C, e2);
|
|
2897
|
+
}, w;
|
|
2898
|
+
}, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, C) => {
|
|
2899
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), D = w.insert("circle", ":first-child");
|
|
2900
|
+
return D.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("Circle main"), updateNodeBounds(C, D), C.intersect = function(e2) {
|
|
2901
|
+
return log.info("Circle intersect", C, T.width / 2 + E, e2), intersect_default.circle(C, T.width / 2 + E, e2);
|
|
2902
|
+
}, w;
|
|
2903
|
+
}, "circle"), doublecircle = /* @__PURE__ */ __name(async (e, C) => {
|
|
2904
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), D = w.insert("g", ":first-child"), O = D.insert("circle"), k = D.insert("circle");
|
|
2905
|
+
return D.attr("class", C.class), O.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E + 5).attr("width", T.width + C.padding + 10).attr("height", T.height + C.padding + 10), k.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("DoubleCircle main"), updateNodeBounds(C, O), C.intersect = function(e2) {
|
|
2906
|
+
return log.info("DoubleCircle intersect", C, T.width / 2 + E + 5, e2), intersect_default.circle(C, T.width / 2 + E + 5, e2);
|
|
2907
|
+
}, w;
|
|
2908
|
+
}, "doublecircle"), subroutine = /* @__PURE__ */ __name(async (e, C) => {
|
|
2909
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), true), E = T.width + C.padding, D = T.height + C.padding, O = [
|
|
2910
|
+
{
|
|
2911
|
+
x: 0,
|
|
2912
|
+
y: 0
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
x: E,
|
|
2916
|
+
y: 0
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
x: E,
|
|
2920
|
+
y: -D
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
x: 0,
|
|
2924
|
+
y: -D
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
x: 0,
|
|
2928
|
+
y: 0
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
x: -8,
|
|
2932
|
+
y: 0
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
x: E + 8,
|
|
2936
|
+
y: 0
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
x: E + 8,
|
|
2940
|
+
y: -D
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
x: -8,
|
|
2944
|
+
y: -D
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
x: -8,
|
|
2948
|
+
y: 0
|
|
2949
|
+
}
|
|
2950
|
+
], k = insertPolygonShape(w, E, D, O);
|
|
2951
|
+
return k.attr("style", C.style), updateNodeBounds(C, k), C.intersect = function(e2) {
|
|
2952
|
+
return intersect_default.polygon(C, O, e2);
|
|
2953
|
+
}, w;
|
|
2954
|
+
}, "subroutine"), start = /* @__PURE__ */ __name((e, C) => {
|
|
2955
|
+
let w = e.insert("g").attr("class", "node default").attr("id", C.domId || C.id), T = w.insert("circle", ":first-child");
|
|
2956
|
+
return T.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), updateNodeBounds(C, T), C.intersect = function(e2) {
|
|
2957
|
+
return intersect_default.circle(C, 7, e2);
|
|
2958
|
+
}, w;
|
|
2959
|
+
}, "start"), forkJoin = /* @__PURE__ */ __name((e, C, w) => {
|
|
2960
|
+
let T = e.insert("g").attr("class", "node default").attr("id", C.domId || C.id), E = 70, D = 10;
|
|
2961
|
+
return w === "LR" && (E = 10, D = 70), updateNodeBounds(C, T.append("rect").attr("x", -1 * E / 2).attr("y", -1 * D / 2).attr("width", E).attr("height", D).attr("class", "fork-join")), C.height += C.padding / 2, C.width += C.padding / 2, C.intersect = function(e2) {
|
|
2962
|
+
return intersect_default.rect(C, e2);
|
|
2963
|
+
}, T;
|
|
2964
|
+
}, "forkJoin"), shapes = {
|
|
2965
|
+
rhombus: question,
|
|
2966
|
+
composite,
|
|
2967
|
+
question,
|
|
2968
|
+
rect,
|
|
2969
|
+
labelRect,
|
|
2970
|
+
rectWithTitle,
|
|
2971
|
+
choice,
|
|
2972
|
+
circle: circle2,
|
|
2973
|
+
doublecircle,
|
|
2974
|
+
stadium,
|
|
2975
|
+
hexagon,
|
|
2976
|
+
block_arrow,
|
|
2977
|
+
rect_left_inv_arrow,
|
|
2978
|
+
lean_right,
|
|
2979
|
+
lean_left,
|
|
2980
|
+
trapezoid,
|
|
2981
|
+
inv_trapezoid,
|
|
2982
|
+
rect_right_inv_arrow,
|
|
2983
|
+
cylinder,
|
|
2984
|
+
start,
|
|
2985
|
+
end: /* @__PURE__ */ __name((e, C) => {
|
|
2986
|
+
let w = e.insert("g").attr("class", "node default").attr("id", C.domId || C.id), T = w.insert("circle", ":first-child"), E = w.insert("circle", ":first-child");
|
|
2987
|
+
return E.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), T.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), updateNodeBounds(C, E), C.intersect = function(e2) {
|
|
2988
|
+
return intersect_default.circle(C, 7, e2);
|
|
2989
|
+
}, w;
|
|
2990
|
+
}, "end"),
|
|
2991
|
+
note: note_default,
|
|
2992
|
+
subroutine,
|
|
2993
|
+
fork: forkJoin,
|
|
2994
|
+
join: forkJoin,
|
|
2995
|
+
class_box: /* @__PURE__ */ __name(async (e, C) => {
|
|
2996
|
+
var _a;
|
|
2997
|
+
let w = C.padding / 2, T;
|
|
2998
|
+
T = C.classes ? "node " + C.classes : "node default";
|
|
2999
|
+
let E = e.insert("g").attr("class", T).attr("id", C.domId || C.id), D = E.insert("rect", ":first-child"), O = E.insert("line"), k = E.insert("line"), A = 0, j = 4, M = E.insert("g").attr("class", "label"), N = 0, P = (_a = C.classData.annotations) == null ? void 0 : _a[0], F = await createLabel_default(M, C.classData.annotations[0] ? "\xAB" + C.classData.annotations[0] + "\xBB" : "", C.labelStyle, true, true), I = F.getBBox();
|
|
3000
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
3001
|
+
let e2 = F.children[0], C2 = select_default(F);
|
|
3002
|
+
I = e2.getBoundingClientRect(), C2.attr("width", I.width), C2.attr("height", I.height);
|
|
3003
|
+
}
|
|
3004
|
+
C.classData.annotations[0] && (j += I.height + 4, A += I.width);
|
|
3005
|
+
let L = C.classData.label;
|
|
3006
|
+
C.classData.type !== void 0 && C.classData.type !== "" && (getEffectiveHtmlLabels(getConfig2()) ? L += "<" + C.classData.type + ">" : L += "<" + C.classData.type + ">");
|
|
3007
|
+
let R = await createLabel_default(M, L, C.labelStyle, true, true);
|
|
3008
|
+
select_default(R).attr("class", "classTitle");
|
|
3009
|
+
let z = R.getBBox();
|
|
3010
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
3011
|
+
let e2 = R.children[0], C2 = select_default(R);
|
|
3012
|
+
z = e2.getBoundingClientRect(), C2.attr("width", z.width), C2.attr("height", z.height);
|
|
3013
|
+
}
|
|
3014
|
+
j += z.height + 4, z.width > A && (A = z.width);
|
|
3015
|
+
let B = [];
|
|
3016
|
+
C.classData.members.forEach(async (e2) => {
|
|
3017
|
+
let w2 = e2.getDisplayDetails(), T2 = w2.displayText;
|
|
3018
|
+
getEffectiveHtmlLabels(getConfig2()) && (T2 = T2.replace(/</g, "<").replace(/>/g, ">"));
|
|
3019
|
+
let E2 = await createLabel_default(M, T2, w2.cssStyle ? w2.cssStyle : C.labelStyle, true, true), D2 = E2.getBBox();
|
|
3020
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
3021
|
+
let e3 = E2.children[0], C2 = select_default(E2);
|
|
3022
|
+
D2 = e3.getBoundingClientRect(), C2.attr("width", D2.width), C2.attr("height", D2.height);
|
|
3023
|
+
}
|
|
3024
|
+
D2.width > A && (A = D2.width), j += D2.height + 4, B.push(E2);
|
|
3025
|
+
}), j += 8;
|
|
3026
|
+
let V = [];
|
|
3027
|
+
if (C.classData.methods.forEach(async (e2) => {
|
|
3028
|
+
let w2 = e2.getDisplayDetails(), T2 = w2.displayText;
|
|
3029
|
+
getEffectiveHtmlLabels(getConfig2()) && (T2 = T2.replace(/</g, "<").replace(/>/g, ">"));
|
|
3030
|
+
let E2 = await createLabel_default(M, T2, w2.cssStyle ? w2.cssStyle : C.labelStyle, true, true), D2 = E2.getBBox();
|
|
3031
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
3032
|
+
let e3 = E2.children[0], C2 = select_default(E2);
|
|
3033
|
+
D2 = e3.getBoundingClientRect(), C2.attr("width", D2.width), C2.attr("height", D2.height);
|
|
3034
|
+
}
|
|
3035
|
+
D2.width > A && (A = D2.width), j += D2.height + 4, V.push(E2);
|
|
3036
|
+
}), j += 8, P) {
|
|
3037
|
+
let e2 = (A - I.width) / 2;
|
|
3038
|
+
select_default(F).attr("transform", "translate( " + (-1 * A / 2 + e2) + ", " + -1 * j / 2 + ")"), N = I.height + 4;
|
|
3039
|
+
}
|
|
3040
|
+
let H = (A - z.width) / 2;
|
|
3041
|
+
return select_default(R).attr("transform", "translate( " + (-1 * A / 2 + H) + ", " + (-1 * j / 2 + N) + ")"), N += z.height + 4, O.attr("class", "divider").attr("x1", -A / 2 - w).attr("x2", A / 2 + w).attr("y1", -j / 2 - w + 8 + N).attr("y2", -j / 2 - w + 8 + N), N += 8, B.forEach((e2) => {
|
|
3042
|
+
select_default(e2).attr("transform", "translate( " + -A / 2 + ", " + (-1 * j / 2 + N + 8 / 2) + ")");
|
|
3043
|
+
let C2 = e2 == null ? void 0 : e2.getBBox();
|
|
3044
|
+
N += ((C2 == null ? void 0 : C2.height) ?? 0) + 4;
|
|
3045
|
+
}), N += 8, k.attr("class", "divider").attr("x1", -A / 2 - w).attr("x2", A / 2 + w).attr("y1", -j / 2 - w + 8 + N).attr("y2", -j / 2 - w + 8 + N), N += 8, V.forEach((e2) => {
|
|
3046
|
+
select_default(e2).attr("transform", "translate( " + -A / 2 + ", " + (-1 * j / 2 + N) + ")");
|
|
3047
|
+
let C2 = e2 == null ? void 0 : e2.getBBox();
|
|
3048
|
+
N += ((C2 == null ? void 0 : C2.height) ?? 0) + 4;
|
|
3049
|
+
}), D.attr("style", C.style).attr("class", "outer title-state").attr("x", -A / 2 - w).attr("y", -(j / 2) - w).attr("width", A + C.padding).attr("height", j + C.padding), updateNodeBounds(C, D), C.intersect = function(e2) {
|
|
3050
|
+
return intersect_default.rect(C, e2);
|
|
3051
|
+
}, E;
|
|
3052
|
+
}, "class_box")
|
|
3053
|
+
}, nodeElems = {}, insertNode = /* @__PURE__ */ __name(async (e, C, w) => {
|
|
3054
|
+
let T, E;
|
|
3055
|
+
if (C.link) {
|
|
3056
|
+
let D;
|
|
3057
|
+
getConfig2().securityLevel === "sandbox" ? D = "_top" : C.linkTarget && (D = C.linkTarget || "_blank"), T = e.insert("svg:a").attr("xlink:href", C.link).attr("target", D), E = await shapes[C.shape](T, C, w);
|
|
3058
|
+
} else E = await shapes[C.shape](e, C, w), T = E;
|
|
3059
|
+
return C.tooltip && E.attr("title", C.tooltip), C.class && E.attr("class", "node default " + C.class), nodeElems[C.id] = T, C.haveCallback && nodeElems[C.id].attr("class", nodeElems[C.id].attr("class") + " clickable"), T;
|
|
3060
|
+
}, "insertNode"), positionNode = /* @__PURE__ */ __name((e) => {
|
|
3061
|
+
let C = nodeElems[e.id];
|
|
3062
|
+
log.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
3063
|
+
let w = e.diff || 0;
|
|
3064
|
+
return e.clusterNode ? C.attr("transform", "translate(" + (e.x + w - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : C.attr("transform", "translate(" + e.x + ", " + e.y + ")"), w;
|
|
3065
|
+
}, "positionNode");
|
|
3066
|
+
function getNodeFromBlock(e, C, w = false) {
|
|
3067
|
+
var _a, _b, _c;
|
|
3068
|
+
let T = e, E = "default";
|
|
3069
|
+
(((_a = T == null ? void 0 : T.classes) == null ? void 0 : _a.length) || 0) > 0 && (E = ((T == null ? void 0 : T.classes) ?? []).join(" ")), E += " flowchart-label";
|
|
3070
|
+
let D = 0, O = "", k;
|
|
3071
|
+
switch (T.type) {
|
|
3072
|
+
case "round":
|
|
3073
|
+
D = 5, O = "rect";
|
|
3074
|
+
break;
|
|
3075
|
+
case "composite":
|
|
3076
|
+
D = 0, O = "composite", k = 0;
|
|
3077
|
+
break;
|
|
3078
|
+
case "square":
|
|
3079
|
+
O = "rect";
|
|
3080
|
+
break;
|
|
3081
|
+
case "diamond":
|
|
3082
|
+
O = "question";
|
|
3083
|
+
break;
|
|
3084
|
+
case "hexagon":
|
|
3085
|
+
O = "hexagon";
|
|
3086
|
+
break;
|
|
3087
|
+
case "block_arrow":
|
|
3088
|
+
O = "block_arrow";
|
|
3089
|
+
break;
|
|
3090
|
+
case "odd":
|
|
3091
|
+
O = "rect_left_inv_arrow";
|
|
3092
|
+
break;
|
|
3093
|
+
case "lean_right":
|
|
3094
|
+
O = "lean_right";
|
|
3095
|
+
break;
|
|
3096
|
+
case "lean_left":
|
|
3097
|
+
O = "lean_left";
|
|
3098
|
+
break;
|
|
3099
|
+
case "trapezoid":
|
|
3100
|
+
O = "trapezoid";
|
|
3101
|
+
break;
|
|
3102
|
+
case "inv_trapezoid":
|
|
3103
|
+
O = "inv_trapezoid";
|
|
3104
|
+
break;
|
|
3105
|
+
case "rect_left_inv_arrow":
|
|
3106
|
+
O = "rect_left_inv_arrow";
|
|
3107
|
+
break;
|
|
3108
|
+
case "circle":
|
|
3109
|
+
O = "circle";
|
|
3110
|
+
break;
|
|
3111
|
+
case "ellipse":
|
|
3112
|
+
O = "ellipse";
|
|
3113
|
+
break;
|
|
3114
|
+
case "stadium":
|
|
3115
|
+
O = "stadium";
|
|
3116
|
+
break;
|
|
3117
|
+
case "subroutine":
|
|
3118
|
+
O = "subroutine";
|
|
3119
|
+
break;
|
|
3120
|
+
case "cylinder":
|
|
3121
|
+
O = "cylinder";
|
|
3122
|
+
break;
|
|
3123
|
+
case "group":
|
|
3124
|
+
O = "rect";
|
|
3125
|
+
break;
|
|
3126
|
+
case "doublecircle":
|
|
3127
|
+
O = "doublecircle";
|
|
3128
|
+
break;
|
|
3129
|
+
default:
|
|
3130
|
+
O = "rect";
|
|
3131
|
+
}
|
|
3132
|
+
let A = getStylesFromArray((T == null ? void 0 : T.styles) ?? []), j = T.label, M = T.size ?? {
|
|
3133
|
+
width: 0,
|
|
3134
|
+
height: 0,
|
|
3135
|
+
x: 0,
|
|
3136
|
+
y: 0
|
|
3137
|
+
}, N = C.getDiagramId();
|
|
3138
|
+
return {
|
|
3139
|
+
labelStyle: A.labelStyle,
|
|
3140
|
+
shape: O,
|
|
3141
|
+
labelText: j,
|
|
3142
|
+
rx: D,
|
|
3143
|
+
ry: D,
|
|
3144
|
+
class: E,
|
|
3145
|
+
style: A.style,
|
|
3146
|
+
id: T.id,
|
|
3147
|
+
domId: N ? `${N}-${T.id}` : T.id,
|
|
3148
|
+
directions: T.directions,
|
|
3149
|
+
width: M.width,
|
|
3150
|
+
height: M.height,
|
|
3151
|
+
x: M.x,
|
|
3152
|
+
y: M.y,
|
|
3153
|
+
positioned: w,
|
|
3154
|
+
intersect: void 0,
|
|
3155
|
+
type: T.type,
|
|
3156
|
+
padding: k ?? ((_c = (_b = getConfig()) == null ? void 0 : _b.block) == null ? void 0 : _c.padding) ?? 0,
|
|
3157
|
+
widthInColumns: T.widthInColumns ?? 1
|
|
3158
|
+
};
|
|
3159
|
+
}
|
|
3160
|
+
__name(getNodeFromBlock, "getNodeFromBlock");
|
|
3161
|
+
async function calculateBlockSize(e, C, w) {
|
|
3162
|
+
let T = getNodeFromBlock(C, w, false);
|
|
3163
|
+
if (T.type === "group") return;
|
|
3164
|
+
let E = await insertNode(e, T, { config: getConfig() }), D = E.node().getBBox(), O = w.getBlock(T.id);
|
|
3165
|
+
O.size = {
|
|
3166
|
+
width: D.width,
|
|
3167
|
+
height: D.height,
|
|
3168
|
+
x: 0,
|
|
3169
|
+
y: 0,
|
|
3170
|
+
node: E
|
|
3171
|
+
}, w.setBlock(O), E.remove();
|
|
3172
|
+
}
|
|
3173
|
+
__name(calculateBlockSize, "calculateBlockSize");
|
|
3174
|
+
async function insertBlockPositioned(e, C, w) {
|
|
3175
|
+
let T = getNodeFromBlock(C, w, true);
|
|
3176
|
+
w.getBlock(T.id).type !== "space" && (await insertNode(e, T, { config: getConfig() }), C.intersect = T == null ? void 0 : T.intersect, positionNode(T));
|
|
3177
|
+
}
|
|
3178
|
+
__name(insertBlockPositioned, "insertBlockPositioned");
|
|
3179
|
+
async function performOperations(e, C, w, T) {
|
|
3180
|
+
for (let E of C) await T(e, E, w), E.children && await performOperations(e, E.children, w, T);
|
|
3181
|
+
}
|
|
3182
|
+
__name(performOperations, "performOperations");
|
|
3183
|
+
async function calculateBlockSizes(e, C, w) {
|
|
3184
|
+
await performOperations(e, C, w, calculateBlockSize);
|
|
3185
|
+
}
|
|
3186
|
+
__name(calculateBlockSizes, "calculateBlockSizes");
|
|
3187
|
+
async function insertBlocks(e, C, w) {
|
|
3188
|
+
await performOperations(e, C, w, insertBlockPositioned);
|
|
3189
|
+
}
|
|
3190
|
+
__name(insertBlocks, "insertBlocks");
|
|
3191
|
+
async function insertEdges(C, w, T, E, D) {
|
|
3192
|
+
let O = new Graph({
|
|
3193
|
+
multigraph: true,
|
|
3194
|
+
compound: true
|
|
3195
|
+
});
|
|
3196
|
+
O.setGraph({
|
|
3197
|
+
rankdir: "TB",
|
|
3198
|
+
nodesep: 10,
|
|
3199
|
+
ranksep: 10,
|
|
3200
|
+
marginx: 8,
|
|
3201
|
+
marginy: 8
|
|
3202
|
+
});
|
|
3203
|
+
for (let e of T) e.size && O.setNode(e.id, {
|
|
3204
|
+
width: e.size.width,
|
|
3205
|
+
height: e.size.height,
|
|
3206
|
+
intersect: e.intersect
|
|
3207
|
+
});
|
|
3208
|
+
for (let e of w) if (e.start && e.end) {
|
|
3209
|
+
let w2 = E.getBlock(e.start), T2 = E.getBlock(e.end);
|
|
3210
|
+
if ((w2 == null ? void 0 : w2.size) && (T2 == null ? void 0 : T2.size)) {
|
|
3211
|
+
let E2 = w2.size, k = T2.size, A = [
|
|
3212
|
+
{
|
|
3213
|
+
x: E2.x,
|
|
3214
|
+
y: E2.y
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
x: E2.x + (k.x - E2.x) / 2,
|
|
3218
|
+
y: E2.y + (k.y - E2.y) / 2
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
x: k.x,
|
|
3222
|
+
y: k.y
|
|
3223
|
+
}
|
|
3224
|
+
], j = D ? `${D}-${e.id}` : e.id, M = `${e.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${e.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
|
|
3225
|
+
insertEdge(C, {
|
|
3226
|
+
v: e.start,
|
|
3227
|
+
w: e.end,
|
|
3228
|
+
name: j
|
|
3229
|
+
}, {
|
|
3230
|
+
...e,
|
|
3231
|
+
id: j,
|
|
3232
|
+
arrowTypeEnd: e.arrowTypeEnd,
|
|
3233
|
+
arrowTypeStart: e.arrowTypeStart,
|
|
3234
|
+
points: A,
|
|
3235
|
+
classes: M
|
|
3236
|
+
}, void 0, "block", O, D), e.label && (await insertEdgeLabel(C, {
|
|
3237
|
+
...e,
|
|
3238
|
+
label: e.label,
|
|
3239
|
+
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
3240
|
+
arrowTypeEnd: e.arrowTypeEnd,
|
|
3241
|
+
arrowTypeStart: e.arrowTypeStart,
|
|
3242
|
+
points: A,
|
|
3243
|
+
classes: M
|
|
3244
|
+
}), positionEdgeLabel({
|
|
3245
|
+
...e,
|
|
3246
|
+
x: A[1].x,
|
|
3247
|
+
y: A[1].y
|
|
3248
|
+
}, { originalPath: A }));
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
__name(insertEdges, "insertEdges");
|
|
3253
|
+
var diagram = {
|
|
3254
|
+
parser: block_default,
|
|
3255
|
+
db: blockDB_default,
|
|
3256
|
+
renderer: {
|
|
3257
|
+
draw: /* @__PURE__ */ __name(async function(e, C, w, T) {
|
|
3258
|
+
let { securityLevel: E, block: D } = getConfig(), O = T.db;
|
|
3259
|
+
O.setDiagramId(C);
|
|
3260
|
+
let k;
|
|
3261
|
+
E === "sandbox" && (k = select_default("#i" + C));
|
|
3262
|
+
let A = select_default(E === "sandbox" ? k.nodes()[0].contentDocument.body : "body"), j = E === "sandbox" ? A.select(`[id="${C}"]`) : select_default(`[id="${C}"]`);
|
|
3263
|
+
markers_default(j, [
|
|
3264
|
+
"point",
|
|
3265
|
+
"circle",
|
|
3266
|
+
"cross"
|
|
3267
|
+
], T.type, C);
|
|
3268
|
+
let M = O.getBlocks(), N = O.getBlocksFlat(), P = O.getEdges(), F = j.insert("g").attr("class", "block");
|
|
3269
|
+
await calculateBlockSizes(F, M, O);
|
|
3270
|
+
let I = layout(O);
|
|
3271
|
+
if (await insertBlocks(F, M, O), await insertEdges(F, P, N, O, C), I) {
|
|
3272
|
+
let e2 = I, C2 = Math.max(1, Math.round(0.125 * (e2.width / e2.height))), w2 = e2.height + C2 + 10, T2 = e2.width + 10, { useMaxWidth: E2 } = D;
|
|
3273
|
+
configureSvgSize(j, w2, T2, !!E2), log.debug("Here Bounds", I, e2), j.attr("viewBox", `${e2.x - 5} ${e2.y - 5} ${e2.width + 10} ${e2.height + 10}`);
|
|
3274
|
+
}
|
|
3275
|
+
}, "draw"),
|
|
3276
|
+
getClasses: /* @__PURE__ */ __name(function(e, C) {
|
|
3277
|
+
return C.db.getClasses();
|
|
3278
|
+
}, "getClasses")
|
|
3279
|
+
},
|
|
3280
|
+
styles: styles_default
|
|
3281
|
+
};
|
|
3282
|
+
export {
|
|
3283
|
+
diagram
|
|
3284
|
+
};
|