@belonguniverseai/react-sdk 0.6.2 → 0.6.3
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 +6 -0
- package/dist/api/client.d.ts +30 -1
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
- package/dist/component/arc-Cpnt_LFj.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-DnM50Ep0.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
- package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
- package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.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-CSJNGt18.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-Bi0C-9d1.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-BaBCeViM.js} +25220 -24784
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-79AgTtk-.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/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,94 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { p as
|
|
5
|
-
import { b as
|
|
6
|
-
import { o as
|
|
1
|
+
import { p as ge } from "./chunk-JWPE2WC7-BbwyDj9g.js";
|
|
2
|
+
import { _ as w, Z as me, z as te, D as Q, G as ye, e as Se, l as ee, bi as B, d as Y, b as ve, a as xe, o as be, p as we, g as Ce, s as Te, E as Le, bj as $e, q as Ae } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
3
|
+
import { s as Fe } from "./chunk-KBJHAD2P-B9qL0VLM.js";
|
|
4
|
+
import { p as Ne } from "./cynefin-VYW2F7L2-DAyxamLw.js";
|
|
5
|
+
import { b as I } from "./defaultLocale-BXpxsZAK.js";
|
|
6
|
+
import { o as K } from "./ordinal-D0x7izaa.js";
|
|
7
7
|
globalThis.process = globalThis.process || { env: {} };
|
|
8
8
|
globalThis.global = globalThis.global || globalThis;
|
|
9
|
-
function
|
|
9
|
+
function Me(e) {
|
|
10
10
|
var a = 0, n = e.children, l = n && n.length;
|
|
11
11
|
if (!l) a = 1;
|
|
12
12
|
else for (; --l >= 0; ) a += n[l].value;
|
|
13
13
|
e.value = a;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return this.eachAfter(
|
|
15
|
+
function _e() {
|
|
16
|
+
return this.eachAfter(Me);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ke(e, a) {
|
|
19
19
|
let n = -1;
|
|
20
20
|
for (const l of this)
|
|
21
21
|
e.call(a, l, ++n, this);
|
|
22
22
|
return this;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function ze(e, a) {
|
|
25
25
|
for (var n = this, l = [n], s, o, h = -1; n = l.pop(); )
|
|
26
26
|
if (e.call(a, n, ++h, this), s = n.children)
|
|
27
27
|
for (o = s.length - 1; o >= 0; --o)
|
|
28
28
|
l.push(s[o]);
|
|
29
29
|
return this;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
for (var n = this, l = [n], s = [], o, h, d,
|
|
31
|
+
function Ve(e, a) {
|
|
32
|
+
for (var n = this, l = [n], s = [], o, h, d, m = -1; n = l.pop(); )
|
|
33
33
|
if (s.push(n), o = n.children)
|
|
34
34
|
for (h = 0, d = o.length; h < d; ++h)
|
|
35
35
|
l.push(o[h]);
|
|
36
36
|
for (; n = s.pop(); )
|
|
37
|
-
e.call(a, n, ++
|
|
37
|
+
e.call(a, n, ++m, this);
|
|
38
38
|
return this;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function De(e, a) {
|
|
41
41
|
let n = -1;
|
|
42
42
|
for (const l of this)
|
|
43
43
|
if (e.call(a, l, ++n, this))
|
|
44
44
|
return l;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Pe(e) {
|
|
47
47
|
return this.eachAfter(function(a) {
|
|
48
48
|
for (var n = +e(a.data) || 0, l = a.children, s = l && l.length; --s >= 0; ) n += l[s].value;
|
|
49
49
|
a.value = n;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Be(e) {
|
|
53
53
|
return this.eachBefore(function(a) {
|
|
54
54
|
a.children && a.children.sort(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
for (var a = this, n =
|
|
57
|
+
function Ee(e) {
|
|
58
|
+
for (var a = this, n = Re(a, e), l = [a]; a !== n; )
|
|
59
59
|
a = a.parent, l.push(a);
|
|
60
60
|
for (var s = l.length; e !== n; )
|
|
61
61
|
l.splice(s, 0, e), e = e.parent;
|
|
62
62
|
return l;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Re(e, a) {
|
|
65
65
|
if (e === a) return e;
|
|
66
66
|
var n = e.ancestors(), l = a.ancestors(), s = null;
|
|
67
67
|
for (e = n.pop(), a = l.pop(); e === a; )
|
|
68
68
|
s = e, e = n.pop(), a = l.pop();
|
|
69
69
|
return s;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function We() {
|
|
72
72
|
for (var e = this, a = [e]; e = e.parent; )
|
|
73
73
|
a.push(e);
|
|
74
74
|
return a;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function He() {
|
|
77
77
|
return Array.from(this);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ie() {
|
|
80
80
|
var e = [];
|
|
81
81
|
return this.eachBefore(function(a) {
|
|
82
82
|
a.children || e.push(a);
|
|
83
83
|
}), e;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Oe() {
|
|
86
86
|
var e = this, a = [];
|
|
87
87
|
return e.each(function(n) {
|
|
88
88
|
n !== e && a.push({ source: n.parent, target: n });
|
|
89
89
|
}), a;
|
|
90
90
|
}
|
|
91
|
-
function*
|
|
91
|
+
function* Ge() {
|
|
92
92
|
var e = this, a, n = [e], l, s, o;
|
|
93
93
|
do
|
|
94
94
|
for (a = n.reverse(), n = []; e = a.pop(); )
|
|
@@ -97,53 +97,53 @@ function* Ee() {
|
|
|
97
97
|
n.push(l[s]);
|
|
98
98
|
while (n.length);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
e instanceof Map ? (e = [void 0, e], a === void 0 && (a =
|
|
102
|
-
for (var n = new
|
|
103
|
-
if ((h = a(l.data)) && (
|
|
104
|
-
for (l.children = h, d =
|
|
105
|
-
s.push(o = h[d] = new
|
|
106
|
-
return n.eachBefore(
|
|
100
|
+
function ae(e, a) {
|
|
101
|
+
e instanceof Map ? (e = [void 0, e], a === void 0 && (a = je)) : a === void 0 && (a = Xe);
|
|
102
|
+
for (var n = new Z(e), l, s = [n], o, h, d, m; l = s.pop(); )
|
|
103
|
+
if ((h = a(l.data)) && (m = (h = Array.from(h)).length))
|
|
104
|
+
for (l.children = h, d = m - 1; d >= 0; --d)
|
|
105
|
+
s.push(o = h[d] = new Z(h[d])), o.parent = l, o.depth = l.depth + 1;
|
|
106
|
+
return n.eachBefore(Ze);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function qe() {
|
|
109
|
+
return ae(this).eachBefore(Ye);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Xe(e) {
|
|
112
112
|
return e.children;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function je(e) {
|
|
115
115
|
return Array.isArray(e) ? e[1] : null;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ye(e) {
|
|
118
118
|
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ze(e) {
|
|
121
121
|
var a = 0;
|
|
122
122
|
do
|
|
123
123
|
e.height = a;
|
|
124
124
|
while ((e = e.parent) && e.height < ++a);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Z(e) {
|
|
127
127
|
this.data = e, this.depth = this.height = 0, this.parent = null;
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
constructor:
|
|
131
|
-
count:
|
|
132
|
-
each:
|
|
133
|
-
eachAfter:
|
|
134
|
-
eachBefore:
|
|
135
|
-
find:
|
|
136
|
-
sum:
|
|
137
|
-
sort:
|
|
138
|
-
path:
|
|
139
|
-
ancestors:
|
|
140
|
-
descendants:
|
|
141
|
-
leaves:
|
|
142
|
-
links:
|
|
143
|
-
copy:
|
|
144
|
-
[Symbol.iterator]:
|
|
129
|
+
Z.prototype = ae.prototype = {
|
|
130
|
+
constructor: Z,
|
|
131
|
+
count: _e,
|
|
132
|
+
each: ke,
|
|
133
|
+
eachAfter: Ve,
|
|
134
|
+
eachBefore: ze,
|
|
135
|
+
find: De,
|
|
136
|
+
sum: Pe,
|
|
137
|
+
sort: Be,
|
|
138
|
+
path: Ee,
|
|
139
|
+
ancestors: We,
|
|
140
|
+
descendants: He,
|
|
141
|
+
leaves: Ie,
|
|
142
|
+
links: Oe,
|
|
143
|
+
copy: qe,
|
|
144
|
+
[Symbol.iterator]: Ge
|
|
145
145
|
};
|
|
146
|
-
function
|
|
146
|
+
function Ue(e) {
|
|
147
147
|
if (typeof e != "function") throw new Error();
|
|
148
148
|
return e;
|
|
149
149
|
}
|
|
@@ -155,77 +155,77 @@ function G(e) {
|
|
|
155
155
|
return e;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Je(e) {
|
|
159
159
|
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
for (var o = e.children, h, d = -1,
|
|
161
|
+
function Ke(e, a, n, l, s) {
|
|
162
|
+
for (var o = e.children, h, d = -1, m = o.length, c = e.value && (l - a) / e.value; ++d < m; )
|
|
163
163
|
h = o[d], h.y0 = n, h.y1 = s, h.x0 = a, h.x1 = a += h.value * c;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
for (var o = e.children, h, d = -1,
|
|
165
|
+
function Qe(e, a, n, l, s) {
|
|
166
|
+
for (var o = e.children, h, d = -1, m = o.length, c = e.value && (s - n) / e.value; ++d < m; )
|
|
167
167
|
h = o[d], h.x0 = a, h.x1 = l, h.y0 = n, h.y1 = n += h.value * c;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
function
|
|
171
|
-
for (var h = [], d = a.children,
|
|
169
|
+
var et = (1 + Math.sqrt(5)) / 2;
|
|
170
|
+
function tt(e, a, n, l, s, o) {
|
|
171
|
+
for (var h = [], d = a.children, m, c, p = 0, b = 0, r = d.length, x, S, v = a.value, u, y, N, $, V, R, M; p < r; ) {
|
|
172
172
|
x = s - n, S = o - l;
|
|
173
173
|
do
|
|
174
|
-
|
|
175
|
-
while (!
|
|
176
|
-
for (
|
|
177
|
-
if (
|
|
178
|
-
|
|
174
|
+
u = d[b++].value;
|
|
175
|
+
while (!u && b < r);
|
|
176
|
+
for (y = N = u, R = Math.max(S / x, x / S) / (v * e), M = u * u * R, V = Math.max(N / M, M / y); b < r; ++b) {
|
|
177
|
+
if (u += c = d[b].value, c < y && (y = c), c > N && (N = c), M = u * u * R, $ = Math.max(N / M, M / y), $ > V) {
|
|
178
|
+
u -= c;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
V = $;
|
|
182
182
|
}
|
|
183
|
-
h.push(
|
|
183
|
+
h.push(m = { value: u, dice: x < S, children: d.slice(p, b) }), m.dice ? Ke(m, n, l, s, v ? l += S * u / v : o) : Qe(m, n, l, v ? n += x * u / v : s, o), v -= u, p = b;
|
|
184
184
|
}
|
|
185
185
|
return h;
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const at = (function e(a) {
|
|
188
188
|
function n(l, s, o, h, d) {
|
|
189
|
-
|
|
189
|
+
tt(a, l, s, o, h, d);
|
|
190
190
|
}
|
|
191
191
|
return n.ratio = function(l) {
|
|
192
192
|
return e((l = +l) > 1 ? l : 1);
|
|
193
193
|
}, n;
|
|
194
|
-
})(
|
|
195
|
-
function
|
|
196
|
-
var e =
|
|
197
|
-
function
|
|
198
|
-
return r.x0 = r.y0 = 0, r.x1 = n, r.y1 = l, r.eachBefore(b), s = [0], a && r.eachBefore(
|
|
194
|
+
})(et);
|
|
195
|
+
function nt() {
|
|
196
|
+
var e = at, a = !1, n = 1, l = 1, s = [0], o = O, h = O, d = O, m = O, c = O;
|
|
197
|
+
function p(r) {
|
|
198
|
+
return r.x0 = r.y0 = 0, r.x1 = n, r.y1 = l, r.eachBefore(b), s = [0], a && r.eachBefore(Je), r;
|
|
199
199
|
}
|
|
200
200
|
function b(r) {
|
|
201
|
-
var x = s[r.depth], S = r.x0 + x, v = r.y0 + x,
|
|
202
|
-
|
|
201
|
+
var x = s[r.depth], S = r.x0 + x, v = r.y0 + x, u = r.x1 - x, y = r.y1 - x;
|
|
202
|
+
u < S && (S = u = (S + u) / 2), y < v && (v = y = (v + y) / 2), r.x0 = S, r.y0 = v, r.x1 = u, r.y1 = y, r.children && (x = s[r.depth + 1] = o(r) / 2, S += c(r) - x, v += h(r) - x, u -= d(r) - x, y -= m(r) - x, u < S && (S = u = (S + u) / 2), y < v && (v = y = (v + y) / 2), e(r, S, v, u, y));
|
|
203
203
|
}
|
|
204
|
-
return
|
|
205
|
-
return arguments.length ? (a = !!r,
|
|
206
|
-
},
|
|
207
|
-
return arguments.length ? (n = +r[0], l = +r[1],
|
|
208
|
-
},
|
|
209
|
-
return arguments.length ? (e =
|
|
210
|
-
},
|
|
211
|
-
return arguments.length ?
|
|
212
|
-
},
|
|
213
|
-
return arguments.length ? (o = typeof r == "function" ? r : G(+r),
|
|
214
|
-
},
|
|
215
|
-
return arguments.length ?
|
|
216
|
-
},
|
|
217
|
-
return arguments.length ? (h = typeof r == "function" ? r : G(+r),
|
|
218
|
-
},
|
|
219
|
-
return arguments.length ? (d = typeof r == "function" ? r : G(+r),
|
|
220
|
-
},
|
|
221
|
-
return arguments.length ? (
|
|
222
|
-
},
|
|
223
|
-
return arguments.length ? (c = typeof r == "function" ? r : G(+r),
|
|
224
|
-
},
|
|
204
|
+
return p.round = function(r) {
|
|
205
|
+
return arguments.length ? (a = !!r, p) : a;
|
|
206
|
+
}, p.size = function(r) {
|
|
207
|
+
return arguments.length ? (n = +r[0], l = +r[1], p) : [n, l];
|
|
208
|
+
}, p.tile = function(r) {
|
|
209
|
+
return arguments.length ? (e = Ue(r), p) : e;
|
|
210
|
+
}, p.padding = function(r) {
|
|
211
|
+
return arguments.length ? p.paddingInner(r).paddingOuter(r) : p.paddingInner();
|
|
212
|
+
}, p.paddingInner = function(r) {
|
|
213
|
+
return arguments.length ? (o = typeof r == "function" ? r : G(+r), p) : o;
|
|
214
|
+
}, p.paddingOuter = function(r) {
|
|
215
|
+
return arguments.length ? p.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : p.paddingTop();
|
|
216
|
+
}, p.paddingTop = function(r) {
|
|
217
|
+
return arguments.length ? (h = typeof r == "function" ? r : G(+r), p) : h;
|
|
218
|
+
}, p.paddingRight = function(r) {
|
|
219
|
+
return arguments.length ? (d = typeof r == "function" ? r : G(+r), p) : d;
|
|
220
|
+
}, p.paddingBottom = function(r) {
|
|
221
|
+
return arguments.length ? (m = typeof r == "function" ? r : G(+r), p) : m;
|
|
222
|
+
}, p.paddingLeft = function(r) {
|
|
223
|
+
return arguments.length ? (c = typeof r == "function" ? r : G(+r), p) : c;
|
|
224
|
+
}, p;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var ie = class {
|
|
227
227
|
constructor() {
|
|
228
|
-
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle =
|
|
228
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = ve, this.getAccTitle = xe, this.setDiagramTitle = be, this.getDiagramTitle = we, this.getAccDescription = Ce, this.setAccDescription = Te;
|
|
229
229
|
}
|
|
230
230
|
static {
|
|
231
231
|
w(this, "TreeMapDB");
|
|
@@ -234,8 +234,8 @@ var ae = class {
|
|
|
234
234
|
return this.nodes;
|
|
235
235
|
}
|
|
236
236
|
getConfig() {
|
|
237
|
-
const e =
|
|
238
|
-
return
|
|
237
|
+
const e = Le, a = te();
|
|
238
|
+
return Q({
|
|
239
239
|
...e.treemap,
|
|
240
240
|
...a.treemap ?? {}
|
|
241
241
|
});
|
|
@@ -249,7 +249,7 @@ var ae = class {
|
|
|
249
249
|
addClass(e, a) {
|
|
250
250
|
const n = this.classes.get(e) ?? { id: e, styles: [], textStyles: [] }, l = a.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
251
251
|
l && l.forEach((s) => {
|
|
252
|
-
|
|
252
|
+
$e(s) && (n?.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n?.styles ? n.styles.push(s) : n.styles = [s];
|
|
253
253
|
}), this.classes.set(e, n);
|
|
254
254
|
}
|
|
255
255
|
getClasses() {
|
|
@@ -259,10 +259,10 @@ var ae = class {
|
|
|
259
259
|
return this.classes.get(e)?.styles ?? [];
|
|
260
260
|
}
|
|
261
261
|
clear() {
|
|
262
|
-
|
|
262
|
+
Ae(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
|
-
function
|
|
265
|
+
function oe(e) {
|
|
266
266
|
if (!e.length)
|
|
267
267
|
return [];
|
|
268
268
|
const a = [], n = [];
|
|
@@ -282,9 +282,9 @@ function ne(e) {
|
|
|
282
282
|
l.type !== "Leaf" && n.push({ node: s, level: l.level });
|
|
283
283
|
}), a;
|
|
284
284
|
}
|
|
285
|
-
w(
|
|
286
|
-
var
|
|
287
|
-
|
|
285
|
+
w(oe, "buildHierarchy");
|
|
286
|
+
var lt = /* @__PURE__ */ w((e, a) => {
|
|
287
|
+
ge(e, a);
|
|
288
288
|
const n = [];
|
|
289
289
|
for (const o of e.TreemapRows ?? [])
|
|
290
290
|
o.$type === "ClassDefStatement" && a.addClass(o.className ?? "", o.styleText ?? "");
|
|
@@ -292,61 +292,61 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
292
292
|
const h = o.item;
|
|
293
293
|
if (!h)
|
|
294
294
|
continue;
|
|
295
|
-
const d = o.indent ? parseInt(o.indent) : 0,
|
|
295
|
+
const d = o.indent ? parseInt(o.indent) : 0, m = st(h), c = h.classSelector ? a.getStylesForClass(h.classSelector) : [], p = c.length > 0 ? c : void 0, b = {
|
|
296
296
|
level: d,
|
|
297
|
-
name:
|
|
297
|
+
name: m,
|
|
298
298
|
type: h.$type,
|
|
299
299
|
value: h.value,
|
|
300
300
|
classSelector: h.classSelector,
|
|
301
|
-
cssCompiledStyles:
|
|
301
|
+
cssCompiledStyles: p
|
|
302
302
|
};
|
|
303
303
|
n.push(b);
|
|
304
304
|
}
|
|
305
|
-
const l =
|
|
305
|
+
const l = oe(n), s = /* @__PURE__ */ w((o, h) => {
|
|
306
306
|
for (const d of o)
|
|
307
307
|
a.addNode(d, h), d.children && d.children.length > 0 && s(d.children, h + 1);
|
|
308
308
|
}, "addNodesRecursively");
|
|
309
309
|
s(l, 0);
|
|
310
|
-
}, "populate"),
|
|
310
|
+
}, "populate"), st = /* @__PURE__ */ w((e) => e.name ? String(e.name) : "", "getItemName"), ce = {
|
|
311
311
|
// @ts-expect-error - TreeMapDB is not assignable to DiagramDB
|
|
312
312
|
parser: { yy: void 0 },
|
|
313
313
|
parse: /* @__PURE__ */ w(async (e) => {
|
|
314
314
|
try {
|
|
315
|
-
const n = await
|
|
316
|
-
|
|
317
|
-
const l =
|
|
318
|
-
if (!(l instanceof
|
|
315
|
+
const n = await Ne("treemap", e);
|
|
316
|
+
ee.debug("Treemap AST:", n);
|
|
317
|
+
const l = ce.parser?.yy;
|
|
318
|
+
if (!(l instanceof ie))
|
|
319
319
|
throw new Error(
|
|
320
320
|
"parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
lt(n, l);
|
|
323
323
|
} catch (a) {
|
|
324
|
-
throw
|
|
324
|
+
throw ee.error("Error parsing treemap:", a), a;
|
|
325
325
|
}
|
|
326
326
|
}, "parse")
|
|
327
|
-
},
|
|
328
|
-
const s = l.db, o = s.getConfig(), h = o.padding ??
|
|
329
|
-
if (!
|
|
327
|
+
}, rt = 10, E = 10, q = 25, it = /* @__PURE__ */ w((e, a, n, l) => {
|
|
328
|
+
const s = l.db, o = s.getConfig(), h = o.padding ?? rt, d = s.getDiagramTitle(), m = s.getRoot(), { themeVariables: c } = te();
|
|
329
|
+
if (!m)
|
|
330
330
|
return;
|
|
331
|
-
const
|
|
332
|
-
b.attr("viewBox", `0 0 ${S} ${v}`),
|
|
333
|
-
let
|
|
331
|
+
const p = d ? 30 : 0, b = ye(a), r = o.nodeWidth ? o.nodeWidth * E : 960, x = o.nodeHeight ? o.nodeHeight * E : 500, S = r, v = x + p;
|
|
332
|
+
b.attr("viewBox", `0 0 ${S} ${v}`), Se(b, v, S, o.useMaxWidth);
|
|
333
|
+
let u;
|
|
334
334
|
try {
|
|
335
335
|
const t = o.valueFormat || ",";
|
|
336
336
|
if (t === "$0,0")
|
|
337
|
-
|
|
337
|
+
u = /* @__PURE__ */ w((i) => "$" + I(",")(i), "valueFormat");
|
|
338
338
|
else if (t.startsWith("$") && t.includes(",")) {
|
|
339
339
|
const i = /\.\d+/.exec(t), f = i ? i[0] : "";
|
|
340
|
-
|
|
340
|
+
u = /* @__PURE__ */ w((C) => "$" + I("," + f)(C), "valueFormat");
|
|
341
341
|
} else if (t.startsWith("$")) {
|
|
342
342
|
const i = t.substring(1);
|
|
343
|
-
|
|
343
|
+
u = /* @__PURE__ */ w((f) => "$" + I(i || "")(f), "valueFormat");
|
|
344
344
|
} else
|
|
345
|
-
|
|
345
|
+
u = I(t);
|
|
346
346
|
} catch (t) {
|
|
347
|
-
|
|
347
|
+
ee.error("Error creating format function:", t), u = I(",");
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const y = K().range([
|
|
350
350
|
"transparent",
|
|
351
351
|
c.cScale0,
|
|
352
352
|
c.cScale1,
|
|
@@ -360,7 +360,7 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
360
360
|
c.cScale9,
|
|
361
361
|
c.cScale10,
|
|
362
362
|
c.cScale11
|
|
363
|
-
]),
|
|
363
|
+
]), N = K().range([
|
|
364
364
|
"transparent",
|
|
365
365
|
c.cScalePeer0,
|
|
366
366
|
c.cScalePeer1,
|
|
@@ -374,7 +374,7 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
374
374
|
c.cScalePeer9,
|
|
375
375
|
c.cScalePeer10,
|
|
376
376
|
c.cScalePeer11
|
|
377
|
-
]),
|
|
377
|
+
]), $ = K().range([
|
|
378
378
|
c.cScaleLabel0,
|
|
379
379
|
c.cScaleLabel1,
|
|
380
380
|
c.cScaleLabel2,
|
|
@@ -388,19 +388,19 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
388
388
|
c.cScaleLabel10,
|
|
389
389
|
c.cScaleLabel11
|
|
390
390
|
]);
|
|
391
|
-
d && b.append("text").attr("x", S / 2).attr("y",
|
|
392
|
-
const
|
|
393
|
-
(t) => t.children && t.children.length > 0 ? q +
|
|
394
|
-
).paddingInner(h).paddingLeft((t) => t.children && t.children.length > 0 ?
|
|
395
|
-
|
|
391
|
+
d && b.append("text").attr("x", S / 2).attr("y", p / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
|
|
392
|
+
const V = b.append("g").attr("transform", `translate(0, ${p})`).attr("class", "treemapContainer"), R = ae(m).sum((t) => t.value ?? 0).sort((t, i) => (i.value ?? 0) - (t.value ?? 0)), ne = nt().size([r, x]).paddingTop(
|
|
393
|
+
(t) => t.children && t.children.length > 0 ? q + E : 0
|
|
394
|
+
).paddingInner(h).paddingLeft((t) => t.children && t.children.length > 0 ? E : 0).paddingRight((t) => t.children && t.children.length > 0 ? E : 0).paddingBottom((t) => t.children && t.children.length > 0 ? E : 0).round(!0)(R), he = ne.descendants().filter((t) => t.children && t.children.length > 0), W = V.selectAll(".treemapSection").data(he).enter().append("g").attr("class", "treemapSection").attr("transform", (t) => `translate(${t.x0},${t.y0})`);
|
|
395
|
+
W.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", q).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (t) => t.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (t, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 12)).attr("height", q), W.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", (t, i) => `treemapSection section${i}`).attr("fill", (t) => y(t.data.name)).attr("fill-opacity", 0.6).attr("stroke", (t) => N(t.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (t) => {
|
|
396
396
|
if (t.depth === 0)
|
|
397
397
|
return "display: none;";
|
|
398
398
|
const i = B({ cssCompiledStyles: t.data.cssCompiledStyles });
|
|
399
399
|
return i.nodeStyles + ";" + i.borderStyles.join(";");
|
|
400
|
-
}),
|
|
400
|
+
}), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", q / 2).attr("dominant-baseline", "middle").text((t) => t.depth === 0 ? "" : t.data.name).attr("font-weight", "bold").attr("clip-path", (t, i) => `url(#clip-section-${a}-${i})`).attr("style", (t) => {
|
|
401
401
|
if (t.depth === 0)
|
|
402
402
|
return "display: none;";
|
|
403
|
-
const i = "dominant-baseline: middle; font-size: 12px; fill:" +
|
|
403
|
+
const i = "dominant-baseline: middle; font-size: 12px; fill:" + $(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: t.data.cssCompiledStyles });
|
|
404
404
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
405
405
|
}).each(function(t) {
|
|
406
406
|
if (t.depth === 0)
|
|
@@ -408,56 +408,56 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
408
408
|
const i = Y(this), f = t.data.name;
|
|
409
409
|
i.text(f);
|
|
410
410
|
const C = t.x1 - t.x0, L = 6;
|
|
411
|
-
let
|
|
412
|
-
o.showValues !== !1 && t.value ?
|
|
413
|
-
const
|
|
414
|
-
if (
|
|
415
|
-
let
|
|
416
|
-
for (;
|
|
417
|
-
if (
|
|
418
|
-
i.text("..."),
|
|
411
|
+
let T;
|
|
412
|
+
o.showValues !== !1 && t.value ? T = C - 10 - 30 - 10 - L : T = C - L - 6;
|
|
413
|
+
const g = Math.max(15, T), _ = i.node();
|
|
414
|
+
if (_.getComputedTextLength() > g) {
|
|
415
|
+
let z = f;
|
|
416
|
+
for (; z.length > 0; ) {
|
|
417
|
+
if (z = f.substring(0, z.length - 1), z.length === 0) {
|
|
418
|
+
i.text("..."), _.getComputedTextLength() > g && i.text("");
|
|
419
419
|
break;
|
|
420
420
|
}
|
|
421
|
-
if (i.text(
|
|
421
|
+
if (i.text(z + "..."), _.getComputedTextLength() <= g)
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
}), o.showValues !== !1 &&
|
|
425
|
+
}), o.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (t) => t.x1 - t.x0 - 10).attr("y", q / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((t) => t.value ? u(t.value) : "").attr("font-style", "italic").attr("style", (t) => {
|
|
426
426
|
if (t.depth === 0)
|
|
427
427
|
return "display: none;";
|
|
428
|
-
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" +
|
|
428
|
+
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + $(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: t.data.cssCompiledStyles });
|
|
429
429
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
430
430
|
});
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
const i =
|
|
431
|
+
const le = ne.leaves(), A = le.length > 20, de = A ? 16 : 38, X = A ? 14 : 28, D = A ? 4 : 8, H = A ? 4 : 6, U = A ? 2 : 4, se = A ? 8 : 10, J = A ? 1 : 2, j = V.selectAll(".treemapLeafGroup").data(le).enter().append("g").attr("class", (t, i) => `treemapNode treemapLeafGroup leaf${i}${t.data.classSelector ? ` ${t.data.classSelector}` : ""}x`).attr("transform", (t) => `translate(${t.x0},${t.y0})`);
|
|
432
|
+
j.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", "treemapLeaf").attr("fill", (t) => t.parent ? y(t.parent.data.name) : y(t.data.name)).attr("style", (t) => B({ cssCompiledStyles: t.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (t) => t.parent ? y(t.parent.data.name) : y(t.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (t, i) => `clip-${a}-${i}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 4)).attr("height", (t) => Math.max(0, t.y1 - t.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (t) => (t.x1 - t.x0) / 2).attr("y", (t) => (t.y1 - t.y0) / 2).attr("style", (t) => {
|
|
433
|
+
const i = `text-anchor: middle; dominant-baseline: middle; font-size: ${de}px;fill:` + $(t.data.name) + ";", f = B({ cssCompiledStyles: t.data.cssCompiledStyles });
|
|
434
434
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
435
435
|
}).attr("clip-path", (t, i) => `url(#clip-${a}-${i})`).text((t) => t.data.name).each(function(t) {
|
|
436
|
-
const i = Y(this), f = t.x1 - t.x0, C = t.y1 - t.y0, L = i.node(),
|
|
437
|
-
if (
|
|
436
|
+
const i = Y(this), f = t.x1 - t.x0, C = t.y1 - t.y0, L = i.node(), T = f - 2 * U, P = C - 2 * U;
|
|
437
|
+
if (T < se || P < se) {
|
|
438
438
|
i.style("display", "none");
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
let
|
|
442
|
-
const _ =
|
|
443
|
-
for (; L.getComputedTextLength() >
|
|
444
|
-
|
|
445
|
-
let
|
|
446
|
-
|
|
447
|
-
Math.min(
|
|
448
|
-
),
|
|
449
|
-
for (;
|
|
450
|
-
|
|
451
|
-
Math.min(
|
|
452
|
-
), !(
|
|
453
|
-
i.style("font-size", `${
|
|
454
|
-
i.style("font-size", `${
|
|
455
|
-
}), o.showValues !== !1 &&
|
|
441
|
+
let g = parseInt(i.style("font-size"), 10);
|
|
442
|
+
const _ = 0.6;
|
|
443
|
+
for (; L.getComputedTextLength() > T && g > D; )
|
|
444
|
+
g--, i.style("font-size", `${g}px`);
|
|
445
|
+
let F = Math.max(
|
|
446
|
+
H,
|
|
447
|
+
Math.min(X, Math.round(g * _))
|
|
448
|
+
), k = g + J + F;
|
|
449
|
+
for (; k > P && g > D && (g--, F = Math.max(
|
|
450
|
+
H,
|
|
451
|
+
Math.min(X, Math.round(g * _))
|
|
452
|
+
), !(F < H && g === D)); )
|
|
453
|
+
i.style("font-size", `${g}px`), k = g + J + F;
|
|
454
|
+
i.style("font-size", `${g}px`), A ? (g < D || P < D) && i.style("display", "none") : (L.getComputedTextLength() > T || g < D || P < g) && i.style("display", "none");
|
|
455
|
+
}), o.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
|
|
456
456
|
return (i.y1 - i.y0) / 2;
|
|
457
457
|
}).attr("style", (i) => {
|
|
458
|
-
const f =
|
|
458
|
+
const f = `text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:` + $(i.data.name) + ";", C = B({ cssCompiledStyles: i.data.cssCompiledStyles });
|
|
459
459
|
return f + C.labelStyles.replace("color:", "fill:");
|
|
460
|
-
}).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ?
|
|
460
|
+
}).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? u(i.value) : "").each(function(i) {
|
|
461
461
|
const f = Y(this), C = this.parentNode;
|
|
462
462
|
if (!C) {
|
|
463
463
|
f.style("display", "none");
|
|
@@ -468,21 +468,21 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
468
468
|
f.style("display", "none");
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
Math.min(
|
|
471
|
+
const T = parseFloat(L.style("font-size")), g = Math.max(
|
|
472
|
+
H,
|
|
473
|
+
Math.min(X, Math.round(T * 0.6))
|
|
474
474
|
);
|
|
475
|
-
f.style("font-size", `${
|
|
476
|
-
const
|
|
477
|
-
f.attr("y",
|
|
478
|
-
const
|
|
479
|
-
f.node().getComputedTextLength() >
|
|
475
|
+
f.style("font-size", `${g}px`);
|
|
476
|
+
const F = (i.y1 - i.y0) / 2 + T / 2 + J;
|
|
477
|
+
f.attr("y", F);
|
|
478
|
+
const k = i.x1 - i.x0, re = i.y1 - i.y0 - 4, fe = k - 2 * U;
|
|
479
|
+
f.node().getComputedTextLength() > fe || F + g > re || g < H ? f.style("display", "none") : f.style("display", null);
|
|
480
480
|
});
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
}, "draw"),
|
|
481
|
+
const pe = o.diagramPadding ?? 8;
|
|
482
|
+
Fe(b, pe, "flowchart", o?.useMaxWidth || !1);
|
|
483
|
+
}, "draw"), ot = /* @__PURE__ */ w(function(e, a) {
|
|
484
484
|
return a.db.getClasses();
|
|
485
|
-
}, "getClasses"),
|
|
485
|
+
}, "getClasses"), ct = { draw: it, getClasses: ot }, ht = {
|
|
486
486
|
sectionStrokeColor: "black",
|
|
487
487
|
sectionStrokeWidth: "1",
|
|
488
488
|
sectionFillColor: "#efefef",
|
|
@@ -492,10 +492,10 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
492
492
|
labelFontSize: "12px",
|
|
493
493
|
valueFontSize: "10px",
|
|
494
494
|
titleFontSize: "14px"
|
|
495
|
-
},
|
|
495
|
+
}, dt = /* @__PURE__ */ w(({
|
|
496
496
|
treemap: e
|
|
497
497
|
} = {}) => {
|
|
498
|
-
const a =
|
|
498
|
+
const a = me(), n = te(), l = Q(a, n.themeVariables), s = Q(ht, e), o = s.titleColor ?? l.titleColor, h = s.labelColor ?? l.textColor, d = s.valueColor ?? l.textColor;
|
|
499
499
|
return `
|
|
500
500
|
.treemapNode.section {
|
|
501
501
|
stroke: ${s.sectionStrokeColor};
|
|
@@ -520,15 +520,15 @@ var Qe = /* @__PURE__ */ w((e, a) => {
|
|
|
520
520
|
font-size: ${s.titleFontSize};
|
|
521
521
|
}
|
|
522
522
|
`;
|
|
523
|
-
}, "getStyles"),
|
|
524
|
-
parser:
|
|
523
|
+
}, "getStyles"), pt = dt, xt = {
|
|
524
|
+
parser: ce,
|
|
525
525
|
get db() {
|
|
526
|
-
return new
|
|
526
|
+
return new ie();
|
|
527
527
|
},
|
|
528
|
-
renderer:
|
|
529
|
-
styles:
|
|
528
|
+
renderer: ct,
|
|
529
|
+
styles: pt
|
|
530
530
|
};
|
|
531
531
|
export {
|
|
532
|
-
|
|
532
|
+
xt as diagram
|
|
533
533
|
};
|
|
534
|
-
//# sourceMappingURL=diagram-
|
|
534
|
+
//# sourceMappingURL=diagram-Q27KOJAE-WACyk_gr.js.map
|