@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
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { j as D, Q as S, X } from "./chunk-BAVOGKFW-B_i9W0mu-aXYqnut5.js";
|
|
2
|
-
import { _ as w, g as H, l as f, af as N, ag as $, az as G, aA as J, an as M, aB as W } from "./index-DOm338WG.js";
|
|
3
|
-
import { D as Y } from "./graph-DTNue1bF-BLqDvS-5.js";
|
|
4
|
-
import { o as Z } from "./layout-BrqICqM--CUdWjnyz.js";
|
|
5
|
-
var O = 0, I = /* @__PURE__ */ w(function(n, a, t, s, l) {
|
|
6
|
-
const g = /* @__PURE__ */ w(function(i) {
|
|
7
|
-
switch (i) {
|
|
8
|
-
case l.db.relationType.AGGREGATION:
|
|
9
|
-
return "aggregation";
|
|
10
|
-
case l.db.relationType.EXTENSION:
|
|
11
|
-
return "extension";
|
|
12
|
-
case l.db.relationType.COMPOSITION:
|
|
13
|
-
return "composition";
|
|
14
|
-
case l.db.relationType.DEPENDENCY:
|
|
15
|
-
return "dependency";
|
|
16
|
-
case l.db.relationType.LOLLIPOP:
|
|
17
|
-
return "lollipop";
|
|
18
|
-
}
|
|
19
|
-
}, "getRelationType");
|
|
20
|
-
a.points = a.points.filter((i) => !Number.isNaN(i.y));
|
|
21
|
-
const o = a.points, c = G().x(function(i) {
|
|
22
|
-
return i.x;
|
|
23
|
-
}).y(function(i) {
|
|
24
|
-
return i.y;
|
|
25
|
-
}).curve(J), d = n.append("path").attr("d", c(o)).attr("id", "edge" + O).attr("class", "relation");
|
|
26
|
-
let r = "";
|
|
27
|
-
s.arrowMarkerAbsolute && (r = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, r = r.replace(/\(/g, "\\("), r = r.replace(/\)/g, "\\)")), t.relation.lineType == 1 && d.attr("class", "relation dashed-line"), t.relation.lineType == 10 && d.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && d.attr(
|
|
28
|
-
"marker-start",
|
|
29
|
-
"url(" + r + "#" + g(t.relation.type1) + "Start)"
|
|
30
|
-
), t.relation.type2 !== "none" && d.attr(
|
|
31
|
-
"marker-end",
|
|
32
|
-
"url(" + r + "#" + g(t.relation.type2) + "End)"
|
|
33
|
-
);
|
|
34
|
-
let u, p;
|
|
35
|
-
const x = a.points.length;
|
|
36
|
-
let m = M.calcLabelPosition(a.points);
|
|
37
|
-
u = m.x, p = m.y;
|
|
38
|
-
let b, k, e, h;
|
|
39
|
-
if (x % 2 !== 0 && x > 1) {
|
|
40
|
-
let i = M.calcCardinalityPosition(
|
|
41
|
-
t.relation.type1 !== "none",
|
|
42
|
-
a.points,
|
|
43
|
-
a.points[0]
|
|
44
|
-
), y = M.calcCardinalityPosition(
|
|
45
|
-
t.relation.type2 !== "none",
|
|
46
|
-
a.points,
|
|
47
|
-
a.points[x - 1]
|
|
48
|
-
);
|
|
49
|
-
f.debug("cardinality_1_point " + JSON.stringify(i)), f.debug("cardinality_2_point " + JSON.stringify(y)), b = i.x, k = i.y, e = y.x, h = y.y;
|
|
50
|
-
}
|
|
51
|
-
if (t.title !== void 0) {
|
|
52
|
-
const i = n.append("g").attr("class", "classLabel"), y = i.append("text").attr("class", "label").attr("x", u).attr("y", p).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
|
|
53
|
-
window.label = y;
|
|
54
|
-
const L = y.node().getBBox();
|
|
55
|
-
i.insert("rect", ":first-child").attr("class", "box").attr("x", L.x - s.padding / 2).attr("y", L.y - s.padding / 2).attr("width", L.width + s.padding).attr("height", L.height + s.padding);
|
|
56
|
-
}
|
|
57
|
-
f.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && n.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", b).attr("y", k).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && n.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", e).attr("y", h).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), O++;
|
|
58
|
-
}, "drawEdge"), _ = /* @__PURE__ */ w(function(n, a, t, s) {
|
|
59
|
-
f.debug("Rendering class ", a, t);
|
|
60
|
-
const l = a.id, g = {
|
|
61
|
-
id: l,
|
|
62
|
-
label: a.id,
|
|
63
|
-
width: 0,
|
|
64
|
-
height: 0
|
|
65
|
-
}, o = n.append("g").attr("id", s.db.lookUpDomId(l)).attr("class", "classGroup");
|
|
66
|
-
let c;
|
|
67
|
-
a.link ? c = o.append("svg:a").attr("xlink:href", a.link).attr("target", a.linkTarget).append("text").attr("y", t.textHeight + t.padding).attr("x", 0) : c = o.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
|
|
68
|
-
let d = !0;
|
|
69
|
-
a.annotations.forEach(function(i) {
|
|
70
|
-
const y = c.append("tspan").text("«" + i + "»");
|
|
71
|
-
d || y.attr("dy", t.textHeight), d = !1;
|
|
72
|
-
});
|
|
73
|
-
let r = A(a);
|
|
74
|
-
const u = c.append("tspan").text(r).attr("class", "title");
|
|
75
|
-
d || u.attr("dy", t.textHeight);
|
|
76
|
-
const p = c.node().getBBox().height;
|
|
77
|
-
let x, m, b;
|
|
78
|
-
if (a.members.length > 0) {
|
|
79
|
-
x = o.append("line").attr("x1", 0).attr("y1", t.padding + p + t.dividerMargin / 2).attr("y2", t.padding + p + t.dividerMargin / 2);
|
|
80
|
-
const i = o.append("text").attr("x", t.padding).attr("y", p + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
|
|
81
|
-
d = !0, a.members.forEach(function(y) {
|
|
82
|
-
C(i, y, d, t), d = !1;
|
|
83
|
-
}), m = i.node().getBBox();
|
|
84
|
-
}
|
|
85
|
-
if (a.methods.length > 0) {
|
|
86
|
-
b = o.append("line").attr("x1", 0).attr("y1", t.padding + p + t.dividerMargin + m.height).attr("y2", t.padding + p + t.dividerMargin + m.height);
|
|
87
|
-
const i = o.append("text").attr("x", t.padding).attr("y", p + 2 * t.dividerMargin + m.height + t.textHeight).attr("fill", "white").attr("class", "classText");
|
|
88
|
-
d = !0, a.methods.forEach(function(y) {
|
|
89
|
-
C(i, y, d, t), d = !1;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
const k = o.node().getBBox();
|
|
93
|
-
var e = " ";
|
|
94
|
-
a.cssClasses.length > 0 && (e = e + a.cssClasses.join(" "));
|
|
95
|
-
const h = o.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", k.width + 2 * t.padding).attr("height", k.height + t.padding + 0.5 * t.dividerMargin).attr("class", e).node().getBBox().width;
|
|
96
|
-
return c.node().childNodes.forEach(function(i) {
|
|
97
|
-
i.setAttribute("x", (h - i.getBBox().width) / 2);
|
|
98
|
-
}), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", h), b && b.attr("x2", h), g.width = h, g.height = k.height + t.padding + 0.5 * t.dividerMargin, g;
|
|
99
|
-
}, "drawClass"), A = /* @__PURE__ */ w(function(n) {
|
|
100
|
-
let a = n.id;
|
|
101
|
-
return n.type && (a += "<" + W(n.type) + ">"), a;
|
|
102
|
-
}, "getClassTitleString"), P = /* @__PURE__ */ w(function(n, a, t, s) {
|
|
103
|
-
f.debug("Rendering note ", a, t);
|
|
104
|
-
const l = a.id, g = {
|
|
105
|
-
id: l,
|
|
106
|
-
text: a.text,
|
|
107
|
-
width: 0,
|
|
108
|
-
height: 0
|
|
109
|
-
}, o = n.append("g").attr("id", l).attr("class", "classGroup");
|
|
110
|
-
let c = o.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
|
|
111
|
-
const d = JSON.parse(`"${a.text}"`).split(`
|
|
112
|
-
`);
|
|
113
|
-
d.forEach(function(p) {
|
|
114
|
-
f.debug(`Adding line: ${p}`), c.append("tspan").text(p).attr("class", "title").attr("dy", t.textHeight);
|
|
115
|
-
});
|
|
116
|
-
const r = o.node().getBBox(), u = o.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", r.width + 2 * t.padding).attr(
|
|
117
|
-
"height",
|
|
118
|
-
r.height + d.length * t.textHeight + t.padding + 0.5 * t.dividerMargin
|
|
119
|
-
).node().getBBox().width;
|
|
120
|
-
return c.node().childNodes.forEach(function(p) {
|
|
121
|
-
p.setAttribute("x", (u - p.getBBox().width) / 2);
|
|
122
|
-
}), g.width = u, g.height = r.height + d.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, g;
|
|
123
|
-
}, "drawNote"), C = /* @__PURE__ */ w(function(n, a, t, s) {
|
|
124
|
-
const { displayText: l, cssStyle: g } = a.getDisplayDetails(), o = n.append("tspan").attr("x", s.padding).text(l);
|
|
125
|
-
g !== "" && o.attr("style", a.cssStyle), t || o.attr("dy", s.textHeight);
|
|
126
|
-
}, "addTspan"), B = {
|
|
127
|
-
getClassTitleString: A,
|
|
128
|
-
drawClass: _,
|
|
129
|
-
drawEdge: I,
|
|
130
|
-
drawNote: P
|
|
131
|
-
}, T = {}, v = 20, E = /* @__PURE__ */ w(function(n) {
|
|
132
|
-
const a = Object.entries(T).find((t) => t[1].label === n);
|
|
133
|
-
if (a)
|
|
134
|
-
return a[0];
|
|
135
|
-
}, "getGraphId"), R = /* @__PURE__ */ w(function(n) {
|
|
136
|
-
n.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), n.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), n.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
137
|
-
}, "insertMarkers"), j = /* @__PURE__ */ w(function(n, a, t, s) {
|
|
138
|
-
const l = H().class;
|
|
139
|
-
T = {}, f.info("Rendering diagram " + n);
|
|
140
|
-
const g = H().securityLevel;
|
|
141
|
-
let o;
|
|
142
|
-
g === "sandbox" && (o = N("#i" + a));
|
|
143
|
-
const c = g === "sandbox" ? N(o.nodes()[0].contentDocument.body) : N("body"), d = c.select(`[id='${a}']`);
|
|
144
|
-
R(d);
|
|
145
|
-
const r = new Y({
|
|
146
|
-
multigraph: !0
|
|
147
|
-
});
|
|
148
|
-
r.setGraph({
|
|
149
|
-
isMultiGraph: !0
|
|
150
|
-
}), r.setDefaultEdgeLabel(function() {
|
|
151
|
-
return {};
|
|
152
|
-
});
|
|
153
|
-
const u = s.db.getClasses(), p = [...u.keys()];
|
|
154
|
-
for (const e of p) {
|
|
155
|
-
const h = u.get(e), i = B.drawClass(d, h, l, s);
|
|
156
|
-
T[i.id] = i, r.setNode(i.id, i), f.info("Org height: " + i.height);
|
|
157
|
-
}
|
|
158
|
-
s.db.getRelations().forEach(function(e) {
|
|
159
|
-
f.info(
|
|
160
|
-
// cspell:ignore tjoho
|
|
161
|
-
"tjoho" + E(e.id1) + E(e.id2) + JSON.stringify(e)
|
|
162
|
-
), r.setEdge(
|
|
163
|
-
E(e.id1),
|
|
164
|
-
E(e.id2),
|
|
165
|
-
{
|
|
166
|
-
relation: e
|
|
167
|
-
},
|
|
168
|
-
e.title || "DEFAULT"
|
|
169
|
-
);
|
|
170
|
-
}), s.db.getNotes().forEach(function(e) {
|
|
171
|
-
f.debug(`Adding note: ${JSON.stringify(e)}`);
|
|
172
|
-
const h = B.drawNote(d, e, l, s);
|
|
173
|
-
T[h.id] = h, r.setNode(h.id, h), e.class && u.has(e.class) && r.setEdge(
|
|
174
|
-
e.id,
|
|
175
|
-
E(e.class),
|
|
176
|
-
{
|
|
177
|
-
relation: {
|
|
178
|
-
id1: e.id,
|
|
179
|
-
id2: e.class,
|
|
180
|
-
relation: {
|
|
181
|
-
type1: "none",
|
|
182
|
-
type2: "none",
|
|
183
|
-
lineType: 10
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"DEFAULT"
|
|
188
|
-
);
|
|
189
|
-
}), Z(r), r.nodes().forEach(function(e) {
|
|
190
|
-
e !== void 0 && r.node(e) !== void 0 && (f.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (s.db.lookUpDomId(e) || e)).attr(
|
|
191
|
-
"transform",
|
|
192
|
-
"translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
|
|
193
|
-
));
|
|
194
|
-
}), r.edges().forEach(function(e) {
|
|
195
|
-
e !== void 0 && r.edge(e) !== void 0 && (f.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(r.edge(e))), B.drawEdge(d, r.edge(e), r.edge(e).relation, l, s));
|
|
196
|
-
});
|
|
197
|
-
const x = d.node().getBBox(), m = x.width + v * 2, b = x.height + v * 2;
|
|
198
|
-
$(d, b, m, l.useMaxWidth);
|
|
199
|
-
const k = `${x.x - v} ${x.y - v} ${m} ${b}`;
|
|
200
|
-
f.debug(`viewBox ${k}`), d.attr("viewBox", k);
|
|
201
|
-
}, "draw"), z = {
|
|
202
|
-
draw: j
|
|
203
|
-
}, q = {
|
|
204
|
-
parser: D,
|
|
205
|
-
db: S,
|
|
206
|
-
renderer: z,
|
|
207
|
-
styles: X,
|
|
208
|
-
init: /* @__PURE__ */ w((n) => {
|
|
209
|
-
n.class || (n.class = {}), n.class.arrowMarkerAbsolute = n.arrowMarkerAbsolute, S.clear();
|
|
210
|
-
}, "init")
|
|
211
|
-
};
|
|
212
|
-
export {
|
|
213
|
-
q as diagram
|
|
214
|
-
};
|