@belonguniverseai/react-sdk 0.6.2 → 0.6.4
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/api/agent-grants.d.ts +23 -8
- package/dist/api/client.d.ts +53 -4
- package/dist/api/queries.d.ts +2 -0
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
- package/dist/component/arc-DJkYOSuJ.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
- package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
- package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/belong-chat-transport.d.ts +1 -0
- package/dist/stream/belong-data-parts.d.ts +2 -0
- package/dist/stream/stream-state-store.d.ts +13 -0
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-TLcl3N8_.js +0 -86
- package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
- package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
import { _ as w, aY as _, aZ as Y, a_ as F, a$ as j, l as i, c as H, b0 as V, b1 as $, al as U, aT as Z, am as P, ak as q, b2 as z, b3 as K, b4 as Q } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
|
|
2
|
-
import { i as N, G as k } from "./graph-BZLHvygk.js";
|
|
3
|
-
import { b as W, m as B, l as I } from "./layout-Bu6nRdWm.js";
|
|
4
|
-
globalThis.process = globalThis.process || { env: {} };
|
|
5
|
-
globalThis.global = globalThis.global || globalThis;
|
|
6
|
-
var ee = 4;
|
|
7
|
-
function ne(e) {
|
|
8
|
-
return W(e, ee);
|
|
9
|
-
}
|
|
10
|
-
function v(e) {
|
|
11
|
-
var t = {
|
|
12
|
-
options: {
|
|
13
|
-
directed: e.isDirected(),
|
|
14
|
-
multigraph: e.isMultigraph(),
|
|
15
|
-
compound: e.isCompound()
|
|
16
|
-
},
|
|
17
|
-
nodes: te(e),
|
|
18
|
-
edges: se(e)
|
|
19
|
-
};
|
|
20
|
-
return N(e.graph()) || (t.value = ne(e.graph())), t;
|
|
21
|
-
}
|
|
22
|
-
function te(e) {
|
|
23
|
-
return B(e.nodes(), function(t) {
|
|
24
|
-
var n = e.node(t), a = e.parent(t), r = { v: t };
|
|
25
|
-
return N(n) || (r.value = n), N(a) || (r.parent = a), r;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function se(e) {
|
|
29
|
-
return B(e.edges(), function(t) {
|
|
30
|
-
var n = e.edge(t), a = { v: t.v, w: t.w };
|
|
31
|
-
return N(t.name) || (a.name = t.name), N(n) || (a.value = n), a;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ w(() => {
|
|
35
|
-
y.clear(), R.clear(), d.clear();
|
|
36
|
-
}, "clear"), D = /* @__PURE__ */ w((e, t) => {
|
|
37
|
-
const n = y.get(t) || [];
|
|
38
|
-
return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
39
|
-
}, "isDescendant"), re = /* @__PURE__ */ w((e, t) => {
|
|
40
|
-
const n = y.get(t) || [];
|
|
41
|
-
return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
42
|
-
}, "edgeInCluster"), A = /* @__PURE__ */ w((e, t, n, a) => {
|
|
43
|
-
i.warn(
|
|
44
|
-
"Copying children of ",
|
|
45
|
-
e,
|
|
46
|
-
"root",
|
|
47
|
-
a,
|
|
48
|
-
"data",
|
|
49
|
-
t.node(e),
|
|
50
|
-
a
|
|
51
|
-
);
|
|
52
|
-
const r = t.children(e) || [];
|
|
53
|
-
e !== a && r.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", r), r.forEach((o) => {
|
|
54
|
-
if (t.children(o).length > 0)
|
|
55
|
-
A(o, t, n, a);
|
|
56
|
-
else {
|
|
57
|
-
const l = t.node(o);
|
|
58
|
-
i.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (i.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", a, "data", t.node(e), a), i.debug(
|
|
59
|
-
"Not Setting parent for node=",
|
|
60
|
-
o,
|
|
61
|
-
"cluster!==rootId",
|
|
62
|
-
e !== a,
|
|
63
|
-
"node!==clusterId",
|
|
64
|
-
o !== e
|
|
65
|
-
));
|
|
66
|
-
const u = t.edges(o);
|
|
67
|
-
i.debug("Copying Edges", u), u.forEach((c) => {
|
|
68
|
-
i.info("Edge", c);
|
|
69
|
-
const h = t.edge(c.v, c.w, c.name);
|
|
70
|
-
i.info("Edge data", h, a);
|
|
71
|
-
try {
|
|
72
|
-
re(c, a) ? (i.info("Copying as ", c.v, c.w, h, c.name), n.setEdge(c.v, c.w, h, c.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
73
|
-
"Skipping copy of edge ",
|
|
74
|
-
c.v,
|
|
75
|
-
"-->",
|
|
76
|
-
c.w,
|
|
77
|
-
" rootId: ",
|
|
78
|
-
a,
|
|
79
|
-
" clusterId:",
|
|
80
|
-
e
|
|
81
|
-
);
|
|
82
|
-
} catch (m) {
|
|
83
|
-
i.error(m);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
i.debug("Removing node", o), t.removeNode(o);
|
|
88
|
-
});
|
|
89
|
-
}, "copy"), G = /* @__PURE__ */ w((e, t) => {
|
|
90
|
-
const n = t.children(e);
|
|
91
|
-
let a = [...n];
|
|
92
|
-
for (const r of n)
|
|
93
|
-
R.set(r, e), a = [...a, ...G(r, t)];
|
|
94
|
-
return a;
|
|
95
|
-
}, "extractDescendants"), oe = /* @__PURE__ */ w((e, t, n) => {
|
|
96
|
-
const a = e.edges().filter((c) => c.v === t || c.w === t), r = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = r.map((c) => ({ v: c.v, w: c.w }));
|
|
97
|
-
return o.filter((c) => l.some((h) => c.v === h.v && c.w === h.w));
|
|
98
|
-
}, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => {
|
|
99
|
-
const a = t.children(e);
|
|
100
|
-
if (i.trace("Searching children of id ", e, a), a.length < 1)
|
|
101
|
-
return e;
|
|
102
|
-
let r;
|
|
103
|
-
for (const o of a) {
|
|
104
|
-
const l = C(o, t, n), u = oe(t, n, l);
|
|
105
|
-
if (l)
|
|
106
|
-
if (u.length > 0)
|
|
107
|
-
r = l;
|
|
108
|
-
else
|
|
109
|
-
return l;
|
|
110
|
-
}
|
|
111
|
-
return r;
|
|
112
|
-
}, "findNonClusterChild"), T = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), ae = /* @__PURE__ */ w((e, t) => {
|
|
113
|
-
if (!e || t > 10) {
|
|
114
|
-
i.debug("Opting out, no graph ");
|
|
115
|
-
return;
|
|
116
|
-
} else
|
|
117
|
-
i.debug("Opting in, graph ");
|
|
118
|
-
e.nodes().forEach(function(n) {
|
|
119
|
-
e.children(n).length > 0 && (i.warn(
|
|
120
|
-
"Cluster identified",
|
|
121
|
-
n,
|
|
122
|
-
" Replacement id in edges: ",
|
|
123
|
-
C(n, e, n)
|
|
124
|
-
), y.set(n, G(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
|
|
125
|
-
}), e.nodes().forEach(function(n) {
|
|
126
|
-
const a = e.children(n), r = e.edges();
|
|
127
|
-
a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => {
|
|
128
|
-
const l = D(o.v, n), u = D(o.w, n);
|
|
129
|
-
l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
|
|
130
|
-
})) : i.debug("Not a cluster ", n, y);
|
|
131
|
-
});
|
|
132
|
-
for (let n of d.keys()) {
|
|
133
|
-
const a = d.get(n).id, r = e.parent(a);
|
|
134
|
-
r !== n && d.has(r) && !d.get(r).externalConnections && (d.get(n).id = r);
|
|
135
|
-
}
|
|
136
|
-
e.edges().forEach(function(n) {
|
|
137
|
-
const a = e.edge(n);
|
|
138
|
-
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
139
|
-
let r = n.v, o = n.w;
|
|
140
|
-
if (i.warn(
|
|
141
|
-
"Fix XXX",
|
|
142
|
-
d,
|
|
143
|
-
"ids:",
|
|
144
|
-
n.v,
|
|
145
|
-
n.w,
|
|
146
|
-
"Translating: ",
|
|
147
|
-
d.get(n.v),
|
|
148
|
-
" --- ",
|
|
149
|
-
d.get(n.w)
|
|
150
|
-
), d.get(n.v) || d.get(n.w)) {
|
|
151
|
-
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), r = T(n.v), o = T(n.w), e.removeEdge(n.v, n.w, n.name), r !== n.v) {
|
|
152
|
-
const l = e.parent(r);
|
|
153
|
-
d.get(l).externalConnections = !0, a.fromCluster = n.v;
|
|
154
|
-
}
|
|
155
|
-
if (o !== n.w) {
|
|
156
|
-
const l = e.parent(o);
|
|
157
|
-
d.get(l).externalConnections = !0, a.toCluster = n.w;
|
|
158
|
-
}
|
|
159
|
-
i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name);
|
|
160
|
-
}
|
|
161
|
-
}), i.warn("Adjusted Graph", v(e)), J(e, 0), i.trace(d);
|
|
162
|
-
}, "adjustClustersAndEdges"), J = /* @__PURE__ */ w((e, t) => {
|
|
163
|
-
if (i.warn("extractor - ", t, v(e), e.children("D")), t > 10) {
|
|
164
|
-
i.error("Bailing out");
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
let n = e.nodes(), a = !1;
|
|
168
|
-
for (const r of n) {
|
|
169
|
-
const o = e.children(r);
|
|
170
|
-
a = a || o.length > 0;
|
|
171
|
-
}
|
|
172
|
-
if (!a) {
|
|
173
|
-
i.debug("Done, no node has children", e.nodes());
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
i.debug("Nodes = ", n, t);
|
|
177
|
-
for (const r of n)
|
|
178
|
-
if (i.debug(
|
|
179
|
-
"Extracting node",
|
|
180
|
-
r,
|
|
181
|
-
d,
|
|
182
|
-
d.has(r) && !d.get(r).externalConnections,
|
|
183
|
-
!e.parent(r),
|
|
184
|
-
e.node(r),
|
|
185
|
-
e.children("D"),
|
|
186
|
-
" Depth ",
|
|
187
|
-
t
|
|
188
|
-
), !d.has(r))
|
|
189
|
-
i.debug("Not a cluster", r, t);
|
|
190
|
-
else if (!d.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
191
|
-
i.warn(
|
|
192
|
-
"Cluster without external connections, without a parent and with children",
|
|
193
|
-
r,
|
|
194
|
-
t
|
|
195
|
-
);
|
|
196
|
-
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
197
|
-
d.get(r)?.clusterData?.dir && (l = d.get(r).clusterData.dir, i.warn("Fixing dir", d.get(r).clusterData.dir, l));
|
|
198
|
-
const u = new k({
|
|
199
|
-
multigraph: !0,
|
|
200
|
-
compound: !0
|
|
201
|
-
}).setGraph({
|
|
202
|
-
rankdir: l,
|
|
203
|
-
nodesep: 50,
|
|
204
|
-
ranksep: 50,
|
|
205
|
-
marginx: 8,
|
|
206
|
-
marginy: 8
|
|
207
|
-
}).setDefaultEdgeLabel(function() {
|
|
208
|
-
return {};
|
|
209
|
-
});
|
|
210
|
-
i.warn("Old graph before copy", v(e)), A(r, e, u, r), e.setNode(r, {
|
|
211
|
-
clusterNode: !0,
|
|
212
|
-
id: r,
|
|
213
|
-
clusterData: d.get(r).clusterData,
|
|
214
|
-
label: d.get(r).label,
|
|
215
|
-
graph: u
|
|
216
|
-
}), i.warn("New graph after copy node: (", r, ")", v(u)), i.debug("Old graph after copy", v(e));
|
|
217
|
-
} else
|
|
218
|
-
i.warn(
|
|
219
|
-
"Cluster ** ",
|
|
220
|
-
r,
|
|
221
|
-
" **not meeting the criteria !externalConnections:",
|
|
222
|
-
!d.get(r).externalConnections,
|
|
223
|
-
" no parent: ",
|
|
224
|
-
!e.parent(r),
|
|
225
|
-
" children ",
|
|
226
|
-
e.children(r) && e.children(r).length > 0,
|
|
227
|
-
e.children("D"),
|
|
228
|
-
t
|
|
229
|
-
), i.debug(d);
|
|
230
|
-
n = e.nodes(), i.warn("New list of nodes", n);
|
|
231
|
-
for (const r of n) {
|
|
232
|
-
const o = e.node(r);
|
|
233
|
-
i.warn(" Now next level", r, o), o?.clusterNode && J(o.graph, t + 1);
|
|
234
|
-
}
|
|
235
|
-
}, "extractor"), L = /* @__PURE__ */ w((e, t) => {
|
|
236
|
-
if (t.length === 0)
|
|
237
|
-
return [];
|
|
238
|
-
let n = Object.assign([], t);
|
|
239
|
-
return t.forEach((a) => {
|
|
240
|
-
const r = e.children(a), o = L(e, r);
|
|
241
|
-
n = [...n, ...o];
|
|
242
|
-
}), n;
|
|
243
|
-
}, "sorter"), ce = /* @__PURE__ */ w((e) => L(e, e.children()), "sortNodesByHierarchy"), M = /* @__PURE__ */ w(async (e, t, n, a, r, o) => {
|
|
244
|
-
i.warn("Graph in recursive render:XAX", v(t), r);
|
|
245
|
-
const l = t.graph().rankdir;
|
|
246
|
-
i.trace("Dir in recursive render - dir:", l);
|
|
247
|
-
const u = e.insert("g").attr("class", "root");
|
|
248
|
-
t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
|
|
249
|
-
const c = u.insert("g").attr("class", "clusters"), h = u.insert("g").attr("class", "edgePaths"), m = u.insert("g").attr("class", "edgeLabels"), b = u.insert("g").attr("class", "nodes");
|
|
250
|
-
await Promise.all(
|
|
251
|
-
t.nodes().map(async function(f) {
|
|
252
|
-
const s = t.node(f);
|
|
253
|
-
if (r !== void 0) {
|
|
254
|
-
const g = JSON.parse(JSON.stringify(r.clusterData));
|
|
255
|
-
i.trace(
|
|
256
|
-
`Setting data for parent cluster XXX
|
|
257
|
-
Node.id = `,
|
|
258
|
-
f,
|
|
259
|
-
`
|
|
260
|
-
data=`,
|
|
261
|
-
g.height,
|
|
262
|
-
`
|
|
263
|
-
Parent cluster`,
|
|
264
|
-
r.height
|
|
265
|
-
), t.setNode(r.id, g), t.parent(f) || (i.trace("Setting parent", f, r.id), t.setParent(f, r.id, g));
|
|
266
|
-
}
|
|
267
|
-
if (i.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) {
|
|
268
|
-
i.info("Cluster identified XBX", f, s.width, t.node(f));
|
|
269
|
-
const { ranksep: g, nodesep: p } = t.graph();
|
|
270
|
-
s.graph.setGraph({
|
|
271
|
-
...s.graph.graph(),
|
|
272
|
-
ranksep: g + 25,
|
|
273
|
-
nodesep: p
|
|
274
|
-
});
|
|
275
|
-
const E = await M(
|
|
276
|
-
b,
|
|
277
|
-
s.graph,
|
|
278
|
-
n,
|
|
279
|
-
a,
|
|
280
|
-
t.node(f),
|
|
281
|
-
o
|
|
282
|
-
), x = E.elem;
|
|
283
|
-
V(s, x), s.diff = E.diff || 0, i.info(
|
|
284
|
-
"New compound node after recursive render XAX",
|
|
285
|
-
f,
|
|
286
|
-
"width",
|
|
287
|
-
// node,
|
|
288
|
-
s.width,
|
|
289
|
-
"height",
|
|
290
|
-
s.height
|
|
291
|
-
// node.x,
|
|
292
|
-
// node.y
|
|
293
|
-
), $(x, s);
|
|
294
|
-
} else
|
|
295
|
-
t.children(f).length > 0 ? (i.trace(
|
|
296
|
-
"Cluster - the non recursive path XBX",
|
|
297
|
-
f,
|
|
298
|
-
s.id,
|
|
299
|
-
s,
|
|
300
|
-
s.width,
|
|
301
|
-
"Graph:",
|
|
302
|
-
t
|
|
303
|
-
), i.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", f, b, t.node(f), l), await U(b, t.node(f), { config: o, dir: l }));
|
|
304
|
-
})
|
|
305
|
-
), await (/* @__PURE__ */ w(async () => {
|
|
306
|
-
const f = t.edges().map(async function(s) {
|
|
307
|
-
const g = t.edge(s.v, s.w, s.name);
|
|
308
|
-
i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
|
|
309
|
-
"Fix",
|
|
310
|
-
d,
|
|
311
|
-
"ids:",
|
|
312
|
-
s.v,
|
|
313
|
-
s.w,
|
|
314
|
-
"Translating: ",
|
|
315
|
-
d.get(s.v),
|
|
316
|
-
d.get(s.w)
|
|
317
|
-
), await Q(m, g);
|
|
318
|
-
});
|
|
319
|
-
await Promise.all(f);
|
|
320
|
-
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(v(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(v(t)));
|
|
321
|
-
let O = 0, { subGraphTitleTotalMargin: S } = Z(o);
|
|
322
|
-
return await Promise.all(
|
|
323
|
-
ce(t).map(async function(f) {
|
|
324
|
-
const s = t.node(f);
|
|
325
|
-
if (i.info(
|
|
326
|
-
"Position XBX => " + f + ": (" + s.x,
|
|
327
|
-
"," + s.y,
|
|
328
|
-
") width: ",
|
|
329
|
-
s.width,
|
|
330
|
-
" height: ",
|
|
331
|
-
s.height
|
|
332
|
-
), s?.clusterNode)
|
|
333
|
-
s.y += S, i.info(
|
|
334
|
-
"A tainted cluster node XBX1",
|
|
335
|
-
f,
|
|
336
|
-
s.id,
|
|
337
|
-
s.width,
|
|
338
|
-
s.height,
|
|
339
|
-
s.x,
|
|
340
|
-
s.y,
|
|
341
|
-
t.parent(f)
|
|
342
|
-
), d.get(s.id).node = s, P(s);
|
|
343
|
-
else if (t.children(f).length > 0) {
|
|
344
|
-
i.info(
|
|
345
|
-
"A pure cluster node XBX1",
|
|
346
|
-
f,
|
|
347
|
-
s.id,
|
|
348
|
-
s.x,
|
|
349
|
-
s.y,
|
|
350
|
-
s.width,
|
|
351
|
-
s.height,
|
|
352
|
-
t.parent(f)
|
|
353
|
-
), s.height += S, t.node(s.parentId);
|
|
354
|
-
const g = s?.padding / 2 || 0, p = s?.labelBBox?.height || 0, E = p - g || 0;
|
|
355
|
-
i.debug("OffsetY", E, "labelHeight", p, "halfPadding", g), await q(c, s), d.get(s.id).node = s;
|
|
356
|
-
} else {
|
|
357
|
-
const g = t.node(s.parentId);
|
|
358
|
-
s.y += S / 2, i.info(
|
|
359
|
-
"A regular node XBX1 - using the padding",
|
|
360
|
-
s.id,
|
|
361
|
-
"parent",
|
|
362
|
-
s.parentId,
|
|
363
|
-
s.width,
|
|
364
|
-
s.height,
|
|
365
|
-
s.x,
|
|
366
|
-
s.y,
|
|
367
|
-
"offsetY",
|
|
368
|
-
s.offsetY,
|
|
369
|
-
"parent",
|
|
370
|
-
g,
|
|
371
|
-
g?.offsetY,
|
|
372
|
-
s
|
|
373
|
-
), P(s);
|
|
374
|
-
}
|
|
375
|
-
})
|
|
376
|
-
), t.edges().forEach(function(f) {
|
|
377
|
-
const s = t.edge(f);
|
|
378
|
-
i.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2);
|
|
379
|
-
const g = t.node(f.v);
|
|
380
|
-
var p = t.node(f.w);
|
|
381
|
-
const E = z(h, s, d, n, g, p, a);
|
|
382
|
-
K(s, E);
|
|
383
|
-
}), t.nodes().forEach(function(f) {
|
|
384
|
-
const s = t.node(f);
|
|
385
|
-
i.info(f, s.type, s.diff), s.isGroup && (O = s.diff);
|
|
386
|
-
}), i.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O };
|
|
387
|
-
}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, t) => {
|
|
388
|
-
const n = new k({
|
|
389
|
-
multigraph: !0,
|
|
390
|
-
compound: !0
|
|
391
|
-
}).setGraph({
|
|
392
|
-
rankdir: e.direction,
|
|
393
|
-
nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing,
|
|
394
|
-
ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing,
|
|
395
|
-
marginx: 8,
|
|
396
|
-
marginy: 8
|
|
397
|
-
}).setDefaultEdgeLabel(function() {
|
|
398
|
-
return {};
|
|
399
|
-
}), a = t.select("g");
|
|
400
|
-
_(a, e.markers, e.type, e.diagramId), Y(), F(), j(), ie(), e.nodes.forEach((o) => {
|
|
401
|
-
n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId);
|
|
402
|
-
}), i.debug("Edges:", e.edges), e.edges.forEach((o) => {
|
|
403
|
-
if (o.start === o.end) {
|
|
404
|
-
const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", h = n.node(l);
|
|
405
|
-
n.setNode(u, {
|
|
406
|
-
domId: u,
|
|
407
|
-
id: u,
|
|
408
|
-
parentId: h.parentId,
|
|
409
|
-
labelStyle: "",
|
|
410
|
-
label: "",
|
|
411
|
-
padding: 0,
|
|
412
|
-
shape: "labelRect",
|
|
413
|
-
// shape: 'rect',
|
|
414
|
-
style: "",
|
|
415
|
-
width: 10,
|
|
416
|
-
height: 10
|
|
417
|
-
}), n.setParent(u, h.parentId), n.setNode(c, {
|
|
418
|
-
domId: c,
|
|
419
|
-
id: c,
|
|
420
|
-
parentId: h.parentId,
|
|
421
|
-
labelStyle: "",
|
|
422
|
-
padding: 0,
|
|
423
|
-
// shape: 'rect',
|
|
424
|
-
shape: "labelRect",
|
|
425
|
-
label: "",
|
|
426
|
-
style: "",
|
|
427
|
-
width: 10,
|
|
428
|
-
height: 10
|
|
429
|
-
}), n.setParent(c, h.parentId);
|
|
430
|
-
const m = structuredClone(o), b = structuredClone(o), X = structuredClone(o);
|
|
431
|
-
m.label = "", m.arrowTypeEnd = "none", m.endLabelLeft = "", m.endLabelRight = "", m.startLabelLeft = "", m.id = l + "-cyclic-special-1", b.startLabelRight = "", b.startLabelLeft = "", b.endLabelLeft = "", b.endLabelRight = "", b.arrowTypeStart = "none", b.arrowTypeEnd = "none", b.id = l + "-cyclic-special-mid", X.label = "", X.startLabelRight = "", X.startLabelLeft = "", X.arrowTypeStart = "none", h.isGroup && (m.fromCluster = l, X.toCluster = l), X.id = l + "-cyclic-special-2", X.arrowTypeStart = "none", n.setEdge(l, u, m, l + "-cyclic-special-0"), n.setEdge(u, c, b, l + "-cyclic-special-1"), n.setEdge(c, l, X, l + "-cyc<lic-special-2");
|
|
432
|
-
} else
|
|
433
|
-
n.setEdge(o.start, o.end, { ...o }, o.id);
|
|
434
|
-
}), i.warn("Graph at first:", JSON.stringify(v(n))), ae(n), i.warn("Graph after XAX:", JSON.stringify(v(n)));
|
|
435
|
-
const r = H();
|
|
436
|
-
await M(
|
|
437
|
-
a,
|
|
438
|
-
n,
|
|
439
|
-
e.type,
|
|
440
|
-
e.diagramId,
|
|
441
|
-
void 0,
|
|
442
|
-
r
|
|
443
|
-
);
|
|
444
|
-
}, "render");
|
|
445
|
-
export {
|
|
446
|
-
ue as render
|
|
447
|
-
};
|
|
448
|
-
//# sourceMappingURL=dagre-BM42HDAG-BoPUzTvD.js.map
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { s as k, g as I, t as R, q as _, a as E, b as F, _ as l, N as D, B as G, I as y, G as b, K as z, l as P, a4 as B, e as W } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
|
|
2
|
-
import { p as V } from "./chunk-4BX2VUAB-DVpS0I_p.js";
|
|
3
|
-
import { p as H } from "./wardley-L42UT6IY-HA1eSIS_.js";
|
|
4
|
-
globalThis.process = globalThis.process || { env: {} };
|
|
5
|
-
globalThis.global = globalThis.global || globalThis;
|
|
6
|
-
var x = {
|
|
7
|
-
showLegend: !0,
|
|
8
|
-
ticks: 5,
|
|
9
|
-
max: null,
|
|
10
|
-
min: 0,
|
|
11
|
-
graticule: "circle"
|
|
12
|
-
}, C = {
|
|
13
|
-
axes: [],
|
|
14
|
-
curves: [],
|
|
15
|
-
options: x
|
|
16
|
-
}, h = structuredClone(C), j = z.radar, N = /* @__PURE__ */ l(() => y({
|
|
17
|
-
...j,
|
|
18
|
-
...b().radar
|
|
19
|
-
}), "getConfig"), w = /* @__PURE__ */ l(() => h.axes, "getAxes"), q = /* @__PURE__ */ l(() => h.curves, "getCurves"), K = /* @__PURE__ */ l(() => h.options, "getOptions"), U = /* @__PURE__ */ l((a) => {
|
|
20
|
-
h.axes = a.map((t) => ({
|
|
21
|
-
name: t.name,
|
|
22
|
-
label: t.label ?? t.name
|
|
23
|
-
}));
|
|
24
|
-
}, "setAxes"), X = /* @__PURE__ */ l((a) => {
|
|
25
|
-
h.curves = a.map((t) => ({
|
|
26
|
-
name: t.name,
|
|
27
|
-
label: t.label ?? t.name,
|
|
28
|
-
entries: Y(t.entries)
|
|
29
|
-
}));
|
|
30
|
-
}, "setCurves"), Y = /* @__PURE__ */ l((a) => {
|
|
31
|
-
if (a[0].axis == null)
|
|
32
|
-
return a.map((e) => e.value);
|
|
33
|
-
const t = w();
|
|
34
|
-
if (t.length === 0)
|
|
35
|
-
throw new Error("Axes must be populated before curves for reference entries");
|
|
36
|
-
return t.map((e) => {
|
|
37
|
-
const r = a.find((s) => s.axis?.$refText === e.name);
|
|
38
|
-
if (r === void 0)
|
|
39
|
-
throw new Error("Missing entry for axis " + e.label);
|
|
40
|
-
return r.value;
|
|
41
|
-
});
|
|
42
|
-
}, "computeCurveEntries"), Z = /* @__PURE__ */ l((a) => {
|
|
43
|
-
const t = a.reduce(
|
|
44
|
-
(e, r) => (e[r.name] = r, e),
|
|
45
|
-
{}
|
|
46
|
-
);
|
|
47
|
-
h.options = {
|
|
48
|
-
showLegend: t.showLegend?.value ?? x.showLegend,
|
|
49
|
-
ticks: t.ticks?.value ?? x.ticks,
|
|
50
|
-
max: t.max?.value ?? x.max,
|
|
51
|
-
min: t.min?.value ?? x.min,
|
|
52
|
-
graticule: t.graticule?.value ?? x.graticule
|
|
53
|
-
};
|
|
54
|
-
}, "setOptions"), J = /* @__PURE__ */ l(() => {
|
|
55
|
-
G(), h = structuredClone(C);
|
|
56
|
-
}, "clear"), $ = {
|
|
57
|
-
getAxes: w,
|
|
58
|
-
getCurves: q,
|
|
59
|
-
getOptions: K,
|
|
60
|
-
setAxes: U,
|
|
61
|
-
setCurves: X,
|
|
62
|
-
setOptions: Z,
|
|
63
|
-
getConfig: N,
|
|
64
|
-
clear: J,
|
|
65
|
-
setAccTitle: F,
|
|
66
|
-
getAccTitle: E,
|
|
67
|
-
setDiagramTitle: _,
|
|
68
|
-
getDiagramTitle: R,
|
|
69
|
-
getAccDescription: I,
|
|
70
|
-
setAccDescription: k
|
|
71
|
-
}, Q = /* @__PURE__ */ l((a) => {
|
|
72
|
-
V(a, $);
|
|
73
|
-
const { axes: t, curves: e, options: r } = a;
|
|
74
|
-
$.setAxes(t), $.setCurves(e), $.setOptions(r);
|
|
75
|
-
}, "populate"), tt = {
|
|
76
|
-
parse: /* @__PURE__ */ l(async (a) => {
|
|
77
|
-
const t = await H("radar", a);
|
|
78
|
-
P.debug(t), Q(t);
|
|
79
|
-
}, "parse")
|
|
80
|
-
}, et = /* @__PURE__ */ l((a, t, e, r) => {
|
|
81
|
-
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = D(t), u = at(p, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
|
|
82
|
-
rt(u, o, v, n.ticks, n.graticule), st(u, o, v, c), M(u, o, i, m, g, n.graticule, c), L(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
|
|
83
|
-
}, "draw"), at = /* @__PURE__ */ l((a, t) => {
|
|
84
|
-
const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
|
|
85
|
-
x: t.marginLeft + t.width / 2,
|
|
86
|
-
y: t.marginTop + t.height / 2
|
|
87
|
-
};
|
|
88
|
-
return W(a, r, e, t.useMaxWidth ?? !0), a.attr("viewBox", `0 0 ${e} ${r}`), a.append("g").attr("transform", `translate(${s.x}, ${s.y})`);
|
|
89
|
-
}, "drawFrame"), rt = /* @__PURE__ */ l((a, t, e, r, s) => {
|
|
90
|
-
if (s === "circle")
|
|
91
|
-
for (let o = 0; o < r; o++) {
|
|
92
|
-
const i = e * (o + 1) / r;
|
|
93
|
-
a.append("circle").attr("r", i).attr("class", "radarGraticule");
|
|
94
|
-
}
|
|
95
|
-
else if (s === "polygon") {
|
|
96
|
-
const o = t.length;
|
|
97
|
-
for (let i = 0; i < r; i++) {
|
|
98
|
-
const n = e * (i + 1) / r, c = t.map((d, p) => {
|
|
99
|
-
const u = 2 * p * Math.PI / o - Math.PI / 2, g = n * Math.cos(u), m = n * Math.sin(u);
|
|
100
|
-
return `${g},${m}`;
|
|
101
|
-
}).join(" ");
|
|
102
|
-
a.append("polygon").attr("points", c).attr("class", "radarGraticule");
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, "drawGraticule"), st = /* @__PURE__ */ l((a, t, e, r) => {
|
|
106
|
-
const s = t.length;
|
|
107
|
-
for (let o = 0; o < s; o++) {
|
|
108
|
-
const i = t[o].label, n = 2 * o * Math.PI / s - Math.PI / 2;
|
|
109
|
-
a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * Math.cos(n)).attr("y2", e * r.axisScaleFactor * Math.sin(n)).attr("class", "radarAxisLine"), a.append("text").text(i).attr("x", e * r.axisLabelFactor * Math.cos(n)).attr("y", e * r.axisLabelFactor * Math.sin(n)).attr("class", "radarAxisLabel");
|
|
110
|
-
}
|
|
111
|
-
}, "drawAxes");
|
|
112
|
-
function M(a, t, e, r, s, o, i) {
|
|
113
|
-
const n = t.length, c = Math.min(i.width, i.height) / 2;
|
|
114
|
-
e.forEach((d, p) => {
|
|
115
|
-
if (d.entries.length !== n)
|
|
116
|
-
return;
|
|
117
|
-
const u = d.entries.map((g, m) => {
|
|
118
|
-
const v = 2 * Math.PI * m / n - Math.PI / 2, f = T(g, r, s, c), S = f * Math.cos(v), O = f * Math.sin(v);
|
|
119
|
-
return { x: S, y: O };
|
|
120
|
-
});
|
|
121
|
-
o === "circle" ? a.append("path").attr("d", A(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
l(M, "drawCurves");
|
|
125
|
-
function T(a, t, e, r) {
|
|
126
|
-
const s = Math.min(Math.max(a, t), e);
|
|
127
|
-
return r * (s - t) / (e - t);
|
|
128
|
-
}
|
|
129
|
-
l(T, "relativeRadius");
|
|
130
|
-
function A(a, t) {
|
|
131
|
-
const e = a.length;
|
|
132
|
-
let r = `M${a[0].x},${a[0].y}`;
|
|
133
|
-
for (let s = 0; s < e; s++) {
|
|
134
|
-
const o = a[(s - 1 + e) % e], i = a[s], n = a[(s + 1) % e], c = a[(s + 2) % e], d = {
|
|
135
|
-
x: i.x + (n.x - o.x) * t,
|
|
136
|
-
y: i.y + (n.y - o.y) * t
|
|
137
|
-
}, p = {
|
|
138
|
-
x: n.x - (c.x - i.x) * t,
|
|
139
|
-
y: n.y - (c.y - i.y) * t
|
|
140
|
-
};
|
|
141
|
-
r += ` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`;
|
|
142
|
-
}
|
|
143
|
-
return `${r} Z`;
|
|
144
|
-
}
|
|
145
|
-
l(A, "closedRoundCurve");
|
|
146
|
-
function L(a, t, e, r) {
|
|
147
|
-
if (!e)
|
|
148
|
-
return;
|
|
149
|
-
const s = (r.width / 2 + r.marginRight) * 3 / 4, o = -(r.height / 2 + r.marginTop) * 3 / 4, i = 20;
|
|
150
|
-
t.forEach((n, c) => {
|
|
151
|
-
const d = a.append("g").attr("transform", `translate(${s}, ${o + c * i})`);
|
|
152
|
-
d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${c}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(n.label);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
l(L, "drawLegend");
|
|
156
|
-
var nt = { draw: et }, ot = /* @__PURE__ */ l((a, t) => {
|
|
157
|
-
let e = "";
|
|
158
|
-
for (let r = 0; r < a.THEME_COLOR_LIMIT; r++) {
|
|
159
|
-
const s = a[`cScale${r}`];
|
|
160
|
-
e += `
|
|
161
|
-
.radarCurve-${r} {
|
|
162
|
-
color: ${s};
|
|
163
|
-
fill: ${s};
|
|
164
|
-
fill-opacity: ${t.curveOpacity};
|
|
165
|
-
stroke: ${s};
|
|
166
|
-
stroke-width: ${t.curveStrokeWidth};
|
|
167
|
-
}
|
|
168
|
-
.radarLegendBox-${r} {
|
|
169
|
-
fill: ${s};
|
|
170
|
-
fill-opacity: ${t.curveOpacity};
|
|
171
|
-
stroke: ${s};
|
|
172
|
-
}
|
|
173
|
-
`;
|
|
174
|
-
}
|
|
175
|
-
return e;
|
|
176
|
-
}, "genIndexStyles"), it = /* @__PURE__ */ l((a) => {
|
|
177
|
-
const t = B(), e = b(), r = y(t, e.themeVariables), s = y(r.radar, a);
|
|
178
|
-
return { themeVariables: r, radarOptions: s };
|
|
179
|
-
}, "buildRadarStyleOptions"), lt = /* @__PURE__ */ l(({ radar: a } = {}) => {
|
|
180
|
-
const { themeVariables: t, radarOptions: e } = it(a);
|
|
181
|
-
return `
|
|
182
|
-
.radarTitle {
|
|
183
|
-
font-size: ${t.fontSize};
|
|
184
|
-
color: ${t.titleColor};
|
|
185
|
-
dominant-baseline: hanging;
|
|
186
|
-
text-anchor: middle;
|
|
187
|
-
}
|
|
188
|
-
.radarAxisLine {
|
|
189
|
-
stroke: ${e.axisColor};
|
|
190
|
-
stroke-width: ${e.axisStrokeWidth};
|
|
191
|
-
}
|
|
192
|
-
.radarAxisLabel {
|
|
193
|
-
dominant-baseline: middle;
|
|
194
|
-
text-anchor: middle;
|
|
195
|
-
font-size: ${e.axisLabelFontSize}px;
|
|
196
|
-
color: ${e.axisColor};
|
|
197
|
-
}
|
|
198
|
-
.radarGraticule {
|
|
199
|
-
fill: ${e.graticuleColor};
|
|
200
|
-
fill-opacity: ${e.graticuleOpacity};
|
|
201
|
-
stroke: ${e.graticuleColor};
|
|
202
|
-
stroke-width: ${e.graticuleStrokeWidth};
|
|
203
|
-
}
|
|
204
|
-
.radarLegendText {
|
|
205
|
-
text-anchor: start;
|
|
206
|
-
font-size: ${e.legendFontSize}px;
|
|
207
|
-
dominant-baseline: hanging;
|
|
208
|
-
}
|
|
209
|
-
${ot(t, e)}
|
|
210
|
-
`;
|
|
211
|
-
}, "styles"), pt = {
|
|
212
|
-
parser: tt,
|
|
213
|
-
db: $,
|
|
214
|
-
renderer: nt,
|
|
215
|
-
styles: lt
|
|
216
|
-
};
|
|
217
|
-
export {
|
|
218
|
-
pt as diagram
|
|
219
|
-
};
|
|
220
|
-
//# sourceMappingURL=diagram-2AECGRRQ-PIXCGxIt.js.map
|