@schmitech/chatbot-widget 0.6.3 → 0.7.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/dist/ChatWidget.d.ts +11 -0
- package/dist/{_baseUniq-BPMphbq5-xiRWQlDn.js → _baseUniq-BRKsqoH--HqBVqMpT.js} +126 -126
- package/dist/arc-pab_su9s-DkImmxyv.js +84 -0
- package/dist/architecture-U656AL7Q-CRlU-eNB-vFayp_Gk.js +7 -0
- package/dist/{architectureDiagram-VXUJARFQ-BiqZtsDe-rYpYn0Hz.js → architectureDiagram-VXUJARFQ-DqQ8r_6g-DTzMoAeY.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-zcRIdFTD-B54KiQJD.js → blockDiagram-VD42YOAC-B-dKfcH3-DKPGmrNb.js} +50 -50
- package/dist/{c4Diagram-YG6GDRKO-DYXNcDX4-B9fXQAMg.js → c4Diagram-YG6GDRKO-DMUPaBEl-CXjiCiKq.js} +63 -63
- package/dist/channel-HKsfPa5q-B30_3C0d.js +6 -0
- package/dist/chatbot-widget.bundle.js +11596 -0
- package/dist/chatbot-widget.es.js +1 -1
- package/dist/chatbot-widget.umd.js +4342 -3550
- package/dist/{chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js → chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js} +1 -1
- package/dist/chunk-55IACEB6-BocSyyvr--btUJ1po.js +9 -0
- package/dist/{chunk-B4BG7PRW-BTUSpeKy-CXaYsx4a.js → chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js} +30 -30
- package/dist/{chunk-DI55MBZ5-DKt4WII7-CjsnNRFb.js → chunk-DI55MBZ5-Dw1L6Eos-zQC2oI_e.js} +149 -149
- package/dist/{chunk-FMBD7UC4-DdcCR8w3-BbYkKjQZ.js → chunk-FMBD7UC4-dPK7Boav-C-fxYlU9.js} +1 -1
- package/dist/{chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js → chunk-QN33PNHL-vP2PqfVG-ByquTp49.js} +5 -5
- package/dist/{chunk-QZHKN3VN-DVJOrqBZ-BQORk0pj.js → chunk-QZHKN3VN-Bcidzu63-ukwvi4Mt.js} +1 -1
- package/dist/{chunk-TZMSLE5B-G2jJHqli-B_BRSOS0.js → chunk-TZMSLE5B-BtljMjlg-DP4v1MME.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CxmgTanh-ByLirDpd.js → classDiagram-2ON5EDUG-C7cYN9hv-CtX4c_16.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CxmgTanh-ByLirDpd.js → classDiagram-v2-WZHVMYZB-C7cYN9hv-CtX4c_16.js} +2 -2
- package/dist/{clone-CsNB4mMi-B2bGL_Hr.js → clone-DoPb9X13-BkFPVisk.js} +1 -1
- package/dist/config/index.d.ts +81 -0
- package/dist/{cose-bilkent-S5V4N54A-BRr2Y6dg-C4O3AMLV.js → cose-bilkent-S5V4N54A-BGzO4EsH-BNoSF82N.js} +1 -1
- package/dist/{dagre-6UL2VRFP-DX8gNHmJ-BSzSR8Xh.js → dagre-6UL2VRFP-TzNvXCds-Dnr2OGZv.js} +45 -45
- package/dist/{diagram-PSM6KHXK-DNX818To-D60Hp_rL.js → diagram-PSM6KHXK-BqY4RpUg-BAHxSfLA.js} +119 -119
- package/dist/{diagram-QEK2KX5R-BDO6hKtm-BHvRInjZ.js → diagram-QEK2KX5R-CTjgBsne-D-9APhrR.js} +74 -74
- package/dist/{diagram-S2PKOQOG-IEqaDwzi-CZZkmLuc.js → diagram-S2PKOQOG-BqrhTIpA-DvsAaFEx.js} +21 -21
- package/dist/{erDiagram-Q2GNP2WA-DbLpN8Jp-902zC-_U.js → erDiagram-Q2GNP2WA-B2hsi_Tl-CQQl2KTS.js} +24 -24
- package/dist/{flowDiagram-NV44I4VS-pJlHae8Y-hM8e9jah.js → flowDiagram-NV44I4VS-C03vtt_F-Ds5DxRz1.js} +37 -37
- package/dist/{ganttDiagram-JELNMOA3-J0Tkq5TR-C8n0Mtt1.js → ganttDiagram-JELNMOA3-B3hAg964-D9cHQTuZ.js} +110 -110
- package/dist/gitGraph-F6HP7TQM-B-XXB6PA-CXOJho2m.js +7 -0
- package/dist/{gitGraphDiagram-NY62KEGX-DgYonpsZ-CAVA4-Vo.js → gitGraphDiagram-NY62KEGX-ByhMH0yZ-DTWIR_Gp.js} +238 -238
- package/dist/{graph-BpcfrHXY-Dllj_YdG.js → graph-BmNkcFEM-CTJN7Ty_.js} +67 -67
- package/dist/hooks/useAnimationManagement.d.ts +16 -0
- package/dist/hooks/useInputManagement.d.ts +21 -0
- package/dist/hooks/useScrollManagement.d.ts +17 -0
- package/dist/index-BXexqYFc-Bn0M0HQB.js +13693 -0
- package/dist/{index-DlxA4QQ9.js → index-DU3Jqd59.js} +80142 -50172
- package/dist/index.d.ts +19 -0
- package/dist/info-NVLQJR56-BJV_yXNb-CH_hMh0K.js +7 -0
- package/dist/infoDiagram-WHAUD3N6-is6Ho4-T-E3qEjHYs.js +25 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CfjB2Qdf-nD3bX36U.js → journeyDiagram-XKPGCS4Q-CRTOL26C-VvuJ7JPc.js} +71 -71
- package/dist/{kanban-definition-3W4ZIXB7-CrW8yVmd-C_Okjmcp.js → kanban-definition-3W4ZIXB7-CNnO_t6O-BsqhwZAY.js} +88 -88
- package/dist/{layout-bsfAhWjc-fb3F3QBs.js → layout-C0kZPebx-CrIgKtBd.js} +109 -109
- package/dist/{mermaid-parser.core-3GIbpcw--KxsyRnD0.js → mermaid-parser.core-C88_DDui-CHG6v5qB.js} +10 -10
- package/dist/min-7Gb0pNxh-Cd_K7Lpk.js +39 -0
- package/dist/{mindmap-definition-VGOIOE7T-Dj37RkY_-BXffQH_4.js → mindmap-definition-VGOIOE7T-CJZ2wTTa-D4yK-MK1.js} +40 -40
- package/dist/packet-BFZMPI3H-DPt2EftX-Bgsdgnv-.js +7 -0
- package/dist/pie-7BOR55EZ-aEOtXZZV-CT0TLfil.js +7 -0
- package/dist/{pieDiagram-ADFJNKIX-BiQvDx8I-DnApOdvY.js → pieDiagram-ADFJNKIX-C9OSknjr-DguaGmOm.js} +49 -49
- package/dist/{quadrantDiagram-AYHSOK5B-D4b-YFzI-DrTslixM.js → quadrantDiagram-AYHSOK5B-CW8yuAqv-Dp9c_xnT.js} +54 -54
- package/dist/radar-NHE76QYJ-Dv7iPziq-DzohugO5.js +7 -0
- package/dist/{requirementDiagram-UZGBJVZJ-km07nlVd-C-mMa1KG.js → requirementDiagram-UZGBJVZJ-nGPhruO1-DINXeP9u.js} +5 -5
- package/dist/{sankeyDiagram-TZEHDZUN-LfuSRRbf-4X6kl_ss.js → sankeyDiagram-TZEHDZUN-CmL90u-m-YTiy7xgb.js} +146 -146
- package/dist/{sequenceDiagram-WL72ISMW-CQ4J-0_7-CEQiE3WJ.js → sequenceDiagram-WL72ISMW-B02VRcnM-B0n6W8Zi.js} +3 -3
- package/dist/shared/styles.d.ts +76 -0
- package/dist/{stateDiagram-FKZM4ZOC-JtogJwt6-YmKguJGd.js → stateDiagram-FKZM4ZOC-DjoyLUdz-BEUNa8-U.js} +14 -14
- package/dist/{stateDiagram-v2-4FDKWEC3-DuQ7UaeU-D6r92VaJ.js → stateDiagram-v2-4FDKWEC3-Bq76BTB7-DJxNsvnB.js} +2 -2
- package/dist/store/chatStore.d.ts +19 -0
- package/dist/{timeline-definition-IT6M3QCI-Cs3NnF2M-BigQwSNM.js → timeline-definition-IT6M3QCI-CTn0Gm3T-sHrk-A3B.js} +78 -78
- package/dist/treemap-KMMF4GRG-BjgLKKyi-CXHyJ_sr.js +7 -0
- package/dist/ui/ChatInput.d.ts +17 -0
- package/dist/ui/Message.d.ts +22 -0
- package/dist/ui/MessagesList.d.ts +32 -0
- package/dist/utils/contentFiltering.d.ts +12 -0
- package/dist/utils/sessionManager.d.ts +2 -0
- package/dist/{xychartDiagram-PRI3JC2R-JzAaXa5z-k94imfkQ.js → xychartDiagram-PRI3JC2R-Cgg6Uija-BysdxdV7.js} +79 -79
- package/package.json +9 -9
- package/dist/arc-D9rhTKV0-3XdW6Lry.js +0 -84
- package/dist/architecture-U656AL7Q-BFNI3st4-ChEUjpe5.js +0 -6
- package/dist/channel-CUIutAfm-COC3Ib4R.js +0 -6
- package/dist/chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js +0 -9
- package/dist/gitGraph-F6HP7TQM-CD3YuciB-WOZqeAgY.js +0 -6
- package/dist/index-DvNpGWs7-CTu7Fgm8.js +0 -13251
- package/dist/info-NVLQJR56-yPC6AWqF-CQWIUnLc.js +0 -6
- package/dist/infoDiagram-WHAUD3N6-C3JLOAnb-o3ipZ1gK.js +0 -25
- package/dist/min-C2aDz5ZK-NndI1eE7.js +0 -39
- package/dist/packet-BFZMPI3H-3ROFuof--C96yO55O.js +0 -6
- package/dist/pie-7BOR55EZ-BZ_QeD6P-Bs0c_r6N.js +0 -6
- package/dist/radar-NHE76QYJ-BkSncUeS-jHSdaVBc.js +0 -6
- package/dist/treemap-KMMF4GRG-CkW25-tn-CkfndsG5.js +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as n, i as s, a as g } from "./index-DU3Jqd59.js";
|
|
2
2
|
typeof window < "u" && (window.global = window);
|
|
3
3
|
var u = /* @__PURE__ */ n((i, t, e, o) => {
|
|
4
4
|
i.attr("class", e);
|
|
5
|
-
const { width: d, height:
|
|
6
|
-
s(i,
|
|
7
|
-
const
|
|
8
|
-
i.attr("viewBox",
|
|
5
|
+
const { width: d, height: a, x: w, y: r } = c(i, t);
|
|
6
|
+
s(i, a, d, o);
|
|
7
|
+
const h = x(w, r, d, a, t);
|
|
8
|
+
i.attr("viewBox", h), g.debug(`viewBox configured: ${h} with padding: ${t}`);
|
|
9
9
|
}, "setupViewPortForSVG"), c = /* @__PURE__ */ n((i, t) => {
|
|
10
10
|
var e;
|
|
11
11
|
const o = ((e = i.node()) == null ? void 0 : e.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-
|
|
2
|
-
import {
|
|
1
|
+
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js";
|
|
2
|
+
import { M as o } from "./index-DU3Jqd59.js";
|
|
3
3
|
typeof window < "u" && (window.global = window);
|
|
4
4
|
var d = {
|
|
5
5
|
parser: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-
|
|
2
|
-
import {
|
|
1
|
+
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js";
|
|
2
|
+
import { M as o } from "./index-DU3Jqd59.js";
|
|
3
3
|
typeof window < "u" && (window.global = window);
|
|
4
4
|
var d = {
|
|
5
5
|
parser: t,
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export interface ChatConfig {
|
|
2
|
+
header: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
theme: {
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
background: string;
|
|
9
|
+
mode?: 'light' | 'dark' | 'system';
|
|
10
|
+
text: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
inverse: string;
|
|
14
|
+
};
|
|
15
|
+
input: {
|
|
16
|
+
background: string;
|
|
17
|
+
border: string;
|
|
18
|
+
};
|
|
19
|
+
message: {
|
|
20
|
+
user: string;
|
|
21
|
+
userText: string;
|
|
22
|
+
assistant: string;
|
|
23
|
+
assistantText?: string;
|
|
24
|
+
};
|
|
25
|
+
suggestedQuestions: {
|
|
26
|
+
questionsBackground: string;
|
|
27
|
+
text: string;
|
|
28
|
+
highlightedBackground: string;
|
|
29
|
+
};
|
|
30
|
+
chatButton: {
|
|
31
|
+
background: string;
|
|
32
|
+
hoverBackground?: string;
|
|
33
|
+
borderColor?: string;
|
|
34
|
+
iconColor?: string;
|
|
35
|
+
iconBorderColor?: string;
|
|
36
|
+
iconName?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
welcome: {
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
suggestedQuestions: Array<{
|
|
44
|
+
text: string;
|
|
45
|
+
query: string;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
export declare const defaultTheme: {
|
|
49
|
+
primary: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
background: string;
|
|
52
|
+
mode: "light";
|
|
53
|
+
text: {
|
|
54
|
+
primary: string;
|
|
55
|
+
secondary: string;
|
|
56
|
+
inverse: string;
|
|
57
|
+
};
|
|
58
|
+
input: {
|
|
59
|
+
background: string;
|
|
60
|
+
border: string;
|
|
61
|
+
};
|
|
62
|
+
message: {
|
|
63
|
+
user: string;
|
|
64
|
+
userText: string;
|
|
65
|
+
assistant: string;
|
|
66
|
+
};
|
|
67
|
+
suggestedQuestions: {
|
|
68
|
+
questionsBackground: string;
|
|
69
|
+
text: string;
|
|
70
|
+
highlightedBackground: string;
|
|
71
|
+
};
|
|
72
|
+
chatButton: {
|
|
73
|
+
background: string;
|
|
74
|
+
hoverBackground: string;
|
|
75
|
+
borderColor: string;
|
|
76
|
+
iconColor: string;
|
|
77
|
+
iconBorderColor: string;
|
|
78
|
+
iconName: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const getChatConfig: () => ChatConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as W, a as j, d as lt, y as gt } from "./index-DU3Jqd59.js";
|
|
2
2
|
import { e as tt } from "./cytoscape.esm-CjI2IsL8-Be2K4mI6.js";
|
|
3
3
|
typeof window < "u" && (window.global = window);
|
|
4
4
|
var V = { exports: {} }, z = { exports: {} }, q = { exports: {} }, ut = q.exports, $;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Q as
|
|
3
|
-
import { B as V } from "./layout-
|
|
4
|
-
import { a as W } from "./clone-
|
|
5
|
-
import { M as
|
|
1
|
+
import { M as v, o as R, D as F, U as L, b as j, a as t, C as Y, S as z, x as H, G as U, T as $, v as Q, c as I, w as _, O as q, z as K } from "./index-DU3Jqd59.js";
|
|
2
|
+
import { Q as G, _ as S } from "./graph-BmNkcFEM-CTJN7Ty_.js";
|
|
3
|
+
import { B as V } from "./layout-C0kZPebx-CrIgKtBd.js";
|
|
4
|
+
import { a as W } from "./clone-DoPb9X13-BkFPVisk.js";
|
|
5
|
+
import { M as k } from "./min-7Gb0pNxh-Cd_K7Lpk.js";
|
|
6
6
|
typeof window < "u" && (window.global = window);
|
|
7
7
|
function X(e) {
|
|
8
8
|
var n = {
|
|
@@ -17,26 +17,26 @@ function X(e) {
|
|
|
17
17
|
return S(e.graph()) || (n.value = W(e.graph())), n;
|
|
18
18
|
}
|
|
19
19
|
function Z(e) {
|
|
20
|
-
return
|
|
20
|
+
return k(e.nodes(), function(n) {
|
|
21
21
|
var r = e.node(n), s = e.parent(n), d = { v: n };
|
|
22
22
|
return S(r) || (d.value = r), S(s) || (d.parent = s), d;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function ee(e) {
|
|
26
|
-
return
|
|
26
|
+
return k(e.edges(), function(n) {
|
|
27
27
|
var r = e.edge(n), s = { v: n.v, w: n.w };
|
|
28
28
|
return S(n.name) || (s.name = n.name), S(r) || (s.value = r), s;
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
var u = /* @__PURE__ */ new Map(),
|
|
32
|
-
|
|
33
|
-
}, "clear"),
|
|
34
|
-
const r =
|
|
31
|
+
var u = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ v(() => {
|
|
32
|
+
b.clear(), B.clear(), u.clear();
|
|
33
|
+
}, "clear"), O = /* @__PURE__ */ v((e, n) => {
|
|
34
|
+
const r = b.get(n) || [];
|
|
35
35
|
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
36
36
|
}, "isDescendant"), re = /* @__PURE__ */ v((e, n) => {
|
|
37
|
-
const r =
|
|
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) ||
|
|
39
|
-
}, "edgeInCluster"),
|
|
37
|
+
const r = b.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) || O(e.v, n) || O(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
39
|
+
}, "edgeInCluster"), M = /* @__PURE__ */ v((e, n, r, s) => {
|
|
40
40
|
t.warn(
|
|
41
41
|
"Copying children of ",
|
|
42
42
|
e,
|
|
@@ -49,7 +49,7 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
49
49
|
const d = n.children(e) || [];
|
|
50
50
|
e !== s && d.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", d), d.forEach((c) => {
|
|
51
51
|
if (n.children(c).length > 0)
|
|
52
|
-
|
|
52
|
+
M(c, n, r, s);
|
|
53
53
|
else {
|
|
54
54
|
const a = n.node(c);
|
|
55
55
|
t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, a), 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(
|
|
@@ -83,11 +83,11 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
83
83
|
}
|
|
84
84
|
t.debug("Removing node", c), n.removeNode(c);
|
|
85
85
|
});
|
|
86
|
-
}, "copy"),
|
|
86
|
+
}, "copy"), T = /* @__PURE__ */ v((e, n) => {
|
|
87
87
|
const r = n.children(e);
|
|
88
88
|
let s = [...r];
|
|
89
89
|
for (const d of r)
|
|
90
|
-
|
|
90
|
+
B.set(d, e), s = [...s, ...T(d, n)];
|
|
91
91
|
return s;
|
|
92
92
|
}, "extractDescendants"), te = /* @__PURE__ */ v((e, n, r) => {
|
|
93
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 })), a = d.map((l) => ({ v: l.v, w: l.w }));
|
|
@@ -118,13 +118,13 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
118
118
|
r,
|
|
119
119
|
" Replacement id in edges: ",
|
|
120
120
|
x(r, e, r)
|
|
121
|
-
),
|
|
121
|
+
), b.set(r, T(r, e)), u.set(r, { id: x(r, e, r), clusterData: e.node(r) }));
|
|
122
122
|
}), e.nodes().forEach(function(r) {
|
|
123
123
|
const s = e.children(r), d = e.edges();
|
|
124
|
-
s.length > 0 ? (t.debug("Cluster identified", r,
|
|
125
|
-
const a =
|
|
126
|
-
a ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ",
|
|
127
|
-
})) : t.debug("Not a cluster ", r,
|
|
124
|
+
s.length > 0 ? (t.debug("Cluster identified", r, b), d.forEach((c) => {
|
|
125
|
+
const a = O(c.v, r), l = O(c.w, r);
|
|
126
|
+
a ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", b.get(r)), u.get(r).externalConnections = !0);
|
|
127
|
+
})) : t.debug("Not a cluster ", r, b);
|
|
128
128
|
});
|
|
129
129
|
for (let r of u.keys()) {
|
|
130
130
|
const s = u.get(r).id, d = e.parent(s);
|
|
@@ -155,8 +155,8 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
155
155
|
}
|
|
156
156
|
t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
|
|
157
157
|
}
|
|
158
|
-
}), t.warn("Adjusted Graph", X(e)),
|
|
159
|
-
}, "adjustClustersAndEdges"),
|
|
158
|
+
}), t.warn("Adjusted Graph", X(e)), J(e, 0), t.trace(u);
|
|
159
|
+
}, "adjustClustersAndEdges"), J = /* @__PURE__ */ v((e, n) => {
|
|
160
160
|
var r, s;
|
|
161
161
|
if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
|
|
162
162
|
t.error("Bailing out");
|
|
@@ -193,7 +193,7 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
193
193
|
);
|
|
194
194
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
195
|
(s = (r = u.get(a)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(a).clusterData.dir, t.warn("Fixing dir", u.get(a).clusterData.dir, l));
|
|
196
|
-
const f = new
|
|
196
|
+
const f = new G({
|
|
197
197
|
multigraph: !0,
|
|
198
198
|
compound: !0
|
|
199
199
|
}).setGraph({
|
|
@@ -205,7 +205,7 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
205
205
|
}).setDefaultEdgeLabel(function() {
|
|
206
206
|
return {};
|
|
207
207
|
});
|
|
208
|
-
t.warn("Old graph before copy", X(e)),
|
|
208
|
+
t.warn("Old graph before copy", X(e)), M(a, e, f, a), e.setNode(a, {
|
|
209
209
|
clusterNode: !0,
|
|
210
210
|
id: a,
|
|
211
211
|
clusterData: u.get(a).clusterData,
|
|
@@ -228,17 +228,17 @@ var u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = /* @__PURE
|
|
|
228
228
|
d = e.nodes(), t.warn("New list of nodes", d);
|
|
229
229
|
for (const a of d) {
|
|
230
230
|
const l = e.node(a);
|
|
231
|
-
t.warn(" Now next level", a, l), l != null && l.clusterNode &&
|
|
231
|
+
t.warn(" Now next level", a, l), l != null && l.clusterNode && J(l.graph, n + 1);
|
|
232
232
|
}
|
|
233
|
-
}, "extractor"),
|
|
233
|
+
}, "extractor"), P = /* @__PURE__ */ v((e, n) => {
|
|
234
234
|
if (n.length === 0)
|
|
235
235
|
return [];
|
|
236
236
|
let r = Object.assign([], n);
|
|
237
237
|
return n.forEach((s) => {
|
|
238
|
-
const d = e.children(s), c =
|
|
238
|
+
const d = e.children(s), c = P(e, d);
|
|
239
239
|
r = [...r, ...c];
|
|
240
240
|
}), r;
|
|
241
|
-
}, "sorter"), ae = /* @__PURE__ */ v((e) =>
|
|
241
|
+
}, "sorter"), ae = /* @__PURE__ */ v((e) => P(e, e.children()), "sortNodesByHierarchy"), A = /* @__PURE__ */ v(async (e, n, r, s, d, c) => {
|
|
242
242
|
t.warn("Graph in recursive render:XAX", X(n), d);
|
|
243
243
|
const a = n.graph().rankdir;
|
|
244
244
|
t.trace("Dir in recursive render - dir:", a);
|
|
@@ -277,8 +277,8 @@ Parent cluster`,
|
|
|
277
277
|
s,
|
|
278
278
|
n.node(g),
|
|
279
279
|
c
|
|
280
|
-
),
|
|
281
|
-
|
|
280
|
+
), E = m.elem;
|
|
281
|
+
z(o, E), o.diff = m.diff || 0, t.info(
|
|
282
282
|
"New compound node after recursive render XAX",
|
|
283
283
|
g,
|
|
284
284
|
"width",
|
|
@@ -288,7 +288,7 @@ Parent cluster`,
|
|
|
288
288
|
o.height
|
|
289
289
|
// node.x,
|
|
290
290
|
// node.y
|
|
291
|
-
),
|
|
291
|
+
), H(E, o);
|
|
292
292
|
} else
|
|
293
293
|
n.children(g).length > 0 ? (t.trace(
|
|
294
294
|
"Cluster - the non recursive path XBX",
|
|
@@ -298,7 +298,7 @@ Parent cluster`,
|
|
|
298
298
|
o.width,
|
|
299
299
|
"Graph:",
|
|
300
300
|
n
|
|
301
|
-
), t.trace(x(o.id, n)), u.set(o.id, { id: x(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), a), await
|
|
301
|
+
), t.trace(x(o.id, n)), u.set(o.id, { id: x(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), a), await U(h, n.node(g), { config: c, dir: a }));
|
|
302
302
|
})
|
|
303
303
|
), await (/* @__PURE__ */ v(async () => {
|
|
304
304
|
const g = n.edges().map(async function(o) {
|
|
@@ -312,11 +312,11 @@ Parent cluster`,
|
|
|
312
312
|
"Translating: ",
|
|
313
313
|
u.get(o.v),
|
|
314
314
|
u.get(o.w)
|
|
315
|
-
), await
|
|
315
|
+
), await $(C, i);
|
|
316
316
|
});
|
|
317
317
|
await Promise.all(g);
|
|
318
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 } =
|
|
319
|
+
let p = 0, { subGraphTitleTotalMargin: y } = Q(c);
|
|
320
320
|
return await Promise.all(
|
|
321
321
|
ae(n).map(async function(g) {
|
|
322
322
|
var o;
|
|
@@ -338,7 +338,7 @@ Parent cluster`,
|
|
|
338
338
|
i.x,
|
|
339
339
|
i.y,
|
|
340
340
|
n.parent(g)
|
|
341
|
-
), u.get(i.id).node = i,
|
|
341
|
+
), u.get(i.id).node = i, I(i);
|
|
342
342
|
else if (n.children(g).length > 0) {
|
|
343
343
|
t.info(
|
|
344
344
|
"A pure cluster node XBX1",
|
|
@@ -350,8 +350,8 @@ Parent cluster`,
|
|
|
350
350
|
i.height,
|
|
351
351
|
n.parent(g)
|
|
352
352
|
), i.height += y, n.node(i.parentId);
|
|
353
|
-
const w = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0,
|
|
354
|
-
t.debug("OffsetY",
|
|
353
|
+
const w = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, E = m - w || 0;
|
|
354
|
+
t.debug("OffsetY", E, "labelHeight", m, "halfPadding", w), await _(f, i), u.get(i.id).node = i;
|
|
355
355
|
} else {
|
|
356
356
|
const w = n.node(i.parentId);
|
|
357
357
|
i.y += y / 2, t.info(
|
|
@@ -369,23 +369,23 @@ Parent cluster`,
|
|
|
369
369
|
w,
|
|
370
370
|
w == null ? void 0 : w.offsetY,
|
|
371
371
|
i
|
|
372
|
-
),
|
|
372
|
+
), I(i);
|
|
373
373
|
}
|
|
374
374
|
})
|
|
375
375
|
), n.edges().forEach(function(g) {
|
|
376
376
|
const o = n.edge(g);
|
|
377
|
-
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(o), o), o.points.forEach((
|
|
377
|
+
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(o), o), o.points.forEach((E) => E.y += y / 2);
|
|
378
378
|
const i = n.node(g.v);
|
|
379
379
|
var w = n.node(g.w);
|
|
380
|
-
const m =
|
|
381
|
-
|
|
380
|
+
const m = q(N, o, u, r, i, w, s);
|
|
381
|
+
K(o, m);
|
|
382
382
|
}), n.nodes().forEach(function(g) {
|
|
383
383
|
const o = n.node(g);
|
|
384
384
|
t.info(g, o.type, o.diff), o.isGroup && (p = o.diff);
|
|
385
385
|
}), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
|
|
386
386
|
}, "recursiveRender"), ge = /* @__PURE__ */ v(async (e, n) => {
|
|
387
387
|
var r, s, d, c, a, l;
|
|
388
|
-
const f = new
|
|
388
|
+
const f = new G({
|
|
389
389
|
multigraph: !0,
|
|
390
390
|
compound: !0
|
|
391
391
|
}).setGraph({
|
|
@@ -432,7 +432,7 @@ Parent cluster`,
|
|
|
432
432
|
} else
|
|
433
433
|
f.setEdge(h.start, h.end, { ...h }, h.id);
|
|
434
434
|
}), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
|
|
435
|
-
const C =
|
|
435
|
+
const C = Y();
|
|
436
436
|
await A(
|
|
437
437
|
N,
|
|
438
438
|
f,
|