@marimo-team/islands 0.23.17-dev9 → 0.24.1-dev0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-f9vLjQiF.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
- package/dist/{ErrorBoundary-DhLqwSWA.js → ErrorBoundary-BniTEhHn.js} +7 -7
- package/dist/{ImageComparisonComponent-C3y7L3eJ.js → ImageComparisonComponent-B7b8DcJI.js} +42 -31
- package/dist/{Plot-YQOuVIei.js → Plot-eTseCFf_.js} +4 -4
- package/dist/_initCloneObject-DNUst5Cg.js +91 -0
- package/dist/abnfDiagram-N423BO3Z-DA4j92-C.js +112 -0
- package/dist/{any-language-editor-DifE-fl7.js → any-language-editor-LHl8ZmVN.js} +26 -26
- package/dist/apl-Cwo7GIH7.js +4 -0
- package/dist/{arc-CTIpFoOn.js → arc-9nABupDE.js} +2 -2
- package/dist/architecture-TIHT7OUA-DxLlkuAK.js +5 -0
- package/dist/{architectureDiagram-VXUJARFQ-DXwkyAaM.js → architectureDiagram-T3A2C74G-BBlBK1Oh.js} +327 -214
- package/dist/{arrays-sEtDRoG4.js → arrays-C56grfjL.js} +1 -1
- package/dist/asciiarmor-jrfEZ3j_.js +4 -0
- package/dist/asn1-BNEiJ4nQ.js +4 -0
- package/dist/assets/__vite-browser-external-DUz7vvG0.js +1 -0
- package/dist/assets/{worker-CDEKsBgX.js → worker-Cl1KJG2_.js} +2 -2
- package/dist/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
- package/dist/brainfuck-BCunvTbd.js +4 -0
- package/dist/{button-BSm8IXRU.js → button-Dr2uAwhT.js} +9 -7
- package/dist/{c4Diagram-YG6GDRKO-B6dZC_oU.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
- package/dist/{capabilities-C6OQ5YBO.js → capabilities-BilXeZ7p.js} +2 -2
- package/dist/{channel-BN070S0F.js → channel-CuV_jmG4.js} +1 -1
- package/dist/chat-ui-o-tATfmW.js +8619 -0
- package/dist/{check-DP7U0H0G.js → check-58HHfHKy.js} +1 -1
- package/dist/chunk-2GRJ4B5K-DRayWnnu.js +68 -0
- package/dist/{chunk-QZHKN3VN-Dym5BS7y.js → chunk-2Q5K7J3B-BSLyFOHa.js} +1 -1
- package/dist/chunk-3NCLNEKW-BPlp8K7N.js +11 -0
- package/dist/chunk-4I5QYGJK-CYJC3pkC.js +260 -0
- package/dist/chunk-5FCAYU7R-C3cMIeyz.js +24 -0
- package/dist/{chunk-5FQGJX7Z-B9WoXK1R.js → chunk-5FQGJX7Z-BRZ_XYUw.js} +6 -6
- package/dist/chunk-5HE753X5-D2jFCVXb.js +34 -0
- package/dist/chunk-5JV3BV7I-B7tzprBU.js +50 -0
- package/dist/{chunk-DI55MBZ5-D4Y8yV8B.js → chunk-5RXB4S5H-DcCPfb0q.js} +373 -327
- package/dist/chunk-5TONJI2A-LRqbgPte.js +59 -0
- package/dist/{chunk-FMBD7UC4-quJmebXa.js → chunk-5VM5RSS4-ChXEBudA.js} +1 -1
- package/dist/chunk-6Q2QTUOP-zcnb3OaV.js +503 -0
- package/dist/{chunk-HN2XXSSU-Bv0QkeMr.js → chunk-7BUUIJ7U-CkIbJNZo.js} +32 -25
- package/dist/chunk-7Z6QIM7H-1j-x7ddW.js +606 -0
- package/dist/{chunk-FRFDVMJY-BHBqN-vD.js → chunk-BIQX33UG-B-BYk6sM.js} +3 -3
- package/dist/chunk-Bfp04NdC.js +25 -0
- package/dist/chunk-CQNSW5MT-DBXDKSOU.js +34 -0
- package/dist/{chunk-4F5CHEZ2-VlodlEGo.js → chunk-CYSBUYHQ-Cv-vKQV-.js} +1 -1
- package/dist/{chunk-SJTYNZTY-DnXoKWpW.js → chunk-EMLP6XTP-DCtMkXLF.js} +1 -1
- package/dist/{chunk-B4BG7PRW-B_z2FEHm.js → chunk-GF5L2VYU-esTxzELH.js} +878 -636
- package/dist/chunk-I66GZJ75-9xAsFrdW.js +3744 -0
- package/dist/chunk-J7OUQ5F2-CbNBTlFM.js +81 -0
- package/dist/chunk-JG7HCLWE-CZIm6axg.js +59 -0
- package/dist/{flowDiagram-NV44I4VS-BRhSg-ro.js → chunk-JQJVKLGR-ZALkKVji.js} +1019 -1001
- package/dist/{chunk-4BX2VUAB-iU5lQTDI.js → chunk-JWPE2WC7-C_Daz-Oc.js} +1 -1
- package/dist/{chunk-QN33PNHL-DPBNNzpR.js → chunk-KBJHAD2P-B7m9DztL.js} +3 -2
- package/dist/chunk-KEIR6QF5-aP6TmWQ-.js +21095 -0
- package/dist/{chunk-UMXZTB3W-D1uHz8MN.js → chunk-MOZMSUNE-BQi-ggQx.js} +7 -4
- package/dist/{chunk-S3R3BYOJ-BdgLc8AM.js → chunk-NSK5VX7P-BmmoJBbx.js} +320 -29
- package/dist/chunk-OSBZ3O6U-BcrmpSY_.js +22 -0
- package/dist/{chunk-TQ3KTPDO-CsDx6v37.js → chunk-QBLGF6JB-BACuPUWb.js} +3 -3
- package/dist/chunk-QR6OTTB3-C4L1dLRd.js +3762 -0
- package/dist/{chunk-B2363JML-zL3VngtH.js → chunk-R7FJI6CG-BYAXJpIb.js} +3 -3
- package/dist/chunk-RYQCIY6F-poA0Ugpr.js +243 -0
- package/dist/chunk-U6XO7XAA-I8tCjTeT.js +60 -0
- package/dist/chunk-UBXNYLIW-C8LueN5Q.js +34 -0
- package/dist/{chunk-ATLVNIR6-qFiszptQ.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
- package/dist/{chunk-JA3XYJ7Z-CY4CRbV5.js → chunk-WRU74C26-DLgw-V0j.js} +262 -451
- package/dist/chunk-XXDRQBXY-Dzcp3rUR.js +9 -0
- package/dist/chunk-Y2CYZVJY-DX3DSigL.js +13 -0
- package/dist/{chunk-PL6DKKU2-CAHKc95s.js → chunk-YOTPTUD7-C8qfgaz5.js} +5 -5
- package/dist/{chunk-MI3HLSF2-HGWI-8Pg.js → chunk-ZIRB5QZD-_JX1DzEJ.js} +12 -8
- package/dist/classDiagram-JCYQIIEL-D8A6ZyXv.js +32 -0
- package/dist/classDiagram-v2-OCEON4UE-DIdYl-t3.js +32 -0
- package/dist/{click-outside-container-BSIeYt4y.js → click-outside-container-BZNsAj09.js} +2 -2
- package/dist/{clike-7lgyEYRk.js → clike-CWndBX_M.js} +1 -1
- package/dist/clojure-2X0Rfij9.js +4 -0
- package/dist/cmake-DEwzCy9U.js +4 -0
- package/dist/cobol-Ck4eCoAB.js +4 -0
- package/dist/{code-block-37QAKDTI-MSxEjskJ.js → code-block-37QAKDTI-B4pWe5MI.js} +4 -4
- package/dist/coffeescript-bB1IDwhg.js +4 -0
- package/dist/{common-C3f0slQQ.js → common-CDI91x0c.js} +797 -804
- package/dist/commonlisp-BDYrVBNC.js +4 -0
- package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
- package/dist/{copy-DNq8q3zw.js → copy-C7ZKMKox.js} +5 -5
- package/dist/{cose-bilkent-S5V4N54A-BYj0aL7z.js → cose-bilkent-JH36ORCC-D6iQzSi6.js} +6 -5
- package/dist/crystal-BSoiVUiH.js +4 -0
- package/dist/css-w1h9i21f.js +4 -0
- package/dist/cynefin-VYW2F7L2-DnZOHyNF.js +5 -0
- package/dist/cynefinDiagram-MW4NZA55-B1GNPS2u.js +367 -0
- package/dist/cypher-B4xzuKGP.js +4 -0
- package/dist/{cytoscape.esm-Dr8XzXWK.js → cytoscape.esm-BPa26Dup.js} +393 -334
- package/dist/d-D50Bz34p.js +4 -0
- package/dist/{dagre-By_QsQgc.js → dagre-ThTNj8pe.js} +60 -45
- package/dist/dagre-VZM6K2ZE-DEs5dfXA.js +343 -0
- package/dist/{data-grid-overlay-editor-BWRG2b_o.js → data-grid-overlay-editor-Ci7TXVf5.js} +5 -5
- package/dist/{debounce-BOD3DbfP.js → debounce-D784bpms.js} +2 -2
- package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-CMezyvMc.js} +26 -26
- package/dist/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
- package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
- package/dist/{diagram-S2PKOQOG-CGh4OMEV.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
- package/dist/{diagram-PSM6KHXK-D4ftnaua.js → diagram-Q27KOJAE-NPRzyGtd.js} +68 -63
- package/dist/diagram-UB23O5K3-Dogz4itg.js +236 -0
- package/dist/diff-BMdzfXq-.js +4 -0
- package/dist/{dist-BTdrwBWP.js → dist-72nb8Uag.js} +3 -3
- package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
- package/dist/{dist-BOMbzyb3.js → dist-Awj73yUw.js} +3 -3
- package/dist/{dist-w_gWE5Wf.js → dist-B0Ctcrt9.js} +1 -1
- package/dist/{dist-BO5HRiTf.js → dist-B1Donbpk.js} +2 -2
- package/dist/dist-BC6wzWNb.js +5 -0
- package/dist/{dist-De-GlSAs.js → dist-BJ2IUa0l.js} +15 -9
- package/dist/dist-BMd_RcOy.js +5 -0
- package/dist/dist-BZEWjN6r.js +5 -0
- package/dist/{dist-BP39XM8u.js → dist-B_K4AAkc.js} +1 -1
- package/dist/dist-BeuGjR3n.js +6 -0
- package/dist/dist-BfDQCUe6.js +5 -0
- package/dist/dist-BhNblTOV.js +8 -0
- package/dist/{dist-BPF0gTRZ.js → dist-C0ifRfXi.js} +1 -1
- package/dist/{dist-pqIwD8VD.js → dist-C3mEki35.js} +2 -2
- package/dist/{dist-LpLXa9Lb.js → dist-CNfV2vDI.js} +2 -2
- package/dist/{dist-DviUBLUp.js → dist-COcQ5Vyc.js} +4 -4
- package/dist/dist-CRCm4Fuo.js +5 -0
- package/dist/{dist-4lVIWUT3.js → dist-CSZpLb9d.js} +1 -1
- package/dist/{dist-BIEt-mlF.js → dist-CWswQBvu.js} +1 -1
- package/dist/{dist-D3bdsa1d.js → dist-CXYro_Nw.js} +4 -4
- package/dist/{dist-CRmSjkLP.js → dist-Ckfsc8C3.js} +2 -2
- package/dist/{dist-CSlJrrAw.js → dist-Cyq6Pxtv.js} +1 -1
- package/dist/{dist-JGehap7K.js → dist-D-BWPyoX.js} +5 -5
- package/dist/{dist-BCX980mU.js → dist-D-YB6j-O.js} +2 -2
- package/dist/{dist-DgjbnqTg.js → dist-D1vYHETp.js} +2 -2
- package/dist/{dist-BpeiYpG2.js → dist-D9-ePb6D.js} +2 -2
- package/dist/dist-DBPEbGkd.js +8 -0
- package/dist/{dist-C2_4pjuS.js → dist-DC409ROm.js} +1 -1
- package/dist/{dist-BdqCKQ1O.js → dist-DJRUd9aM.js} +2 -2
- package/dist/{dist-DaXJPX8F.js → dist-DLvxZEAK.js} +2 -2
- package/dist/dist-DSsl8IAI.js +5 -0
- package/dist/{dist-3NCqaWjt.js → dist-D_ulymry.js} +2 -2
- package/dist/{dist-DZwp8lro.js → dist-DgY27bJ4.js} +3 -3
- package/dist/{dist-BwhXBwMd.js → dist-DiwVZiK7.js} +1 -1
- package/dist/{dist-DwqBJ014.js → dist-DnYHhW6c.js} +2 -2
- package/dist/dist-Dx0kkrek.js +5 -0
- package/dist/{dist-DsoKosxi.js → dist-HaLHv0k5.js} +2 -3
- package/dist/dist-NKA1TU8a.js +6 -0
- package/dist/dist-ZFcsIdHj.js +8 -0
- package/dist/{dist-C18MUWTj.js → dist-iZ8-rtUy.js} +2 -2
- package/dist/{dist-DIlxLFXG.js → dist-j30bBjjN.js} +15 -15
- package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
- package/dist/{dist-CFSb_Frm.js → dist-sxRUVPmt.js} +1 -1
- package/dist/dist-uA2RbGmY.js +5 -0
- package/dist/{dist-B2jmQKKx.js → dist-xVU82Nq7.js} +2 -2
- package/dist/dist-zSCo-xCB.js +8 -0
- package/dist/{dockerfile-B82Pkz_V.js → dockerfile-DImRFUlA.js} +1 -1
- package/dist/dtd-B9dCT0pu.js +4 -0
- package/dist/dylan-DLghDyuR.js +4 -0
- package/dist/ebnfDiagram-BXEA7PRR-CqRWkG7L.js +129 -0
- package/dist/ecl-w0qdPHDB.js +4 -0
- package/dist/eiffel-C5AWRCNP.js +4 -0
- package/dist/elm-CT8FZrOm.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-BcKAHFqF.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
- package/dist/erlang-DPD-9M5g.js +4 -0
- package/dist/{error-banner-B_GQfxxD.js → error-banner-BwCLtmkH.js} +6 -6
- package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
- package/dist/{esm-DKOv6P2M.js → esm-Dusmf6uu.js} +105 -105
- package/dist/{esm-DzZVaNH4.js → esm-QLUgkqzZ.js} +6 -6
- package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
- package/dist/{extends-w2_S44bV.js → extends-iFBneQO_.js} +9 -9
- package/dist/{factor-Bq2mGIHt.js → factor-BonZgUGg.js} +1 -1
- package/dist/factor-rFfeJu3r.js +4 -0
- package/dist/flowDiagram-UKHOOZJN-DqIE8_b3.js +21 -0
- package/dist/{formats-Dwq1THhr.js → formats-HSfYlcA8.js} +7 -7
- package/dist/forth-C-3AyQx4.js +4 -0
- package/dist/fortran-BSN9TeT7.js +4 -0
- package/dist/ganttDiagram-PKOTCBZU-Bc9puoXb.js +2207 -0
- package/dist/gas-DwmuvQpB.js +4 -0
- package/dist/gherkin-gmCjL-Sn.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-BjTx0kww.js → gitGraph-TEB2WS4Q-DVzLmQHc.js} +2 -3
- package/dist/gitGraphDiagram-DS77QQ5N-CqKr-Dfg.js +766 -0
- package/dist/{glide-data-editor-B9K6-MJe.js → glide-data-editor-BI2i_IEE.js} +18 -18
- package/dist/graphlib-DMVIRZap.js +614 -0
- package/dist/groovy-DCjvesOy.js +4 -0
- package/dist/hasIn-synBnXn4.js +119 -0
- package/dist/haskell-C1p0D9L8.js +4 -0
- package/dist/haxe-q-fgv0zr.js +5 -0
- package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-BOiFHx3u.js} +7535 -3056
- package/dist/idl-Bmg4bsnK.js +4 -0
- package/dist/{info-VBDWY6EO-CA67FznA.js → info-DKCQHKI2-BxOTqQHM.js} +2 -3
- package/dist/infoDiagram-6WML65LV-B869X2KY.js +37 -0
- package/dist/{input-C5K4VBvB.js → input-BRE2a7Ay.js} +13 -13
- package/dist/{_baseFor-4jw-lnCC.js → isArrayLikeObject-CBUaLibE.js} +96 -29
- package/dist/{isEmpty-CJJMn-QP.js → isEmpty-CgME6WRV.js} +15 -15
- package/dist/{isSymbol-CoUCgMCM.js → isSymbol-Ch3GYg4S.js} +1 -1
- package/dist/ishikawaDiagram-WSZJBQD7-BrOMFBYy.js +731 -0
- package/dist/javascript-BY5QZ-eN.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DEal0aT1.js → journeyDiagram-NVQOT4AX-CTwHlsTm.js} +124 -123
- package/dist/{jsx-runtime-DebpN0FN.js → jsx-runtime-Dp_oQwaf.js} +1 -1
- package/dist/julia-DbR1YalK.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-Dl90wENN.js → kanban-definition-27J2QSJJ-CKowzO9_.js} +51 -45
- package/dist/{katex-C4t-BmrK.js → katex-Ci33kJVq.js} +1 -1
- package/dist/{katex-Bld7b-fk.js → katex-Dp22h6yO.js} +2871 -3002
- package/dist/{label-DjoYwqmj.js → label-CMh2d8pJ.js} +6 -6
- package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
- package/dist/{linear-H_vsH9ao.js → linear-6pDlrp1I.js} +4 -4
- package/dist/livescript-BDUooIeL.js +4 -0
- package/dist/{loader-DX-IDS7n.js → loader-DTnbNSVZ.js} +11 -11
- package/dist/lua-CswAWSkH.js +4 -0
- package/dist/main.js +747 -752
- package/dist/map-BQ_Xp80D.js +137 -0
- package/dist/mathematica-Bw7v11B5.js +4 -0
- package/dist/mbox-j35IMz1j.js +4 -0
- package/dist/merge-CDbSrd9f.js +69 -0
- package/dist/mermaid-4DMBBIKO-BZSpTmcx.js +6 -0
- package/dist/mermaid-DpAz2sTy.js +1265 -0
- package/dist/mermaid-parser.core-BQzz3_BI.js +87 -0
- package/dist/{mhchem-EGhUZR1V.js → mhchem-BDHjke3h.js} +1 -1
- package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-Cr4NxAt3.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CCDupjWW.js → mindmap-definition-FAOFIHXS-CTsi-HFj.js} +126 -80
- package/dist/mirc-Ba_RHVXO.js +4 -0
- package/dist/mllike-DbTP2dPp.js +6 -0
- package/dist/modelica-lpT3V1X6.js +4 -0
- package/dist/mscgen-BN4ZSJMx.js +6 -0
- package/dist/mumps-uI5g1A0g.js +4 -0
- package/dist/{node-sql-parser-v1Vi-Fft.js → node-sql-parser-BaLGWQe1.js} +1 -1
- package/dist/{now-Ch98bJO_.js → now-sFWt-GLC.js} +2 -2
- package/dist/{nsis-i9_sgigf.js → nsis-C68fFq_o.js} +1 -1
- package/dist/nsis-Df56GiRg.js +4 -0
- package/dist/ntriples-B3LWuG7W.js +4 -0
- package/dist/{number-overlay-editor-Ck_mc_gT.js → number-overlay-editor-CeBHRJvI.js} +3 -3
- package/dist/octave-CovfQgOx.js +4 -0
- package/dist/{once-B60G2fuJ.js → once-Boutk_9X.js} +1 -1
- package/dist/{ordinal-Bkv2-veX.js → ordinal-Bdajf2BE.js} +1 -1
- package/dist/oz-DQQAvVFb.js +4 -0
- package/dist/{packet-DYOGHKS2-Bkgofxf3.js → packet-7NZHBO7P-BG8whXXH.js} +2 -3
- package/dist/pascal-xz94P9sf.js +4 -0
- package/dist/pegDiagram-VL7TDLO6-CNpT8Sqz.js +124 -0
- package/dist/perl-aEWKE-1n.js +4 -0
- package/dist/pick-CaEWivSF.js +47 -0
- package/dist/{pie-VRWISCQL-B1AMhN_7.js → pie-RZYD4A2V-Cc_QhFbT.js} +2 -3
- package/dist/pieDiagram-7S7Q4E2Y-Ct8jRpe_.js +219 -0
- package/dist/pig-DB6DOZl7.js +4 -0
- package/dist/powershell-DM5saUx1.js +4 -0
- package/dist/{precisionRound-CnHPY_5v.js → precisionRound-BOoJTbDj.js} +1 -1
- package/dist/{process-output-bVfbcx5_.js → process-output-HrsM52f8.js} +7 -7
- package/dist/properties-BGjYQuGo.js +4 -0
- package/dist/protobuf-BPpEyPud.js +4 -0
- package/dist/{pug-BhE2JRSg.js → pug-DFPPZ3LA.js} +1 -1
- package/dist/pug-uJzB88ft.js +4 -0
- package/dist/puppet-oIm2d_Lg.js +4 -0
- package/dist/{purify.es-EnR5yhgI.js → purify.es-DR5PNXwx.js} +160 -155
- package/dist/python-WE57eUzD.js +4 -0
- package/dist/q-CR8xPodo.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BqDB9tUC.js → quadrantDiagram-CIZ2JOQS-B5n_xFcF.js} +429 -401
- package/dist/r-CJdmQZNj.js +4 -0
- package/dist/{radar-ZZBFDIW7-C2b7A32s.js → radar-I7S5WNFK-OhUkecXA.js} +2 -3
- package/dist/railroad-3IZDKUUU-1CmOpo1B.js +5 -0
- package/dist/railroad-abnf-AHOZXSZD-DmH4lsDS.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-CzK0md4e.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-DOklooKz.js +5 -0
- package/dist/railroadDiagram-AXF67PYL-BbUWbtf8.js +100 -0
- package/dist/{react-DA-nE2FX.js → react-DhGsCS90.js} +1 -1
- package/dist/{react-dom-BTJzcVJ9.js → react-dom-CmENFV8Q.js} +2 -2
- package/dist/{react-vega-BazDALhI.js → react-vega-zyfTF9SY.js} +8036 -4796
- package/dist/{requirementDiagram-UZGBJVZJ-KbVt8SPH.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
- package/dist/{reveal-component-CbOaZYQI.js → reveal-component-jN-3ZqwN.js} +27 -28
- package/dist/rough.esm-lGyFQ0B-.js +1363 -0
- package/dist/rpm-Cm5K4RH9.js +5 -0
- package/dist/ruby-ArsuTozQ.js +4 -0
- package/dist/sankeyDiagram-W5VNT64P-D82rYiAG.js +942 -0
- package/dist/sas-DShligrE.js +4 -0
- package/dist/scheme-kDLirQL7.js +4 -0
- package/dist/sequenceDiagram-SI44F4Z6-DgVKU1s5.js +4281 -0
- package/dist/shell-CVQuWP_N.js +4 -0
- package/dist/sieve-BW-ePwnq.js +4 -0
- package/dist/sizeCapture-X5ZJPWSS-BQgxHTji.js +48 -0
- package/dist/smalltalk-DI4aAXxY.js +4 -0
- package/dist/sparql-B2sp0oiz.js +4 -0
- package/dist/{spec-CQKL_D3i.js → spec-BL1GSUUF.js} +4 -4
- package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
- package/dist/{stateDiagram-FKZM4ZOC-ByOvQf2n.js → stateDiagram-OKZ733FA-Cc9BchXz.js} +61 -58
- package/dist/stateDiagram-v2-UEYNNEHI-Dd4Tuw6F.js +32 -0
- package/dist/{step-BqHnkgWE.js → step-BqVgkWtk.js} +1 -1
- package/dist/stex-D2rme5UG.js +4 -0
- package/dist/{strings-DIy9NAmg.js → strings-DMLVGXRo.js} +305 -305
- package/dist/style.css +1 -1
- package/dist/stylus-xxO-85eO.js +4 -0
- package/dist/swift-Ctg533nZ.js +4 -0
- package/dist/swimlanes-SLNWSIFB-BHvhO5uv.js +5564 -0
- package/dist/swimlanesDiagram-ULZ7WXOC-aI_zgQ8O.js +33 -0
- package/dist/{swiper-component-CEdAYjb7.js → swiper-component-Cx0cRWLk.js} +6 -6
- package/dist/tcl-phm9c5Nd.js +4 -0
- package/dist/textile-CphjAg90.js +4 -0
- package/dist/{time-Bb4A7I6a.js → time-DAJu9fnj.js} +4 -4
- package/dist/timeline-definition-Z64GVDOM-BAHuDYyA.js +1107 -0
- package/dist/{timer-BpI_FKSA.js → timer-aIIabkbI.js} +1 -1
- package/dist/{toDate-CqhBWjvO.js → toDate-BGM7kFtQ.js} +6 -6
- package/dist/toml-BUuMK772.js +4 -0
- package/dist/{tooltip-f-qR0iUx.js → tooltip-BtUxZT5h.js} +7 -7
- package/dist/treeView-QDETBFTQ-DsLN_c8p.js +5 -0
- package/dist/{treemap-GDKQZRPO-SDux0AV8.js → treemap-6X3UGDF4-K1bi3LJm.js} +2 -3
- package/dist/troff-lCtc05A3.js +4 -0
- package/dist/ttcn-CcykzBcW.js +4 -0
- package/dist/ttcn-cfg-C-XYdqpE.js +4 -0
- package/dist/turtle-CpfVZs8G.js +4 -0
- package/dist/{types-DicH9Oi0.js → types-DT8UHI5w.js} +1 -1
- package/dist/{use-vega-container-remeasure-DGNrIQSk.js → use-vega-container-remeasure-B7OD7yUY.js} +3 -3
- package/dist/{useAsyncData-CYOQb1EW.js → useAsyncData-CDcbh-Qv.js} +5 -5
- package/dist/{useDateFormatter-Bt2qr_XS.js → useDateFormatter-B_vTzxpm.js} +4 -4
- package/dist/{useDeepCompareMemoize-CSHQeQEI.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
- package/dist/{useIframeCapabilities-kA09ykNq.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
- package/dist/{useLifecycle-CMJGqBaY.js → useLifecycle-Bw4wRj_O.js} +7 -7
- package/dist/{useTheme-DYfby65G.js → useTheme-BzEXeAR5.js} +8 -7
- package/dist/vb-VOIzXwm9.js +4 -0
- package/dist/vbscript-D0WfcnVk.js +4 -0
- package/dist/{vega-component-C7nO5zcf.js → vega-component-CJug-VdR.js} +24 -24
- package/dist/{vega-embed-container-DAQAMjiO.js → vega-embed-container-BRjjqRGz.js} +9 -9
- package/dist/{vega-loader.browser-DmpxCJqx.js → vega-loader.browser-CGb-2Kwi.js} +106 -113
- package/dist/velocity-CCrc5n-0.js +4 -0
- package/dist/vennDiagram-T6HMQDX7-CTyzMewS.js +1913 -0
- package/dist/verilog-BLFhaDBH.js +4 -0
- package/dist/vhdl-DjuqPE9b.js +4 -0
- package/dist/wardley-OPB4EBWU-CP99MvU1.js +5 -0
- package/dist/wardleyDiagram-T6FBY63Y-vcno_rbk.js +669 -0
- package/dist/webidl-Cc7RrfeK.js +4 -0
- package/dist/xquery-BiCRLnNG.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BSkNxYNw.js → xychartDiagram-ELKLHX3M-DyFDERhM.js} +417 -353
- package/dist/yacas-CWcjav-O.js +4 -0
- package/dist/z80-DpYS2lE7.js +4 -0
- package/dist/{zod-BUcyXSdR.js → zod-BFY2SnzC.js} +42 -43
- package/package.json +7 -7
- package/src/__mocks__/requests.ts +5 -0
- package/src/components/ai/ai-model-dropdown.tsx +2 -2
- package/src/components/app-config/user-config-form.tsx +26 -0
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +38 -0
- package/src/components/chat/__tests__/chat-abort.test.ts +51 -0
- package/src/components/chat/__tests__/use-chat-controller-id.test.tsx +39 -0
- package/src/components/chat/capabilities-popover.tsx +68 -0
- package/src/components/chat/chat-abort.ts +44 -0
- package/src/components/chat/chat-display.tsx +17 -0
- package/src/components/chat/chat-panel.tsx +107 -50
- package/src/components/chat/chat-utils.ts +1 -1
- package/src/components/chat/use-chat-controller-id.ts +24 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
- package/src/components/data-table/charts/schemas.ts +5 -2
- package/src/components/datasets/__tests__/icons.test.ts +21 -0
- package/src/components/datasets/icons.tsx +10 -0
- package/src/components/datasources/__tests__/components.test.tsx +29 -0
- package/src/components/datasources/components.tsx +8 -3
- package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +35 -0
- package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +61 -0
- package/src/components/editor/actions/export-dialog/export-command.ts +4 -9
- package/src/components/editor/actions/export-dialog/format-notice.tsx +28 -0
- package/src/components/editor/actions/export-dialog/state.ts +23 -5
- package/src/components/editor/actions/export-dialog/use-export-dialog.ts +3 -13
- package/src/components/editor/actions/useConfigActions.tsx +24 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -2
- package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
- package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
- package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +2 -2
- package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +114 -2
- package/src/core/__tests__/mode.test.ts +85 -0
- package/src/core/ai/__tests__/config.test.tsx +96 -0
- package/src/core/ai/config.ts +16 -22
- package/src/core/ai/constants.ts +7 -0
- package/src/core/ai/staged-cells.ts +3 -0
- package/src/core/ai/state.ts +10 -0
- package/src/core/codemirror/__tests__/setup.test.ts +1 -1
- package/src/core/codemirror/cm.ts +2 -2
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +85 -6
- package/src/core/codemirror/code-lens/extension.ts +144 -47
- package/src/core/codemirror/find-replace/search-highlight.ts +8 -3
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/core/codemirror/theme/__tests__/light.test.ts +59 -123
- package/src/core/codemirror/theme/dark.ts +6 -5
- package/src/core/codemirror/theme/light.ts +6 -4
- package/src/core/config/__tests__/config-schema.test.ts +2 -0
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/dom/outline.ts +25 -2
- package/src/core/hotkeys/hotkeys.ts +2 -0
- package/src/core/mode.ts +11 -9
- package/src/core/network/__tests__/api.test.ts +132 -17
- package/src/core/network/__tests__/export-filename.test.ts +43 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
- package/src/core/network/api.ts +47 -12
- package/src/core/network/export-filename.ts +37 -0
- package/src/core/network/markdown-export.ts +19 -0
- package/src/core/network/requests-network.ts +29 -5
- package/src/core/network/types.ts +4 -0
- package/src/css/app/codemirror.css +11 -7
- package/src/css/globals.css +8 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
- package/src/plugins/impl/chat/chat-ui.tsx +51 -3
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
- package/src/plugins/impl/data-frames/schema.ts +4 -1
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +20 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +58 -0
- package/src/stories/theme.stories.tsx +71 -1
- package/dist/_baseUniq-B_2Hw7zG.js +0 -380
- package/dist/apl-e1B5LPEL.js +0 -4
- package/dist/architecture-7HQA4BMR-DHUrQjL4.js +0 -6
- package/dist/asciiarmor-B-gwgesP.js +0 -4
- package/dist/asn1-DF2ckRB4.js +0 -4
- package/dist/assets/__vite-browser-external-DltVXDv7.js +0 -1
- package/dist/blockDiagram-VD42YOAC-CIOjvxeD.js +0 -3131
- package/dist/brainfuck-4G-7_gq_.js +0 -4
- package/dist/chat-ui-DsZJj75A.js +0 -8369
- package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
- package/dist/chunk-ABZYJK2D-BxBDji1u.js +0 -2438
- package/dist/chunk-BNovOVIE.js +0 -28
- package/dist/chunk-CVBHYZKI-CwazXVlJ.js +0 -13
- package/dist/chunk-DR5Q36YT-5Yp2GWwR.js +0 -137
- package/dist/chunk-EXTU4WIE-BQPBhApE.js +0 -10
- package/dist/chunk-JZLCHNYA-DWIR9m5O.js +0 -4901
- package/dist/chunk-N4CR4FBY-Bw2HcMNc.js +0 -65
- package/dist/chunk-QXUST7PY-DtC2t9Mk.js +0 -498
- package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
- package/dist/chunk-TZMSLE5B-BzSHcq-K.js +0 -63
- package/dist/classDiagram-2ON5EDUG-BiQPjMNY.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-YHdR8fqM.js +0 -30
- package/dist/clojure-CUybM11R.js +0 -4
- package/dist/clone-Q4Fqwn6q.js +0 -9
- package/dist/cmake-BPjGcuDL.js +0 -4
- package/dist/cobol-BETk_nb6.js +0 -4
- package/dist/coffeescript-CManZxXL.js +0 -4
- package/dist/commonlisp-DWkn7GW8.js +0 -4
- package/dist/crystal-CCbg5EUH.js +0 -4
- package/dist/css-By8eo-XS.js +0 -4
- package/dist/cypher-DwfHg3nP.js +0 -4
- package/dist/d-Brs1wNbw.js +0 -4
- package/dist/dagre-6UL2VRFP-DpYjBqQs.js +0 -296
- package/dist/diagram-QEK2KX5R-DVlUOgs1.js +0 -228
- package/dist/diff-DJIRmJ1g.js +0 -4
- package/dist/dist-5o9uz19x.js +0 -5
- package/dist/dist-BpDH0DEP.js +0 -5
- package/dist/dist-BpXhbQXO.js +0 -8
- package/dist/dist-ByadAk_L.js +0 -5
- package/dist/dist-CK0g7JvP.js +0 -8
- package/dist/dist-CfzCtiq2.js +0 -5
- package/dist/dist-D8JtVFrW.js +0 -8
- package/dist/dist-DK2Oocpu.js +0 -6
- package/dist/dist-DnSu977r.js +0 -5
- package/dist/dist-UmxJm6sW.js +0 -8
- package/dist/dist-aYSBQSyM.js +0 -5
- package/dist/dist-kkZ1Ztlh.js +0 -6
- package/dist/dist-ngPczwNi.js +0 -5
- package/dist/dist-wQRyxyTV.js +0 -5
- package/dist/dtd-Dyiazv4N.js +0 -4
- package/dist/dylan-D8Fcw7NA.js +0 -4
- package/dist/ecl-CjKp8Vii.js +0 -4
- package/dist/eiffel-K9ViOX5r.js +0 -4
- package/dist/elm-B5NVtRco.js +0 -4
- package/dist/erlang-BnLzgk7R.js +0 -4
- package/dist/factor-C7f9Jz5R.js +0 -4
- package/dist/flatten-Bbw7g6-K.js +0 -8
- package/dist/forth-rGM8jLao.js +0 -4
- package/dist/fortran-B3acSe0i.js +0 -4
- package/dist/ganttDiagram-JELNMOA3-CXXCN7LN.js +0 -2170
- package/dist/gas-Bb1Vmv_N.js +0 -4
- package/dist/gherkin-C9Lyidgd.js +0 -4
- package/dist/gitGraphDiagram-V2S2FVAM-BOlkMSqK.js +0 -652
- package/dist/graphlib-Ns7y5crs.js +0 -359
- package/dist/groovy-DQk6XcGH.js +0 -4
- package/dist/hasIn-Deg7jl_j.js +0 -108
- package/dist/haskell-mV0Vw9gv.js +0 -4
- package/dist/haxe-DqxN89zH.js +0 -5
- package/dist/idl-ya8W561J.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-D3TyKnL_.js +0 -30
- package/dist/javascript-CgqgptVu.js +0 -4
- package/dist/julia-CFQ-HusI.js +0 -4
- package/dist/livescript-D__3TmDo.js +0 -4
- package/dist/lua-Bytcgj_W.js +0 -4
- package/dist/main-B1Jo_8pC.js +0 -4321
- package/dist/mathematica-DJhvVKvl.js +0 -4
- package/dist/mbox-IGHPCjfR.js +0 -4
- package/dist/memoize-BOtf2yFf.js +0 -17
- package/dist/merge-Be1CqGnU.js +0 -222
- package/dist/mermaid-4DMBBIKO-FXbOziy9.js +0 -6
- package/dist/mermaid-hv6IckVw.js +0 -1100
- package/dist/mermaid-parser.core-DoivvxPd.js +0 -54
- package/dist/min-Dtgc8txR.js +0 -38
- package/dist/mirc-tcwvVugm.js +0 -4
- package/dist/mllike-Dx91i62r.js +0 -6
- package/dist/modelica-_SRt-yU5.js +0 -4
- package/dist/mscgen-GZrGS9gt.js +0 -6
- package/dist/mumps-Cv3ygyod.js +0 -4
- package/dist/nsis-BU7GeGbI.js +0 -4
- package/dist/ntriples-CL-FCYXb.js +0 -4
- package/dist/octave-Dc6_3DIu.js +0 -4
- package/dist/oz-DpUAJCXf.js +0 -4
- package/dist/pascal-B17mncXs.js +0 -4
- package/dist/perl-BTpK97q9.js +0 -4
- package/dist/pick-D1Qo8s2C.js +0 -43
- package/dist/pieDiagram-ADFJNKIX-JvXG_6hk.js +0 -170
- package/dist/pig-CFb638Ap.js +0 -4
- package/dist/powershell-Cxo-_2A5.js +0 -4
- package/dist/properties-BPgT1xTB.js +0 -4
- package/dist/protobuf-BgHBaIIK.js +0 -4
- package/dist/pug-25-oS0SG.js +0 -4
- package/dist/puppet-DarIr20S.js +0 -4
- package/dist/python-BqmOsBsi.js +0 -4
- package/dist/q-D3QJCTup.js +0 -4
- package/dist/r-Cz_yBX4z.js +0 -4
- package/dist/rpm-DGOtYwAI.js +0 -5
- package/dist/ruby-DBZu4rPc.js +0 -4
- package/dist/sankeyDiagram-TZEHDZUN-DgkF38jx.js +0 -892
- package/dist/sas-Dd1D9qTq.js +0 -4
- package/dist/scheme-BmDjvTHX.js +0 -4
- package/dist/sequenceDiagram-WL72ISMW-BDmx9n95.js +0 -3652
- package/dist/shell-BL8zFSaj.js +0 -4
- package/dist/sieve-BAx2WqUP.js +0 -4
- package/dist/smalltalk-CYRzF7VV.js +0 -4
- package/dist/sparql-YWaDRO4A.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-C3xqeavR.js +0 -29
- package/dist/stex-B5O-env2.js +0 -4
- package/dist/stylus-lYsyLFc1.js +0 -4
- package/dist/swift-ClQz9z1n.js +0 -4
- package/dist/tcl-B3jhsfqY.js +0 -4
- package/dist/textile-Cb1Dw7Aq.js +0 -4
- package/dist/timeline-definition-IT6M3QCI-CkD_trIn.js +0 -856
- package/dist/toml-nHZhetdO.js +0 -4
- package/dist/troff-DuJAGWKH.js +0 -4
- package/dist/ttcn-BxrcwP21.js +0 -4
- package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
- package/dist/turtle-zCq949as.js +0 -4
- package/dist/vb-De5hElus.js +0 -4
- package/dist/vbscript-Cypcpv4F.js +0 -4
- package/dist/velocity-Di7l-yhe.js +0 -4
- package/dist/verilog-Bzi-S3g2.js +0 -4
- package/dist/vhdl-B0ZZITaW.js +0 -4
- package/dist/webidl-0sviiRcN.js +0 -4
- package/dist/xquery-B4qMVWaB.js +0 -4
- package/dist/yacas-Jt25Fuv8.js +0 -4
- package/dist/z80-CrcbYzmp.js +0 -4
- /package/dist/{apl-99A7dLQe.js → apl-CMUKiT2b.js} +0 -0
- /package/dist/{array-O78LT16Y.js → array-CEIRxyh3.js} +0 -0
- /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-C_r6K6db.js} +0 -0
- /package/dist/{asn1-CMrcTsT4.js → asn1-DnlnCQTu.js} +0 -0
- /package/dist/{asterisk-CqykImq7.js → asterisk-DaVJJDnV.js} +0 -0
- /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-CtQoQVkV.js} +0 -0
- /package/dist/{clike-CE0fXfM_.js → clike-CIAs0ABt.js} +0 -0
- /package/dist/{clojure-QkBEMU-g.js → clojure-C6tKQYjD.js} +0 -0
- /package/dist/{cmake-CU1jX7Mo.js → cmake-D-nfcg14.js} +0 -0
- /package/dist/{cobol-DMOKzzky.js → cobol-DYTC58p9.js} +0 -0
- /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-DctDWA58.js} +0 -0
- /package/dist/{colors-DmiH1bIH.js → colors-DR_aHfmQ.js} +0 -0
- /package/dist/{common-keywords-D3nPJNQP.js → common-keywords-FBrXPTcz.js} +0 -0
- /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-BmvTqU5y.js} +0 -0
- /package/dist/{crystal-Dy55yoYG.js → crystal-BPIK2UMa.js} +0 -0
- /package/dist/{css-CNU8w3HJ.js → css-CDo_Lwzn.js} +0 -0
- /package/dist/{cypher-q47DGzK7.js → cypher-KztbD63v.js} +0 -0
- /package/dist/{d-jEkaLvxX.js → d-HXBWOoe9.js} +0 -0
- /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-DMZFeDB8.js} +0 -0
- /package/dist/{diff-vb2-unFN.js → diff-B9rWZH0m.js} +0 -0
- /package/dist/{dtd-C9kR-bXa.js → dtd-LtAMP5y8.js} +0 -0
- /package/dist/{duckdb-keywords-B6HYCMOT.js → duckdb-keywords-CvJhR_Yd.js} +0 -0
- /package/dist/{dylan-BLckrK-V.js → dylan-DXMK92pf.js} +0 -0
- /package/dist/{ebnf-Cnp3L9jg.js → ebnf-2D4Ctp3y.js} +0 -0
- /package/dist/{ecl-CEsf6XVg.js → ecl-Dqq8ser2.js} +0 -0
- /package/dist/{eiffel-2KGZNzx6.js → eiffel-ChExWBDx.js} +0 -0
- /package/dist/{elm-D2s3K5wF.js → elm-BMBz2xbZ.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DdVSF4FD.js → emotion-is-prop-valid.esm-_z-EwK5u.js} +0 -0
- /package/dist/{erlang-0PMFOndk.js → erlang-CGSDzg9P.js} +0 -0
- /package/dist/{fcl-D9nccAWI.js → fcl-Ccj8Z5Xd.js} +0 -0
- /package/dist/{forth-DG89iUsu.js → forth-vTkfR0aY.js} +0 -0
- /package/dist/{fortran-ytKsAVvu.js → fortran-CF4LAVFn.js} +0 -0
- /package/dist/{gas-Cg2Fm0N2.js → gas-mMFbQ2x4.js} +0 -0
- /package/dist/{gherkin-B87FEnZ-.js → gherkin-DLS1q0XM.js} +0 -0
- /package/dist/{groovy-Dcs08AWD.js → groovy-Zt6CNPxV.js} +0 -0
- /package/dist/{haskell-cwkOuhx6.js → haskell-kVOgzpVy.js} +0 -0
- /package/dist/{haxe-DWEo4q10.js → haxe-Bo21F6gc.js} +0 -0
- /package/dist/{http-B8jdG64J.js → http-_DVAYWoR.js} +0 -0
- /package/dist/{idl-WWQwDcRV.js → idl-B865GSM-.js} +0 -0
- /package/dist/{init-DNBbYZd_.js → init-TaqZJsBY.js} +0 -0
- /package/dist/{invariant-wRzNXIsJ.js → invariant-hOqqBz8A.js} +0 -0
- /package/dist/{javascript-BeR74dxD.js → javascript-CSLuHpxZ.js} +0 -0
- /package/dist/{julia-UlvCUYGL.js → julia-BCOLeQif.js} +0 -0
- /package/dist/{livescript-GPmFcmYV.js → livescript-DqUzLZFs.js} +0 -0
- /package/dist/{lua-DYoT_0zM.js → lua-D0ciLwkO.js} +0 -0
- /package/dist/{math-CBNc2Ib0.js → math-CTnb-N1W.js} +0 -0
- /package/dist/{mathematica-DSFIQlbG.js → mathematica-DujD1RDf.js} +0 -0
- /package/dist/{mbox-ej8lFMdL.js → mbox-8OkSQMDn.js} +0 -0
- /package/dist/{mirc-CAdIdvHQ.js → mirc-D47x8yRQ.js} +0 -0
- /package/dist/{mllike-CjTB1lHF.js → mllike-Dcfw-g6D.js} +0 -0
- /package/dist/{modelica-BB68FYMa.js → modelica-BHtr9gKR.js} +0 -0
- /package/dist/{mscgen-BkbzgGGI.js → mscgen-uZedQc_A.js} +0 -0
- /package/dist/{mumps-Cu-28E9F.js → mumps-Bc9QS1-K.js} +0 -0
- /package/dist/{nginx-C1ofKPst.js → nginx-DasThI7R.js} +0 -0
- /package/dist/{ntriples-D9cQiZxZ.js → ntriples-Clpn9Mrg.js} +0 -0
- /package/dist/{objects-De59twF-.js → objects-UzwQd5gx.js} +0 -0
- /package/dist/{octave-BvtAnPX0.js → octave-DA2esRWi.js} +0 -0
- /package/dist/{oz-COaVHk2E.js → oz-D8i-brWx.js} +0 -0
- /package/dist/{pascal-BFpqVD2x.js → pascal-Dt1a0CeN.js} +0 -0
- /package/dist/{path-DwWbhZFI.js → path-7gr7eZmp.js} +0 -0
- /package/dist/{perl-DaiORxHP.js → perl-CXy9EfRp.js} +0 -0
- /package/dist/{pig-DFzRhmsF.js → pig-DnXnrjQg.js} +0 -0
- /package/dist/{powershell-BG2LQNKN.js → powershell-BYE6u-Qk.js} +0 -0
- /package/dist/{properties-CqJJR5QY.js → properties-DlhyusaK.js} +0 -0
- /package/dist/{protobuf-WwDYV1yY.js → protobuf-DoMSrsPi.js} +0 -0
- /package/dist/{puppet-QNY3w_uN.js → puppet-DGi4idFA.js} +0 -0
- /package/dist/{python-4QrQ3Ugi.js → python-CYhALYh0.js} +0 -0
- /package/dist/{q-DhwXuxE2.js → q-Cs_qWJkU.js} +0 -0
- /package/dist/{r-Df-nkR25.js → r-DWJSQl1c.js} +0 -0
- /package/dist/{range-BOiA8qqU.js → range-Bieq5MNc.js} +0 -0
- /package/dist/{rpm-Cokue07s.js → rpm-DIip1m0n.js} +0 -0
- /package/dist/{ruby-DrYcL3qF.js → ruby-NgZGoa7Q.js} +0 -0
- /package/dist/{sas-CoiPirA5.js → sas-DEKzCzM2.js} +0 -0
- /package/dist/{scheme-CwFLjzHv.js → scheme-CBrGar2n.js} +0 -0
- /package/dist/{semaphore-C8rmHdhj.js → semaphore-P832H4YT.js} +0 -0
- /package/dist/{shell-BFV-R24I.js → shell-D7XFPOM_.js} +0 -0
- /package/dist/{sieve-CxwXF5T9.js → sieve-BOxOVQ18.js} +0 -0
- /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-D-FXBgPn.js} +0 -0
- /package/dist/{smalltalk-QivVOCtX.js → smalltalk-DYK-HkUK.js} +0 -0
- /package/dist/{solr-BLvysN-c.js → solr-RZ9uTl59.js} +0 -0
- /package/dist/{sparql-nKsFk8j7.js → sparql-CU1uk9Py.js} +0 -0
- /package/dist/{spreadsheet-BWc8C2FT.js → spreadsheet-BNNUNXA2.js} +0 -0
- /package/dist/{sql-CWfUjlV1.js → sql-B4x8IkwU.js} +0 -0
- /package/dist/{stex-DtMAhV4-.js → stex-DIvyJfNO.js} +0 -0
- /package/dist/{stylus-BLKQAycn.js → stylus-BokZhKWB.js} +0 -0
- /package/dist/{swift-CJoKqiKj.js → swift-TlA42tbT.js} +0 -0
- /package/dist/{tcl-YTeYFNUc.js → tcl-C-m7N_9k.js} +0 -0
- /package/dist/{textile-C6rKQqMQ.js → textile-BWOWG894.js} +0 -0
- /package/dist/{tiddlywiki-ZXwTHGNT.js → tiddlywiki-DI0mF2WJ.js} +0 -0
- /package/dist/{tiki-C628O_u4.js → tiki-2HU6XLLn.js} +0 -0
- /package/dist/{toml-DxlPGbRy.js → toml-GapOS-6U.js} +0 -0
- /package/dist/{treemap-DY3NBr79.js → treemap-CQJ0bIDy.js} +0 -0
- /package/dist/{troff-DFCfH7Ku.js → troff-ChPXSGgg.js} +0 -0
- /package/dist/{ttcn-DAW-ERVP.js → ttcn-CGf_ktUb.js} +0 -0
- /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-E0kw_vEm.js} +0 -0
- /package/dist/{turtle-BneV2f8L.js → turtle-DDIYttZr.js} +0 -0
- /package/dist/{vb-D973Vxxh.js → vb-DsGz8YA-.js} +0 -0
- /package/dist/{vbscript-Dckaq3YO.js → vbscript-BfQcpKZn.js} +0 -0
- /package/dist/{velocity-DKty-GUC.js → velocity-BMi53hPb.js} +0 -0
- /package/dist/{verilog-aNaK_biA.js → verilog-B_WDxmCB.js} +0 -0
- /package/dist/{vhdl-CQuehnQy.js → vhdl-C52-TT0z.js} +0 -0
- /package/dist/{webidl-Bhg8vaMr.js → webidl-Cnphjlul.js} +0 -0
- /package/dist/{xquery-D2q16GaM.js → xquery-X_kWyOft.js} +0 -0
- /package/dist/{yacas-DHGOHnNa.js → yacas-Dpp9zAZ5.js} +0 -0
- /package/dist/{z80-BPhTmO22.js → z80-BZLZAthF.js} +0 -0
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import "./purify.es-DR5PNXwx.js";
|
|
3
|
+
import { a as cleanAndMerge } from "./chunk-NSK5VX7P-BmmoJBbx.js";
|
|
4
|
+
import { n as log } from "./src-BwVZVGyf.js";
|
|
5
|
+
import { n as __name } from "./chunk-Y2CYZVJY-DX3DSigL.js";
|
|
6
|
+
import { D as getThemeVariables3, H as setAccDescription, K as setDiagramTitle, U as setAccTitle, a as clear, b as getConfig, c as configureSvgSize, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle } from "./chunk-I66GZJ75-9xAsFrdW.js";
|
|
7
|
+
import { t as selectSvgElement } from "./chunk-3NCLNEKW-BPlp8K7N.js";
|
|
8
|
+
import "./dist-HaLHv0k5.js";
|
|
9
|
+
import "./chunk-KEIR6QF5-aP6TmWQ-.js";
|
|
10
|
+
import "./chunk-MOZMSUNE-BQi-ggQx.js";
|
|
11
|
+
import "./chunk-OSBZ3O6U-BcrmpSY_.js";
|
|
12
|
+
import "./chunk-5JV3BV7I-B7tzprBU.js";
|
|
13
|
+
import "./chunk-CYSBUYHQ-Cv-vKQV-.js";
|
|
14
|
+
import "./chunk-BIQX33UG-B-BYk6sM.js";
|
|
15
|
+
import "./chunk-EMLP6XTP-DCtMkXLF.js";
|
|
16
|
+
import "./chunk-YOTPTUD7-C8qfgaz5.js";
|
|
17
|
+
import "./chunk-QBLGF6JB-BACuPUWb.js";
|
|
18
|
+
import "./chunk-5TONJI2A-LRqbgPte.js";
|
|
19
|
+
import "./chunk-5HE753X5-D2jFCVXb.js";
|
|
20
|
+
import "./chunk-U6XO7XAA-I8tCjTeT.js";
|
|
21
|
+
import "./chunk-JG7HCLWE-CZIm6axg.js";
|
|
22
|
+
import "./chunk-CQNSW5MT-DBXDKSOU.js";
|
|
23
|
+
import "./chunk-R7FJI6CG-BYAXJpIb.js";
|
|
24
|
+
import "./chunk-5FCAYU7R-C3cMIeyz.js";
|
|
25
|
+
import { t as populateCommonDb } from "./chunk-JWPE2WC7-C_Daz-Oc.js";
|
|
26
|
+
import { n as parse } from "./mermaid-parser.core-BQzz3_BI.js";
|
|
27
|
+
var toPercent = /* @__PURE__ */ __name((t, u) => {
|
|
28
|
+
let d = t <= 1 ? t * 100 : t;
|
|
29
|
+
if (d < 0 || d > 100) throw Error(`${u} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);
|
|
30
|
+
return d;
|
|
31
|
+
}, "toPercent"), toCoordinates = /* @__PURE__ */ __name((t, u, d) => ({
|
|
32
|
+
x: toPercent(u, `${d} evolution`),
|
|
33
|
+
y: toPercent(t, `${d} visibility`)
|
|
34
|
+
}), "toCoordinates"), getFlowFromPort = /* @__PURE__ */ __name((t) => {
|
|
35
|
+
if (t) {
|
|
36
|
+
if (t === "+<>") return "bidirectional";
|
|
37
|
+
if (t === "+<") return "backward";
|
|
38
|
+
if (t === "+>") return "forward";
|
|
39
|
+
}
|
|
40
|
+
}, "getFlowFromPort"), extractFlowFromArrow = /* @__PURE__ */ __name((t) => {
|
|
41
|
+
var _a2;
|
|
42
|
+
if (!(t == null ? void 0 : t.startsWith("+"))) return {};
|
|
43
|
+
let u = (_a2 = /^\+'([^']*)'/.exec(t)) == null ? void 0 : _a2[1];
|
|
44
|
+
return t.includes("<>") ? {
|
|
45
|
+
flow: "bidirectional",
|
|
46
|
+
label: u
|
|
47
|
+
} : t.includes("<") ? {
|
|
48
|
+
flow: "backward",
|
|
49
|
+
label: u
|
|
50
|
+
} : t.includes(">") ? {
|
|
51
|
+
flow: "forward",
|
|
52
|
+
label: u
|
|
53
|
+
} : { label: u };
|
|
54
|
+
}, "extractFlowFromArrow"), populateDb = /* @__PURE__ */ __name((t, u) => {
|
|
55
|
+
if (populateCommonDb(t, u), t.size && u.setSize(t.size.width, t.size.height), t.evolution) {
|
|
56
|
+
let d = t.evolution.stages.map((t2) => t2.secondName ? `${t2.name.trim()} / ${t2.secondName.trim()}` : t2.name.trim()), f = t.evolution.stages.filter((t2) => t2.boundary !== void 0).map((t2) => t2.boundary);
|
|
57
|
+
u.updateAxes({
|
|
58
|
+
stages: d,
|
|
59
|
+
stageBoundaries: f
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (t.anchors.forEach((t2) => {
|
|
63
|
+
let d = toCoordinates(t2.visibility, t2.evolution, `Anchor "${t2.name}"`);
|
|
64
|
+
u.addNode(t2.name, t2.name, d.x, d.y, "anchor");
|
|
65
|
+
}), t.components.forEach((t2) => {
|
|
66
|
+
var _a2;
|
|
67
|
+
let d = toCoordinates(t2.visibility, t2.evolution, `Component "${t2.name}"`), f = t2.label ? (t2.label.negX ? -1 : 1) * t2.label.offsetX : void 0, p = t2.label ? (t2.label.negY ? -1 : 1) * t2.label.offsetY : void 0, m = (_a2 = t2.decorator) == null ? void 0 : _a2.strategy;
|
|
68
|
+
u.addNode(t2.name, t2.name, d.x, d.y, "component", f, p, t2.inertia, m);
|
|
69
|
+
}), t.notes.forEach((t2) => {
|
|
70
|
+
let d = toCoordinates(t2.visibility, t2.evolution, `Note "${t2.text}"`);
|
|
71
|
+
u.addNote(t2.text, d.x, d.y);
|
|
72
|
+
}), t.pipelines.forEach((t2) => {
|
|
73
|
+
let d = u.getNode(t2.parent);
|
|
74
|
+
if (!d || typeof d.y != "number") throw Error(`Pipeline "${t2.parent}" must reference an existing component with coordinates.`);
|
|
75
|
+
let f = d.y;
|
|
76
|
+
u.startPipeline(t2.parent), t2.components.forEach((d2) => {
|
|
77
|
+
let p = `${t2.parent}_${d2.name}`, m = d2.label ? (d2.label.negX ? -1 : 1) * d2.label.offsetX : void 0, h = d2.label ? (d2.label.negY ? -1 : 1) * d2.label.offsetY : void 0, g = toPercent(d2.evolution, `Pipeline component "${d2.name}" evolution`);
|
|
78
|
+
u.addNode(p, d2.name, g, f, "pipeline-component", m, h), u.addPipelineComponent(t2.parent, p);
|
|
79
|
+
});
|
|
80
|
+
}), t.links.forEach((t2) => {
|
|
81
|
+
let d = !!t2.arrow && (t2.arrow.includes("-.->") || t2.arrow.includes(".-.")), f = getFlowFromPort(t2.fromPort) ?? getFlowFromPort(t2.toPort), { flow: p, label: m } = extractFlowFromArrow(t2.arrow);
|
|
82
|
+
!f && p && (f = p);
|
|
83
|
+
let h = t2.linkLabel, g = m ?? h;
|
|
84
|
+
u.addLink(u.resolveNodeId(t2.from), u.resolveNodeId(t2.to), d, g, f);
|
|
85
|
+
}), t.evolves.forEach((t2) => {
|
|
86
|
+
let d = u.getNode(t2.component);
|
|
87
|
+
if ((d == null ? void 0 : d.y) !== void 0) {
|
|
88
|
+
let f = toPercent(t2.target, `Evolve target for "${t2.component}"`);
|
|
89
|
+
u.addTrend(t2.component, f, d.y);
|
|
90
|
+
}
|
|
91
|
+
}), t.annotations.length > 0) {
|
|
92
|
+
let d = t.annotations[0], f = toCoordinates(d.x, d.y, "Annotations box");
|
|
93
|
+
u.setAnnotationsBox(f.x, f.y);
|
|
94
|
+
}
|
|
95
|
+
t.annotation.forEach((t2) => {
|
|
96
|
+
let d = toCoordinates(t2.x, t2.y, `Annotation ${t2.number}`);
|
|
97
|
+
u.addAnnotation(t2.number, [{
|
|
98
|
+
x: d.x,
|
|
99
|
+
y: d.y
|
|
100
|
+
}], t2.text);
|
|
101
|
+
}), t.accelerators.forEach((t2) => {
|
|
102
|
+
let d = toCoordinates(t2.x, t2.y, `Accelerator "${t2.name}"`);
|
|
103
|
+
u.addAccelerator(t2.name, d.x, d.y);
|
|
104
|
+
}), t.deaccelerators.forEach((t2) => {
|
|
105
|
+
let d = toCoordinates(t2.x, t2.y, `Deaccelerator "${t2.name}"`);
|
|
106
|
+
u.addDeaccelerator(t2.name, d.x, d.y);
|
|
107
|
+
});
|
|
108
|
+
}, "populateDb"), parser = {
|
|
109
|
+
parser: { yy: void 0 },
|
|
110
|
+
parse: /* @__PURE__ */ __name(async (t) => {
|
|
111
|
+
var _a2;
|
|
112
|
+
let d = await parse("wardley", t);
|
|
113
|
+
log.debug(d);
|
|
114
|
+
let f = (_a2 = parser.parser) == null ? void 0 : _a2.yy;
|
|
115
|
+
if (!f || typeof f.addNode != "function") throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
116
|
+
populateDb(d, f);
|
|
117
|
+
}, "parse")
|
|
118
|
+
}, builder = new (_a = class {
|
|
119
|
+
constructor() {
|
|
120
|
+
this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {};
|
|
121
|
+
}
|
|
122
|
+
addNode(t) {
|
|
123
|
+
let u = this.nodes.get(t.id) ?? {
|
|
124
|
+
id: t.id,
|
|
125
|
+
label: t.label
|
|
126
|
+
}, d = {
|
|
127
|
+
...u,
|
|
128
|
+
...t,
|
|
129
|
+
className: t.className ?? u.className,
|
|
130
|
+
labelOffsetX: t.labelOffsetX ?? u.labelOffsetX,
|
|
131
|
+
labelOffsetY: t.labelOffsetY ?? u.labelOffsetY
|
|
132
|
+
};
|
|
133
|
+
this.nodes.set(t.id, d);
|
|
134
|
+
}
|
|
135
|
+
addLink(t) {
|
|
136
|
+
this.links.push(t);
|
|
137
|
+
}
|
|
138
|
+
addTrend(t) {
|
|
139
|
+
this.trends.set(t.nodeId, t);
|
|
140
|
+
}
|
|
141
|
+
startPipeline(t) {
|
|
142
|
+
this.pipelines.set(t, {
|
|
143
|
+
nodeId: t,
|
|
144
|
+
componentIds: []
|
|
145
|
+
});
|
|
146
|
+
let u = this.nodes.get(t);
|
|
147
|
+
u && (u.isPipelineParent = true);
|
|
148
|
+
}
|
|
149
|
+
addPipelineComponent(t, u) {
|
|
150
|
+
let d = this.pipelines.get(t);
|
|
151
|
+
d && d.componentIds.push(u);
|
|
152
|
+
let f = this.nodes.get(u);
|
|
153
|
+
f && (f.inPipeline = true);
|
|
154
|
+
}
|
|
155
|
+
addAnnotation(t) {
|
|
156
|
+
this.annotations.push(t);
|
|
157
|
+
}
|
|
158
|
+
addNote(t) {
|
|
159
|
+
this.notes.push(t);
|
|
160
|
+
}
|
|
161
|
+
addAccelerator(t) {
|
|
162
|
+
this.accelerators.push(t);
|
|
163
|
+
}
|
|
164
|
+
addDeaccelerator(t) {
|
|
165
|
+
this.deaccelerators.push(t);
|
|
166
|
+
}
|
|
167
|
+
setAnnotationsBox(t, u) {
|
|
168
|
+
this.annotationsBox = {
|
|
169
|
+
x: t,
|
|
170
|
+
y: u
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
setAxes(t) {
|
|
174
|
+
this.axes = {
|
|
175
|
+
...this.axes,
|
|
176
|
+
...t
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
setSize(t, u) {
|
|
180
|
+
this.size = {
|
|
181
|
+
width: t,
|
|
182
|
+
height: u
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
getNode(t) {
|
|
186
|
+
return this.nodes.get(t);
|
|
187
|
+
}
|
|
188
|
+
resolveNodeId(t) {
|
|
189
|
+
if (this.nodes.has(t)) return t;
|
|
190
|
+
for (let [u, d] of this.nodes) if (d.label === t) return u;
|
|
191
|
+
return t;
|
|
192
|
+
}
|
|
193
|
+
build() {
|
|
194
|
+
let t = [];
|
|
195
|
+
for (let u of this.nodes.values()) {
|
|
196
|
+
if (typeof u.x != "number" || typeof u.y != "number") throw Error(`Node "${u.label}" is missing coordinates`);
|
|
197
|
+
t.push(u);
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
nodes: t,
|
|
201
|
+
links: [...this.links],
|
|
202
|
+
trends: [...this.trends.values()],
|
|
203
|
+
pipelines: [...this.pipelines.values()],
|
|
204
|
+
annotations: [...this.annotations],
|
|
205
|
+
notes: [...this.notes],
|
|
206
|
+
accelerators: [...this.accelerators],
|
|
207
|
+
deaccelerators: [...this.deaccelerators],
|
|
208
|
+
annotationsBox: this.annotationsBox,
|
|
209
|
+
axes: { ...this.axes },
|
|
210
|
+
size: this.size
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
clear() {
|
|
214
|
+
this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
|
|
215
|
+
}
|
|
216
|
+
}, __name(_a, "WardleyBuilder"), _a)();
|
|
217
|
+
function getConfig3() {
|
|
218
|
+
return getConfig2()["wardley-beta"];
|
|
219
|
+
}
|
|
220
|
+
__name(getConfig3, "getConfig");
|
|
221
|
+
function addNode(t, u, d, f, p, m, h, g, _) {
|
|
222
|
+
builder.addNode({
|
|
223
|
+
id: t,
|
|
224
|
+
label: u,
|
|
225
|
+
x: d,
|
|
226
|
+
y: f,
|
|
227
|
+
className: p,
|
|
228
|
+
labelOffsetX: m,
|
|
229
|
+
labelOffsetY: h,
|
|
230
|
+
inertia: g,
|
|
231
|
+
sourceStrategy: _
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
__name(addNode, "addNode");
|
|
235
|
+
function addLink(t, u, d = false, f, p) {
|
|
236
|
+
builder.addLink({
|
|
237
|
+
source: t,
|
|
238
|
+
target: u,
|
|
239
|
+
dashed: d,
|
|
240
|
+
label: f,
|
|
241
|
+
flow: p
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
__name(addLink, "addLink");
|
|
245
|
+
function addTrend(t, u, d) {
|
|
246
|
+
builder.addTrend({
|
|
247
|
+
nodeId: t,
|
|
248
|
+
targetX: u,
|
|
249
|
+
targetY: d
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
__name(addTrend, "addTrend");
|
|
253
|
+
function addAnnotation(t, u, d) {
|
|
254
|
+
builder.addAnnotation({
|
|
255
|
+
number: t,
|
|
256
|
+
coordinates: u,
|
|
257
|
+
text: d
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
__name(addAnnotation, "addAnnotation");
|
|
261
|
+
function addNote(t, u, d) {
|
|
262
|
+
builder.addNote({
|
|
263
|
+
text: t,
|
|
264
|
+
x: u,
|
|
265
|
+
y: d
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
__name(addNote, "addNote");
|
|
269
|
+
function addAccelerator(t, u, d) {
|
|
270
|
+
builder.addAccelerator({
|
|
271
|
+
name: t,
|
|
272
|
+
x: u,
|
|
273
|
+
y: d
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
__name(addAccelerator, "addAccelerator");
|
|
277
|
+
function addDeaccelerator(t, u, d) {
|
|
278
|
+
builder.addDeaccelerator({
|
|
279
|
+
name: t,
|
|
280
|
+
x: u,
|
|
281
|
+
y: d
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
__name(addDeaccelerator, "addDeaccelerator");
|
|
285
|
+
function setAnnotationsBox(t, u) {
|
|
286
|
+
builder.setAnnotationsBox(t, u);
|
|
287
|
+
}
|
|
288
|
+
__name(setAnnotationsBox, "setAnnotationsBox");
|
|
289
|
+
function setSize(t, u) {
|
|
290
|
+
builder.setSize(t, u);
|
|
291
|
+
}
|
|
292
|
+
__name(setSize, "setSize");
|
|
293
|
+
function startPipeline(t) {
|
|
294
|
+
builder.startPipeline(t);
|
|
295
|
+
}
|
|
296
|
+
__name(startPipeline, "startPipeline");
|
|
297
|
+
function addPipelineComponent(t, u) {
|
|
298
|
+
builder.addPipelineComponent(t, u);
|
|
299
|
+
}
|
|
300
|
+
__name(addPipelineComponent, "addPipelineComponent");
|
|
301
|
+
function updateAxes(t) {
|
|
302
|
+
builder.setAxes(t);
|
|
303
|
+
}
|
|
304
|
+
__name(updateAxes, "updateAxes");
|
|
305
|
+
function getNode(t) {
|
|
306
|
+
return builder.getNode(t);
|
|
307
|
+
}
|
|
308
|
+
__name(getNode, "getNode");
|
|
309
|
+
function resolveNodeId(t) {
|
|
310
|
+
return builder.resolveNodeId(t);
|
|
311
|
+
}
|
|
312
|
+
__name(resolveNodeId, "resolveNodeId");
|
|
313
|
+
function getWardleyData() {
|
|
314
|
+
return builder.build();
|
|
315
|
+
}
|
|
316
|
+
__name(getWardleyData, "getWardleyData");
|
|
317
|
+
function clear2() {
|
|
318
|
+
builder.clear(), clear();
|
|
319
|
+
}
|
|
320
|
+
__name(clear2, "clear");
|
|
321
|
+
var wardleyDb_default = {
|
|
322
|
+
getConfig: getConfig3,
|
|
323
|
+
addNode,
|
|
324
|
+
addLink,
|
|
325
|
+
addTrend,
|
|
326
|
+
addAnnotation,
|
|
327
|
+
addNote,
|
|
328
|
+
addAccelerator,
|
|
329
|
+
addDeaccelerator,
|
|
330
|
+
setAnnotationsBox,
|
|
331
|
+
setSize,
|
|
332
|
+
startPipeline,
|
|
333
|
+
addPipelineComponent,
|
|
334
|
+
updateAxes,
|
|
335
|
+
getNode,
|
|
336
|
+
resolveNodeId,
|
|
337
|
+
getWardleyData,
|
|
338
|
+
clear: clear2,
|
|
339
|
+
setAccTitle,
|
|
340
|
+
getAccTitle,
|
|
341
|
+
setDiagramTitle,
|
|
342
|
+
getDiagramTitle,
|
|
343
|
+
getAccDescription,
|
|
344
|
+
setAccDescription
|
|
345
|
+
}, DEFAULT_STAGES = [
|
|
346
|
+
"Genesis",
|
|
347
|
+
"Custom Built",
|
|
348
|
+
"Product",
|
|
349
|
+
"Commodity"
|
|
350
|
+
], getTheme = /* @__PURE__ */ __name(() => {
|
|
351
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
352
|
+
let { themeVariables: t } = getConfig2();
|
|
353
|
+
return {
|
|
354
|
+
backgroundColor: ((_a2 = t.wardley) == null ? void 0 : _a2.backgroundColor) ?? t.background ?? "#fff",
|
|
355
|
+
axisColor: ((_b = t.wardley) == null ? void 0 : _b.axisColor) ?? "#000",
|
|
356
|
+
axisTextColor: ((_c = t.wardley) == null ? void 0 : _c.axisTextColor) ?? t.primaryTextColor ?? "#222",
|
|
357
|
+
gridColor: ((_d = t.wardley) == null ? void 0 : _d.gridColor) ?? "rgba(100, 100, 100, 0.2)",
|
|
358
|
+
componentFill: ((_e = t.wardley) == null ? void 0 : _e.componentFill) ?? "#fff",
|
|
359
|
+
componentStroke: ((_f = t.wardley) == null ? void 0 : _f.componentStroke) ?? "#000",
|
|
360
|
+
componentLabelColor: ((_g = t.wardley) == null ? void 0 : _g.componentLabelColor) ?? t.primaryTextColor ?? "#222",
|
|
361
|
+
linkStroke: ((_h = t.wardley) == null ? void 0 : _h.linkStroke) ?? "#000",
|
|
362
|
+
evolutionStroke: ((_i = t.wardley) == null ? void 0 : _i.evolutionStroke) ?? "#dc3545",
|
|
363
|
+
annotationStroke: ((_j = t.wardley) == null ? void 0 : _j.annotationStroke) ?? "#000",
|
|
364
|
+
annotationTextColor: ((_k = t.wardley) == null ? void 0 : _k.annotationTextColor) ?? t.primaryTextColor ?? "#222",
|
|
365
|
+
annotationFill: ((_l = t.wardley) == null ? void 0 : _l.annotationFill) ?? t.background ?? "#fff"
|
|
366
|
+
};
|
|
367
|
+
}, "getTheme"), getConfigValues = /* @__PURE__ */ __name(() => {
|
|
368
|
+
let t = getConfig2()["wardley-beta"];
|
|
369
|
+
return {
|
|
370
|
+
width: (t == null ? void 0 : t.width) ?? 900,
|
|
371
|
+
height: (t == null ? void 0 : t.height) ?? 600,
|
|
372
|
+
padding: (t == null ? void 0 : t.padding) ?? 48,
|
|
373
|
+
nodeRadius: (t == null ? void 0 : t.nodeRadius) ?? 6,
|
|
374
|
+
nodeLabelOffset: (t == null ? void 0 : t.nodeLabelOffset) ?? 8,
|
|
375
|
+
axisFontSize: (t == null ? void 0 : t.axisFontSize) ?? 12,
|
|
376
|
+
labelFontSize: (t == null ? void 0 : t.labelFontSize) ?? 10,
|
|
377
|
+
showGrid: (t == null ? void 0 : t.showGrid) ?? false,
|
|
378
|
+
useMaxWidth: (t == null ? void 0 : t.useMaxWidth) ?? true
|
|
379
|
+
};
|
|
380
|
+
}, "getConfigValues"), diagram = {
|
|
381
|
+
parser,
|
|
382
|
+
db: wardleyDb_default,
|
|
383
|
+
renderer: { draw: /* @__PURE__ */ __name((t, f, p, m) => {
|
|
384
|
+
var _a2, _b;
|
|
385
|
+
log.debug("Rendering Wardley map\n" + t);
|
|
386
|
+
let h = getConfigValues(), g = getTheme(), _ = h.nodeRadius * 1.6, y = m.db, b = y.getWardleyData(), x = y.getDiagramTitle(), S = ((_a2 = b.size) == null ? void 0 : _a2.width) ?? h.width, w = ((_b = b.size) == null ? void 0 : _b.height) ?? h.height, T = selectSvgElement(f);
|
|
387
|
+
T.selectAll("*").remove(), configureSvgSize(T, w, S, h.useMaxWidth), T.attr("viewBox", `0 0 ${S} ${w}`);
|
|
388
|
+
let E = T.append("g").attr("class", "wardley-map"), D = T.append("defs");
|
|
389
|
+
D.append("marker").attr("id", `arrow-${f}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", g.evolutionStroke).attr("stroke", "none"), D.append("marker").attr("id", `link-arrow-end-${f}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", g.linkStroke).attr("stroke", "none"), D.append("marker").attr("id", `link-arrow-start-${f}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", g.linkStroke).attr("stroke", "none"), E.append("rect").attr("class", "wardley-background").attr("width", S).attr("height", w).attr("fill", g.backgroundColor);
|
|
390
|
+
let O = S - h.padding * 2, k = w - h.padding * 2;
|
|
391
|
+
x && E.append("text").attr("class", "wardley-title").attr("x", S / 2).attr("y", h.padding / 2).attr("fill", g.axisTextColor).attr("font-size", h.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(x);
|
|
392
|
+
let A = /* @__PURE__ */ __name((t2) => h.padding + t2 / 100 * O, "projectX"), j = /* @__PURE__ */ __name((t2) => w - h.padding - t2 / 100 * k, "projectY"), M = E.append("g").attr("class", "wardley-axes");
|
|
393
|
+
M.append("line").attr("x1", h.padding).attr("x2", S - h.padding).attr("y1", w - h.padding).attr("y2", w - h.padding).attr("stroke", g.axisColor).attr("stroke-width", 1), M.append("line").attr("x1", h.padding).attr("x2", h.padding).attr("y1", h.padding).attr("y2", w - h.padding).attr("stroke", g.axisColor).attr("stroke-width", 1);
|
|
394
|
+
let N = b.axes.xLabel ?? "Evolution", P = b.axes.yLabel ?? "Visibility";
|
|
395
|
+
M.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", h.padding + O / 2).attr("y", w - h.padding / 4).attr("fill", g.axisTextColor).attr("font-size", h.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(N), M.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", h.padding / 3).attr("y", h.padding + k / 2).attr("fill", g.axisTextColor).attr("font-size", h.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${h.padding / 3} ${h.padding + k / 2})`).text(P);
|
|
396
|
+
let F = b.axes.stages && b.axes.stages.length > 0 ? b.axes.stages : DEFAULT_STAGES;
|
|
397
|
+
if (F.length > 0) {
|
|
398
|
+
let t2 = E.append("g").attr("class", "wardley-stages"), u = b.axes.stageBoundaries, d = [];
|
|
399
|
+
if (u && u.length === F.length) {
|
|
400
|
+
let t3 = 0;
|
|
401
|
+
u.forEach((u2) => {
|
|
402
|
+
d.push({
|
|
403
|
+
start: t3,
|
|
404
|
+
end: u2
|
|
405
|
+
}), t3 = u2;
|
|
406
|
+
});
|
|
407
|
+
} else {
|
|
408
|
+
let t3 = 1 / F.length;
|
|
409
|
+
F.forEach((u2, f2) => {
|
|
410
|
+
d.push({
|
|
411
|
+
start: f2 * t3,
|
|
412
|
+
end: (f2 + 1) * t3
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
F.forEach((u2, f2) => {
|
|
417
|
+
let p2 = d[f2], m2 = h.padding + p2.start * O, _2 = (m2 + (h.padding + p2.end * O)) / 2;
|
|
418
|
+
f2 > 0 && t2.append("line").attr("x1", m2).attr("x2", m2).attr("y1", h.padding).attr("y2", w - h.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", 0.8), t2.append("text").attr("class", "wardley-stage-label").attr("x", _2).attr("y", w - h.padding / 1.5).attr("fill", g.axisTextColor).attr("font-size", h.axisFontSize - 2).attr("text-anchor", "middle").text(u2);
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
if (h.showGrid) {
|
|
422
|
+
let t2 = E.append("g").attr("class", "wardley-grid");
|
|
423
|
+
for (let u = 1; u < 4; u++) {
|
|
424
|
+
let d = u / 4, f2 = h.padding + O * d;
|
|
425
|
+
t2.append("line").attr("x1", f2).attr("x2", f2).attr("y1", h.padding).attr("y2", w - h.padding).attr("stroke", g.gridColor).attr("stroke-dasharray", "2 6"), t2.append("line").attr("x1", h.padding).attr("x2", S - h.padding).attr("y1", w - h.padding - k * d).attr("y2", w - h.padding - k * d).attr("stroke", g.gridColor).attr("stroke-dasharray", "2 6");
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
let I = /* @__PURE__ */ new Map();
|
|
429
|
+
if (b.nodes.forEach((t2) => {
|
|
430
|
+
I.set(t2.id, {
|
|
431
|
+
x: A(t2.x),
|
|
432
|
+
y: j(t2.y),
|
|
433
|
+
node: t2
|
|
434
|
+
});
|
|
435
|
+
}), b.pipelines.length > 0) {
|
|
436
|
+
let t2 = E.append("g").attr("class", "wardley-pipelines"), u = E.append("g").attr("class", "wardley-pipeline-links");
|
|
437
|
+
b.pipelines.forEach((d) => {
|
|
438
|
+
if (d.componentIds.length === 0) return;
|
|
439
|
+
let f2 = d.componentIds.map((t3) => ({
|
|
440
|
+
id: t3,
|
|
441
|
+
pos: I.get(t3),
|
|
442
|
+
node: b.nodes.find((u2) => u2.id === t3)
|
|
443
|
+
})).filter((t3) => t3.pos && t3.node).sort((t3, u2) => t3.node.x - u2.node.x);
|
|
444
|
+
for (let t3 = 0; t3 < f2.length - 1; t3++) {
|
|
445
|
+
let d2 = f2[t3], p3 = f2[t3 + 1];
|
|
446
|
+
u.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", d2.pos.x).attr("y1", d2.pos.y).attr("x2", p3.pos.x).attr("y2", p3.pos.y).attr("stroke", g.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
|
|
447
|
+
}
|
|
448
|
+
let p2 = Infinity, m2 = -Infinity, v = 0;
|
|
449
|
+
if (d.componentIds.forEach((t3) => {
|
|
450
|
+
let u2 = I.get(t3);
|
|
451
|
+
u2 && (p2 = Math.min(p2, u2.x), m2 = Math.max(m2, u2.x), v = u2.y);
|
|
452
|
+
}), p2 !== Infinity && m2 !== -Infinity) {
|
|
453
|
+
let u2 = h.nodeRadius * 4, f3 = v - u2 / 2, y2 = I.get(d.nodeId);
|
|
454
|
+
y2 && (y2.x = (p2 + m2) / 2, y2.y = f3 - _ / 6), t2.append("rect").attr("class", "wardley-pipeline-box").attr("x", p2 - 15).attr("y", f3).attr("width", m2 - p2 + 30).attr("height", u2).attr("fill", "none").attr("stroke", g.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
let L = E.append("g").attr("class", "wardley-links"), R = /* @__PURE__ */ new Map();
|
|
459
|
+
b.pipelines.forEach((t2) => {
|
|
460
|
+
R.set(t2.nodeId, new Set(t2.componentIds));
|
|
461
|
+
});
|
|
462
|
+
let z = b.links.filter((t2) => {
|
|
463
|
+
var _a3;
|
|
464
|
+
return !(!I.has(t2.source) || !I.has(t2.target) || ((_a3 = R.get(t2.target)) == null ? void 0 : _a3.has(t2.source)));
|
|
465
|
+
});
|
|
466
|
+
L.selectAll("line").data(z).enter().append("line").attr("class", (t2) => `wardley-link${t2.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (t2) => {
|
|
467
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = b.nodes.find((u2) => u2.id === t2.source).isPipelineParent ? _ / Math.sqrt(2) : h.nodeRadius, p2 = d.x - u.x, m2 = d.y - u.y, g2 = Math.sqrt(p2 * p2 + m2 * m2);
|
|
468
|
+
return u.x + p2 / g2 * f2;
|
|
469
|
+
}).attr("y1", (t2) => {
|
|
470
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = b.nodes.find((u2) => u2.id === t2.source).isPipelineParent ? _ / Math.sqrt(2) : h.nodeRadius, p2 = d.x - u.x, m2 = d.y - u.y, g2 = Math.sqrt(p2 * p2 + m2 * m2);
|
|
471
|
+
return u.y + m2 / g2 * f2;
|
|
472
|
+
}).attr("x2", (t2) => {
|
|
473
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = b.nodes.find((u2) => u2.id === t2.target).isPipelineParent ? _ / Math.sqrt(2) : h.nodeRadius, p2 = u.x - d.x, m2 = u.y - d.y, g2 = Math.sqrt(p2 * p2 + m2 * m2);
|
|
474
|
+
return d.x + p2 / g2 * f2;
|
|
475
|
+
}).attr("y2", (t2) => {
|
|
476
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = b.nodes.find((u2) => u2.id === t2.target).isPipelineParent ? _ / Math.sqrt(2) : h.nodeRadius, p2 = u.x - d.x, m2 = u.y - d.y, g2 = Math.sqrt(p2 * p2 + m2 * m2);
|
|
477
|
+
return d.y + m2 / g2 * f2;
|
|
478
|
+
}).attr("stroke", g.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (t2) => t2.dashed ? "6 6" : null).attr("marker-end", (t2) => t2.flow === "forward" || t2.flow === "bidirectional" ? `url(#link-arrow-end-${f})` : null).attr("marker-start", (t2) => t2.flow === "backward" || t2.flow === "bidirectional" ? `url(#link-arrow-start-${f})` : null), L.selectAll("text").data(z.filter((t2) => t2.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (t2) => {
|
|
479
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = (u.x + d.x) / 2, p2 = d.y - u.y, m2 = d.x - u.x;
|
|
480
|
+
return f2 + p2 / Math.sqrt(m2 * m2 + p2 * p2) * 8;
|
|
481
|
+
}).attr("y", (t2) => {
|
|
482
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = (u.y + d.y) / 2, p2 = d.x - u.x, m2 = d.y - u.y, h2 = Math.sqrt(p2 * p2 + m2 * m2);
|
|
483
|
+
return f2 + -p2 / h2 * 8;
|
|
484
|
+
}).attr("fill", g.axisTextColor).attr("font-size", h.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (t2) => {
|
|
485
|
+
let u = I.get(t2.source), d = I.get(t2.target), f2 = (u.x + d.x) / 2, p2 = (u.y + d.y) / 2, m2 = d.x - u.x, h2 = d.y - u.y, g2 = Math.sqrt(m2 * m2 + h2 * h2), _2 = h2 / g2, v = -m2 / g2, y2 = f2 + _2 * 8, b2 = p2 + v * 8, x2 = Math.atan2(h2, m2) * 180 / Math.PI;
|
|
486
|
+
return (x2 > 90 || x2 < -90) && (x2 += 180), `rotate(${x2} ${y2} ${b2})`;
|
|
487
|
+
}).text((t2) => t2.label);
|
|
488
|
+
let B = E.append("g").attr("class", "wardley-trends"), V = b.trends.map((t2) => {
|
|
489
|
+
let u = I.get(t2.nodeId);
|
|
490
|
+
if (!u) return null;
|
|
491
|
+
let d = A(t2.targetX), f2 = j(t2.targetY), p2 = d - u.x, m2 = f2 - u.y, g2 = Math.sqrt(p2 * p2 + m2 * m2), _2 = h.nodeRadius + 2;
|
|
492
|
+
return {
|
|
493
|
+
origin: u,
|
|
494
|
+
targetX: d,
|
|
495
|
+
targetY: f2,
|
|
496
|
+
adjustedX2: g2 > _2 ? d - p2 / g2 * _2 : d,
|
|
497
|
+
adjustedY2: g2 > _2 ? f2 - m2 / g2 * _2 : f2
|
|
498
|
+
};
|
|
499
|
+
}).filter((t2) => t2 !== null);
|
|
500
|
+
B.selectAll("line").data(V).enter().append("line").attr("class", "wardley-trend").attr("x1", (t2) => t2.origin.x).attr("y1", (t2) => t2.origin.y).attr("x2", (t2) => t2.adjustedX2).attr("y2", (t2) => t2.adjustedY2).attr("stroke", g.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${f})`);
|
|
501
|
+
let H = E.append("g").attr("class", "wardley-nodes").selectAll("g").data(b.nodes).enter().append("g").attr("class", (t2) => ["wardley-node", t2.className ? `wardley-node--${t2.className}` : ""].filter(Boolean).join(" "));
|
|
502
|
+
H.filter((t2) => t2.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y).attr("r", h.nodeRadius * 2).attr("fill", "#666").attr("stroke", g.componentStroke).attr("stroke-width", 1), H.filter((t2) => t2.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y).attr("r", h.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", g.componentStroke).attr("stroke-width", 1), H.filter((t2) => t2.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y).attr("r", h.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
|
|
503
|
+
let U = H.filter((t2) => t2.sourceStrategy === "market");
|
|
504
|
+
U.append("circle").attr("class", "wardley-market-overlay").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y).attr("r", h.nodeRadius * 2).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 1), H.filter((t2) => !t2.isPipelineParent && t2.sourceStrategy !== "market" && t2.className !== "anchor").append("circle").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y).attr("r", h.nodeRadius).attr("fill", g.componentFill).attr("stroke", g.componentStroke).attr("stroke-width", 1);
|
|
505
|
+
let W = h.nodeRadius * 0.7, G = h.nodeRadius * 1.2;
|
|
506
|
+
if (U.append("line").attr("class", "wardley-market-line").attr("x1", (t2) => I.get(t2.id).x).attr("y1", (t2) => I.get(t2.id).y - G).attr("x2", (t2) => I.get(t2.id).x - G * Math.cos(Math.PI / 6)).attr("y2", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("stroke", g.componentStroke).attr("stroke-width", 1), U.append("line").attr("class", "wardley-market-line").attr("x1", (t2) => I.get(t2.id).x - G * Math.cos(Math.PI / 6)).attr("y1", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("x2", (t2) => I.get(t2.id).x + G * Math.cos(Math.PI / 6)).attr("y2", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("stroke", g.componentStroke).attr("stroke-width", 1), U.append("line").attr("class", "wardley-market-line").attr("x1", (t2) => I.get(t2.id).x + G * Math.cos(Math.PI / 6)).attr("y1", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("x2", (t2) => I.get(t2.id).x).attr("y2", (t2) => I.get(t2.id).y - G).attr("stroke", g.componentStroke).attr("stroke-width", 1), U.append("circle").attr("class", "wardley-market-dot").attr("cx", (t2) => I.get(t2.id).x).attr("cy", (t2) => I.get(t2.id).y - G).attr("r", W).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 2), U.append("circle").attr("class", "wardley-market-dot").attr("cx", (t2) => I.get(t2.id).x - G * Math.cos(Math.PI / 6)).attr("cy", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("r", W).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 2), U.append("circle").attr("class", "wardley-market-dot").attr("cx", (t2) => I.get(t2.id).x + G * Math.cos(Math.PI / 6)).attr("cy", (t2) => I.get(t2.id).y + G * Math.sin(Math.PI / 6)).attr("r", W).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 2), H.filter((t2) => t2.isPipelineParent === true).append("rect").attr("x", (t2) => I.get(t2.id).x - _ / 2).attr("y", (t2) => I.get(t2.id).y - _ / 2).attr("width", _).attr("height", _).attr("fill", g.componentFill).attr("stroke", g.componentStroke).attr("stroke-width", 1), H.filter((t2) => t2.inertia === true).append("line").attr("class", "wardley-inertia").attr("x1", (t2) => {
|
|
507
|
+
let u = I.get(t2.id), d = t2.isPipelineParent ? _ / 2 + 15 : h.nodeRadius + 15;
|
|
508
|
+
return t2.sourceStrategy && (d += h.nodeRadius + 10), u.x + d;
|
|
509
|
+
}).attr("y1", (t2) => {
|
|
510
|
+
let u = I.get(t2.id), d = t2.isPipelineParent ? _ : h.nodeRadius * 2;
|
|
511
|
+
return u.y - d / 2;
|
|
512
|
+
}).attr("x2", (t2) => {
|
|
513
|
+
let u = I.get(t2.id), d = t2.isPipelineParent ? _ / 2 + 15 : h.nodeRadius + 15;
|
|
514
|
+
return t2.sourceStrategy && (d += h.nodeRadius + 10), u.x + d;
|
|
515
|
+
}).attr("y2", (t2) => {
|
|
516
|
+
let u = I.get(t2.id), d = t2.isPipelineParent ? _ : h.nodeRadius * 2;
|
|
517
|
+
return u.y + d / 2;
|
|
518
|
+
}).attr("stroke", g.componentStroke).attr("stroke-width", 6), H.append("text").attr("x", (t2) => {
|
|
519
|
+
let u = I.get(t2.id);
|
|
520
|
+
if (t2.className === "anchor") return t2.labelOffsetX === void 0 ? u.x : u.x + t2.labelOffsetX;
|
|
521
|
+
let d = h.nodeLabelOffset;
|
|
522
|
+
t2.sourceStrategy && t2.labelOffsetX === void 0 && (d += 10);
|
|
523
|
+
let f2 = t2.labelOffsetX ?? d;
|
|
524
|
+
return u.x + f2;
|
|
525
|
+
}).attr("y", (t2) => {
|
|
526
|
+
let u = I.get(t2.id);
|
|
527
|
+
if (t2.className === "anchor") return t2.labelOffsetY === void 0 ? u.y - 3 : u.y + t2.labelOffsetY;
|
|
528
|
+
let d = -h.nodeLabelOffset;
|
|
529
|
+
t2.sourceStrategy && t2.labelOffsetY === void 0 && (d -= 10);
|
|
530
|
+
let f2 = t2.labelOffsetY ?? d;
|
|
531
|
+
return u.y + f2;
|
|
532
|
+
}).attr("class", "wardley-node-label").attr("fill", (t2) => t2.className === "evolved" ? g.evolutionStroke : t2.className === "anchor" ? "#000" : g.componentLabelColor).attr("font-size", h.labelFontSize).attr("font-weight", (t2) => t2.className === "anchor" ? "bold" : "normal").attr("text-anchor", (t2) => t2.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (t2) => t2.className === "anchor" ? "middle" : "auto").text((t2) => t2.label), b.annotations.length > 0) {
|
|
533
|
+
let t2 = E.append("g").attr("class", "wardley-annotations");
|
|
534
|
+
if (b.annotations.forEach((u) => {
|
|
535
|
+
let d = u.coordinates.map((t3) => ({
|
|
536
|
+
x: A(t3.x),
|
|
537
|
+
y: j(t3.y)
|
|
538
|
+
}));
|
|
539
|
+
if (d.length > 1) for (let u2 = 0; u2 < d.length - 1; u2++) t2.append("line").attr("class", "wardley-annotation-line").attr("x1", d[u2].x).attr("y1", d[u2].y).attr("x2", d[u2 + 1].x).attr("y2", d[u2 + 1].y).attr("stroke", g.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
|
|
540
|
+
d.forEach((d2) => {
|
|
541
|
+
let f2 = t2.append("g").attr("class", "wardley-annotation");
|
|
542
|
+
f2.append("circle").attr("cx", d2.x).attr("cy", d2.y).attr("r", 10).attr("fill", "white").attr("stroke", g.axisColor).attr("stroke-width", 1.5), f2.append("text").attr("x", d2.x).attr("y", d2.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", g.axisTextColor).attr("font-weight", "bold").text(u.number);
|
|
543
|
+
});
|
|
544
|
+
}), b.annotationsBox) {
|
|
545
|
+
let u = A(b.annotationsBox.x), d = j(b.annotationsBox.y), f2 = t2.append("g").attr("class", "wardley-annotations-box"), p2 = [...b.annotations].filter((t3) => t3.text).sort((t3, u2) => t3.number - u2.number), m2 = [];
|
|
546
|
+
if (p2.forEach((t3, p3) => {
|
|
547
|
+
let h2 = f2.append("text").attr("x", u + 10).attr("y", d + 10 + (p3 + 1) * 16).attr("font-size", 11).attr("fill", g.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${t3.number}. ${t3.text}`);
|
|
548
|
+
m2.push(h2);
|
|
549
|
+
}), m2.length > 0) {
|
|
550
|
+
let t3 = 0, _2 = 0;
|
|
551
|
+
m2.forEach((u2) => {
|
|
552
|
+
let d2 = u2.node(), f3 = d2.getComputedTextLength();
|
|
553
|
+
t3 = Math.max(t3, f3);
|
|
554
|
+
let p3 = d2.getBBox();
|
|
555
|
+
_2 = Math.max(_2, p3.height);
|
|
556
|
+
});
|
|
557
|
+
let v = t3 + 20 + 105, y2 = p2.length * 16 + 20 + _2 / 2, b2 = h.padding, x2 = S - h.padding - v, C = h.padding, T2 = w - h.padding - y2;
|
|
558
|
+
u = Math.max(b2, Math.min(u, x2)), d = Math.max(C, Math.min(d, T2)), m2.forEach((t4, f3) => {
|
|
559
|
+
t4.attr("x", u + 10).attr("y", d + 10 + (f3 + 1) * 16);
|
|
560
|
+
}), f2.insert("rect", "text").attr("x", u).attr("y", d).attr("width", v).attr("height", y2).attr("fill", "white").attr("stroke", g.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
if (b.notes.length > 0) {
|
|
565
|
+
let t2 = E.append("g").attr("class", "wardley-notes");
|
|
566
|
+
b.notes.forEach((u) => {
|
|
567
|
+
let d = A(u.x), f2 = j(u.y);
|
|
568
|
+
t2.append("text").attr("x", d).attr("y", f2).attr("text-anchor", "start").attr("font-size", 11).attr("fill", g.axisTextColor).attr("font-weight", "bold").text(u.text);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
if (b.accelerators.length > 0) {
|
|
572
|
+
let t2 = E.append("g").attr("class", "wardley-accelerators");
|
|
573
|
+
b.accelerators.forEach((u) => {
|
|
574
|
+
let d = A(u.x), f2 = j(u.y), p2 = `
|
|
575
|
+
M ${d} ${f2 - 30 / 2}
|
|
576
|
+
L ${d + 60 - 20} ${f2 - 30 / 2}
|
|
577
|
+
L ${d + 60 - 20} ${f2 - 30 / 2 - 8}
|
|
578
|
+
L ${d + 60} ${f2}
|
|
579
|
+
L ${d + 60 - 20} ${f2 + 30 / 2 + 8}
|
|
580
|
+
L ${d + 60 - 20} ${f2 + 30 / 2}
|
|
581
|
+
L ${d} ${f2 + 30 / 2}
|
|
582
|
+
Z
|
|
583
|
+
`;
|
|
584
|
+
t2.append("path").attr("d", p2).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 1), t2.append("text").attr("x", d + 60 / 2).attr("y", f2 + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", g.axisTextColor).attr("font-weight", "bold").text(u.name);
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
if (b.deaccelerators.length > 0) {
|
|
588
|
+
let t2 = E.append("g").attr("class", "wardley-deaccelerators");
|
|
589
|
+
b.deaccelerators.forEach((u) => {
|
|
590
|
+
let d = A(u.x), f2 = j(u.y), p2 = `
|
|
591
|
+
M ${d + 60} ${f2 - 30 / 2}
|
|
592
|
+
L ${d + 20} ${f2 - 30 / 2}
|
|
593
|
+
L ${d + 20} ${f2 - 30 / 2 - 8}
|
|
594
|
+
L ${d} ${f2}
|
|
595
|
+
L ${d + 20} ${f2 + 30 / 2 + 8}
|
|
596
|
+
L ${d + 20} ${f2 + 30 / 2}
|
|
597
|
+
L ${d + 60} ${f2 + 30 / 2}
|
|
598
|
+
Z
|
|
599
|
+
`;
|
|
600
|
+
t2.append("path").attr("d", p2).attr("fill", "white").attr("stroke", g.componentStroke).attr("stroke-width", 1), t2.append("text").attr("x", d + 60 / 2).attr("y", f2 + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", g.axisTextColor).attr("font-weight", "bold").text(u.name);
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
}, "draw") },
|
|
604
|
+
styles: /* @__PURE__ */ __name(({ wardley: u } = {}) => {
|
|
605
|
+
let d = cleanAndMerge(cleanAndMerge(getThemeVariables3(), getConfig().themeVariables).wardley, u);
|
|
606
|
+
return `
|
|
607
|
+
.wardley-background {
|
|
608
|
+
fill: ${d.backgroundColor};
|
|
609
|
+
}
|
|
610
|
+
.wardley-axes line, .wardley-axes path {
|
|
611
|
+
stroke: ${d.axisColor};
|
|
612
|
+
}
|
|
613
|
+
.wardley-axis-label {
|
|
614
|
+
fill: ${d.axisTextColor};
|
|
615
|
+
}
|
|
616
|
+
.wardley-stage-label {
|
|
617
|
+
fill: ${d.axisTextColor};
|
|
618
|
+
}
|
|
619
|
+
.wardley-grid line {
|
|
620
|
+
stroke: ${d.gridColor};
|
|
621
|
+
}
|
|
622
|
+
.wardley-node circle {
|
|
623
|
+
fill: ${d.componentFill};
|
|
624
|
+
stroke: ${d.componentStroke};
|
|
625
|
+
}
|
|
626
|
+
.wardley-node-label {
|
|
627
|
+
fill: ${d.componentLabelColor};
|
|
628
|
+
}
|
|
629
|
+
.wardley-link {
|
|
630
|
+
stroke: ${d.linkStroke};
|
|
631
|
+
}
|
|
632
|
+
.wardley-link--dashed {
|
|
633
|
+
stroke-dasharray: 4 4;
|
|
634
|
+
}
|
|
635
|
+
.wardley-link-label {
|
|
636
|
+
fill: ${d.axisTextColor};
|
|
637
|
+
}
|
|
638
|
+
.wardley-trend line {
|
|
639
|
+
stroke: ${d.evolutionStroke};
|
|
640
|
+
}
|
|
641
|
+
.wardley-annotation-line {
|
|
642
|
+
stroke: ${d.annotationStroke};
|
|
643
|
+
}
|
|
644
|
+
.wardley-annotation circle {
|
|
645
|
+
fill: ${d.annotationFill};
|
|
646
|
+
stroke: ${d.annotationStroke};
|
|
647
|
+
}
|
|
648
|
+
.wardley-annotation text {
|
|
649
|
+
fill: ${d.annotationTextColor};
|
|
650
|
+
}
|
|
651
|
+
.wardley-annotations-box rect {
|
|
652
|
+
fill: ${d.annotationFill};
|
|
653
|
+
stroke: ${d.annotationStroke};
|
|
654
|
+
}
|
|
655
|
+
.wardley-annotations-box text {
|
|
656
|
+
fill: ${d.annotationTextColor};
|
|
657
|
+
}
|
|
658
|
+
.wardley-pipeline-box {
|
|
659
|
+
stroke: ${d.componentStroke};
|
|
660
|
+
}
|
|
661
|
+
.wardley-notes text {
|
|
662
|
+
fill: ${d.axisTextColor};
|
|
663
|
+
}
|
|
664
|
+
`;
|
|
665
|
+
}, "styles")
|
|
666
|
+
};
|
|
667
|
+
export {
|
|
668
|
+
diagram
|
|
669
|
+
};
|