@kong-ui-public/documentation 0.7.82 → 0.7.84
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/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
- package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
- package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
- package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
- package/dist/{architectureDiagram-V6B76FHG-Pzw1d-oB-DHiQxfgq.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
- package/dist/{astro-Ct9uJo-c-nfJFy9of.js → astro-0iWgpDaK-DRsXAR7M.js} +8 -19
- package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
- package/dist/{c-DKDB_XIB-DKDB_XIB.js → c-TKJGJdXV-TKJGJdXV.js} +1 -2
- package/dist/{c4Diagram-THADGKDP-DNjDxpJj-DCkatXpj.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
- package/dist/{channel-DY4J7hMj-DhxgBwmi.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
- package/dist/{chunk-OQCM5LHU-CBZLTHAO-Byg6DDHc.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
- package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
- package/dist/{chunk-DUMQOTYW-q2xRlZzC-WZX6gsgU.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
- package/dist/{chunk-2JBRQKJ5-s3ZERvbz-DIvxz4Hk.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
- package/dist/{chunk-2RYQ3QTB-CQJ_YWh0-CyGoJsYl.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
- package/dist/{chunk-XVOYOM2C-Drq2fxR3-BZgyQieh.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
- package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/{clone-CSh3RmzO-BO_pW9dn.js → clone-elND5I63-U8WRvSPu.js} +1 -1
- package/dist/{csharp-hvsHIX1x-hvsHIX1x.js → csharp-DoJjzS5t-DoJjzS5t.js} +1 -2
- package/dist/{css-twoVIb3q-twoVIb3q.js → css-DHLSoXzW-DHLSoXzW.js} +1 -2
- package/dist/{csv-CyuxiNSX-CyuxiNSX.js → csv-DvCncUGQ-Tno401i9.js} +1 -2
- package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
- package/dist/{diagram-QS5GVLUX-BYCosWq0-DUyx0Lsp.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
- package/dist/{diff-BprZv9Bx-BprZv9Bx.js → diff-DKH6jKuv-DKH6jKuv.js} +1 -2
- package/dist/{docker-UByH5rch-UByH5rch.js → docker-M-OegAvW-M-OegAvW.js} +1 -2
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +401 -273
- package/dist/{erDiagram-62CBQV5Y-CCkmKSfL-DVupRLHH.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
- package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
- package/dist/{ganttDiagram-ASEIQ4P5-D1zrowZ9-BAnaAW4v.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
- package/dist/{git-commit-BpBta0-H-D9ROUaA_.js → git-commit-giWKZ1Ct-l8XOl7Qs.js} +2 -3
- package/dist/{git-rebase-nCu0qkM8-BcHBAqRM.js → git-rebase-BeAKv_ae-YKn1ZA6h.js} +2 -3
- package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
- package/dist/{gitGraphDiagram-UL5UFKDR-Ck7pRU_R-Dy9Vc0iN.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
- package/dist/{go-CVQIWj2N-CVQIWj2N.js → go-Bzd7qChY-Bzd7qChY.js} +1 -2
- package/dist/{graph-DTNue1bF-BLqDvS-5.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
- package/dist/{graphql-7X52cHqc-CLBzimQB.js → graphql-D7_Dk2ma-CKCeVmAl.js} +5 -6
- package/dist/{haml-28-Av65f-Dih0P9tR.js → haml-S3dmcfEW-DS9Qve_X.js} +5 -14
- package/dist/{handlebars-TFjvroEi-07H8_eE0.js → handlebars-DaIrqVg3-BICytU_W.js} +5 -6
- package/dist/{haskell-DJah2Vxp-DJah2Vxp.js → haskell-CmMIDOJ7-CmMIDOJ7.js} +1 -2
- package/dist/{html-B9SDyQ6N-D-ZKCIRM.js → html-Bx3A18fV-DIK1LUyO.js} +3 -4
- package/dist/{html-derivative-Dst04Arf-DrM5NWms.js → html-derivative-B8TLT7CN-DkAjK9Np.js} +2 -3
- package/dist/{http-nOIbjTbF-C51IpTrN.js → http-DiM0ILv2-7ivPChAf.js} +6 -7
- package/dist/{index-DOm338WG.js → index-BXFfc1qh.js} +17691 -15765
- package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
- package/dist/{infoDiagram-7APDZ6AT-BfwYrYzT-Dmsve8VX.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
- package/dist/{ini-CgO4T9Us-CgO4T9Us.js → ini-BUcvsX-U-BUcvsX-U.js} +1 -2
- package/dist/{java-Bd9vXGhZ-Bd9vXGhZ.js → java-Dg4kxH6C-Dg4kxH6C.js} +1 -2
- package/dist/{javascript-CGvwHrzr-CGvwHrzr.js → javascript-CipAzIn1-CipAzIn1.js} +1 -2
- package/dist/{journeyDiagram-G5LC7W2K-CG7eqOA2-BR-Kjflm.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
- package/dist/{json-B86kHl_g-B86kHl_g.js → json-_04EL6MS-_04EL6MS.js} +1 -2
- package/dist/{json5-GB6TimgH-GB6TimgH.js → json5-Dwmp5XFI-Dwmp5XFI.js} +1 -2
- package/dist/{jsonc-CP3QVoXc-CP3QVoXc.js → jsonc-LqD5auy0-LqD5auy0.js} +1 -2
- package/dist/{jsonl-C2ofTLY8-C2ofTLY8.js → jsonl-B4yVuYQH-B4yVuYQH.js} +1 -2
- package/dist/{jsx-ZpKf1TSy-ZpKf1TSy.js → jsx-Mg4WaD5k-Mg4WaD5k.js} +1 -2
- package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
- package/dist/{kotlin-CAtfTEpr-CAtfTEpr.js → kotlin-B-KtFKnZ-B-KtFKnZ.js} +1 -2
- package/dist/latex-4X1wferq-jnM3V2Lk.js +11 -0
- package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
- package/dist/{less-0UFuQRv0-0UFuQRv0.js → less-BBvTHIGe-BBvTHIGe.js} +1 -2
- package/dist/{linear-K1FWf0tW-rovEi7Ez.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
- package/dist/{liquid-Uq0DwV7I-CRvdDbph.js → liquid-CY_eqGhE-8pvFZkT3.js} +6 -7
- package/dist/{lua-BEgWEgjO-DU5YUtUR.js → lua-BePGDS3E-DZBHNWZI.js} +2 -3
- package/dist/{make-BDMxblcP-BDMxblcP.js → make-zNwjDE2P-zNwjDE2P.js} +1 -2
- package/dist/{markdown-CzCkSBhS-CzCkSBhS.js → markdown-DAXqtk9a-DAXqtk9a.js} +1 -2
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
- package/dist/{mdc-BA3wmBe6-BAlBXF37.js → mdc-BAm7rFbW-CB-Ca4M0.js} +4 -5
- package/dist/{mdx-KaGu4TbO-KaGu4TbO.js → mdx-CSCKbb_f-CSCKbb_f.js} +1 -2
- package/dist/{mermaid-DZVJOJE0-DZVJOJE0.js → mermaid-nGb_yn9n-nGb_yn9n.js} +1 -2
- package/dist/{mermaid-parser.core-Cj_oowsS-VsEYt1Nc.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
- package/dist/{mindmap-definition-FCEC46F3-CAlFsP0h-CZf0v8Pe.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
- package/dist/{nginx-zxRCFE-h-BypGKuox.js → nginx-QOAv2a_a-BWrsIdI1.js} +2 -3
- package/dist/{objective-c-D6w3apbj-D6w3apbj.js → objective-c-CEDFCaSx-CEDFCaSx.js} +1 -2
- package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
- package/dist/{pascal-DenYIYz2-DenYIYz2.js → pascal-l2bqd7Dz-l2bqd7Dz.js} +1 -2
- package/dist/{perl-D3yLJL---Dh53Z1Ch.js → perl-CB2Uc-Hf-ZBolre2-.js} +6 -7
- package/dist/{php-CotrzT_K-Bao4rTV9.js → php-B_-4RJ09-CJdubCs6.js} +7 -8
- package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
- package/dist/{pieDiagram-OZX6XH5M-H8rUXph8-BISJ3i9V.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
- package/dist/{plsql-DH6aemMc-DH6aemMc.js → plsql-oVq_K_wH-oVq_K_wH.js} +1 -2
- package/dist/{postcss-Cf6moWPa-Cf6moWPa.js → postcss-SJfTvo_B-SJfTvo_B.js} +1 -2
- package/dist/{powershell-HbR4eE6x-HbR4eE6x.js → powershell-BEOw57rb-BEOw57rb.js} +1 -2
- package/dist/{proto-FnD6HNAf-FnD6HNAf.js → proto-BWZ41ClP-BWZ41ClP.js} +1 -2
- package/dist/{pug-BQlVJUDw-CHRWHsZp.js → pug-3q2tx0nf-DGKx19t7.js} +6 -15
- package/dist/{python-DmuMvCM0-DmuMvCM0.js → python-Dpup1-fE-Dpup1-fE.js} +1 -2
- package/dist/{quadrantDiagram-VG34DGKC-BEwF7VGA-DIV2JaGU.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
- package/dist/{r-Bc6kwNk5-Bc6kwNk5.js → r-Chyv38Fv-Chyv38Fv.js} +1 -2
- package/dist/{reg-D7nGELoM-D7nGELoM.js → reg-CD53Yasp-CD53Yasp.js} +1 -2
- package/dist/{requirementDiagram-FPZB6IJI-kQtxPQXX-CmRUwQe6.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
- package/dist/rst-Euaf_RMd-B96mCjUw.js +40 -0
- package/dist/{ruby-DeHccIAO-BcoQ2TvH.js → ruby-CsHI6ozR-BrDG5TRv.js} +9 -10
- package/dist/{rust-DUjrmsiV-DUjrmsiV.js → rust-C6uk_0pe-C6uk_0pe.js} +1 -2
- package/dist/{sankeyDiagram-KMMQDL5K-i1hmlnC3-C4FQplTB.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
- package/dist/sass-p2RMoqDT-p2RMoqDT.js +6 -0
- package/dist/{scss-CnxrcEK_-CATc0Lba.js → scss-DmlHSoOY-y80_J0a4.js} +2 -3
- package/dist/{sequenceDiagram-PQT5PN7B-CnJbbAPa-BB0ILzU7.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
- package/dist/{shellscript-CLi_Jlup-CLi_Jlup.js → shellscript-CZpPN8_x-CZpPN8_x.js} +1 -2
- package/dist/{shellsession-BgOGDEE0-D_whUPK9.js → shellsession-B-Ndr_EN-JFzqxELg.js} +3 -4
- package/dist/{splunk-ZWH3T4YR-ZWH3T4YR.js → splunk-D2FIaQ3k-D2FIaQ3k.js} +1 -2
- package/dist/{sql-CqEjJWk_-CqEjJWk_.js → sql-DtlkUz2m-DtlkUz2m.js} +1 -2
- package/dist/{ssh-config-cxjN15Iq-cxjN15Iq.js → ssh-config-D5GRD_Np-D5GRD_Np.js} +1 -2
- package/dist/{stateDiagram-TQSDS2D4-C4igPbE8-D-CdRaHA.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
- package/dist/{stateDiagram-v2-J5TZWJW5-DAq6KSAM-O6I-IpUw.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
- package/dist/{stylus-BqSAqkqK-BqSAqkqK.js → stylus-DEr8eSLm-DEr8eSLm.js} +1 -2
- package/dist/{svelte-Yn79bR_P-TdNy3USA.js → svelte-BRIJF62h-BI1AT0iL.js} +7 -22
- package/dist/{swift-Cii5mold-Cii5mold.js → swift-B9svdVyc-B9svdVyc.js} +1 -2
- package/dist/{timeline-definition-KYQAIZUX-DQEkDwlz-BcdRcAgF.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
- package/dist/{toml-BrnHWKvZ-BrnHWKvZ.js → toml-C3Ja0Ta7-C3Ja0Ta7.js} +1 -2
- package/dist/{tsx-RDJgLpEg-RDJgLpEg.js → tsx-DTfbgJxi-DTfbgJxi.js} +1 -2
- package/dist/{twig-CyzrzZ6V-CLfeQShi.js → twig-DkDTNtrS-jo7aVWBG.js} +7 -8
- package/dist/{typescript-BRQxorCF-BRQxorCF.js → typescript-CCd4aQHh-CCd4aQHh.js} +1 -2
- package/dist/{v-CBsEUX4x-CBsEUX4x.js → v-DectkoIj-DectkoIj.js} +1 -2
- package/dist/{vb-BCQhaxZY-BCQhaxZY.js → vb-3pua_tRu-3pua_tRu.js} +1 -2
- package/dist/{viml-DUDcfQ_j-DUDcfQ_j.js → viml-CJHUchaf-CJHUchaf.js} +1 -2
- package/dist/vue-CY-KyffX-BnjPeHxm.js +31 -0
- package/dist/{vue-html-DkB4x9kz-BBbMk49e.js → vue-html-C0fH2sQy-Da7Je-I4.js} +3 -4
- package/dist/{wasm-KuMlursr-KuMlursr.js → wasm-VDIDph3E-VDIDph3E.js} +1 -2
- package/dist/{wgsl-CXztftdQ-CXztftdQ.js → wgsl-2np_U3Z8-2np_U3Z8.js} +1 -2
- package/dist/{xml-D46nbCSr-BYMRGyuH.js → xml-CNyphW9R-DycLHq-n.js} +2 -3
- package/dist/{xsl--U1R63rG-D8P_gDHK.js → xsl-C2K1QB6X-B3b1KJxQ.js} +2 -3
- package/dist/{xychartDiagram-LESROZAQ-tgQhgg2Q-CUZY_ot8.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
- package/dist/{yaml-BEQ1JqWb-BEQ1JqWb.js → yaml-DxFiVFcM-DxFiVFcM.js} +1 -2
- package/package.json +6 -6
- package/dist/_basePickBy-CU0TiV13-B2lcN6Xi.js +0 -143
- package/dist/_baseUniq-BAMfE4xp-BAs-gBgZ.js +0 -622
- package/dist/arc-Cof8I1nv-BEpAvsYw.js +0 -83
- package/dist/architecture-I3QFYML2-CRA_auFu-BOYIKY2S.js +0 -5
- package/dist/blockDiagram-EN3ZKWFM-CYnZx-IR-Bl0aimgG.js +0 -1232
- package/dist/chunk-BAVOGKFW-B_i9W0mu-aXYqnut5.js +0 -1092
- package/dist/chunk-UGV5ZQQN-lwe0VAyX-BkOr8rah.js +0 -254
- package/dist/chunk-YWFND7JV-r0DobNSv-Qk_ESE3G.js +0 -786
- package/dist/classDiagram-4BHYIK4I-qYBSssh--DFvW-YgH.js +0 -214
- package/dist/classDiagram-v2-FI7KE7WJ-BIgDAZfE-NPVjR0Sp.js +0 -545
- package/dist/coffee-CiEmwUV9-D5Oe8742.js +0 -9
- package/dist/cpp-BphENtVr-DqhLnmUg.js +0 -29
- package/dist/dagre-P3YPLUS5-Bfaw7Bo9-DPdf44wL.js +0 -421
- package/dist/flowDiagram-JSIZSE4D-CEhJC-5_-DHjVPCad.js +0 -1380
- package/dist/gitGraph-YCYPL57B-DfH87xvl-DsibXYdp.js +0 -5
- package/dist/info-46DW6VJ7-DuNWYdzn-PVj3kKJm.js +0 -5
- package/dist/json-aDA71_xz-DxdQPLBu.js +0 -31
- package/dist/latex-14aRsJKm-mj9Fild6.js +0 -62
- package/dist/layout-BrqICqM--CUdWjnyz.js +0 -1381
- package/dist/material-theme-lighter-CnKSyNS5-CnKSyNS5.js +0 -4
- package/dist/material-theme-palenight-BaYUoLXq-BaYUoLXq.js +0 -4
- package/dist/packet-W2GHVCYJ-DL_sFpED-q6WAtxyK.js +0 -5
- package/dist/pie-BEWT4RHE-DM_nCoZ3-D0wjXv38.js +0 -5
- package/dist/rst-CaIq10fc-5Y1LeNh2.js +0 -26
- package/dist/sass-CLufkToV-CLufkToV.js +0 -7
- package/dist/vue-DNFIPpe6-BpXPyld-.js +0 -68
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { _ as w, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-BXFfc1qh.js";
|
|
2
|
+
import { L as k } from "./graph-C5siWsaJ-djbzUgq8.js";
|
|
3
|
+
import { o as V } from "./layout-mwnMvyc4-B2PmGvWD.js";
|
|
4
|
+
import { P as x } from "./_baseUniq-CXqhI00C-BfnSCqya.js";
|
|
5
|
+
import { a as W } from "./clone-elND5I63-U8WRvSPu.js";
|
|
6
|
+
import { g as G } from "./_basePickBy-CMfPif8e-CmRJF0Pz.js";
|
|
7
|
+
function X(e) {
|
|
8
|
+
var n = {
|
|
9
|
+
options: {
|
|
10
|
+
directed: e.isDirected(),
|
|
11
|
+
multigraph: e.isMultigraph(),
|
|
12
|
+
compound: e.isCompound()
|
|
13
|
+
},
|
|
14
|
+
nodes: Z(e),
|
|
15
|
+
edges: ee(e)
|
|
16
|
+
};
|
|
17
|
+
return x(e.graph()) || (n.value = W(e.graph())), n;
|
|
18
|
+
}
|
|
19
|
+
function Z(e) {
|
|
20
|
+
return G(e.nodes(), function(n) {
|
|
21
|
+
var r = e.node(n), s = e.parent(n), d = { v: n };
|
|
22
|
+
return x(r) || (d.value = r), x(s) || (d.parent = s), d;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function ee(e) {
|
|
26
|
+
return G(e.edges(), function(n) {
|
|
27
|
+
var r = e.edge(n), s = { v: n.v, w: n.w };
|
|
28
|
+
return x(n.name) || (s.name = n.name), x(r) || (s.value = r), s;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ w(() => {
|
|
32
|
+
N.clear(), P.clear(), u.clear();
|
|
33
|
+
}, "clear"), I = /* @__PURE__ */ w((e, n) => {
|
|
34
|
+
const r = N.get(n) || [];
|
|
35
|
+
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
36
|
+
}, "isDescendant"), re = /* @__PURE__ */ w((e, n) => {
|
|
37
|
+
const r = N.get(n) || [];
|
|
38
|
+
return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
39
|
+
}, "edgeInCluster"), B = /* @__PURE__ */ w((e, n, r, s) => {
|
|
40
|
+
t.warn(
|
|
41
|
+
"Copying children of ",
|
|
42
|
+
e,
|
|
43
|
+
"root",
|
|
44
|
+
s,
|
|
45
|
+
"data",
|
|
46
|
+
n.node(e),
|
|
47
|
+
s
|
|
48
|
+
);
|
|
49
|
+
const d = n.children(e) || [];
|
|
50
|
+
e !== s && d.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", d), d.forEach((c) => {
|
|
51
|
+
if (n.children(c).length > 0)
|
|
52
|
+
B(c, n, r, s);
|
|
53
|
+
else {
|
|
54
|
+
const o = n.node(c);
|
|
55
|
+
t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, o), s !== n.parent(c) && (t.warn("Setting parent", c, n.parent(c)), r.setParent(c, n.parent(c))), e !== s && c !== e ? (t.debug("Setting parent", c, e), r.setParent(c, e)) : (t.info("In copy ", e, "root", s, "data", n.node(e), s), t.debug(
|
|
56
|
+
"Not Setting parent for node=",
|
|
57
|
+
c,
|
|
58
|
+
"cluster!==rootId",
|
|
59
|
+
e !== s,
|
|
60
|
+
"node!==clusterId",
|
|
61
|
+
c !== e
|
|
62
|
+
));
|
|
63
|
+
const l = n.edges(c);
|
|
64
|
+
t.debug("Copying Edges", l), l.forEach((f) => {
|
|
65
|
+
t.info("Edge", f);
|
|
66
|
+
const E = n.edge(f.v, f.w, f.name);
|
|
67
|
+
t.info("Edge data", E, s);
|
|
68
|
+
try {
|
|
69
|
+
re(f, s) ? (t.info("Copying as ", f.v, f.w, E, f.name), r.setEdge(f.v, f.w, E, f.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info(
|
|
70
|
+
"Skipping copy of edge ",
|
|
71
|
+
f.v,
|
|
72
|
+
"-->",
|
|
73
|
+
f.w,
|
|
74
|
+
" rootId: ",
|
|
75
|
+
s,
|
|
76
|
+
" clusterId:",
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
} catch (C) {
|
|
80
|
+
t.error(C);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
t.debug("Removing node", c), n.removeNode(c);
|
|
85
|
+
});
|
|
86
|
+
}, "copy"), J = /* @__PURE__ */ w((e, n) => {
|
|
87
|
+
const r = n.children(e);
|
|
88
|
+
let s = [...r];
|
|
89
|
+
for (const d of r)
|
|
90
|
+
P.set(d, e), s = [...s, ...J(d, n)];
|
|
91
|
+
return s;
|
|
92
|
+
}, "extractDescendants"), te = /* @__PURE__ */ w((e, n, r) => {
|
|
93
|
+
const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), o = d.map((l) => ({ v: l.v, w: l.w }));
|
|
94
|
+
return c.filter((l) => o.some((f) => l.v === f.v && l.w === f.w));
|
|
95
|
+
}, "findCommonEdges"), S = /* @__PURE__ */ w((e, n, r) => {
|
|
96
|
+
const s = n.children(e);
|
|
97
|
+
if (t.trace("Searching children of id ", e, s), s.length < 1)
|
|
98
|
+
return e;
|
|
99
|
+
let d;
|
|
100
|
+
for (const c of s) {
|
|
101
|
+
const o = S(c, n, r), l = te(n, r, o);
|
|
102
|
+
if (o)
|
|
103
|
+
if (l.length > 0)
|
|
104
|
+
d = o;
|
|
105
|
+
else
|
|
106
|
+
return o;
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
}, "findNonClusterChild"), O = /* @__PURE__ */ w((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, n) => {
|
|
110
|
+
if (!e || n > 10) {
|
|
111
|
+
t.debug("Opting out, no graph ");
|
|
112
|
+
return;
|
|
113
|
+
} else
|
|
114
|
+
t.debug("Opting in, graph ");
|
|
115
|
+
e.nodes().forEach(function(r) {
|
|
116
|
+
e.children(r).length > 0 && (t.warn(
|
|
117
|
+
"Cluster identified",
|
|
118
|
+
r,
|
|
119
|
+
" Replacement id in edges: ",
|
|
120
|
+
S(r, e, r)
|
|
121
|
+
), N.set(r, J(r, e)), u.set(r, { id: S(r, e, r), clusterData: e.node(r) }));
|
|
122
|
+
}), e.nodes().forEach(function(r) {
|
|
123
|
+
const s = e.children(r), d = e.edges();
|
|
124
|
+
s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
|
|
125
|
+
const o = I(c.v, r), l = I(c.w, r);
|
|
126
|
+
o ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", N.get(r)), u.get(r).externalConnections = !0);
|
|
127
|
+
})) : t.debug("Not a cluster ", r, N);
|
|
128
|
+
});
|
|
129
|
+
for (let r of u.keys()) {
|
|
130
|
+
const s = u.get(r).id, d = e.parent(s);
|
|
131
|
+
d !== r && u.has(d) && !u.get(d).externalConnections && (u.get(r).id = d);
|
|
132
|
+
}
|
|
133
|
+
e.edges().forEach(function(r) {
|
|
134
|
+
const s = e.edge(r);
|
|
135
|
+
t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
|
|
136
|
+
let d = r.v, c = r.w;
|
|
137
|
+
if (t.warn(
|
|
138
|
+
"Fix XXX",
|
|
139
|
+
u,
|
|
140
|
+
"ids:",
|
|
141
|
+
r.v,
|
|
142
|
+
r.w,
|
|
143
|
+
"Translating: ",
|
|
144
|
+
u.get(r.v),
|
|
145
|
+
" --- ",
|
|
146
|
+
u.get(r.w)
|
|
147
|
+
), u.get(r.v) || u.get(r.w)) {
|
|
148
|
+
if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), d = O(r.v), c = O(r.w), e.removeEdge(r.v, r.w, r.name), d !== r.v) {
|
|
149
|
+
const o = e.parent(d);
|
|
150
|
+
u.get(o).externalConnections = !0, s.fromCluster = r.v;
|
|
151
|
+
}
|
|
152
|
+
if (c !== r.w) {
|
|
153
|
+
const o = e.parent(c);
|
|
154
|
+
u.get(o).externalConnections = !0, s.toCluster = r.w;
|
|
155
|
+
}
|
|
156
|
+
t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
|
|
157
|
+
}
|
|
158
|
+
}), t.warn("Adjusted Graph", X(e)), A(e, 0), t.trace(u);
|
|
159
|
+
}, "adjustClustersAndEdges"), A = /* @__PURE__ */ w((e, n) => {
|
|
160
|
+
var r, s;
|
|
161
|
+
if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
|
|
162
|
+
t.error("Bailing out");
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
let d = e.nodes(), c = !1;
|
|
166
|
+
for (const o of d) {
|
|
167
|
+
const l = e.children(o);
|
|
168
|
+
c = c || l.length > 0;
|
|
169
|
+
}
|
|
170
|
+
if (!c) {
|
|
171
|
+
t.debug("Done, no node has children", e.nodes());
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
t.debug("Nodes = ", d, n);
|
|
175
|
+
for (const o of d)
|
|
176
|
+
if (t.debug(
|
|
177
|
+
"Extracting node",
|
|
178
|
+
o,
|
|
179
|
+
u,
|
|
180
|
+
u.has(o) && !u.get(o).externalConnections,
|
|
181
|
+
!e.parent(o),
|
|
182
|
+
e.node(o),
|
|
183
|
+
e.children("D"),
|
|
184
|
+
" Depth ",
|
|
185
|
+
n
|
|
186
|
+
), !u.has(o))
|
|
187
|
+
t.debug("Not a cluster", o, n);
|
|
188
|
+
else if (!u.get(o).externalConnections && e.children(o) && e.children(o).length > 0) {
|
|
189
|
+
t.warn(
|
|
190
|
+
"Cluster without external connections, without a parent and with children",
|
|
191
|
+
o,
|
|
192
|
+
n
|
|
193
|
+
);
|
|
194
|
+
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
|
+
(s = (r = u.get(o)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(o).clusterData.dir, t.warn("Fixing dir", u.get(o).clusterData.dir, l));
|
|
196
|
+
const f = new k({
|
|
197
|
+
multigraph: !0,
|
|
198
|
+
compound: !0
|
|
199
|
+
}).setGraph({
|
|
200
|
+
rankdir: l,
|
|
201
|
+
nodesep: 50,
|
|
202
|
+
ranksep: 50,
|
|
203
|
+
marginx: 8,
|
|
204
|
+
marginy: 8
|
|
205
|
+
}).setDefaultEdgeLabel(function() {
|
|
206
|
+
return {};
|
|
207
|
+
});
|
|
208
|
+
t.warn("Old graph before copy", X(e)), B(o, e, f, o), e.setNode(o, {
|
|
209
|
+
clusterNode: !0,
|
|
210
|
+
id: o,
|
|
211
|
+
clusterData: u.get(o).clusterData,
|
|
212
|
+
label: u.get(o).label,
|
|
213
|
+
graph: f
|
|
214
|
+
}), t.warn("New graph after copy node: (", o, ")", X(f)), t.debug("Old graph after copy", X(e));
|
|
215
|
+
} else
|
|
216
|
+
t.warn(
|
|
217
|
+
"Cluster ** ",
|
|
218
|
+
o,
|
|
219
|
+
" **not meeting the criteria !externalConnections:",
|
|
220
|
+
!u.get(o).externalConnections,
|
|
221
|
+
" no parent: ",
|
|
222
|
+
!e.parent(o),
|
|
223
|
+
" children ",
|
|
224
|
+
e.children(o) && e.children(o).length > 0,
|
|
225
|
+
e.children("D"),
|
|
226
|
+
n
|
|
227
|
+
), t.debug(u);
|
|
228
|
+
d = e.nodes(), t.warn("New list of nodes", d);
|
|
229
|
+
for (const o of d) {
|
|
230
|
+
const l = e.node(o);
|
|
231
|
+
t.warn(" Now next level", o, l), l != null && l.clusterNode && A(l.graph, n + 1);
|
|
232
|
+
}
|
|
233
|
+
}, "extractor"), R = /* @__PURE__ */ w((e, n) => {
|
|
234
|
+
if (n.length === 0)
|
|
235
|
+
return [];
|
|
236
|
+
let r = Object.assign([], n);
|
|
237
|
+
return n.forEach((s) => {
|
|
238
|
+
const d = e.children(s), c = R(e, d);
|
|
239
|
+
r = [...r, ...c];
|
|
240
|
+
}), r;
|
|
241
|
+
}, "sorter"), oe = /* @__PURE__ */ w((e) => R(e, e.children()), "sortNodesByHierarchy"), T = /* @__PURE__ */ w(async (e, n, r, s, d, c) => {
|
|
242
|
+
t.warn("Graph in recursive render:XAX", X(n), d);
|
|
243
|
+
const o = n.graph().rankdir;
|
|
244
|
+
t.trace("Dir in recursive render - dir:", o);
|
|
245
|
+
const l = e.insert("g").attr("class", "root");
|
|
246
|
+
n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
|
|
247
|
+
const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), h = l.insert("g").attr("class", "nodes");
|
|
248
|
+
await Promise.all(
|
|
249
|
+
n.nodes().map(async function(g) {
|
|
250
|
+
const a = n.node(g);
|
|
251
|
+
if (d !== void 0) {
|
|
252
|
+
const i = JSON.parse(JSON.stringify(d.clusterData));
|
|
253
|
+
t.trace(
|
|
254
|
+
`Setting data for parent cluster XXX
|
|
255
|
+
Node.id = `,
|
|
256
|
+
g,
|
|
257
|
+
`
|
|
258
|
+
data=`,
|
|
259
|
+
i.height,
|
|
260
|
+
`
|
|
261
|
+
Parent cluster`,
|
|
262
|
+
d.height
|
|
263
|
+
), n.setNode(d.id, i), n.parent(g) || (t.trace("Setting parent", g, d.id), n.setParent(g, d.id, i));
|
|
264
|
+
}
|
|
265
|
+
if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), a != null && a.clusterNode) {
|
|
266
|
+
t.info("Cluster identified XBX", g, a.width, n.node(g));
|
|
267
|
+
const { ranksep: i, nodesep: v } = n.graph();
|
|
268
|
+
a.graph.setGraph({
|
|
269
|
+
...a.graph.graph(),
|
|
270
|
+
ranksep: i + 25,
|
|
271
|
+
nodesep: v
|
|
272
|
+
});
|
|
273
|
+
const m = await T(
|
|
274
|
+
h,
|
|
275
|
+
a.graph,
|
|
276
|
+
r,
|
|
277
|
+
s,
|
|
278
|
+
n.node(g),
|
|
279
|
+
c
|
|
280
|
+
), b = m.elem;
|
|
281
|
+
_(a, b), a.diff = m.diff || 0, t.info(
|
|
282
|
+
"New compound node after recursive render XAX",
|
|
283
|
+
g,
|
|
284
|
+
"width",
|
|
285
|
+
// node,
|
|
286
|
+
a.width,
|
|
287
|
+
"height",
|
|
288
|
+
a.height
|
|
289
|
+
// node.x,
|
|
290
|
+
// node.y
|
|
291
|
+
), H(b, a);
|
|
292
|
+
} else
|
|
293
|
+
n.children(g).length > 0 ? (t.trace(
|
|
294
|
+
"Cluster - the non recursive path XBX",
|
|
295
|
+
g,
|
|
296
|
+
a.id,
|
|
297
|
+
a,
|
|
298
|
+
a.width,
|
|
299
|
+
"Graph:",
|
|
300
|
+
n
|
|
301
|
+
), t.trace(S(a.id, n)), u.set(a.id, { id: S(a.id, n), node: a })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), o), await $(h, n.node(g), { config: c, dir: o }));
|
|
302
|
+
})
|
|
303
|
+
), await (/* @__PURE__ */ w(async () => {
|
|
304
|
+
const g = n.edges().map(async function(a) {
|
|
305
|
+
const i = n.edge(a.v, a.w, a.name);
|
|
306
|
+
t.info("Edge " + a.v + " -> " + a.w + ": " + JSON.stringify(a)), t.info("Edge " + a.v + " -> " + a.w + ": ", a, " ", JSON.stringify(n.edge(a))), t.info(
|
|
307
|
+
"Fix",
|
|
308
|
+
u,
|
|
309
|
+
"ids:",
|
|
310
|
+
a.v,
|
|
311
|
+
a.w,
|
|
312
|
+
"Translating: ",
|
|
313
|
+
u.get(a.v),
|
|
314
|
+
u.get(a.w)
|
|
315
|
+
), await q(C, i);
|
|
316
|
+
});
|
|
317
|
+
await Promise.all(g);
|
|
318
|
+
}, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
|
|
319
|
+
let p = 0, { subGraphTitleTotalMargin: y } = z(c);
|
|
320
|
+
return await Promise.all(
|
|
321
|
+
oe(n).map(async function(g) {
|
|
322
|
+
var a;
|
|
323
|
+
const i = n.node(g);
|
|
324
|
+
if (t.info(
|
|
325
|
+
"Position XBX => " + g + ": (" + i.x,
|
|
326
|
+
"," + i.y,
|
|
327
|
+
") width: ",
|
|
328
|
+
i.width,
|
|
329
|
+
" height: ",
|
|
330
|
+
i.height
|
|
331
|
+
), i != null && i.clusterNode)
|
|
332
|
+
i.y += y, t.info(
|
|
333
|
+
"A tainted cluster node XBX1",
|
|
334
|
+
g,
|
|
335
|
+
i.id,
|
|
336
|
+
i.width,
|
|
337
|
+
i.height,
|
|
338
|
+
i.x,
|
|
339
|
+
i.y,
|
|
340
|
+
n.parent(g)
|
|
341
|
+
), u.get(i.id).node = i, D(i);
|
|
342
|
+
else if (n.children(g).length > 0) {
|
|
343
|
+
t.info(
|
|
344
|
+
"A pure cluster node XBX1",
|
|
345
|
+
g,
|
|
346
|
+
i.id,
|
|
347
|
+
i.x,
|
|
348
|
+
i.y,
|
|
349
|
+
i.width,
|
|
350
|
+
i.height,
|
|
351
|
+
n.parent(g)
|
|
352
|
+
), i.height += y, n.node(i.parentId);
|
|
353
|
+
const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((a = i == null ? void 0 : i.labelBBox) == null ? void 0 : a.height) || 0, b = m - v || 0;
|
|
354
|
+
t.debug("OffsetY", b, "labelHeight", m, "halfPadding", v), await K(f, i), u.get(i.id).node = i;
|
|
355
|
+
} else {
|
|
356
|
+
const v = n.node(i.parentId);
|
|
357
|
+
i.y += y / 2, t.info(
|
|
358
|
+
"A regular node XBX1 - using the padding",
|
|
359
|
+
i.id,
|
|
360
|
+
"parent",
|
|
361
|
+
i.parentId,
|
|
362
|
+
i.width,
|
|
363
|
+
i.height,
|
|
364
|
+
i.x,
|
|
365
|
+
i.y,
|
|
366
|
+
"offsetY",
|
|
367
|
+
i.offsetY,
|
|
368
|
+
"parent",
|
|
369
|
+
v,
|
|
370
|
+
v == null ? void 0 : v.offsetY,
|
|
371
|
+
i
|
|
372
|
+
), D(i);
|
|
373
|
+
}
|
|
374
|
+
})
|
|
375
|
+
), n.edges().forEach(function(g) {
|
|
376
|
+
const a = n.edge(g);
|
|
377
|
+
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(a), a), a.points.forEach((b) => b.y += y / 2);
|
|
378
|
+
const i = n.node(g.v);
|
|
379
|
+
var v = n.node(g.w);
|
|
380
|
+
const m = Q(E, a, u, r, i, v, s);
|
|
381
|
+
U(a, m);
|
|
382
|
+
}), n.nodes().forEach(function(g) {
|
|
383
|
+
const a = n.node(g);
|
|
384
|
+
t.info(g, a.type, a.diff), a.isGroup && (p = a.diff);
|
|
385
|
+
}), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
|
|
386
|
+
}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, n) => {
|
|
387
|
+
var r, s, d, c, o, l;
|
|
388
|
+
const f = new k({
|
|
389
|
+
multigraph: !0,
|
|
390
|
+
compound: !0
|
|
391
|
+
}).setGraph({
|
|
392
|
+
rankdir: e.direction,
|
|
393
|
+
nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((d = (s = e.config) == null ? void 0 : s.flowchart) == null ? void 0 : d.nodeSpacing) || e.nodeSpacing,
|
|
394
|
+
ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (o = e.config) == null ? void 0 : o.flowchart) == null ? void 0 : l.rankSpacing) || e.rankSpacing,
|
|
395
|
+
marginx: 8,
|
|
396
|
+
marginy: 8
|
|
397
|
+
}).setDefaultEdgeLabel(function() {
|
|
398
|
+
return {};
|
|
399
|
+
}), E = n.select("g");
|
|
400
|
+
L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((h) => {
|
|
401
|
+
f.setNode(h.id, { ...h }), h.parentId && f.setParent(h.id, h.parentId);
|
|
402
|
+
}), t.debug("Edges:", e.edges), e.edges.forEach((h) => {
|
|
403
|
+
if (h.start === h.end) {
|
|
404
|
+
const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", a = f.node(p);
|
|
405
|
+
f.setNode(y, {
|
|
406
|
+
domId: y,
|
|
407
|
+
id: y,
|
|
408
|
+
parentId: a.parentId,
|
|
409
|
+
labelStyle: "",
|
|
410
|
+
label: "",
|
|
411
|
+
padding: 0,
|
|
412
|
+
shape: "labelRect",
|
|
413
|
+
// shape: 'rect',
|
|
414
|
+
style: "",
|
|
415
|
+
width: 10,
|
|
416
|
+
height: 10
|
|
417
|
+
}), f.setParent(y, a.parentId), f.setNode(g, {
|
|
418
|
+
domId: g,
|
|
419
|
+
id: g,
|
|
420
|
+
parentId: a.parentId,
|
|
421
|
+
labelStyle: "",
|
|
422
|
+
padding: 0,
|
|
423
|
+
// shape: 'rect',
|
|
424
|
+
shape: "labelRect",
|
|
425
|
+
label: "",
|
|
426
|
+
style: "",
|
|
427
|
+
width: 10,
|
|
428
|
+
height: 10
|
|
429
|
+
}), f.setParent(g, a.parentId);
|
|
430
|
+
const i = structuredClone(h), v = structuredClone(h), m = structuredClone(h);
|
|
431
|
+
i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", a.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", f.setEdge(p, y, i, p + "-cyclic-special-0"), f.setEdge(y, g, v, p + "-cyclic-special-1"), f.setEdge(g, p, m, p + "-cyc<lic-special-2");
|
|
432
|
+
} else
|
|
433
|
+
f.setEdge(h.start, h.end, { ...h }, h.id);
|
|
434
|
+
}), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
|
|
435
|
+
const C = Y();
|
|
436
|
+
await T(
|
|
437
|
+
E,
|
|
438
|
+
f,
|
|
439
|
+
e.type,
|
|
440
|
+
e.diagramId,
|
|
441
|
+
void 0,
|
|
442
|
+
C
|
|
443
|
+
);
|
|
444
|
+
}, "render");
|
|
445
|
+
export {
|
|
446
|
+
ue as render
|
|
447
|
+
};
|
package/dist/{diagram-QS5GVLUX-BYCosWq0-DUyx0Lsp.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as B } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { X as R } from "./mermaid-parser.core-
|
|
1
|
+
import { m as B } from "./chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js";
|
|
2
|
+
import { aB as S, a5 as T, a6 as z, al as D, am as P, a7 as W, a8 as A, _ as i, l as x, aC as $, aD as F, ar as v, aX as E, ag as X } from "./index-BXFfc1qh.js";
|
|
3
|
+
import { X as R } from "./mermaid-parser.core-C4mt_cFi-BuaZi6gx.js";
|
|
4
4
|
var C = {
|
|
5
5
|
packet: []
|
|
6
|
-
}, m = structuredClone(C),
|
|
6
|
+
}, m = structuredClone(C), Y = S.packet, _ = /* @__PURE__ */ i(() => {
|
|
7
7
|
const t = $({
|
|
8
|
-
...
|
|
8
|
+
...Y,
|
|
9
9
|
...F().packet
|
|
10
10
|
});
|
|
11
11
|
return t.showBits && (t.paddingY += 10), t;
|
|
@@ -65,7 +65,7 @@ var C = {
|
|
|
65
65
|
}, "parse")
|
|
66
66
|
}, J = /* @__PURE__ */ i((t, e, o, s) => {
|
|
67
67
|
const n = s.db, a = n.getConfig(), { rowHeight: r, paddingY: p, bitWidth: f, bitsPerRow: c } = a, h = n.getPacket(), l = n.getDiagramTitle(), g = r + p, d = g * (h.length + 1) - (l ? 0 : r), k = f * c + 2, b = E(e);
|
|
68
|
-
b.attr("viewbox", `0 0 ${k} ${d}`),
|
|
68
|
+
b.attr("viewbox", `0 0 ${k} ${d}`), X(b, d, k, a.useMaxWidth);
|
|
69
69
|
for (const [w, y] of h.entries())
|
|
70
70
|
K(b, y, w, a);
|
|
71
71
|
b.append("text").text(l).attr("x", k / 2).attr("y", d - g / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const n = Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*(a|d|c)\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"(^(((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|^(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"comment":"Git produces unified diffs with embedded comments\\"","end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}'))
|
|
2
|
-
var e = [
|
|
1
|
+
const n = Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*(a|d|c)\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"(^(((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|^(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"comment":"Git produces unified diffs with embedded comments\\"","end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}')), e = [
|
|
3
2
|
n
|
|
4
3
|
];
|
|
5
4
|
export {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const e = Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"comment":"comment.line","match":"^(\\\\s*)((#).*$\\\\n?)"}],"scopeName":"source.dockerfile","aliases":["dockerfile"]}`))
|
|
2
|
-
var n = [
|
|
1
|
+
const e = Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"comment":"comment.line","match":"^(\\\\s*)((#).*$\\\\n?)"}],"scopeName":"source.dockerfile","aliases":["dockerfile"]}`)), n = [
|
|
3
2
|
e
|
|
4
3
|
];
|
|
5
4
|
export {
|
package/dist/documentation.es.js
CHANGED