@kong-ui-public/documentation 1.5.78 → 1.6.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/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
- package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
- package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
- package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
- package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
- package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
- package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
- package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
- package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
- package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
- package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
- package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
- package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
- package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
- package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
- package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
- package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +374 -374
- package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
- package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
- package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
- package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
- package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
- package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
- package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
- package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
- package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
- package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
- package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
- package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
- package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
- package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
- package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
- package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
- package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
- package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
- package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
- package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
- package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
- package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
- package/package.json +4 -4
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
- package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
- package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as v, S as $, V as d, X as A, _ as j } from "./index-
|
|
1
|
+
import { P as v, S as $, V as d, X as A, _ as j } from "./index-DfVKdDwj.js";
|
|
2
2
|
import { o as q, y as D, v as V, n as M } from "./defaultLocale-mtMQ0U8A-D6jPixjH.js";
|
|
3
3
|
import { e as S } from "./init-8lPFe2y8-B2MlpiqM.js";
|
|
4
4
|
function g(n, r) {
|
|
@@ -78,7 +78,7 @@ function W(n, r, a) {
|
|
|
78
78
|
return (t ? -1 : 1) * (i < 0 ? 1 / -i : i);
|
|
79
79
|
}
|
|
80
80
|
function _(n, r) {
|
|
81
|
-
r
|
|
81
|
+
r ||= [];
|
|
82
82
|
var a = n ? Math.min(r.length, n.length) : 0, t = r.slice(), i;
|
|
83
83
|
return function(f) {
|
|
84
84
|
for (i = 0; i < a; ++i) t[i] = n[i] * (1 - f) + r[i] * f;
|
|
@@ -176,10 +176,10 @@ function un() {
|
|
|
176
176
|
return o !== m && (o = Z(n[0], n[s - 1])), e = s > 2 ? rn : nn, c = u = null, l;
|
|
177
177
|
}
|
|
178
178
|
function l(s) {
|
|
179
|
-
return s == null || isNaN(s = +s) ? f : (c
|
|
179
|
+
return s == null || isNaN(s = +s) ? f : (c ||= e(n.map(t), r, a))(t(o(s)));
|
|
180
180
|
}
|
|
181
181
|
return l.invert = function(s) {
|
|
182
|
-
return o(i((u
|
|
182
|
+
return o(i((u ||= e(r, n.map(t), v))(s)));
|
|
183
183
|
}, l.domain = function(s) {
|
|
184
184
|
return arguments.length ? (n = Array.from(s, Y), h()) : n.slice();
|
|
185
185
|
}, l.range = function(s) {
|
|
@@ -228,7 +228,7 @@ function en(n) {
|
|
|
228
228
|
var i = r();
|
|
229
229
|
return on(i[0], i[i.length - 1], a ?? 10, t);
|
|
230
230
|
}, n.nice = function(a) {
|
|
231
|
-
a
|
|
231
|
+
a ??= 10;
|
|
232
232
|
var t = r(), i = 0, f = t.length - 1, o = t[i], e = t[f], c, u, h = 10;
|
|
233
233
|
for (e < o && (u = o, o = e, e = u, u = i, i = f, f = u); h-- > 0; ) {
|
|
234
234
|
if (u = N(o, e, a), u === c) return t[i] = o, t[f] = e, r(t);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { p as c, g as
|
|
2
|
-
import { n as pt } from "./chunk-55IACEB6-DZn1aNO0-
|
|
3
|
-
import { r as yt } from "./chunk-2J33WTMH-CBbjVzWb-
|
|
4
|
-
var
|
|
1
|
+
import { p as c, g as I, d as rt, e as at, o as lt, F, ar as ct, as as ht, at as dt, Z as A, c as U, aw as gt, ax as ut } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { n as pt } from "./chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js";
|
|
3
|
+
import { r as yt } from "./chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js";
|
|
4
|
+
var z = (function() {
|
|
5
5
|
var i = /* @__PURE__ */ c(function(e, h, a, o) {
|
|
6
|
-
for (a
|
|
6
|
+
for (a ||= {}, o = e.length; o--; a[e[o]] = h) ;
|
|
7
7
|
return a;
|
|
8
8
|
}, "o"), t = [1, 4], r = [1, 13], d = [1, 12], n = [1, 15], l = [1, 16], u = [1, 20], _ = [1, 19], y = [
|
|
9
9
|
6,
|
|
10
10
|
7,
|
|
11
11
|
8
|
|
12
|
-
],
|
|
12
|
+
], S = [1, 26], C = [1, 24], m = [1, 25], E = [
|
|
13
13
|
6,
|
|
14
14
|
7,
|
|
15
15
|
11
|
|
16
|
-
],
|
|
16
|
+
], Z = [
|
|
17
17
|
1,
|
|
18
18
|
6,
|
|
19
19
|
13,
|
|
@@ -21,7 +21,7 @@ var V = function() {
|
|
|
21
21
|
16,
|
|
22
22
|
19,
|
|
23
23
|
22
|
|
24
|
-
],
|
|
24
|
+
], V = [1, 33], Y = [1, 34], T = [
|
|
25
25
|
1,
|
|
26
26
|
6,
|
|
27
27
|
7,
|
|
@@ -31,7 +31,7 @@ var V = function() {
|
|
|
31
31
|
16,
|
|
32
32
|
19,
|
|
33
33
|
22
|
|
34
|
-
],
|
|
34
|
+
], G = {
|
|
35
35
|
trace: /* @__PURE__ */ c(function() {
|
|
36
36
|
}, "trace"),
|
|
37
37
|
yy: {},
|
|
@@ -104,7 +104,7 @@ var V = function() {
|
|
|
104
104
|
[17, 1],
|
|
105
105
|
[17, 4]
|
|
106
106
|
],
|
|
107
|
-
performAction: /* @__PURE__ */ c(function(e, h, a, o, p, s,
|
|
107
|
+
performAction: /* @__PURE__ */ c(function(e, h, a, o, p, s, R) {
|
|
108
108
|
var g = s.length - 1;
|
|
109
109
|
switch (p) {
|
|
110
110
|
case 6:
|
|
@@ -225,10 +225,10 @@ var V = function() {
|
|
|
225
225
|
22: _
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
6:
|
|
229
|
-
7:
|
|
228
|
+
6: S,
|
|
229
|
+
7: C,
|
|
230
230
|
10: 23,
|
|
231
|
-
11:
|
|
231
|
+
11: m
|
|
232
232
|
},
|
|
233
233
|
i(E, [2, 22], {
|
|
234
234
|
17: 17,
|
|
@@ -248,10 +248,10 @@ var V = function() {
|
|
|
248
248
|
i(E, [2, 26], { 19: [1, 30] }),
|
|
249
249
|
{ 20: [1, 31] },
|
|
250
250
|
{
|
|
251
|
-
6:
|
|
252
|
-
7:
|
|
251
|
+
6: S,
|
|
252
|
+
7: C,
|
|
253
253
|
10: 32,
|
|
254
|
-
11:
|
|
254
|
+
11: m
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
1: [2, 7],
|
|
@@ -266,24 +266,24 @@ var V = function() {
|
|
|
266
266
|
19: u,
|
|
267
267
|
22: _
|
|
268
268
|
},
|
|
269
|
-
i(
|
|
270
|
-
7:
|
|
269
|
+
i(Z, [2, 14], {
|
|
270
|
+
7: V,
|
|
271
271
|
11: Y
|
|
272
272
|
}),
|
|
273
|
-
i(
|
|
274
|
-
i(
|
|
275
|
-
i(
|
|
273
|
+
i(T, [2, 8]),
|
|
274
|
+
i(T, [2, 9]),
|
|
275
|
+
i(T, [2, 10]),
|
|
276
276
|
i(E, [2, 15]),
|
|
277
277
|
i(E, [2, 16]),
|
|
278
278
|
i(E, [2, 17]),
|
|
279
279
|
{ 20: [1, 35] },
|
|
280
280
|
{ 21: [1, 36] },
|
|
281
|
-
i(
|
|
282
|
-
7:
|
|
281
|
+
i(Z, [2, 13], {
|
|
282
|
+
7: V,
|
|
283
283
|
11: Y
|
|
284
284
|
}),
|
|
285
|
-
i(
|
|
286
|
-
i(
|
|
285
|
+
i(T, [2, 11]),
|
|
286
|
+
i(T, [2, 12]),
|
|
287
287
|
{ 21: [1, 37] },
|
|
288
288
|
i(E, [2, 25]),
|
|
289
289
|
i(E, [2, 27])
|
|
@@ -300,13 +300,13 @@ var V = function() {
|
|
|
300
300
|
}
|
|
301
301
|
}, "parseError"),
|
|
302
302
|
parse: /* @__PURE__ */ c(function(e) {
|
|
303
|
-
var h = this, a = [0], o = [], p = [null], s = [],
|
|
304
|
-
for (var
|
|
305
|
-
f.setInput(e,
|
|
306
|
-
var
|
|
307
|
-
s.push(
|
|
303
|
+
var h = this, a = [0], o = [], p = [null], s = [], R = this.table, g = "", B = 0, q = 0, et = 0, nt = 2, J = 1, it = s.slice.call(arguments, 1), f = Object.create(this.lexer), D = { yy: {} };
|
|
304
|
+
for (var j in this.yy) Object.prototype.hasOwnProperty.call(this.yy, j) && (D.yy[j] = this.yy[j]);
|
|
305
|
+
f.setInput(e, D.yy), D.yy.lexer = f, D.yy.parser = this, f.yylloc === void 0 && (f.yylloc = {});
|
|
306
|
+
var H = f.yylloc;
|
|
307
|
+
s.push(H);
|
|
308
308
|
var st = f.options && f.options.ranges;
|
|
309
|
-
typeof
|
|
309
|
+
typeof D.yy.parseError == "function" ? this.parseError = D.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
310
310
|
function ot(N) {
|
|
311
311
|
a.length -= 2 * N, p.length -= N, s.length -= N;
|
|
312
312
|
}
|
|
@@ -316,41 +316,41 @@ var V = function() {
|
|
|
316
316
|
return typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = h.symbols_[N] || N), N;
|
|
317
317
|
}
|
|
318
318
|
c(K, "lex");
|
|
319
|
-
for (var b,
|
|
320
|
-
if (
|
|
319
|
+
for (var b, W, $, k, X, O = {}, P, L, Q, M; ; ) {
|
|
320
|
+
if ($ = a[a.length - 1], this.defaultActions[$] ? k = this.defaultActions[$] : (b ??= K(), k = R[$] && R[$][b]), k === void 0 || !k.length || !k[0]) {
|
|
321
321
|
var tt = "";
|
|
322
|
-
for (
|
|
323
|
-
tt = f.showPosition ? "Parse error on line " + (
|
|
322
|
+
for (P in M = [], R[$]) this.terminals_[P] && P > nt && M.push("'" + this.terminals_[P] + "'");
|
|
323
|
+
tt = f.showPosition ? "Parse error on line " + (B + 1) + `:
|
|
324
324
|
` + f.showPosition() + `
|
|
325
|
-
Expecting ` +
|
|
325
|
+
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : "Parse error on line " + (B + 1) + ": Unexpected " + (b == J ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(tt, {
|
|
326
326
|
text: f.match,
|
|
327
327
|
token: this.terminals_[b] || b,
|
|
328
328
|
line: f.yylineno,
|
|
329
|
-
loc:
|
|
330
|
-
expected:
|
|
329
|
+
loc: H,
|
|
330
|
+
expected: M
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
if (k[0] instanceof Array && k.length > 1) throw Error("Parse Error: multiple actions possible at state: " +
|
|
333
|
+
if (k[0] instanceof Array && k.length > 1) throw Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + b);
|
|
334
334
|
switch (k[0]) {
|
|
335
335
|
case 1:
|
|
336
|
-
a.push(b), p.push(f.yytext), s.push(f.yylloc), a.push(k[1]), b = null,
|
|
336
|
+
a.push(b), p.push(f.yytext), s.push(f.yylloc), a.push(k[1]), b = null, W ? (b = W, W = null) : (q = f.yyleng, g = f.yytext, B = f.yylineno, H = f.yylloc, et > 0);
|
|
337
337
|
break;
|
|
338
338
|
case 2:
|
|
339
|
-
if (
|
|
340
|
-
first_line: s[s.length - (
|
|
339
|
+
if (L = this.productions_[k[1]][1], O.$ = p[p.length - L], O._$ = {
|
|
340
|
+
first_line: s[s.length - (L || 1)].first_line,
|
|
341
341
|
last_line: s[s.length - 1].last_line,
|
|
342
|
-
first_column: s[s.length - (
|
|
342
|
+
first_column: s[s.length - (L || 1)].first_column,
|
|
343
343
|
last_column: s[s.length - 1].last_column
|
|
344
|
-
}, st && (
|
|
344
|
+
}, st && (O._$.range = [s[s.length - (L || 1)].range[0], s[s.length - 1].range[1]]), X = this.performAction.apply(O, [
|
|
345
345
|
g,
|
|
346
346
|
q,
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
B,
|
|
348
|
+
D.yy,
|
|
349
349
|
k[1],
|
|
350
350
|
p,
|
|
351
351
|
s
|
|
352
|
-
].concat(it)),
|
|
353
|
-
|
|
352
|
+
].concat(it)), X !== void 0) return X;
|
|
353
|
+
L && (a = a.slice(0, -1 * L * 2), p = p.slice(0, -1 * L), s = s.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), p.push(O.$), s.push(O._$), Q = R[a[a.length - 2]][a[a.length - 1]], a.push(Q);
|
|
354
354
|
break;
|
|
355
355
|
case 3:
|
|
356
356
|
return !0;
|
|
@@ -359,7 +359,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : "Pars
|
|
|
359
359
|
return !0;
|
|
360
360
|
}, "parse")
|
|
361
361
|
};
|
|
362
|
-
|
|
362
|
+
G.lexer = /* @__PURE__ */ (function() {
|
|
363
363
|
return {
|
|
364
364
|
EOF: 1,
|
|
365
365
|
parseError: /* @__PURE__ */ c(function(e, h) {
|
|
@@ -679,14 +679,14 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : "Pars
|
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
};
|
|
682
|
-
}();
|
|
683
|
-
function
|
|
682
|
+
})();
|
|
683
|
+
function w() {
|
|
684
684
|
this.yy = {};
|
|
685
685
|
}
|
|
686
|
-
return c(
|
|
687
|
-
}();
|
|
688
|
-
|
|
689
|
-
var mt =
|
|
686
|
+
return c(w, "Parser"), w.prototype = G, G.Parser = w, new w();
|
|
687
|
+
})();
|
|
688
|
+
z.parser = z;
|
|
689
|
+
var mt = z, ft = 12, x = {
|
|
690
690
|
DEFAULT: 0,
|
|
691
691
|
NO_BORDER: 0,
|
|
692
692
|
ROUNDED_RECT: 1,
|
|
@@ -695,9 +695,9 @@ var mt = V, ft = 12, D = {
|
|
|
695
695
|
CLOUD: 4,
|
|
696
696
|
BANG: 5,
|
|
697
697
|
HEXAGON: 6
|
|
698
|
-
},
|
|
698
|
+
}, v, _t = (v = class {
|
|
699
699
|
constructor() {
|
|
700
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
700
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
|
|
701
701
|
}
|
|
702
702
|
clear() {
|
|
703
703
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
@@ -710,11 +710,10 @@ var mt = V, ft = 12, D = {
|
|
|
710
710
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
711
711
|
}
|
|
712
712
|
addNode(t, r, d, n) {
|
|
713
|
-
|
|
714
|
-
C.info("addNode", t, r, d, n);
|
|
713
|
+
I.info("addNode", t, r, d, n);
|
|
715
714
|
let l = !1;
|
|
716
715
|
this.nodes.length === 0 ? (this.baseLevel = t, t = 0, l = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, l = !1);
|
|
717
|
-
let u =
|
|
716
|
+
let u = A(), _ = u.mindmap?.padding ?? F.mindmap.padding;
|
|
718
717
|
switch (n) {
|
|
719
718
|
case this.nodeType.ROUNDED_RECT:
|
|
720
719
|
case this.nodeType.RECT:
|
|
@@ -724,21 +723,21 @@ var mt = V, ft = 12, D = {
|
|
|
724
723
|
}
|
|
725
724
|
let y = {
|
|
726
725
|
id: this.count++,
|
|
727
|
-
nodeId:
|
|
726
|
+
nodeId: U(r, u),
|
|
728
727
|
level: t,
|
|
729
|
-
descr:
|
|
728
|
+
descr: U(d, u),
|
|
730
729
|
type: n,
|
|
731
730
|
children: [],
|
|
732
|
-
width:
|
|
731
|
+
width: u.mindmap?.maxNodeWidth ?? F.mindmap.maxNodeWidth,
|
|
733
732
|
padding: _,
|
|
734
733
|
isRoot: l
|
|
735
|
-
},
|
|
736
|
-
if (
|
|
734
|
+
}, S = this.getParent(t);
|
|
735
|
+
if (S) S.children.push(y), this.nodes.push(y);
|
|
737
736
|
else if (l) this.nodes.push(y);
|
|
738
737
|
else throw Error(`There can be only one root. No parent could be found for ("${y.descr}")`);
|
|
739
738
|
}
|
|
740
739
|
getType(t, r) {
|
|
741
|
-
switch (
|
|
740
|
+
switch (I.debug("In get type", t, r), t) {
|
|
742
741
|
case "[":
|
|
743
742
|
return this.nodeType.RECT;
|
|
744
743
|
case "(":
|
|
@@ -763,8 +762,8 @@ var mt = V, ft = 12, D = {
|
|
|
763
762
|
}
|
|
764
763
|
decorateNode(t) {
|
|
765
764
|
if (!t) return;
|
|
766
|
-
let r =
|
|
767
|
-
t.icon && (d.icon =
|
|
765
|
+
let r = A(), d = this.nodes[this.nodes.length - 1];
|
|
766
|
+
t.icon && (d.icon = U(t.icon, r)), t.class && (d.class = U(t.class, r));
|
|
768
767
|
}
|
|
769
768
|
type2Str(t) {
|
|
770
769
|
switch (t) {
|
|
@@ -793,27 +792,26 @@ var mt = V, ft = 12, D = {
|
|
|
793
792
|
}
|
|
794
793
|
}
|
|
795
794
|
flattenNodes(t, r) {
|
|
796
|
-
let d =
|
|
795
|
+
let d = A(), n = ["mindmap-node"];
|
|
797
796
|
t.isRoot === !0 ? n.push("section-root", "section--1") : t.section !== void 0 && n.push(`section-${t.section}`), t.class && n.push(t.class);
|
|
798
797
|
let l = n.join(" "), u = /* @__PURE__ */ c((y) => {
|
|
799
|
-
|
|
800
|
-
let L = (((S = d.theme) == null ? void 0 : S.toLowerCase()) ?? "").includes("redux");
|
|
798
|
+
let S = (d.theme?.toLowerCase() ?? "").includes("redux");
|
|
801
799
|
switch (y) {
|
|
802
|
-
case
|
|
800
|
+
case x.CIRCLE:
|
|
803
801
|
return "mindmapCircle";
|
|
804
|
-
case
|
|
802
|
+
case x.RECT:
|
|
805
803
|
return "rect";
|
|
806
|
-
case
|
|
804
|
+
case x.ROUNDED_RECT:
|
|
807
805
|
return "rounded";
|
|
808
|
-
case
|
|
806
|
+
case x.CLOUD:
|
|
809
807
|
return "cloud";
|
|
810
|
-
case
|
|
808
|
+
case x.BANG:
|
|
811
809
|
return "bang";
|
|
812
|
-
case
|
|
810
|
+
case x.HEXAGON:
|
|
813
811
|
return "hexagon";
|
|
814
|
-
case
|
|
815
|
-
return
|
|
816
|
-
case
|
|
812
|
+
case x.DEFAULT:
|
|
813
|
+
return S ? "rounded" : "defaultMindmapNode";
|
|
814
|
+
case x.NO_BORDER:
|
|
817
815
|
default:
|
|
818
816
|
return "rect";
|
|
819
817
|
}
|
|
@@ -842,7 +840,7 @@ var mt = V, ft = 12, D = {
|
|
|
842
840
|
}
|
|
843
841
|
generateEdges(t, r) {
|
|
844
842
|
if (!t.children) return;
|
|
845
|
-
let d =
|
|
843
|
+
let d = A();
|
|
846
844
|
for (let n of t.children) {
|
|
847
845
|
let l = "edge";
|
|
848
846
|
n.section !== void 0 && (l += ` section-edge-${n.section}`);
|
|
@@ -864,15 +862,15 @@ var mt = V, ft = 12, D = {
|
|
|
864
862
|
}
|
|
865
863
|
}
|
|
866
864
|
getData() {
|
|
867
|
-
let t = this.getMindmap(), r =
|
|
865
|
+
let t = this.getMindmap(), r = A(), d = gt().layout !== void 0, n = r;
|
|
868
866
|
if (d || (n.layout = "cose-bilkent"), !t) return {
|
|
869
867
|
nodes: [],
|
|
870
868
|
edges: [],
|
|
871
869
|
config: n
|
|
872
870
|
};
|
|
873
|
-
|
|
871
|
+
I.debug("getData: mindmapRoot", t, r), this.assignSections(t);
|
|
874
872
|
let l = [], u = [];
|
|
875
|
-
this.flattenNodes(t, l), this.generateEdges(t, u),
|
|
873
|
+
this.flattenNodes(t, l), this.generateEdges(t, u), I.debug(`getData: processed ${l.length} nodes and ${u.length} edges`);
|
|
876
874
|
let _ = /* @__PURE__ */ new Map();
|
|
877
875
|
for (let y of l) _.set(y.id, {
|
|
878
876
|
shape: y.shape,
|
|
@@ -895,23 +893,22 @@ var mt = V, ft = 12, D = {
|
|
|
895
893
|
};
|
|
896
894
|
}
|
|
897
895
|
getLogger() {
|
|
898
|
-
return
|
|
896
|
+
return I;
|
|
899
897
|
}
|
|
900
|
-
}, c(
|
|
901
|
-
|
|
902
|
-
C.debug(`Rendering mindmap diagram
|
|
898
|
+
}, c(v, "MindmapDB"), v), Et = { draw: /* @__PURE__ */ c(async (i, t, r, d) => {
|
|
899
|
+
I.debug(`Rendering mindmap diagram
|
|
903
900
|
` + i);
|
|
904
901
|
let n = d.db, l = n.getData(), u = pt(t, l.config.securityLevel);
|
|
905
902
|
if (l.type = d.type, l.layoutAlgorithm = rt(l.config.layout, { fallback: "cose-bilkent" }), l.diagramId = t, !n.getMindmap()) return;
|
|
906
903
|
l.nodes.forEach((m) => {
|
|
907
904
|
m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" ? (m.width = 0, m.padding = 10) : m.shape === "hexagon" && (m.width = 0, m.height = 0);
|
|
908
905
|
}), await at(l, u);
|
|
909
|
-
let { themeVariables: _ } = lt(), { useGradient: y, gradientStart:
|
|
910
|
-
if (y &&
|
|
911
|
-
let m = u.attr("id"),
|
|
912
|
-
|
|
906
|
+
let { themeVariables: _ } = lt(), { useGradient: y, gradientStart: S, gradientStop: C } = _;
|
|
907
|
+
if (y && S && C) {
|
|
908
|
+
let m = u.attr("id"), E = u.append("defs").append("linearGradient").attr("id", `${m}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
909
|
+
E.append("stop").attr("offset", "0%").attr("stop-color", S).attr("stop-opacity", 1), E.append("stop").attr("offset", "100%").attr("stop-color", C).attr("stop-opacity", 1);
|
|
913
910
|
}
|
|
914
|
-
yt(u,
|
|
911
|
+
yt(u, l.config.mindmap?.padding ?? F.mindmap.padding, "mindmapDiagram", l.config.mindmap?.useMaxWidth ?? F.mindmap.useMaxWidth);
|
|
915
912
|
}, "draw") }, bt = /* @__PURE__ */ c((i) => {
|
|
916
913
|
let { theme: t, look: r } = i, d = "";
|
|
917
914
|
for (let n = 0; n < i.THEME_COLOR_LIMIT; n++) i["lineColor" + n] = i["lineColor" + n] || i["cScaleInv" + n], ct(i["lineColor" + n]) ? i["lineColor" + n] = ht(i["lineColor" + n], 20) : i["lineColor" + n] = dt(i["lineColor" + n], 20);
|
|
@@ -954,7 +951,7 @@ var mt = V, ft = 12, D = {
|
|
|
954
951
|
stroke-width: ${i.strokeWidth ?? 2}px;
|
|
955
952
|
}
|
|
956
953
|
[data-look="neo"].section-edge-${n - 1}{
|
|
957
|
-
stroke: ${t
|
|
954
|
+
stroke: ${t?.includes("redux") || t === "neo-dark" ? i.nodeBorder : i["cScale" + n]};
|
|
958
955
|
}
|
|
959
956
|
[data-look="neo"].mindmap-node.section-${n - 1} text {
|
|
960
957
|
fill: ${t === "redux" || t === "redux-dark" ? i.nodeBorder : i["cScaleLabel" + (t === "neutral" ? 1 : n)]};
|
|
@@ -993,7 +990,7 @@ var mt = V, ft = 12, D = {
|
|
|
993
990
|
fill: ${i.gitBranchLabel0};
|
|
994
991
|
}
|
|
995
992
|
.section-root span {
|
|
996
|
-
color: ${t
|
|
993
|
+
color: ${t?.includes("redux") ? i.nodeBorder : i.gitBranchLabel0};
|
|
997
994
|
}
|
|
998
995
|
.icon-container {
|
|
999
996
|
height:100%;
|
|
@@ -1015,10 +1012,10 @@ var mt = V, ft = 12, D = {
|
|
|
1015
1012
|
filter: ${d};
|
|
1016
1013
|
}
|
|
1017
1014
|
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
1018
|
-
fill: ${t
|
|
1015
|
+
fill: ${t?.includes("redux") ? i.mainBkg : i.git0};
|
|
1019
1016
|
}
|
|
1020
1017
|
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
1021
|
-
fill: ${t
|
|
1018
|
+
fill: ${t?.includes("redux") ? i.nodeBorder : i["cScaleLabel" + +(t === "neutral")]};
|
|
1022
1019
|
}
|
|
1023
1020
|
${i.useGradient && r && i.mainBkg ? kt(i.THEME_COLOR_LIMIT, r, i.mainBkg) : ""}
|
|
1024
1021
|
`;
|
|
@@ -34,7 +34,7 @@ function h({ _intern: t, _key: n }, e) {
|
|
|
34
34
|
function p(t) {
|
|
35
35
|
return typeof t == "object" && t ? t.valueOf() : t;
|
|
36
36
|
}
|
|
37
|
-
var l = Symbol("implicit");
|
|
37
|
+
var l = /* @__PURE__ */ Symbol("implicit");
|
|
38
38
|
function g() {
|
|
39
39
|
var t = new o(), n = [], e = [], r = l;
|
|
40
40
|
function u(s) {
|
package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { s as
|
|
3
|
-
import { x as
|
|
4
|
-
import { t as
|
|
5
|
-
import { r as
|
|
6
|
-
function
|
|
1
|
+
import { K as j, G, W as H, U as K, i as U, f as V, p as u, g as F, Z as q, s as I, a0 as J, a1 as Q, A as _, H as X, F as Y, a2 as m, a3 as tt, a4 as k } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { s as et } from "./ordinal-D9ksOc8y-2hZwLyEk.js";
|
|
3
|
+
import { x as N } from "./arc-DZdQjcG8-CduayE88.js";
|
|
4
|
+
import { t as at } from "./chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js";
|
|
5
|
+
import { r as rt } from "./wardley-L42UT6IY-BjAkE_cs-C-giFqos.js";
|
|
6
|
+
function nt(t, a) {
|
|
7
7
|
return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function it(t) {
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
var t =
|
|
12
|
+
function lt() {
|
|
13
|
+
var t = it, a = nt, c = null, s = m(0), o = m(k), x = m(0);
|
|
14
14
|
function l(e) {
|
|
15
|
-
var i, n = (e =
|
|
15
|
+
var i, n = (e = tt(e)).length, g, v, A = 0, y = Array(n), p = Array(n), w = +s.apply(this, arguments), b = Math.min(k, Math.max(-k, o.apply(this, arguments) - w)), f, T = Math.min(Math.abs(b) / n, x.apply(this, arguments)), S = T * (b < 0 ? -1 : 1), d;
|
|
16
16
|
for (i = 0; i < n; ++i) (d = p[y[i] = i] = +t(e[i], i, e)) > 0 && (A += d);
|
|
17
17
|
for (a == null ? c != null && y.sort(function($, h) {
|
|
18
18
|
return c(e[$], e[h]);
|
|
@@ -42,20 +42,20 @@ function st() {
|
|
|
42
42
|
return arguments.length ? (x = typeof e == "function" ? e : m(+e), l) : x;
|
|
43
43
|
}, l;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var st = Y.pie, O = {
|
|
46
46
|
sections: /* @__PURE__ */ new Map(),
|
|
47
47
|
showData: !1
|
|
48
|
-
}, C = O.sections, M = O.showData,
|
|
49
|
-
getConfig: /* @__PURE__ */ u(() => structuredClone(
|
|
48
|
+
}, C = O.sections, M = O.showData, ot = structuredClone(st), E = {
|
|
49
|
+
getConfig: /* @__PURE__ */ u(() => structuredClone(ot), "getConfig"),
|
|
50
50
|
clear: /* @__PURE__ */ u(() => {
|
|
51
|
-
C = /* @__PURE__ */ new Map(), M = O.showData,
|
|
51
|
+
C = /* @__PURE__ */ new Map(), M = O.showData, X();
|
|
52
52
|
}, "clear"),
|
|
53
|
-
setDiagramTitle:
|
|
54
|
-
getDiagramTitle:
|
|
55
|
-
setAccTitle:
|
|
56
|
-
getAccTitle:
|
|
57
|
-
setAccDescription:
|
|
58
|
-
getAccDescription:
|
|
53
|
+
setDiagramTitle: V,
|
|
54
|
+
getDiagramTitle: U,
|
|
55
|
+
setAccTitle: K,
|
|
56
|
+
getAccTitle: H,
|
|
57
|
+
setAccDescription: G,
|
|
58
|
+
getAccDescription: j,
|
|
59
59
|
addSection: /* @__PURE__ */ u(({ label: t, value: a }) => {
|
|
60
60
|
if (a < 0) throw Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
|
|
61
61
|
C.has(t) || (C.set(t, a), F.debug(`added new section: ${t}, with value: ${a}`));
|
|
@@ -65,12 +65,12 @@ var ot = tt.pie, O = {
|
|
|
65
65
|
M = t;
|
|
66
66
|
}, "setShowData"),
|
|
67
67
|
getShowData: /* @__PURE__ */ u(() => M, "getShowData")
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
}, "populateDb"),
|
|
71
|
-
let a = await
|
|
72
|
-
F.debug(a),
|
|
73
|
-
}, "parse") },
|
|
68
|
+
}, pt = /* @__PURE__ */ u((t, a) => {
|
|
69
|
+
at(t, a), a.setShowData(t.showData), t.sections.map(a.addSection);
|
|
70
|
+
}, "populateDb"), ut = { parse: /* @__PURE__ */ u(async (t) => {
|
|
71
|
+
let a = await rt("pie", t);
|
|
72
|
+
F.debug(a), pt(a, E);
|
|
73
|
+
}, "parse") }, ct = /* @__PURE__ */ u((t) => `
|
|
74
74
|
.pieCircle{
|
|
75
75
|
stroke: ${t.pieStrokeColor};
|
|
76
76
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -98,26 +98,25 @@ var ot = tt.pie, O = {
|
|
|
98
98
|
font-family: ${t.fontFamily};
|
|
99
99
|
font-size: ${t.pieLegendTextSize};
|
|
100
100
|
}
|
|
101
|
-
`, "getStyles"),
|
|
101
|
+
`, "getStyles"), dt = /* @__PURE__ */ u((t) => {
|
|
102
102
|
let a = [...t.values()].reduce((s, o) => s + o, 0), c = [...t.entries()].map(([s, o]) => ({
|
|
103
103
|
label: s,
|
|
104
104
|
value: o
|
|
105
105
|
})).filter((s) => s.value / a * 100 >= 1);
|
|
106
|
-
return
|
|
107
|
-
}, "createPieArcs"),
|
|
108
|
-
parser:
|
|
109
|
-
db:
|
|
106
|
+
return lt().value((s) => s.value).sort(null)(c);
|
|
107
|
+
}, "createPieArcs"), yt = {
|
|
108
|
+
parser: ut,
|
|
109
|
+
db: E,
|
|
110
110
|
renderer: { draw: /* @__PURE__ */ u((t, a, c, s) => {
|
|
111
|
-
var N;
|
|
112
111
|
F.debug(`rendering pie chart
|
|
113
112
|
` + t);
|
|
114
|
-
let o = s.db, x =
|
|
113
|
+
let o = s.db, x = q(), l = I(o.getConfig(), x.pie), e = J(a), i = e.append("g");
|
|
115
114
|
i.attr("transform", "translate(225,225)");
|
|
116
|
-
let { themeVariables: n } = x, [g] =
|
|
117
|
-
g
|
|
118
|
-
let v = l.textPosition, A =
|
|
115
|
+
let { themeVariables: n } = x, [g] = Q(n.pieOuterStrokeWidth);
|
|
116
|
+
g ??= 2;
|
|
117
|
+
let v = l.textPosition, A = N().innerRadius(0).outerRadius(185), y = N().innerRadius(185 * v).outerRadius(185 * v);
|
|
119
118
|
i.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + g / 2).attr("class", "pieOuterCircle");
|
|
120
|
-
let p = o.getSections(), w =
|
|
119
|
+
let p = o.getSections(), w = dt(p), b = [
|
|
121
120
|
n.pie1,
|
|
122
121
|
n.pie2,
|
|
123
122
|
n.pie3,
|
|
@@ -134,21 +133,21 @@ var ot = tt.pie, O = {
|
|
|
134
133
|
p.forEach((r) => {
|
|
135
134
|
f += r;
|
|
136
135
|
});
|
|
137
|
-
let T = w.filter((r) => (r.data.value / f * 100).toFixed(0) !== "0"), S =
|
|
136
|
+
let T = w.filter((r) => (r.data.value / f * 100).toFixed(0) !== "0"), S = et(b).domain([...p.keys()]);
|
|
138
137
|
i.selectAll("mySlices").data(T).enter().append("path").attr("d", A).attr("fill", (r) => S(r.data.label)).attr("class", "pieCircle"), i.selectAll("mySlices").data(T).enter().append("text").text((r) => (r.data.value / f * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + y.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice");
|
|
139
138
|
let d = i.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), $ = [...p.entries()].map(([r, D]) => ({
|
|
140
139
|
label: r,
|
|
141
140
|
value: D
|
|
142
141
|
})), h = i.selectAll(".legend").data($).enter().append("g").attr("class", "legend").attr("transform", (r, D) => {
|
|
143
|
-
let
|
|
144
|
-
return "translate(216," + (D * 22 -
|
|
142
|
+
let Z = 22 * $.length / 2;
|
|
143
|
+
return "translate(216," + (D * 22 - Z) + ")";
|
|
145
144
|
});
|
|
146
145
|
h.append("rect").attr("width", 18).attr("height", 18).style("fill", (r) => S(r.label)).style("stroke", (r) => S(r.label)), h.append("text").attr("x", 22).attr("y", 14).text((r) => o.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
147
|
-
let
|
|
148
|
-
e.attr("viewBox", `${R} 0 ${W} 450`),
|
|
146
|
+
let B = 512 + Math.max(...h.selectAll("text").nodes().map((r) => r?.getBoundingClientRect().width ?? 0)), z = d.node()?.getBoundingClientRect().width ?? 0, L = 450 / 2 - z / 2, P = 450 / 2 + z / 2, R = Math.min(0, L), W = Math.max(B, P) - R;
|
|
147
|
+
e.attr("viewBox", `${R} 0 ${W} 450`), _(e, 450, W, l.useMaxWidth);
|
|
149
148
|
}, "draw") },
|
|
150
|
-
styles:
|
|
149
|
+
styles: ct
|
|
151
150
|
};
|
|
152
151
|
export {
|
|
153
|
-
|
|
152
|
+
yt as diagram
|
|
154
153
|
};
|