@pi-outpost/embed 0.61.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/{abnfDiagram-S7VZAUFO-BdOzCXh1.js → abnfDiagram-S7VZAUFO-BvdbTr4n.js} +2 -2
- package/dist/{abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs → abnfDiagram-S7VZAUFO-C14iOswH.cjs} +1 -1
- package/dist/{architectureDiagram-YGSQEFNW-DiYOcBqo.js → architectureDiagram-YGSQEFNW-CPW5HJ_P.js} +20 -20
- package/dist/{architectureDiagram-YGSQEFNW-gEzRb5xY.cjs → architectureDiagram-YGSQEFNW-CfDEcnft.cjs} +3 -3
- package/dist/{blockDiagram-APKKGZFW-CIX-8mpK.js → blockDiagram-APKKGZFW-C4ig73DE.js} +5 -5
- package/dist/{blockDiagram-APKKGZFW-KL3nQT0s.cjs → blockDiagram-APKKGZFW-DLTDUF2F.cjs} +1 -1
- package/dist/{c4Diagram-KJ2TOQU5-BS_M90FN.js → c4Diagram-KJ2TOQU5-BViiS4eZ.js} +4 -4
- package/dist/{c4Diagram-KJ2TOQU5-D-dCJWvI.cjs → c4Diagram-KJ2TOQU5-BZrZGJnq.cjs} +1 -1
- package/dist/chunk-6MUBBAK2-Do5Y2VaL.js +631 -0
- package/dist/chunk-6MUBBAK2-fxSdrddJ.cjs +2 -0
- package/dist/{chunk-AXFCVDMN-DrVQa3gP.js → chunk-AXFCVDMN-BTcT9L5T.js} +196 -196
- package/dist/{chunk-AXFCVDMN-B6dhmE32.cjs → chunk-AXFCVDMN-DSN0_Pz7.cjs} +7 -7
- package/dist/{chunk-DQASFODM-DAaU7yoa.js → chunk-DQASFODM-BjATojAo.js} +30 -30
- package/dist/chunk-DQASFODM-GtaZ5zZF.cjs +10 -0
- package/dist/{chunk-HFQBQIA3-lOxrhpos.cjs → chunk-HFQBQIA3-Bt4zc3D1.cjs} +1 -1
- package/dist/{chunk-HFQBQIA3-DqHSeXIz.js → chunk-HFQBQIA3-l7lNC9FO.js} +1 -1
- package/dist/{chunk-KQLB2F66-C7twW9LJ.js → chunk-KQLB2F66-P-DwEW1U.js} +5 -5
- package/dist/{chunk-KQLB2F66-Ec2IAtUR.cjs → chunk-KQLB2F66-xBZn8cMv.cjs} +1 -1
- package/dist/{chunk-KS47KZWR-OD3AMBe8.js → chunk-KS47KZWR-Ca0eP7K6.js} +1 -1
- package/dist/{chunk-KS47KZWR-C7Yv0kfF.cjs → chunk-KS47KZWR-DLYUwvq1.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-BFGXlIAt.cjs → chunk-LEVMRMFU-8QpYqPF4.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-NLMudZfn.js → chunk-LEVMRMFU-DXj_Ks_M.js} +2 -2
- package/dist/{chunk-M57EVK23-BSZ7OEGY.cjs → chunk-M57EVK23-Cvl56jvK.cjs} +1 -1
- package/dist/{chunk-M57EVK23-C8-Jp43x.js → chunk-M57EVK23-D_qW99As.js} +3 -3
- package/dist/{chunk-OY52VR5R-B7NRk2-S.js → chunk-OY52VR5R-DAhIWmSX.js} +1 -1
- package/dist/{chunk-OY52VR5R-CvyV3pJF.cjs → chunk-OY52VR5R-DoFojbud.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DaIXN7QF.cjs → chunk-QB3YPZ4I-CcobelQp.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DPQ26dC9.js → chunk-QB3YPZ4I-DZ4KU0AI.js} +5 -5
- package/dist/{chunk-STOXU5M4-0WKKmqbF.js → chunk-STOXU5M4-CcGFpnKt.js} +7 -7
- package/dist/{chunk-STOXU5M4-CmoaBap6.cjs → chunk-STOXU5M4-_pvE8f8d.cjs} +2 -2
- package/dist/{classDiagram-v2-L25IHNXF-CAts0vNW.js → classDiagram-v2-L25IHNXF-CoK-3RrH.js} +8 -8
- package/dist/{classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs → classDiagram-v2-L25IHNXF-DUh5AzbW.cjs} +1 -1
- package/dist/{conversationExport-C-0oWDfL.cjs → conversationExport-DXxmgLoF.cjs} +1 -1
- package/dist/{conversationExport-BGLSsVDO.js → conversationExport-jRLUX0kH.js} +3 -3
- package/dist/{conversationHistory-CRkCClAn.js → conversationHistory-3pDBlkZZ.js} +11 -6
- package/dist/{conversationHistory-BgnXSxWk.cjs → conversationHistory-C6PqGsO9.cjs} +2 -2
- package/dist/{cynefinDiagram-L36ESFBY-CrsJmb7x.cjs → cynefinDiagram-L36ESFBY-BLUfdwhj.cjs} +1 -1
- package/dist/{cynefinDiagram-L36ESFBY-ByHpHKCc.js → cynefinDiagram-L36ESFBY-COLv504g.js} +7 -7
- package/dist/{dagre-SPEB5RXH-C01_UMxx.js → dagre-SPEB5RXH-CohPsDHQ.js} +7 -7
- package/dist/{dagre-SPEB5RXH-ExCiSqVu.cjs → dagre-SPEB5RXH-DF8bZfUb.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-CRNoSH2i.cjs → diagram-3B7GL73J-CFwrYkyI.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-D7i6eGGQ.js → diagram-3B7GL73J-w28Iaq_1.js} +8 -8
- package/dist/{diagram-DNEMPZML-CkhkOJo2.cjs → diagram-DNEMPZML-CezYrBHl.cjs} +1 -1
- package/dist/{diagram-DNEMPZML-Di5RqN_h.js → diagram-DNEMPZML-HpZqPF1t.js} +6 -6
- package/dist/{diagram-L3MUGCDN-BtQkAzOD.js → diagram-L3MUGCDN-Bg9oF9vU.js} +7 -7
- package/dist/{diagram-L3MUGCDN-B1vXsDB1.cjs → diagram-L3MUGCDN-FmKU8C82.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-DST6DvSP.cjs → diagram-LA4NIPWU-B4zPp12a.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-Badv-tyU.js → diagram-LA4NIPWU-D5S10Z1M.js} +16 -16
- package/dist/{diagram-MHCOC4E2-DmA9ezb9.js → diagram-MHCOC4E2-BMg2Maje.js} +5 -5
- package/dist/{diagram-MHCOC4E2-BafwTqOD.cjs → diagram-MHCOC4E2-DcF56W3-.cjs} +2 -2
- package/dist/{diagram-XPFHEONP-CZHt29x-.js → diagram-XPFHEONP-COT08Qlw.js} +9 -9
- package/dist/{diagram-XPFHEONP-DCm8Rjp8.cjs → diagram-XPFHEONP-GLEfHAAK.cjs} +5 -5
- package/dist/dist-BDWJ0PuE.js +1007 -0
- package/dist/dist-CeGGIzgU.cjs +1 -0
- package/dist/{docxExport-DM0_V94R.cjs → docxExport-D-T3fTj7.cjs} +1 -1
- package/dist/{docxExport-COweplKv.js → docxExport-diU6sv-G.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-DVGQga8g.js → ebnfDiagram-UZSYDL2S-Cu5-1sQW.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-fO0plY-B.cjs → ebnfDiagram-UZSYDL2S-ftYbml6-.cjs} +1 -1
- package/dist/{elk-XV6XMXQE-CioXUob9.cjs → elk-XV6XMXQE-32eNFZGY.cjs} +2 -2
- package/dist/{elk-XV6XMXQE-BkH0WNCd.js → elk-XV6XMXQE-BoimJY8z.js} +9 -8
- package/dist/{erDiagram-EYBAPDEH-CUgDxVam.cjs → erDiagram-EYBAPDEH-BCiRLs1y.cjs} +1 -1
- package/dist/{erDiagram-EYBAPDEH-Byy0RKKe.js → erDiagram-EYBAPDEH-BxyIjrYb.js} +7 -7
- package/dist/flowDiagram-MALGAFMO-BwqIeP0j.js +15 -0
- package/dist/flowDiagram-MALGAFMO-DkxE7jK-.cjs +1 -0
- package/dist/ganttDiagram-23REXITY-CSCN0suz.cjs +292 -0
- package/dist/{ganttDiagram-23REXITY-DAs5LGLL.js → ganttDiagram-23REXITY-uW1Fo-_u.js} +467 -489
- package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs} +3 -3
- package/dist/{gitGraphDiagram-STJD7YCW-BVa0DHTU.js → gitGraphDiagram-STJD7YCW-j7-SImA3.js} +57 -57
- package/dist/{infoDiagram-KBXO4MBG-DRQkxKbg.cjs → infoDiagram-KBXO4MBG-CYMQGNUj.cjs} +1 -1
- package/dist/{infoDiagram-KBXO4MBG-BW7IcSQr.js → infoDiagram-KBXO4MBG-DE6zWbEk.js} +1 -1
- package/dist/init-DP9k4ltr.js +151 -0
- package/dist/init-UgQs1rm8.cjs +1 -0
- package/dist/{ishikawaDiagram-M35NCXHK-DBokYlS8.cjs → ishikawaDiagram-M35NCXHK-DbHbBLzt.cjs} +1 -1
- package/dist/{ishikawaDiagram-M35NCXHK-BiLoyI1l.js → ishikawaDiagram-M35NCXHK-zvWEWMyM.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-DsyubZVY.js → journeyDiagram-OPLOXDXO-Ckjy-e7g.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-CgabMAC2.cjs → journeyDiagram-OPLOXDXO-Df3Isppt.cjs} +2 -2
- package/dist/{kanban-definition-BZKZHSQY-DU8sOWQd.js → kanban-definition-BZKZHSQY-BmePUr-s.js} +6 -6
- package/dist/{kanban-definition-BZKZHSQY-CLi3J9cI.cjs → kanban-definition-BZKZHSQY-C0592yvk.cjs} +1 -1
- package/dist/linear-DgbjLlQ3.cjs +1 -0
- package/dist/linear-uoBSwo4a.js +198 -0
- package/dist/{loadReferencedImage-D47xCpa7.cjs → loadReferencedImage-N3Qidv7i.cjs} +1 -1
- package/dist/{loadReferencedImage-VNYxXIzB.js → loadReferencedImage-u2es0OEX.js} +1 -1
- package/dist/{mermaid.core-DPCy8dJO.js → mermaid.core-BlYpILf7.js} +65 -65
- package/dist/{mermaid.core-BL4WDqAH.cjs → mermaid.core-uCBIzEBU.cjs} +7 -7
- package/dist/{mermaidToImage-CViP9wx2.js → mermaidToImage-CBa4nUvP.js} +1 -1
- package/dist/{mermaidToImage-B7I6iJ9s.cjs → mermaidToImage-Gx6dNGEn.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-GT8_r7or.cjs → mindmap-definition-I2QAS2VK-CRXX7-9C.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-C2KpoDqG.js → mindmap-definition-I2QAS2VK-DgJirDRS.js} +7 -7
- package/dist/ordinal-CeUiYJ7_.cjs +1 -0
- package/dist/ordinal-DFWF7eBM.js +28 -0
- package/dist/{pegDiagram-FD4XPPHP-D0OZoETj.cjs → pegDiagram-FD4XPPHP-DFmA0OWh.cjs} +1 -1
- package/dist/{pegDiagram-FD4XPPHP-CSA4sB83.js → pegDiagram-FD4XPPHP-DpYyVjjQ.js} +2 -2
- package/dist/pi-outpost-embed.cjs +3 -3
- package/dist/pi-outpost-embed.js +3 -3
- package/dist/pieDiagram-J4AKIIQI-Cz-UbIk9.cjs +39 -0
- package/dist/pieDiagram-J4AKIIQI-DuqHiYUq.js +155 -0
- package/dist/{quadrantDiagram-XTYBLID2-BjaZuA3m.js → quadrantDiagram-XTYBLID2-B94UoyXc.js} +1 -1
- package/dist/{quadrantDiagram-XTYBLID2-CfdtTmYm.cjs → quadrantDiagram-XTYBLID2-BCN9RHwV.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs → railroadDiagram-MRQ6NCDL-BlrwhMUX.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DgAKQKiD.js → railroadDiagram-MRQ6NCDL-Br7PQgSm.js} +2 -2
- package/dist/{requirementDiagram-Y7LWUY3S-Bhlk2ueA.js → requirementDiagram-Y7LWUY3S-CT4WIq10.js} +7 -7
- package/dist/{requirementDiagram-Y7LWUY3S-nSr_pknl.cjs → requirementDiagram-Y7LWUY3S-CzR9zsNk.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-x6J896b3.cjs → sankeyDiagram-WGJFYUXA-D8LLSvqn.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-DUYWd4HF.js → sankeyDiagram-WGJFYUXA-DiEth1kw.js} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs → sequenceDiagram-5NDRBG5M-BATWsrlf.cjs} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-D1YS8Amk.js → sequenceDiagram-5NDRBG5M-DJ1ruzP_.js} +4 -4
- package/dist/{stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js → stateDiagram-v2-FJ4FJNEA-CtEFZimW.js} +8 -8
- package/dist/{stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs → stateDiagram-v2-FJ4FJNEA-DS0IS9Xt.cjs} +1 -1
- package/dist/{swimlanes-UMQ2AFYF-CNb1NF60.js → swimlanes-UMQ2AFYF-B9sFO11Y.js} +8 -8
- package/dist/{swimlanes-UMQ2AFYF-BQLQzNLz.cjs → swimlanes-UMQ2AFYF-CNdzpvk7.cjs} +1 -1
- package/dist/{swimlanesDiagram-OMPLPG4O-BOl138lS.js → swimlanesDiagram-OMPLPG4O-CEjeo6Pa.js} +9 -9
- package/dist/swimlanesDiagram-OMPLPG4O-F8fhW_eR.cjs +8 -0
- package/dist/{timeline-definition-SEUHKTQE-B_909Amn.js → timeline-definition-SEUHKTQE-BiPtPmVz.js} +3 -3
- package/dist/{timeline-definition-SEUHKTQE-Du5-RSsU.cjs → timeline-definition-SEUHKTQE-CHvbMdoq.cjs} +2 -2
- package/dist/{usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs → usecaseDiagram-AFA6YXN4-B_KoFCdb.cjs} +1 -1
- package/dist/{usecaseDiagram-AFA6YXN4-CiVGRP5X.js → usecaseDiagram-AFA6YXN4-VzWSjfFU.js} +7 -7
- package/dist/{vennDiagram-NNMJR3RB-CKxaec4G.cjs → vennDiagram-NNMJR3RB-BRWZo29n.cjs} +1 -1
- package/dist/{vennDiagram-NNMJR3RB-l3A_FZxZ.js → vennDiagram-NNMJR3RB-D5u2Njla.js} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs → wardleyDiagram-S7YFUSEH-CSq-zmI3.cjs} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-BMQf5dl9.js → wardleyDiagram-S7YFUSEH-VNmN8A6j.js} +5 -5
- package/dist/{xychartDiagram-GGNKY7IX-CuFU4ynf.js → xychartDiagram-GGNKY7IX-D-eT4Gjt.js} +18 -25
- package/dist/{xychartDiagram-GGNKY7IX-BUma86Wh.cjs → xychartDiagram-GGNKY7IX-D4bccPOk.cjs} +3 -3
- package/package.json +1 -1
- package/dist/arc-37kcMiGl.js +0 -82
- package/dist/arc-C7P0rHQr.cjs +0 -1
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/chunk-6MUBBAK2-BTabKnTR.cjs +0 -2
- package/dist/chunk-6MUBBAK2-DlUTxzYh.js +0 -1334
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +0 -10
- package/dist/dist-BB5r6V4R.cjs +0 -1
- package/dist/dist-CZhfI1u7.js +0 -59
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +0 -15
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +0 -1
- package/dist/ganttDiagram-23REXITY-D82ogzPM.cjs +0 -292
- package/dist/init-BJdqMO10.cjs +0 -1
- package/dist/init-CuXVI8k2.js +0 -13
- package/dist/line-Bf0B129l.cjs +0 -1
- package/dist/line-DRq00lCg.js +0 -34
- package/dist/linear-Bh2vuvAF.cjs +0 -1
- package/dist/linear-CxE0kir0.js +0 -287
- package/dist/ordinal-Bm_chml2.cjs +0 -1
- package/dist/ordinal-D3SPD7Kk.js +0 -65
- package/dist/path-DIS6ck99.cjs +0 -1
- package/dist/path-PGqhG0Rz.js +0 -84
- package/dist/pieDiagram-J4AKIIQI-CNLlH6kK.js +0 -203
- package/dist/pieDiagram-J4AKIIQI-O870G6iX.cjs +0 -39
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-65Lfw03T.js";
|
|
3
3
|
import { B as r, M as i, b as a, f as o, g as s, k as c, w as l, y as u, z as d } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as b, r as x } from "./chunk-STOXU5M4-
|
|
4
|
+
import { i as f, n as p, r as m, t as h } from "./chunk-R3KSYZAL-DeNSy3X8.js";
|
|
5
|
+
import { a as g, d as _, m as v, r as y } from "./chunk-6MUBBAK2-Do5Y2VaL.js";
|
|
6
|
+
import { n as b, r as x } from "./chunk-STOXU5M4-CcGFpnKt.js";
|
|
7
7
|
import { a as S, i as C, r as w, t as T } from "./chunk-X4PVCEUW-C80IBt-t.js";
|
|
8
8
|
import { s as E } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
9
9
|
import { t as D } from "./rough.esm-D2JJJ0Ot.js";
|
|
@@ -16,7 +16,7 @@ async function A(t) {
|
|
|
16
16
|
await Promise.all([...n].map((t) => new Promise((n) => {
|
|
17
17
|
function i() {
|
|
18
18
|
if (t.style.display = "flex", t.style.flexDirection = "column", r) {
|
|
19
|
-
let e = a().fontSize ? a().fontSize : window.getComputedStyle(document.body).fontSize, [n = o.fontSize] =
|
|
19
|
+
let e = a().fontSize ? a().fontSize : window.getComputedStyle(document.body).fontSize, [n = o.fontSize] = v(e), r = n * 5 + "px";
|
|
20
20
|
t.style.minWidth = r, t.style.maxWidth = r;
|
|
21
21
|
} else t.style.width = "100%";
|
|
22
22
|
n(t);
|
|
@@ -32,7 +32,7 @@ function j(e) {
|
|
|
32
32
|
}
|
|
33
33
|
e(j, "hasTextBesidesImages");
|
|
34
34
|
var M = 3, N = 32, P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
35
|
-
let i = a(), o = e.insert("g").attr("class", r ?? "node default").attr("id", t.domId || t.id), s = o.insert("g").attr("class", "label").attr("style",
|
|
35
|
+
let i = a(), o = e.insert("g").attr("class", r ?? "node default").attr("id", t.domId || t.id), s = o.insert("g").attr("class", "label").attr("style", _(t.labelStyle)), c = [
|
|
36
36
|
{
|
|
37
37
|
text: typeof t.label == "string" ? t.label : t.label?.[0] ?? "",
|
|
38
38
|
cssClass: "c4-name"
|
|
@@ -45,8 +45,8 @@ var M = 3, N = 32, P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
45
45
|
text: e,
|
|
46
46
|
cssClass: "c4-descr"
|
|
47
47
|
}))
|
|
48
|
-
].filter((e) => e.text), l = t.width ? Math.max(t.width - 2 * (t.padding ?? 0), N) : a().flowchart?.wrappingWidth ?? 200, u = i.c4?.wrap ?? !0 ? l : Infinity,
|
|
49
|
-
let r = s.append("g").attr("class", e.cssClass), a = await b(r, d(
|
|
48
|
+
].filter((e) => e.text), l = t.width ? Math.max(t.width - 2 * (t.padding ?? 0), N) : a().flowchart?.wrappingWidth ?? 200, u = i.c4?.wrap ?? !0 ? l : Infinity, f = await Promise.all(c.map(async (e) => {
|
|
49
|
+
let r = s.append("g").attr("class", e.cssClass), a = await b(r, d(g(e.text ?? ""), i), {
|
|
50
50
|
useHtmlLabels: !1,
|
|
51
51
|
markdown: !1,
|
|
52
52
|
isNode: !0,
|
|
@@ -57,10 +57,10 @@ var M = 3, N = 32, P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
57
57
|
el: r,
|
|
58
58
|
box: r.node().getBBox()
|
|
59
59
|
};
|
|
60
|
-
})),
|
|
61
|
-
for (let { el: e, box: t } of
|
|
62
|
-
let
|
|
63
|
-
return s.insert("rect", ":first-child"), s.attr("transform", `translate(${-
|
|
60
|
+
})), p = Math.max(...f.map(({ box: e }) => e.width), 0), m = 0;
|
|
61
|
+
for (let { el: e, box: t } of f) e.attr("transform", `translate(${p / 2 - t.x - t.width / 2}, ${m - t.y})`), m += t.height + M;
|
|
62
|
+
let h = f.length > 0 ? m - M : 0;
|
|
63
|
+
return s.insert("rect", ":first-child"), s.attr("transform", `translate(${-p / 2}, ${-h / 2})`), {
|
|
64
64
|
shapeSvg: o,
|
|
65
65
|
bbox: s.node().getBBox(),
|
|
66
66
|
halfPadding: (t.padding ?? 0) / 2,
|
|
@@ -88,21 +88,21 @@ var M = 3, N = 32, P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
88
88
|
if (t.stereotype !== void 0) return P(e, t, r);
|
|
89
89
|
let o, c = t.useHtmlLabels || s(a()?.htmlLabels);
|
|
90
90
|
o = r || "node default";
|
|
91
|
-
let l = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = l.insert("g").attr("class", "label").attr("style",
|
|
92
|
-
|
|
93
|
-
let
|
|
91
|
+
let l = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = l.insert("g").attr("class", "label").attr("style", _(t.labelStyle)), f;
|
|
92
|
+
f = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
|
|
93
|
+
let p = !!t.icon || !!t.img, m = t.labelType === "markdown", h = f && !t.width && !i ? t.minWidth ?? 0 : 0, v = await b(u, d(g(f), a()), {
|
|
94
94
|
useHtmlLabels: c,
|
|
95
95
|
width: t.width || t.wrappingWidth || a().flowchart?.wrappingWidth,
|
|
96
|
-
minWidth:
|
|
97
|
-
classes:
|
|
96
|
+
minWidth: h,
|
|
97
|
+
classes: m ? "markdown-node-label" : "",
|
|
98
98
|
style: t.labelStyle,
|
|
99
|
-
addSvgBackground:
|
|
100
|
-
markdown:
|
|
99
|
+
addSvgBackground: p,
|
|
100
|
+
markdown: m
|
|
101
101
|
}, a()), y = (t?.padding ?? 0) / 2, S;
|
|
102
102
|
if (c) {
|
|
103
103
|
let e = v.children[0], t = n(v);
|
|
104
|
-
await A(e), S = await x.measure(() => e.getBoundingClientRect()), S = F(S,
|
|
105
|
-
} else S = await x.measure(() => v.getBBox()), S = F(S,
|
|
104
|
+
await A(e), S = await x.measure(() => e.getBoundingClientRect()), S = F(S, h), t.attr("width", S.width), t.attr("height", S.height);
|
|
105
|
+
} else S = await x.measure(() => v.getBBox()), S = F(S, h);
|
|
106
106
|
return c ? u.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")") : u.attr("transform", "translate(0, " + -S.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")"), u.insert("rect", ":first-child"), {
|
|
107
107
|
shapeSvg: l,
|
|
108
108
|
bbox: S,
|
|
@@ -110,7 +110,7 @@ var M = 3, N = 32, P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
110
110
|
label: u
|
|
111
111
|
};
|
|
112
112
|
}, "labelHelper"), L = /* @__PURE__ */ e(async (e, t, r) => {
|
|
113
|
-
let i = r.useHtmlLabels ?? l(a()), o = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), s = await b(o, d(
|
|
113
|
+
let i = r.useHtmlLabels ?? l(a()), o = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), s = await b(o, d(g(t), a()), {
|
|
114
114
|
useHtmlLabels: i,
|
|
115
115
|
width: r.width || a()?.flowchart?.wrappingWidth,
|
|
116
116
|
style: r.labelStyle,
|
|
@@ -335,7 +335,7 @@ function le(e, n) {
|
|
|
335
335
|
});
|
|
336
336
|
n.look !== "handDrawn" && (l.roughness = 0);
|
|
337
337
|
let u = c.circle(0, 0, 2, l), d = o.insert(() => u, ":first-child");
|
|
338
|
-
return d.attr("class", "anchor").attr("style",
|
|
338
|
+
return d.attr("class", "anchor").attr("style", _(s)), R(n, d), n.intersect = function(e) {
|
|
339
339
|
return t.info("Circle intersect", n, 1, e), q.circle(n, 1, e);
|
|
340
340
|
}, o;
|
|
341
341
|
}
|
|
@@ -443,7 +443,7 @@ e(ve, "getCollapsedStyle");
|
|
|
443
443
|
async function ye(e, t) {
|
|
444
444
|
let n = ve(t.metadata?.containerType), { fill: r, stroke: i } = n, { nodeStyles: o } = C(t), { shapeSvg: s, bbox: c } = await I(e, t, z(t)), { theme: u, themeVariables: d } = a();
|
|
445
445
|
E(s, t.colorIndex, u, d.borderColorArray);
|
|
446
|
-
let f = t.padding ?? 8,
|
|
446
|
+
let f = t.padding ?? 8, p = c.height, m = Math.max(c.width + f * 2, ge, t?.width ?? 0), h = Math.max(p + he + me + f * 2, t?.height ?? 0), g = -m / 2, v = -h / 2, y = -(he + me) / 2, b = s.select(".label");
|
|
447
447
|
b && (t.useHtmlLabels ?? l(a()) ? b.attr("transform", `translate(${-c.width / 2}, ${-c.height / 2 + y})`) : b.attr("transform", `translate(0, ${-c.height / 2 + y})`));
|
|
448
448
|
let x;
|
|
449
449
|
if (t.look === "handDrawn") {
|
|
@@ -452,11 +452,11 @@ async function ye(e, t) {
|
|
|
452
452
|
stroke: i,
|
|
453
453
|
...n.strokeWidth === void 0 ? {} : { strokeWidth: n.strokeWidth },
|
|
454
454
|
...r === "none" ? { fillWeight: 0 } : { fillStyle: "solid" }
|
|
455
|
-
}), o = e.path(J(
|
|
456
|
-
x = s.insert(() => o, ":first-child"), x.attr("class", "basic label-container " + n.cssClass).attr("style",
|
|
457
|
-
} else x = s.insert("rect", ":first-child"), x.attr("class", "basic label-container " + n.cssClass).attr("style", o).attr("rx", n.rx).attr("ry", n.rx).attr("x",
|
|
458
|
-
let w = v + f +
|
|
459
|
-
s.append("line").attr("class", "collapsed-separator").attr("x1",
|
|
455
|
+
}), o = e.path(J(g, v, m, h, n.rx), a);
|
|
456
|
+
x = s.insert(() => o, ":first-child"), x.attr("class", "basic label-container " + n.cssClass).attr("style", _(t.cssStyles));
|
|
457
|
+
} else x = s.insert("rect", ":first-child"), x.attr("class", "basic label-container " + n.cssClass).attr("style", o).attr("rx", n.rx).attr("ry", n.rx).attr("x", g).attr("y", v).attr("width", m).attr("height", h).attr("fill", r).attr("stroke", i), n.strokeWidth !== void 0 && x.attr("stroke-width", n.strokeWidth + "px");
|
|
458
|
+
let w = v + f + p + he;
|
|
459
|
+
s.append("line").attr("class", "collapsed-separator").attr("x1", g + 8).attr("y1", w).attr("x2", g + m - 8).attr("y2", w).attr("stroke", i).attr("stroke-dasharray", "3, 3");
|
|
460
460
|
let T = w + me / 2;
|
|
461
461
|
for (let e = -1; e <= 1; e++) s.append("circle").attr("class", "collapsed-indicator").attr("cx", e * 10).attr("cy", T).attr("r", 2.5).attr("fill", i);
|
|
462
462
|
return R(t, x), t.calcIntersect = function(e, t) {
|
|
@@ -1011,10 +1011,10 @@ e(Ae, "choice");
|
|
|
1011
1011
|
async function je(e, n, r) {
|
|
1012
1012
|
let { labelStyles: i, nodeStyles: a } = C(n);
|
|
1013
1013
|
n.labelStyle = i;
|
|
1014
|
-
let { shapeSvg: o, bbox: s, halfPadding: c } = await I(e, n, z(n), { ignoreMinWidth: !0 }), l = r?.padding ?? c, u = Math.sqrt(s.width ** 2 + s.height ** 2) / 2, d = n.look === "neo" ? u + 16 : u + l, f, { cssStyles:
|
|
1014
|
+
let { shapeSvg: o, bbox: s, halfPadding: c } = await I(e, n, z(n), { ignoreMinWidth: !0 }), l = r?.padding ?? c, u = Math.sqrt(s.width ** 2 + s.height ** 2) / 2, d = n.look === "neo" ? u + 16 : u + l, f, { cssStyles: p } = n;
|
|
1015
1015
|
if (n.look === "handDrawn") {
|
|
1016
1016
|
let e = D.svg(o), t = S(n, {}), r = e.circle(0, 0, d * 2, t);
|
|
1017
|
-
f = o.insert(() => r, ":first-child"), f.attr("class", "basic label-container").attr("style", p
|
|
1017
|
+
f = o.insert(() => r, ":first-child"), f.attr("class", "basic label-container").attr("style", _(p));
|
|
1018
1018
|
} else f = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", a).attr("r", d).attr("cx", 0).attr("cy", 0);
|
|
1019
1019
|
return R(n, f), n.calcIntersect = function(e, t) {
|
|
1020
1020
|
let n = e.width / 2;
|
|
@@ -1381,19 +1381,19 @@ async function Je(e, t) {
|
|
|
1381
1381
|
let e = s / 2 / (2.5 + s / 50);
|
|
1382
1382
|
t.height = t.height - a - e * 3, t.height < Ke && (t.height = Ke);
|
|
1383
1383
|
}
|
|
1384
|
-
let { shapeSvg: c, bbox: l, label: u } = await I(e, t, z(t)), d = Math.max(t.width ?? 0, l.width) + o, f = d / 2,
|
|
1384
|
+
let { shapeSvg: c, bbox: l, label: u } = await I(e, t, z(t)), d = Math.max(t.width ?? 0, l.width) + o, f = d / 2, p = f / (2.5 + d / 50), m = Math.max(t.height ?? 0, l.height) + a + p, h, { cssStyles: g } = t;
|
|
1385
1385
|
if (t.look === "handDrawn") {
|
|
1386
|
-
let e = D.svg(c), n = We(0, 0, d,
|
|
1387
|
-
|
|
1386
|
+
let e = D.svg(c), n = We(0, 0, d, m, f, p), r = Ge(0, p, d, m, f, p), i = S(t, {}), a = e.path(n, i), o = e.path(r, S(t, { fill: "none" }));
|
|
1387
|
+
h = c.insert(() => o, ":first-child"), h = c.insert(() => a, ":first-child"), h.attr("class", "basic label-container"), g && h.attr("style", g);
|
|
1388
1388
|
} else {
|
|
1389
|
-
let e = Ue(0, 0, d,
|
|
1390
|
-
|
|
1389
|
+
let e = Ue(0, 0, d, m, f, p);
|
|
1390
|
+
h = c.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", _(g)).attr("style", r);
|
|
1391
1391
|
}
|
|
1392
|
-
return
|
|
1392
|
+
return h.attr("label-offset-y", p), h.attr("transform", `translate(${-d / 2}, ${-(m / 2 + p)})`), R(t, h), u.attr("transform", `translate(${-(l.width / 2) - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + (t.padding ?? 0) / 1.5 - (l.y - (l.top ?? 0))})`), t.intersect = function(e) {
|
|
1393
1393
|
let n = q.rect(t, e), r = n.x - (t.x ?? 0);
|
|
1394
|
-
if (f != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 -
|
|
1395
|
-
let i =
|
|
1396
|
-
i > 0 && (i = Math.sqrt(i)), i =
|
|
1394
|
+
if (f != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - p)) {
|
|
1395
|
+
let i = p * p * (1 - r * r / (f * f));
|
|
1396
|
+
i > 0 && (i = Math.sqrt(i)), i = p - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
|
|
1397
1397
|
}
|
|
1398
1398
|
return n;
|
|
1399
1399
|
}, c;
|
|
@@ -1402,11 +1402,11 @@ e(Je, "cylinder");
|
|
|
1402
1402
|
async function Ye(e, t, n) {
|
|
1403
1403
|
let { labelStyles: r, nodeStyles: i } = C(t);
|
|
1404
1404
|
t.labelStyle = r;
|
|
1405
|
-
let { shapeSvg: a, bbox: o } = await I(e, t, z(t)), s = Math.max(o.width + n.labelPaddingX * 2, t?.width || 0), c = Math.max(o.height + n.labelPaddingY * 2, t?.height || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry:
|
|
1406
|
-
if (n?.rx && n.ry && (f = n.rx,
|
|
1407
|
-
let e = D.svg(a), n = S(t, {}), r = f ||
|
|
1408
|
-
d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style",
|
|
1409
|
-
} else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx",
|
|
1405
|
+
let { shapeSvg: a, bbox: o } = await I(e, t, z(t)), s = Math.max(o.width + n.labelPaddingX * 2, t?.width || 0), c = Math.max(o.height + n.labelPaddingY * 2, t?.height || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry: p } = t, { cssStyles: m } = t;
|
|
1406
|
+
if (n?.rx && n.ry && (f = n.rx, p = n.ry), t.look === "handDrawn") {
|
|
1407
|
+
let e = D.svg(a), n = S(t, {}), r = f || p ? e.path(J(l, u, s, c, f || 0), n) : e.rectangle(l, u, s, c, n);
|
|
1408
|
+
d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", _(m));
|
|
1409
|
+
} else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx", _(f)).attr("ry", _(p)).attr("x", l).attr("y", u).attr("width", s).attr("height", c);
|
|
1410
1410
|
return R(t, d, t.look === "handDrawn" ? void 0 : {
|
|
1411
1411
|
width: s,
|
|
1412
1412
|
height: c
|
|
@@ -1480,7 +1480,7 @@ e(Ze, "dividedRectangle");
|
|
|
1480
1480
|
async function Qe(e, n) {
|
|
1481
1481
|
let { labelStyles: r, nodeStyles: i } = C(n), a = n.look === "neo" ? 12 : 5;
|
|
1482
1482
|
n.labelStyle = r;
|
|
1483
|
-
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await I(e, n, z(n), { ignoreMinWidth: !0 }), u = Math.sqrt(l.width ** 2 + l.height ** 2) / 2, d = (n?.width ? n?.width / 2 : u) + (s ?? 0), f = d + a,
|
|
1483
|
+
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await I(e, n, z(n), { ignoreMinWidth: !0 }), u = Math.sqrt(l.width ** 2 + l.height ** 2) / 2, d = (n?.width ? n?.width / 2 : u) + (s ?? 0), f = d + a, p, { cssStyles: m } = n;
|
|
1484
1484
|
if (n.look === "handDrawn") {
|
|
1485
1485
|
let e = D.svg(c), t = S(n, {
|
|
1486
1486
|
roughness: .2,
|
|
@@ -1489,13 +1489,13 @@ async function Qe(e, n) {
|
|
|
1489
1489
|
roughness: .2,
|
|
1490
1490
|
strokeWidth: 1.5
|
|
1491
1491
|
}), i = e.circle(0, 0, f * 2, t), a = e.circle(0, 0, d * 2, r);
|
|
1492
|
-
|
|
1492
|
+
p = c.insert("g", ":first-child"), p.attr("class", _(n.cssClasses)).attr("style", _(m)), p.node()?.appendChild(i), p.node()?.appendChild(a);
|
|
1493
1493
|
} else {
|
|
1494
|
-
|
|
1495
|
-
let e =
|
|
1496
|
-
|
|
1494
|
+
p = c.insert("g", ":first-child");
|
|
1495
|
+
let e = p.insert("circle", ":first-child"), t = p.insert("circle");
|
|
1496
|
+
p.attr("class", "basic label-container").attr("style", i), e.attr("class", "outer-circle").attr("style", i).attr("r", f).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", i).attr("r", d).attr("cx", 0).attr("cy", 0);
|
|
1497
1497
|
}
|
|
1498
|
-
return R(n,
|
|
1498
|
+
return R(n, p), n.intersect = function(e) {
|
|
1499
1499
|
return t.info("DoubleCircle intersect", n, f, e), q.circle(n, f, e);
|
|
1500
1500
|
}, c;
|
|
1501
1501
|
}
|
|
@@ -1743,25 +1743,25 @@ async function ut(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1743
1743
|
n.labelStyle = a;
|
|
1744
1744
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1745
1745
|
n.width = Math.max(c, l ?? 0);
|
|
1746
|
-
let { shapeSvg: u, bbox: d, label: f } = await I(e, n, "icon-shape default"), p = n.pos === "t", m = c,
|
|
1746
|
+
let { shapeSvg: u, bbox: d, label: f } = await I(e, n, "icon-shape default"), p = n.pos === "t", m = c, g = c, { nodeBorder: _ } = r, { stylesMap: v } = T(n), y = -g / 2, b = -m / 2, x = n.label ? 8 : 0, w = D.svg(u), E = S(n, {
|
|
1747
1747
|
stroke: "none",
|
|
1748
1748
|
fill: "none"
|
|
1749
1749
|
});
|
|
1750
1750
|
n.look !== "handDrawn" && (E.roughness = 0, E.fillStyle = "solid");
|
|
1751
|
-
let O = w.rectangle(
|
|
1751
|
+
let O = w.rectangle(y, b, g, m, E), k = Math.max(g, d.width), A = m + d.height + x, j = w.rectangle(-k / 2, -A / 2, k, A, {
|
|
1752
1752
|
...E,
|
|
1753
1753
|
fill: "transparent",
|
|
1754
1754
|
stroke: "none"
|
|
1755
1755
|
}), M = u.insert(() => O, ":first-child"), N = u.insert(() => j);
|
|
1756
1756
|
if (n.icon) {
|
|
1757
1757
|
let e = u.append("g");
|
|
1758
|
-
e.html(`<g>${await
|
|
1758
|
+
e.html(`<g>${await h(n.icon, {
|
|
1759
1759
|
height: c,
|
|
1760
1760
|
width: c,
|
|
1761
1761
|
fallbackPrefix: ""
|
|
1762
1762
|
})}</g>`);
|
|
1763
1763
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1764
|
-
e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 + x / 2 - i / 2 - o : -d.height / 2 - x / 2 - i / 2 - o})`), e.attr("style", `color: ${
|
|
1764
|
+
e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 + x / 2 - i / 2 - o : -d.height / 2 - x / 2 - i / 2 - o})`), e.attr("style", `color: ${v.get("stroke") ?? _};`);
|
|
1765
1765
|
}
|
|
1766
1766
|
return f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${p ? -A / 2 : A / 2 - d.height})`), M.attr("transform", `translate(0,${p ? d.height / 2 + x / 2 : -d.height / 2 - x / 2})`), R(n, N), n.intersect = function(e) {
|
|
1767
1767
|
if (t.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
@@ -1780,19 +1780,19 @@ async function ut(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1780
1780
|
y: i - a / 2 + d.height + x
|
|
1781
1781
|
},
|
|
1782
1782
|
{
|
|
1783
|
-
x: r +
|
|
1783
|
+
x: r + g / 2,
|
|
1784
1784
|
y: i - a / 2 + d.height + x
|
|
1785
1785
|
},
|
|
1786
1786
|
{
|
|
1787
|
-
x: r +
|
|
1787
|
+
x: r + g / 2,
|
|
1788
1788
|
y: i + a / 2
|
|
1789
1789
|
},
|
|
1790
1790
|
{
|
|
1791
|
-
x: r -
|
|
1791
|
+
x: r - g / 2,
|
|
1792
1792
|
y: i + a / 2
|
|
1793
1793
|
},
|
|
1794
1794
|
{
|
|
1795
|
-
x: r -
|
|
1795
|
+
x: r - g / 2,
|
|
1796
1796
|
y: i - a / 2 + d.height + x
|
|
1797
1797
|
},
|
|
1798
1798
|
{
|
|
@@ -1801,15 +1801,15 @@ async function ut(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
] : [
|
|
1803
1803
|
{
|
|
1804
|
-
x: r -
|
|
1804
|
+
x: r - g / 2,
|
|
1805
1805
|
y: i - a / 2
|
|
1806
1806
|
},
|
|
1807
1807
|
{
|
|
1808
|
-
x: r +
|
|
1808
|
+
x: r + g / 2,
|
|
1809
1809
|
y: i - a / 2
|
|
1810
1810
|
},
|
|
1811
1811
|
{
|
|
1812
|
-
x: r +
|
|
1812
|
+
x: r + g / 2,
|
|
1813
1813
|
y: i - a / 2 + m
|
|
1814
1814
|
},
|
|
1815
1815
|
{
|
|
@@ -1829,7 +1829,7 @@ async function ut(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1829
1829
|
y: i - a / 2 + m
|
|
1830
1830
|
},
|
|
1831
1831
|
{
|
|
1832
|
-
x: r -
|
|
1832
|
+
x: r - g / 2,
|
|
1833
1833
|
y: i - a / 2 + m
|
|
1834
1834
|
}
|
|
1835
1835
|
], q.polygon(n, o, e);
|
|
@@ -1841,20 +1841,20 @@ async function dt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1841
1841
|
n.labelStyle = a;
|
|
1842
1842
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1843
1843
|
n.width = Math.max(c, l ?? 0);
|
|
1844
|
-
let { shapeSvg: u, bbox: d, label: f } = await I(e, n, "icon-shape default"), p = n.label ? 8 : 0, m = n.pos === "t", { nodeBorder:
|
|
1845
|
-
n.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid"), b.stroke =
|
|
1844
|
+
let { shapeSvg: u, bbox: d, label: f } = await I(e, n, "icon-shape default"), p = n.label ? 8 : 0, m = n.pos === "t", { nodeBorder: g, mainBkg: _ } = r, { stylesMap: v } = T(n), y = D.svg(u), b = S(n, {});
|
|
1845
|
+
n.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid"), b.stroke = v.get("fill") ?? _;
|
|
1846
1846
|
let x = u.append("g");
|
|
1847
|
-
n.icon && x.html(`<g>${await
|
|
1847
|
+
n.icon && x.html(`<g>${await h(n.icon, {
|
|
1848
1848
|
height: c,
|
|
1849
1849
|
width: c,
|
|
1850
1850
|
fallbackPrefix: ""
|
|
1851
1851
|
})}</g>`);
|
|
1852
|
-
let w = x.node().getBBox(), E = w.width, O = w.height, k = w.x, A = w.y, j = Math.max(E, O) * Math.SQRT2 + 40, M =
|
|
1852
|
+
let w = x.node().getBBox(), E = w.width, O = w.height, k = w.x, A = w.y, j = Math.max(E, O) * Math.SQRT2 + 40, M = y.circle(0, 0, j, b), N = Math.max(j, d.width), P = j + d.height + p, F = y.rectangle(-N / 2, -P / 2, N, P, {
|
|
1853
1853
|
...b,
|
|
1854
1854
|
fill: "transparent",
|
|
1855
1855
|
stroke: "none"
|
|
1856
1856
|
}), L = u.insert(() => M, ":first-child"), z = u.insert(() => F);
|
|
1857
|
-
return x.attr("transform", `translate(${-E / 2 - k},${m ? d.height / 2 + p / 2 - O / 2 - A : -d.height / 2 - p / 2 - O / 2 - A})`), x.attr("style", `color: ${
|
|
1857
|
+
return x.attr("transform", `translate(${-E / 2 - k},${m ? d.height / 2 + p / 2 - O / 2 - A : -d.height / 2 - p / 2 - O / 2 - A})`), x.attr("style", `color: ${v.get("stroke") ?? g};`), f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -P / 2 : P / 2 - d.height})`), L.attr("transform", `translate(0,${m ? d.height / 2 + p / 2 : -d.height / 2 - p / 2})`), R(n, z), n.intersect = function(e) {
|
|
1858
1858
|
return t.info("iconSquare intersect", n, e), q.rect(n, e);
|
|
1859
1859
|
}, u;
|
|
1860
1860
|
}
|
|
@@ -1864,22 +1864,22 @@ async function ft(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1864
1864
|
n.labelStyle = a;
|
|
1865
1865
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1866
1866
|
n.width = Math.max(c, l ?? 0);
|
|
1867
|
-
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await I(e, n, "icon-shape default"), m = n.pos === "t",
|
|
1868
|
-
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = b.get("fill") ??
|
|
1869
|
-
let A = O.path(J(x, w,
|
|
1867
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await I(e, n, "icon-shape default"), m = n.pos === "t", g = c + f * 2, _ = c + f * 2, { nodeBorder: v, mainBkg: y } = r, { stylesMap: b } = T(n), x = -_ / 2, w = -g / 2, E = n.label ? 8 : 0, O = D.svg(u), k = S(n, {});
|
|
1868
|
+
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = b.get("fill") ?? y;
|
|
1869
|
+
let A = O.path(J(x, w, _, g, 5), k), j = Math.max(_, d.width), M = g + d.height + E, N = O.rectangle(-j / 2, -M / 2, j, M, {
|
|
1870
1870
|
...k,
|
|
1871
1871
|
fill: "transparent",
|
|
1872
1872
|
stroke: "none"
|
|
1873
1873
|
}), P = u.insert(() => A, ":first-child").attr("class", "icon-shape2"), F = u.insert(() => N);
|
|
1874
1874
|
if (n.icon) {
|
|
1875
1875
|
let e = u.append("g");
|
|
1876
|
-
e.html(`<g>${await
|
|
1876
|
+
e.html(`<g>${await h(n.icon, {
|
|
1877
1877
|
height: c,
|
|
1878
1878
|
width: c,
|
|
1879
1879
|
fallbackPrefix: ""
|
|
1880
1880
|
})}</g>`);
|
|
1881
1881
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1882
|
-
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + E / 2 - i / 2 - o : -d.height / 2 - E / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ??
|
|
1882
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + E / 2 - i / 2 - o : -d.height / 2 - E / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ?? v};`);
|
|
1883
1883
|
}
|
|
1884
1884
|
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -M / 2 : M / 2 - d.height})`), P.attr("transform", `translate(0,${m ? d.height / 2 + E / 2 : -d.height / 2 - E / 2})`), R(n, F), n.intersect = function(e) {
|
|
1885
1885
|
if (t.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
@@ -1898,19 +1898,19 @@ async function ft(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1898
1898
|
y: i - a / 2 + d.height + E
|
|
1899
1899
|
},
|
|
1900
1900
|
{
|
|
1901
|
-
x: r +
|
|
1901
|
+
x: r + _ / 2,
|
|
1902
1902
|
y: i - a / 2 + d.height + E
|
|
1903
1903
|
},
|
|
1904
1904
|
{
|
|
1905
|
-
x: r +
|
|
1905
|
+
x: r + _ / 2,
|
|
1906
1906
|
y: i + a / 2
|
|
1907
1907
|
},
|
|
1908
1908
|
{
|
|
1909
|
-
x: r -
|
|
1909
|
+
x: r - _ / 2,
|
|
1910
1910
|
y: i + a / 2
|
|
1911
1911
|
},
|
|
1912
1912
|
{
|
|
1913
|
-
x: r -
|
|
1913
|
+
x: r - _ / 2,
|
|
1914
1914
|
y: i - a / 2 + d.height + E
|
|
1915
1915
|
},
|
|
1916
1916
|
{
|
|
@@ -1919,20 +1919,20 @@ async function ft(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
] : [
|
|
1921
1921
|
{
|
|
1922
|
-
x: r -
|
|
1922
|
+
x: r - _ / 2,
|
|
1923
1923
|
y: i - a / 2
|
|
1924
1924
|
},
|
|
1925
1925
|
{
|
|
1926
|
-
x: r +
|
|
1926
|
+
x: r + _ / 2,
|
|
1927
1927
|
y: i - a / 2
|
|
1928
1928
|
},
|
|
1929
1929
|
{
|
|
1930
|
-
x: r +
|
|
1931
|
-
y: i - a / 2 +
|
|
1930
|
+
x: r + _ / 2,
|
|
1931
|
+
y: i - a / 2 + g
|
|
1932
1932
|
},
|
|
1933
1933
|
{
|
|
1934
1934
|
x: r + d.width / 2,
|
|
1935
|
-
y: i - a / 2 +
|
|
1935
|
+
y: i - a / 2 + g
|
|
1936
1936
|
},
|
|
1937
1937
|
{
|
|
1938
1938
|
x: r + d.width / 2 / 2,
|
|
@@ -1944,11 +1944,11 @@ async function ft(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1944
1944
|
},
|
|
1945
1945
|
{
|
|
1946
1946
|
x: r - d.width / 2,
|
|
1947
|
-
y: i - a / 2 +
|
|
1947
|
+
y: i - a / 2 + g
|
|
1948
1948
|
},
|
|
1949
1949
|
{
|
|
1950
|
-
x: r -
|
|
1951
|
-
y: i - a / 2 +
|
|
1950
|
+
x: r - _ / 2,
|
|
1951
|
+
y: i - a / 2 + g
|
|
1952
1952
|
}
|
|
1953
1953
|
], q.polygon(n, o, e);
|
|
1954
1954
|
}, u;
|
|
@@ -1959,22 +1959,22 @@ async function pt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1959
1959
|
n.labelStyle = a;
|
|
1960
1960
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1961
1961
|
n.width = Math.max(c, l ?? 0);
|
|
1962
|
-
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await I(e, n, "icon-shape default"), m = n.pos === "t",
|
|
1963
|
-
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = b.get("fill") ??
|
|
1964
|
-
let A = O.path(J(x, w,
|
|
1962
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await I(e, n, "icon-shape default"), m = n.pos === "t", g = c + f * 2, _ = c + f * 2, { nodeBorder: v, mainBkg: y } = r, { stylesMap: b } = T(n), x = -_ / 2, w = -g / 2, E = n.label ? 8 : 0, O = D.svg(u), k = S(n, {});
|
|
1963
|
+
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = b.get("fill") ?? y;
|
|
1964
|
+
let A = O.path(J(x, w, _, g, .1), k), j = Math.max(_, d.width), M = g + d.height + E, N = O.rectangle(-j / 2, -M / 2, j, M, {
|
|
1965
1965
|
...k,
|
|
1966
1966
|
fill: "transparent",
|
|
1967
1967
|
stroke: "none"
|
|
1968
1968
|
}), P = u.insert(() => A, ":first-child"), F = u.insert(() => N);
|
|
1969
1969
|
if (n.icon) {
|
|
1970
1970
|
let e = u.append("g");
|
|
1971
|
-
e.html(`<g>${await
|
|
1971
|
+
e.html(`<g>${await h(n.icon, {
|
|
1972
1972
|
height: c,
|
|
1973
1973
|
width: c,
|
|
1974
1974
|
fallbackPrefix: ""
|
|
1975
1975
|
})}</g>`);
|
|
1976
1976
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1977
|
-
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + E / 2 - i / 2 - o : -d.height / 2 - E / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ??
|
|
1977
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + E / 2 - i / 2 - o : -d.height / 2 - E / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ?? v};`);
|
|
1978
1978
|
}
|
|
1979
1979
|
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -M / 2 : M / 2 - d.height})`), P.attr("transform", `translate(0,${m ? d.height / 2 + E / 2 : -d.height / 2 - E / 2})`), R(n, F), n.intersect = function(e) {
|
|
1980
1980
|
if (t.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
@@ -1993,19 +1993,19 @@ async function pt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1993
1993
|
y: i - a / 2 + d.height + E
|
|
1994
1994
|
},
|
|
1995
1995
|
{
|
|
1996
|
-
x: r +
|
|
1996
|
+
x: r + _ / 2,
|
|
1997
1997
|
y: i - a / 2 + d.height + E
|
|
1998
1998
|
},
|
|
1999
1999
|
{
|
|
2000
|
-
x: r +
|
|
2000
|
+
x: r + _ / 2,
|
|
2001
2001
|
y: i + a / 2
|
|
2002
2002
|
},
|
|
2003
2003
|
{
|
|
2004
|
-
x: r -
|
|
2004
|
+
x: r - _ / 2,
|
|
2005
2005
|
y: i + a / 2
|
|
2006
2006
|
},
|
|
2007
2007
|
{
|
|
2008
|
-
x: r -
|
|
2008
|
+
x: r - _ / 2,
|
|
2009
2009
|
y: i - a / 2 + d.height + E
|
|
2010
2010
|
},
|
|
2011
2011
|
{
|
|
@@ -2014,20 +2014,20 @@ async function pt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
] : [
|
|
2016
2016
|
{
|
|
2017
|
-
x: r -
|
|
2017
|
+
x: r - _ / 2,
|
|
2018
2018
|
y: i - a / 2
|
|
2019
2019
|
},
|
|
2020
2020
|
{
|
|
2021
|
-
x: r +
|
|
2021
|
+
x: r + _ / 2,
|
|
2022
2022
|
y: i - a / 2
|
|
2023
2023
|
},
|
|
2024
2024
|
{
|
|
2025
|
-
x: r +
|
|
2026
|
-
y: i - a / 2 +
|
|
2025
|
+
x: r + _ / 2,
|
|
2026
|
+
y: i - a / 2 + g
|
|
2027
2027
|
},
|
|
2028
2028
|
{
|
|
2029
2029
|
x: r + d.width / 2,
|
|
2030
|
-
y: i - a / 2 +
|
|
2030
|
+
y: i - a / 2 + g
|
|
2031
2031
|
},
|
|
2032
2032
|
{
|
|
2033
2033
|
x: r + d.width / 2 / 2,
|
|
@@ -2039,11 +2039,11 @@ async function pt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
2039
2039
|
},
|
|
2040
2040
|
{
|
|
2041
2041
|
x: r - d.width / 2,
|
|
2042
|
-
y: i - a / 2 +
|
|
2042
|
+
y: i - a / 2 + g
|
|
2043
2043
|
},
|
|
2044
2044
|
{
|
|
2045
|
-
x: r -
|
|
2046
|
-
y: i - a / 2 +
|
|
2045
|
+
x: r - _ / 2,
|
|
2046
|
+
y: i - a / 2 + g
|
|
2047
2047
|
}
|
|
2048
2048
|
], q.polygon(n, o, e);
|
|
2049
2049
|
}, u;
|
|
@@ -2306,15 +2306,15 @@ async function Tt(e, t) {
|
|
|
2306
2306
|
let n = e / 2 / (2.5 + e / 50);
|
|
2307
2307
|
t.height = (t.height ?? 0) - o - n * 3, t.height < Ct && (t.height = Ct);
|
|
2308
2308
|
}
|
|
2309
|
-
let { shapeSvg: s, bbox: c, label: l } = await I(e, t, z(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = u / 2, f = d / (2.5 + u / 50),
|
|
2309
|
+
let { shapeSvg: s, bbox: c, label: l } = await I(e, t, z(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = u / 2, f = d / (2.5 + u / 50), p = (t?.height ? t?.height : c.height) + f + o * 2, m = p * .1, h, { cssStyles: g } = t;
|
|
2310
2310
|
if (t.look === "handDrawn") {
|
|
2311
|
-
let e = D.svg(s), n = xt(0, 0, u,
|
|
2312
|
-
s.insert(() => o, ":first-child").attr("class", "line"),
|
|
2311
|
+
let e = D.svg(s), n = xt(0, 0, u, p, d, f, m), r = St(0, f, u, p, d, f), i = S(t, {}), a = e.path(n, i), o = e.path(r, i);
|
|
2312
|
+
s.insert(() => o, ":first-child").attr("class", "line"), h = s.insert(() => a, ":first-child"), h.attr("class", "basic label-container"), g && h.attr("style", g);
|
|
2313
2313
|
} else {
|
|
2314
|
-
let e = bt(0, 0, u,
|
|
2315
|
-
|
|
2314
|
+
let e = bt(0, 0, u, p, d, f, m);
|
|
2315
|
+
h = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", _(g)).attr("style", r);
|
|
2316
2316
|
}
|
|
2317
|
-
return
|
|
2317
|
+
return h.attr("label-offset-y", f), h.attr("transform", `translate(${-u / 2}, ${-(p / 2 + f)})`), R(t, h), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + f - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
|
|
2318
2318
|
let n = q.rect(t, e), r = n.x - (t.x ?? 0);
|
|
2319
2319
|
if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
|
|
2320
2320
|
let i = f * f * (1 - r * r / (d * d));
|
|
@@ -2492,7 +2492,7 @@ var Jt = 52, Yt = 42, Xt = -2, Zt = /* @__PURE__ */ e(async (e, t) => {
|
|
|
2492
2492
|
let i = D.svg(e).rectangle(n, r, Jt, Jt, S(t, {}));
|
|
2493
2493
|
e.insert(() => i, ":first-child").attr("class", "usecase-actor-icon-frame");
|
|
2494
2494
|
} else e.append("rect").attr("class", "usecase-actor-icon-frame").attr("x", n).attr("y", r).attr("width", Jt).attr("height", Jt).attr("rx", 4).attr("ry", 4);
|
|
2495
|
-
let i = t.icon ?? "", a = await
|
|
2495
|
+
let i = t.icon ?? "", a = await p(i.includes(":") ? i : `fa:${i}`), o = await h(i, {
|
|
2496
2496
|
height: Yt,
|
|
2497
2497
|
width: Yt,
|
|
2498
2498
|
fallbackPrefix: "fa"
|
|
@@ -2910,39 +2910,39 @@ var gn = 8;
|
|
|
2910
2910
|
async function _n(e, t) {
|
|
2911
2911
|
let { labelStyles: n, nodeStyles: r } = C(t);
|
|
2912
2912
|
t.labelStyle = n;
|
|
2913
|
-
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await I(e, t, z(t)), l = (t?.width ?? s.width) + i * 2 + (t.look === "neo" ? gn : gn * 2), u = (t?.height ?? s.height) + a * 2, d = l - gn, f = u,
|
|
2913
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await I(e, t, z(t)), l = (t?.width ?? s.width) + i * 2 + (t.look === "neo" ? gn : gn * 2), u = (t?.height ?? s.height) + a * 2, d = l - gn, f = u, p = gn - l / 2, m = -u / 2, { cssStyles: h } = t, g = D.svg(o), v = S(t, {});
|
|
2914
2914
|
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
2915
2915
|
let y = [
|
|
2916
2916
|
{
|
|
2917
|
-
x:
|
|
2918
|
-
y:
|
|
2917
|
+
x: p,
|
|
2918
|
+
y: m
|
|
2919
2919
|
},
|
|
2920
2920
|
{
|
|
2921
|
-
x:
|
|
2922
|
-
y:
|
|
2921
|
+
x: p + d,
|
|
2922
|
+
y: m
|
|
2923
2923
|
},
|
|
2924
2924
|
{
|
|
2925
|
-
x:
|
|
2926
|
-
y:
|
|
2925
|
+
x: p + d,
|
|
2926
|
+
y: m + f
|
|
2927
2927
|
},
|
|
2928
2928
|
{
|
|
2929
|
-
x:
|
|
2930
|
-
y:
|
|
2929
|
+
x: p - gn,
|
|
2930
|
+
y: m + f
|
|
2931
2931
|
},
|
|
2932
2932
|
{
|
|
2933
|
-
x:
|
|
2934
|
-
y:
|
|
2933
|
+
x: p - gn,
|
|
2934
|
+
y: m
|
|
2935
2935
|
},
|
|
2936
2936
|
{
|
|
2937
|
-
x:
|
|
2938
|
-
y:
|
|
2937
|
+
x: p,
|
|
2938
|
+
y: m
|
|
2939
2939
|
},
|
|
2940
2940
|
{
|
|
2941
|
-
x:
|
|
2942
|
-
y:
|
|
2941
|
+
x: p,
|
|
2942
|
+
y: m + f
|
|
2943
2943
|
}
|
|
2944
|
-
], b =
|
|
2945
|
-
return x.attr("class", "basic label-container outer-path").attr("style",
|
|
2944
|
+
], b = g.polygon(y.map((e) => [e.x, e.y]), v), x = o.insert(() => b, ":first-child");
|
|
2945
|
+
return x.attr("class", "basic label-container outer-path").attr("style", _(h)), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), h && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), c.attr("transform", `translate(${gn / 2 - s.width / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), R(t, x), t.intersect = function(e) {
|
|
2946
2946
|
return q.rect(t, e);
|
|
2947
2947
|
}, o;
|
|
2948
2948
|
}
|
|
@@ -3081,7 +3081,7 @@ var En = 8;
|
|
|
3081
3081
|
async function Dn(e, t) {
|
|
3082
3082
|
let { labelStyles: n, nodeStyles: r } = C(t);
|
|
3083
3083
|
t.labelStyle = n;
|
|
3084
|
-
let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await I(e, t, z(t)), l = Math.max(c.width + 2 * En + a, t.width ?? 0), u = Math.max(c.height + o, t.height ?? 0), d = l - 2 * En, f = u,
|
|
3084
|
+
let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await I(e, t, z(t)), l = Math.max(c.width + 2 * En + a, t.width ?? 0), u = Math.max(c.height + o, t.height ?? 0), d = l - 2 * En, f = u, p = -l / 2, m = -u / 2, h = [
|
|
3085
3085
|
{
|
|
3086
3086
|
x: 0,
|
|
3087
3087
|
y: 0
|
|
@@ -3124,16 +3124,16 @@ async function Dn(e, t) {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
];
|
|
3126
3126
|
if (t.look === "handDrawn") {
|
|
3127
|
-
let e = D.svg(s), n = S(t, {}), r = e.rectangle(
|
|
3127
|
+
let e = D.svg(s), n = S(t, {}), r = e.rectangle(p, m, d + 16, f, n), i = e.line(p + En, m, p + En, m + f, n), a = e.line(p + En + d, m, p + En + d, m + f, n);
|
|
3128
3128
|
s.insert(() => i, ":first-child"), s.insert(() => a, ":first-child");
|
|
3129
3129
|
let o = s.insert(() => r, ":first-child"), { cssStyles: c } = t;
|
|
3130
|
-
o.attr("class", "basic label-container").attr("style",
|
|
3130
|
+
o.attr("class", "basic label-container").attr("style", _(c)), R(t, o);
|
|
3131
3131
|
} else {
|
|
3132
|
-
let e = Y(s, d, f,
|
|
3132
|
+
let e = Y(s, d, f, h);
|
|
3133
3133
|
r && e.attr("style", r), R(t, e);
|
|
3134
3134
|
}
|
|
3135
3135
|
return t.intersect = function(e) {
|
|
3136
|
-
return q.polygon(t,
|
|
3136
|
+
return q.polygon(t, h, e);
|
|
3137
3137
|
}, s;
|
|
3138
3138
|
}
|
|
3139
3139
|
e(Dn, "subroutine");
|
|
@@ -3257,15 +3257,15 @@ async function Ln(e, t) {
|
|
|
3257
3257
|
let e = o / 2 / (2.5 + o / 50);
|
|
3258
3258
|
t.width = t.width - a - e * 3, t.width < In && (t.width = In);
|
|
3259
3259
|
}
|
|
3260
|
-
let { shapeSvg: s, bbox: c, label: l } = await I(e, t, z(t)), u = Math.max(t.height ?? 0, c.height) + a, d = u / 2, f = d / (2.5 + u / 50),
|
|
3260
|
+
let { shapeSvg: s, bbox: c, label: l } = await I(e, t, z(t)), u = Math.max(t.height ?? 0, c.height) + a, d = u / 2, f = d / (2.5 + u / 50), p = Math.max(t.width ?? 0, c.width) + f + a, { cssStyles: m } = t, h;
|
|
3261
3261
|
if (t.look === "handDrawn") {
|
|
3262
|
-
let e = D.svg(s), n = Nn(0, 0,
|
|
3263
|
-
|
|
3262
|
+
let e = D.svg(s), n = Nn(0, 0, p, u, f, d), r = Pn(0, 0, p, u, f, d), i = e.path(n, S(t, {})), a = e.path(r, S(t, { fill: "none" }));
|
|
3263
|
+
h = s.insert(() => a, ":first-child"), h = s.insert(() => i, ":first-child"), h.attr("class", "basic label-container"), m && h.attr("style", m);
|
|
3264
3264
|
} else {
|
|
3265
|
-
let e = Mn(0, 0,
|
|
3266
|
-
|
|
3265
|
+
let e = Mn(0, 0, p, u, f, d);
|
|
3266
|
+
h = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", _(m)).attr("style", r), h.attr("class", "basic label-container outer-path"), m && h.selectAll("path").attr("style", m), r && h.selectAll("path").attr("style", r);
|
|
3267
3267
|
}
|
|
3268
|
-
return
|
|
3268
|
+
return h.attr("label-offset-x", f), h.attr("transform", `translate(${-p / 2}, ${u / 2} )`), l.attr("transform", `translate(${-(c.width / 2) - f - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), R(t, h), t.intersect = function(e) {
|
|
3269
3269
|
let n = q.rect(t, e), r = n.y - (t.y ?? 0);
|
|
3270
3270
|
if (d != 0 && (Math.abs(r) < (t.height ?? 0) / 2 || Math.abs(r) == (t.height ?? 0) / 2 && Math.abs(n.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - f)) {
|
|
3271
3271
|
let i = f * f * (1 - r * r / (d * d));
|
|
@@ -3480,7 +3480,7 @@ async function Jn(e, t) {
|
|
|
3480
3480
|
}
|
|
3481
3481
|
let f = u();
|
|
3482
3482
|
t.useHtmlLabels = f.htmlLabels;
|
|
3483
|
-
let p = f.er?.diagramPadding ?? 10, m = f.er?.entityPadding ?? 6, { cssStyles:
|
|
3483
|
+
let p = f.er?.diagramPadding ?? 10, m = f.er?.entityPadding ?? 6, { cssStyles: h } = t, { labelStyles: g, nodeStyles: _ } = C(t);
|
|
3484
3484
|
if (r.attributes.length === 0 && t.label) {
|
|
3485
3485
|
let n = {
|
|
3486
3486
|
rx: 0,
|
|
@@ -3489,7 +3489,7 @@ async function Jn(e, t) {
|
|
|
3489
3489
|
labelPaddingY: p * 1.5,
|
|
3490
3490
|
classes: ""
|
|
3491
3491
|
};
|
|
3492
|
-
|
|
3492
|
+
y(t.label, f) + n.labelPaddingX * 2 < f.er.minEntityWidth && (t.width = f.er.minEntityWidth);
|
|
3493
3493
|
let a = await Ye(e, t, n);
|
|
3494
3494
|
if (i != null && Kn.has(i)) {
|
|
3495
3495
|
let e = r.colorIndex ?? 0;
|
|
@@ -3502,19 +3502,19 @@ async function Jn(e, t) {
|
|
|
3502
3502
|
return a;
|
|
3503
3503
|
}
|
|
3504
3504
|
f.htmlLabels || (p *= 1.25, m *= 1.25);
|
|
3505
|
-
let
|
|
3506
|
-
|
|
3507
|
-
let b = e.insert("g").attr("class",
|
|
3505
|
+
let v = z(t);
|
|
3506
|
+
v ||= "node default";
|
|
3507
|
+
let b = e.insert("g").attr("class", v).attr("id", t.domId || t.id), x = await Yn(b, t.label ?? "", f, 0, 0, ["name"], g);
|
|
3508
3508
|
x.height += m;
|
|
3509
3509
|
let w = 0, T = [], E = [], O = 0, k = 0, A = 0, j = 0, M = !0, N = !0;
|
|
3510
3510
|
for (let e of r.attributes) {
|
|
3511
|
-
let t = await Yn(b, e.type, f, 0, w, ["attribute-type"],
|
|
3511
|
+
let t = await Yn(b, e.type, f, 0, w, ["attribute-type"], g);
|
|
3512
3512
|
O = Math.max(O, t.width + p);
|
|
3513
|
-
let n = await Yn(b, e.name, f, 0, w, ["attribute-name"],
|
|
3513
|
+
let n = await Yn(b, e.name, f, 0, w, ["attribute-name"], g);
|
|
3514
3514
|
k = Math.max(k, n.width + p);
|
|
3515
|
-
let r = await Yn(b, e.keys.join(), f, 0, w, ["attribute-keys"],
|
|
3515
|
+
let r = await Yn(b, e.keys.join(), f, 0, w, ["attribute-keys"], g);
|
|
3516
3516
|
A = Math.max(A, r.width + p);
|
|
3517
|
-
let i = await Yn(b, e.comment, f, 0, w, ["attribute-comment"],
|
|
3517
|
+
let i = await Yn(b, e.comment, f, 0, w, ["attribute-comment"], g);
|
|
3518
3518
|
j = Math.max(j, i.width + p);
|
|
3519
3519
|
let a = Math.max(t.height, n.height, r.height, i.height) + m;
|
|
3520
3520
|
E.push({
|
|
@@ -3545,7 +3545,7 @@ async function Jn(e, t) {
|
|
|
3545
3545
|
let e = r.colorIndex ?? 0;
|
|
3546
3546
|
b.attr("data-color-id", `color-${e % d.length}`);
|
|
3547
3547
|
}
|
|
3548
|
-
let te = L.rectangle(U, W, H, ee, B), ne = b.insert(() => te, ":first-child").attr("class", "outer-path").attr("style",
|
|
3548
|
+
let te = L.rectangle(U, W, H, ee, B), ne = b.insert(() => te, ":first-child").attr("class", "outer-path").attr("style", h.join(""));
|
|
3549
3549
|
T.push(0);
|
|
3550
3550
|
for (let [e, t] of E.entries()) {
|
|
3551
3551
|
let n = (e + 1) % 2 == 0 && t.yOffset !== 0, r = L.rectangle(U, x.height + W + t?.yOffset, H, t?.rowHeight, {
|
|
@@ -3553,7 +3553,7 @@ async function Jn(e, t) {
|
|
|
3553
3553
|
fill: n ? o : c,
|
|
3554
3554
|
stroke: l
|
|
3555
3555
|
});
|
|
3556
|
-
b.insert(() => r, "g.label").attr("style",
|
|
3556
|
+
b.insert(() => r, "g.label").attr("style", h.join("")).attr("class", `row-rect-${n ? "even" : "odd"}`);
|
|
3557
3557
|
}
|
|
3558
3558
|
let re = 1e-4, G = Xn(U, x.height + W, H + U, x.height + W, re), K = L.polygon(G.map((e) => [e.x, e.y]), B);
|
|
3559
3559
|
if (b.insert(() => K).attr("class", "divider"), G = Xn(O + U, x.height + W, O + U, ee + W, re), K = L.polygon(G.map((e) => [e.x, e.y]), B), b.insert(() => K).attr("class", "divider"), M) {
|
|
@@ -3568,11 +3568,11 @@ async function Jn(e, t) {
|
|
|
3568
3568
|
let t = x.height + W + e;
|
|
3569
3569
|
G = Xn(U, t, H + U, t, re), K = L.polygon(G.map((e) => [e.x, e.y]), B), b.insert(() => K).attr("class", "divider");
|
|
3570
3570
|
}
|
|
3571
|
-
if (R(t, ne),
|
|
3572
|
-
if (i != null && qn.has(i)) b.selectAll("path").attr("style",
|
|
3571
|
+
if (R(t, ne), _ && t.look !== "handDrawn") {
|
|
3572
|
+
if (i != null && qn.has(i)) b.selectAll("path").attr("style", _);
|
|
3573
3573
|
else {
|
|
3574
|
-
let e =
|
|
3575
|
-
b.selectAll("path").attr("style", e ?? ""), b.selectAll(".row-rect-even path").attr("style",
|
|
3574
|
+
let e = _.split(";")?.filter((e) => e.includes("stroke"))?.map((e) => `${e}`).join("; ");
|
|
3575
|
+
b.selectAll("path").attr("style", e ?? ""), b.selectAll(".row-rect-even path").attr("style", _);
|
|
3576
3576
|
}
|
|
3577
3577
|
}
|
|
3578
3578
|
return t.intersect = function(e) {
|
|
@@ -3584,7 +3584,7 @@ async function Yn(e, t, r, a = 0, o = 0, c = [], l = "") {
|
|
|
3584
3584
|
let u = e.insert("g").attr("class", `label ${c.join(" ")}`).attr("transform", `translate(${a}, ${o})`).attr("style", l);
|
|
3585
3585
|
t !== i(t) && (t = i(t), t = t.replaceAll("<", "<").replaceAll(">", ">"));
|
|
3586
3586
|
let d = u.node().appendChild(await b(u, t, {
|
|
3587
|
-
width:
|
|
3587
|
+
width: y(t, r) + 100,
|
|
3588
3588
|
style: l,
|
|
3589
3589
|
useHtmlLabels: r.htmlLabels
|
|
3590
3590
|
}, r));
|
|
@@ -3672,22 +3672,22 @@ async function Zn(e, t, n, r, i = n.class.padding ?? 12) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
e(Zn, "textHelper");
|
|
3674
3674
|
async function Qn(e, t, i, a = []) {
|
|
3675
|
-
let o = e.insert("g").attr("class", "label").attr("style", a.join("; ")), l = u(), d = "useHtmlLabels" in t ? t.useHtmlLabels : s(l.htmlLabels) ?? !0,
|
|
3676
|
-
|
|
3677
|
-
let
|
|
3678
|
-
width:
|
|
3675
|
+
let o = e.insert("g").attr("class", "label").attr("style", a.join("; ")), l = u(), d = "useHtmlLabels" in t ? t.useHtmlLabels : s(l.htmlLabels) ?? !0, f = "";
|
|
3676
|
+
f = "text" in t ? t.text : t.label, !d && f.startsWith("\\") && (f = f.substring(1)), c(f) && (d = !0);
|
|
3677
|
+
let p = await b(o, r(g(f)), {
|
|
3678
|
+
width: y(f, l) + 50,
|
|
3679
3679
|
classes: "markdown-node-label",
|
|
3680
3680
|
useHtmlLabels: d
|
|
3681
|
-
}, l),
|
|
3681
|
+
}, l), m, h = 1;
|
|
3682
3682
|
if (d) {
|
|
3683
|
-
let e =
|
|
3684
|
-
|
|
3683
|
+
let e = p.children[0], t = n(p);
|
|
3684
|
+
h = e.innerHTML.split("<br>").length, e.innerHTML.includes("</math>") && (h += e.innerHTML.split("<mrow>").length - 1), await A(e), m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
|
|
3685
3685
|
} else {
|
|
3686
|
-
a.includes("font-weight: bolder") && n(
|
|
3687
|
-
let e =
|
|
3688
|
-
(
|
|
3686
|
+
a.includes("font-weight: bolder") && n(p).selectAll("tspan").attr("font-weight", ""), h = p.children.length;
|
|
3687
|
+
let e = p.children[0];
|
|
3688
|
+
(p.textContent === "" || p.textContent.includes(">")) && (e.textContent = f[0] + f.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), f[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), m = p.getBBox();
|
|
3689
3689
|
}
|
|
3690
|
-
return o.attr("transform", "translate(0," + (-
|
|
3690
|
+
return o.attr("transform", "translate(0," + (-m.height / (2 * h) + i) + ")"), m.height;
|
|
3691
3691
|
}
|
|
3692
3692
|
e(Qn, "addText");
|
|
3693
3693
|
async function $n(e, t) {
|
|
@@ -3802,15 +3802,15 @@ async function er(e, t) {
|
|
|
3802
3802
|
e(er, "requirementBox");
|
|
3803
3803
|
async function Q(e, t, i, o = "", s = "center") {
|
|
3804
3804
|
if (t === "") return 0;
|
|
3805
|
-
let c = e.insert("g").attr("class", "label").attr("style", o), l = a(), u = l.htmlLabels ?? !0, d = await b(c, r(
|
|
3806
|
-
width:
|
|
3805
|
+
let c = e.insert("g").attr("class", "label").attr("style", o), l = a(), u = l.htmlLabels ?? !0, d = await b(c, r(g(t)), {
|
|
3806
|
+
width: y(t, l) + 50,
|
|
3807
3807
|
classes: "markdown-node-label",
|
|
3808
3808
|
useHtmlLabels: u,
|
|
3809
3809
|
style: o
|
|
3810
|
-
}, l),
|
|
3810
|
+
}, l), f;
|
|
3811
3811
|
if (u) {
|
|
3812
3812
|
let e = d.children[0], t = n(d);
|
|
3813
|
-
s === "start" && n(e).style("text-align", "left"),
|
|
3813
|
+
s === "start" && n(e).style("text-align", "left"), f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
|
|
3814
3814
|
} else {
|
|
3815
3815
|
let e = d.children[0];
|
|
3816
3816
|
for (let t of e.children) o && t.setAttribute("style", o);
|
|
@@ -3818,9 +3818,9 @@ async function Q(e, t, i, o = "", s = "center") {
|
|
|
3818
3818
|
e.setAttribute("text-anchor", "start");
|
|
3819
3819
|
for (let t of e.children) t.setAttribute("text-anchor", "start");
|
|
3820
3820
|
}
|
|
3821
|
-
|
|
3821
|
+
f = d.getBBox(), f.height += 6;
|
|
3822
3822
|
}
|
|
3823
|
-
return c.attr("transform", `translate(${-
|
|
3823
|
+
return c.attr("transform", `translate(${-f.width / 2},${-f.height / 2 + i})`), f.height;
|
|
3824
3824
|
}
|
|
3825
3825
|
e(Q, "addText");
|
|
3826
3826
|
var tr = /* @__PURE__ */ e((e) => {
|
|
@@ -3872,32 +3872,32 @@ e(nr, "kanbanItem");
|
|
|
3872
3872
|
async function rr(e, n) {
|
|
3873
3873
|
let { labelStyles: r, nodeStyles: i } = C(n);
|
|
3874
3874
|
n.labelStyle = r;
|
|
3875
|
-
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await I(e, n, z(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n,
|
|
3875
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await I(e, n, z(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n, p = o.width + 20, m = o.height + 20, h = Math.max(l, p), g = Math.max(u, m);
|
|
3876
3876
|
c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`);
|
|
3877
3877
|
let v, y = `M0 0
|
|
3878
|
-
a${d},${d} 1 0,0 ${
|
|
3879
|
-
a${d},${d} 1 0,0 ${
|
|
3880
|
-
a${d},${d} 1 0,0 ${
|
|
3881
|
-
a${d},${d} 1 0,0 ${
|
|
3878
|
+
a${d},${d} 1 0,0 ${h * .25},${-1 * g * .1}
|
|
3879
|
+
a${d},${d} 1 0,0 ${h * .25},0
|
|
3880
|
+
a${d},${d} 1 0,0 ${h * .25},0
|
|
3881
|
+
a${d},${d} 1 0,0 ${h * .25},${g * .1}
|
|
3882
3882
|
|
|
3883
|
-
a${d},${d} 1 0,0 ${
|
|
3884
|
-
a${d * .8},${d * .8} 1 0,0 0,${
|
|
3885
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3883
|
+
a${d},${d} 1 0,0 ${h * .15},${g * .33}
|
|
3884
|
+
a${d * .8},${d * .8} 1 0,0 0,${g * .34}
|
|
3885
|
+
a${d},${d} 1 0,0 ${-1 * h * .15},${g * .33}
|
|
3886
3886
|
|
|
3887
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3888
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3889
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3890
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3887
|
+
a${d},${d} 1 0,0 ${-1 * h * .25},${g * .15}
|
|
3888
|
+
a${d},${d} 1 0,0 ${-1 * h * .25},0
|
|
3889
|
+
a${d},${d} 1 0,0 ${-1 * h * .25},0
|
|
3890
|
+
a${d},${d} 1 0,0 ${-1 * h * .25},${-1 * g * .15}
|
|
3891
3891
|
|
|
3892
|
-
a${d},${d} 1 0,0 ${-1 *
|
|
3893
|
-
a${d * .8},${d * .8} 1 0,0 0,${-1 *
|
|
3894
|
-
a${d},${d} 1 0,0 ${
|
|
3892
|
+
a${d},${d} 1 0,0 ${-1 * h * .1},${-1 * g * .33}
|
|
3893
|
+
a${d * .8},${d * .8} 1 0,0 0,${-1 * g * .34}
|
|
3894
|
+
a${d},${d} 1 0,0 ${h * .1},${-1 * g * .33}
|
|
3895
3895
|
H0 V0 Z`;
|
|
3896
3896
|
if (n.look === "handDrawn") {
|
|
3897
3897
|
let e = D.svg(a), t = S(n, {}), r = e.path(y, t);
|
|
3898
|
-
v = a.insert(() => r, ":first-child"), v.attr("class", "basic label-container").attr("style",
|
|
3898
|
+
v = a.insert(() => r, ":first-child"), v.attr("class", "basic label-container").attr("style", _(f));
|
|
3899
3899
|
} else v = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", y);
|
|
3900
|
-
return v.attr("transform", `translate(${-
|
|
3900
|
+
return v.attr("transform", `translate(${-h / 2}, ${-g / 2})`), R(n, v), n.calcIntersect = function(e, t) {
|
|
3901
3901
|
return q.rect(e, t);
|
|
3902
3902
|
}, n.intersect = function(e) {
|
|
3903
3903
|
return t.info("Bang intersect", n, e), q.rect(n, e);
|
|
@@ -3907,26 +3907,26 @@ e(rr, "bang");
|
|
|
3907
3907
|
async function ir(e, n) {
|
|
3908
3908
|
let { labelStyles: r, nodeStyles: i } = C(n);
|
|
3909
3909
|
n.labelStyle = r;
|
|
3910
|
-
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await I(e, n, z(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l,
|
|
3910
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await I(e, n, z(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l, p = .35 * l, m = .2 * l, { cssStyles: h } = n, g, v = `M0 0
|
|
3911
3911
|
a${d},${d} 0 0,1 ${l * .25},${-1 * l * .1}
|
|
3912
|
-
a${
|
|
3912
|
+
a${p},${p} 1 0,1 ${l * .4},${-1 * l * .1}
|
|
3913
3913
|
a${f},${f} 1 0,1 ${l * .35},${l * .2}
|
|
3914
3914
|
|
|
3915
3915
|
a${d},${d} 1 0,1 ${l * .15},${u * .35}
|
|
3916
|
-
a${
|
|
3916
|
+
a${m},${m} 1 0,1 ${-1 * l * .15},${u * .65}
|
|
3917
3917
|
|
|
3918
3918
|
a${f},${d} 1 0,1 ${-1 * l * .25},${l * .15}
|
|
3919
|
-
a${
|
|
3919
|
+
a${p},${p} 1 0,1 ${-1 * l * .5},0
|
|
3920
3920
|
a${d},${d} 1 0,1 ${-1 * l * .25},${-1 * l * .15}
|
|
3921
3921
|
|
|
3922
3922
|
a${d},${d} 1 0,1 ${-1 * l * .1},${-1 * u * .35}
|
|
3923
|
-
a${
|
|
3923
|
+
a${m},${m} 1 0,1 ${l * .1},${-1 * u * .65}
|
|
3924
3924
|
H0 V0 Z`;
|
|
3925
3925
|
if (n.look === "handDrawn") {
|
|
3926
3926
|
let e = D.svg(a), t = S(n, {}), r = e.path(v, t);
|
|
3927
|
-
|
|
3928
|
-
} else
|
|
3929
|
-
return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`),
|
|
3927
|
+
g = a.insert(() => r, ":first-child"), g.attr("class", "basic label-container").attr("style", _(h));
|
|
3928
|
+
} else g = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", v);
|
|
3929
|
+
return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), g.attr("transform", `translate(${-l / 2}, ${-u / 2})`), R(n, g), n.calcIntersect = function(e, t) {
|
|
3930
3930
|
return q.rect(e, t);
|
|
3931
3931
|
}, n.intersect = function(e) {
|
|
3932
3932
|
return t.info("Cloud intersect", n, e), q.rect(n, e);
|
|
@@ -3990,7 +3990,7 @@ var sr = 36, cr = 50, lr = 100, ur = 80, dr = 6, fr = 16, pr = "bpmn", mr = {
|
|
|
3990
3990
|
}, hr;
|
|
3991
3991
|
async function gr() {
|
|
3992
3992
|
return hr ??= import("./bpmnIcons-APHXDYXF-BcsYKfS7.js").then(({ bpmnIcons: e }) => {
|
|
3993
|
-
|
|
3993
|
+
m(e.prefix) || f([{
|
|
3994
3994
|
name: e.prefix,
|
|
3995
3995
|
icons: e
|
|
3996
3996
|
}]);
|
|
@@ -4007,7 +4007,7 @@ function vr(e) {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
e(vr, "isCollectionData");
|
|
4009
4009
|
async function yr(e, t) {
|
|
4010
|
-
return await gr(),
|
|
4010
|
+
return await gr(), h(e, {
|
|
4011
4011
|
height: t,
|
|
4012
4012
|
width: t,
|
|
4013
4013
|
fallbackPrefix: pr
|