@kong-ui-public/documentation 0.7.20 → 0.7.21
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/{Tableau10-GLA_9iAD-BMurskAd.js → Tableau10-D7jGxypv-D3w6FIcJ.js} +1 -2
- package/dist/arc-CJ96KFKf-ZAEyyrBI.js +84 -0
- package/dist/{blockDiagram-6b2b5046-ZGxr7RGf-D4pbh8vR.js → blockDiagram-9f4a6865-DOUkHJlG-BPuF5-tK.js} +107 -108
- package/dist/{c4Diagram-b947cdbb-Bo6xALld-D8DXBmHw.js → c4Diagram-ae766693-qW59_Cjl-BSBtINzy.js} +133 -132
- package/dist/{channel-BX3TjCqa-Cdtt6hB1.js → channel-BkEGjNbZ-CzBFLYvk.js} +1 -1
- package/dist/{classDiagram-35230388-C60SAKfJ-FQHXcc4J.js → classDiagram-fb54d2a0-DaEnSnV7-BgUSoTGU.js} +8 -7
- package/dist/{classDiagram-v2-412acd34-CHK1KDqU-CiKmarbv.js → classDiagram-v2-a2b738ad-DVF-sdZH-lL0m0fQD.js} +8 -8
- package/dist/{clone-BSWoNj0I-CW2QP79u.js → clone-Bz5840kP-D3Uvm_gp.js} +1 -1
- package/dist/{createText-423428c9-DeHbckoy-r2CCACGx.js → createText-ca0c5216-DGjoI7Oz-8Az9WSXK.js} +14 -20
- package/dist/documentation.es.js +3 -3
- package/dist/documentation.umd.js +993 -723
- package/dist/{edges-d417c7a0-D7e9Y4V--DVOSTCB5.js → edges-066a5561-ByMuMaff-ipHdGCa_.js} +28 -27
- package/dist/{erDiagram-0ea73325-E3jchkiK-CfTqZxm6.js → erDiagram-09d1c15f-Ctl-zT4O-B9E7LRcs.js} +71 -72
- package/dist/{flowDb-d35e309a-Dch1VW7i-Bk557s4E.js → flowDb-c1833063-nJUM9bYy-B5f_hjwI.js} +4 -4
- package/dist/{flowDiagram-d949d7c1-CxjmKfBF-CuFUEya4.js → flowDiagram-b222e15a-BlrP8xne-DJ_sATm6.js} +339 -333
- package/dist/{flowDiagram-v2-49332944-Duf6j7PN-DgsEJ4Bo.js → flowDiagram-v2-13329dc7-DlqVPxH6-CgXruRZr.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-M-lK4i48-Bs8Ix10e.js → flowchart-elk-definition-ae0efee6-B2FZpaI4-C8o8y5J1.js} +343 -590
- package/dist/{ganttDiagram-5c869e3b-CgjZsm2H-Bon0v47P.js → ganttDiagram-b62c793e-BUkrtLIU-roFbcEhP.js} +513 -534
- package/dist/gitGraphDiagram-942e62fe-BIndO562-dNVJJzzm.js +1264 -0
- package/dist/{graph-Ch18bQn5-BLEKw6WT.js → graph-BN58fiEq-CyCz6HB3.js} +3 -4
- package/dist/{index-8fae9850-kUIz8xNo-CDn9_qZB.js → index-01f381cb-DHHDXut0-C1FToHnX.js} +11 -11
- package/dist/{index-CVS7cBlb.js → index-Dz46e5bv.js} +2354 -2515
- package/dist/{infoDiagram-db7b18fc-BpBtHVy2-DuX4gmA7.js → infoDiagram-94cd232f-CSzv-wTE-Bnonj1Cb.js} +7 -7
- package/dist/{journeyDiagram-d5636530-CZUFMDTA-D5VAFQAG.js → journeyDiagram-6625b456-Ca9U8tWI-DoKEPckV.js} +16 -16
- package/dist/katex-BXNjbZo7-CF_fuFJb.js +11637 -0
- package/dist/{layout-BzV691RN-Br8Ir03a.js → layout-DU4VNk5y-DEbr0_Pk.js} +112 -114
- package/dist/{line-JCh8JM-V-T9MVIZIE.js → line-CwSAou3c-dgS2jcU_.js} +3 -4
- package/dist/{linear-cwTFOJBq-B6q6qtlZ.js → linear-CngEzq0a-B6fRdJQY.js} +70 -94
- package/dist/{mindmap-definition-377f8f1f-BzIPdpBG-DD8FIpST.js → mindmap-definition-307c710a-CvpxqRPj-AB15RcM6.js} +343 -378
- package/dist/{ordinal-MUacOSdK-B1MUT0BL.js → ordinal-DfAQgscy-BEJTu10r.js} +3 -7
- package/dist/{path-Crsf9Nsj-SiSjwXsf.js → path-DLwuMfdd-EbErTa4c.js} +12 -19
- package/dist/{pieDiagram-b0208e96-BQfpnZHG-E8AMqTd3.js → pieDiagram-bb1d19e5-LP-9WGAS-DwilsWxb.js} +61 -61
- package/dist/{quadrantDiagram-0332be45-CNL4JCrn-BYyiYlYH.js → quadrantDiagram-c759a472-B_TsLXO0-BviiuQRe.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-NBqqCuPF-CIHJhGNa.js → requirementDiagram-87253d64-o6jrBKBt-BDXpXGpQ.js} +30 -30
- package/dist/{sankeyDiagram-0acdec17-YE0ROy8d-CU1TmQZx.js → sankeyDiagram-707fac0f-BoEHDAJv-BBNylsjT.js} +44 -58
- package/dist/{sequenceDiagram-c18d009d-Yucxrjw7-D_cnXQcd.js → sequenceDiagram-6894f283-Dsj52Wsi-TDdIX1Wn.js} +845 -812
- package/dist/{stateDiagram-43596fc0-D9IY4Ssi-KJp_o1Vc.js → stateDiagram-5dee940d-COfohDXu-Dra8cHnR.js} +54 -54
- package/dist/{stateDiagram-v2-2ead4f9c-5IZQWbnV-Chm6qgaK.js → stateDiagram-v2-1992cada-v9z1blk7-b2WlcHGI.js} +12 -12
- package/dist/{styles-b2c874b6-pUAi9-OK-C7HwN-ih.js → styles-0784dbeb-DHDYpA72-BTX0XQJ5.js} +24 -24
- package/dist/{styles-7383a064-DLbSva3T-DWY6NPMf.js → styles-483fbfea-DUrqZeOP-BPfiLFkT.js} +140 -137
- package/dist/{styles-6860f46c-DHqkrPDU-JiuD19BB.js → styles-b83b31c9-R9NNyYA0-DnoGi25s.js} +29 -29
- package/dist/{svgDrawCommon-0ee1b4e9-rbw7BPwi-Boin581S.js → svgDrawCommon-5e1cfd1d-DeHC_PTd-44CTrnyq.js} +5 -5
- package/dist/{timeline-definition-d977decf-CtlVf6FF-BqqlH53Y.js → timeline-definition-bf702344-BzpRV6Z8-DHqazJ7N.js} +2 -2
- package/dist/{xychartDiagram-e50adddc-B9qgoJob-CqAKcFLo.js → xychartDiagram-f11f50a6-BMDfQSWf-CixUys_w.js} +40 -40
- package/package.json +6 -6
- package/dist/arc-TomPQHIy-B0wkvDWU.js +0 -86
- package/dist/gitGraphDiagram-b9d81de9-DhOfBQfl-BvCcUYjg.js +0 -1262
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as st, g as _t, s as mt, a as xt, b as kt,
|
|
2
|
-
import { h as St } from "./ordinal-
|
|
3
|
-
import { r as Mt } from "./Tableau10-
|
|
1
|
+
import { c as st, g as _t, s as mt, a as xt, b as kt, y as vt, x as bt, A as At, j as Et, v as Lt, h as K, u as wt } from "./index-Dz46e5bv.js";
|
|
2
|
+
import { h as St } from "./ordinal-DfAQgscy-BEJTu10r.js";
|
|
3
|
+
import { r as Mt } from "./Tableau10-D7jGxypv-D3w6FIcJ.js";
|
|
4
4
|
function ot(t, e) {
|
|
5
5
|
let r;
|
|
6
6
|
if (e === void 0)
|
|
@@ -80,8 +80,7 @@ function Tt(t) {
|
|
|
80
80
|
}
|
|
81
81
|
function lt(t, e) {
|
|
82
82
|
const r = t.get(e);
|
|
83
|
-
if (!r)
|
|
84
|
-
throw new Error("missing: " + e);
|
|
83
|
+
if (!r) throw new Error("missing: " + e);
|
|
85
84
|
return r;
|
|
86
85
|
}
|
|
87
86
|
function ht({ nodes: t }) {
|
|
@@ -150,8 +149,7 @@ function $t() {
|
|
|
150
149
|
for (const { target: A } of g.sourceLinks)
|
|
151
150
|
u.add(A);
|
|
152
151
|
}
|
|
153
|
-
if (++s > l)
|
|
154
|
-
throw new Error("circular link");
|
|
152
|
+
if (++s > l) throw new Error("circular link");
|
|
155
153
|
h = u, u = /* @__PURE__ */ new Set();
|
|
156
154
|
}
|
|
157
155
|
}
|
|
@@ -164,8 +162,7 @@ function $t() {
|
|
|
164
162
|
for (const { source: A } of g.targetLinks)
|
|
165
163
|
u.add(A);
|
|
166
164
|
}
|
|
167
|
-
if (++s > l)
|
|
168
|
-
throw new Error("circular link");
|
|
165
|
+
if (++s > l) throw new Error("circular link");
|
|
169
166
|
h = u, u = /* @__PURE__ */ new Set();
|
|
170
167
|
}
|
|
171
168
|
}
|
|
@@ -175,9 +172,8 @@ function $t() {
|
|
|
175
172
|
const g = Math.max(0, Math.min(l - 1, Math.floor(i.call(null, s, l))));
|
|
176
173
|
s.layer = g, s.x0 = t + g * h, s.x1 = s.x0 + a, u[g] ? u[g].push(s) : u[g] = [s];
|
|
177
174
|
}
|
|
178
|
-
if (o)
|
|
179
|
-
|
|
180
|
-
s.sort(o);
|
|
175
|
+
if (o) for (const s of u)
|
|
176
|
+
s.sort(o);
|
|
181
177
|
return u;
|
|
182
178
|
}
|
|
183
179
|
function b(n) {
|
|
@@ -194,7 +190,7 @@ function $t() {
|
|
|
194
190
|
const g = h[s];
|
|
195
191
|
g.y0 += u * (s + 1), g.y1 += u * (s + 1);
|
|
196
192
|
}
|
|
197
|
-
|
|
193
|
+
w(h);
|
|
198
194
|
}
|
|
199
195
|
}
|
|
200
196
|
function C(n) {
|
|
@@ -214,8 +210,7 @@ function $t() {
|
|
|
214
210
|
let q = Z * (A.layer - X.layer);
|
|
215
211
|
W += U(X, A) * q, j += q;
|
|
216
212
|
}
|
|
217
|
-
if (!(j > 0))
|
|
218
|
-
continue;
|
|
213
|
+
if (!(j > 0)) continue;
|
|
219
214
|
let G = (W / j - A.y0) * l;
|
|
220
215
|
A.y0 += G, A.y1 += G, N(A);
|
|
221
216
|
}
|
|
@@ -231,8 +226,7 @@ function $t() {
|
|
|
231
226
|
let q = Z * (X.layer - A.layer);
|
|
232
227
|
W += $(A, X) * q, j += q;
|
|
233
228
|
}
|
|
234
|
-
if (!(j > 0))
|
|
235
|
-
continue;
|
|
229
|
+
if (!(j > 0)) continue;
|
|
236
230
|
let G = (W / j - A.y0) * l;
|
|
237
231
|
A.y0 += G, A.y1 += G, N(A);
|
|
238
232
|
}
|
|
@@ -241,9 +235,9 @@ function $t() {
|
|
|
241
235
|
}
|
|
242
236
|
function d(n, l) {
|
|
243
237
|
const h = n.length >> 1, u = n[h];
|
|
244
|
-
E(n, u.y0 - p, h - 1, l),
|
|
238
|
+
E(n, u.y0 - p, h - 1, l), L(n, u.y1 + p, h + 1, l), E(n, c, n.length - 1, l), L(n, e, 0, l);
|
|
245
239
|
}
|
|
246
|
-
function
|
|
240
|
+
function L(n, l, h, u) {
|
|
247
241
|
for (; h < n.length; ++h) {
|
|
248
242
|
const s = n[h], g = (l - s.y0) * u;
|
|
249
243
|
g > 1e-6 && (s.y0 += g, s.y1 += g), l = s.y1 + p;
|
|
@@ -263,7 +257,7 @@ function $t() {
|
|
|
263
257
|
h.sort(ct);
|
|
264
258
|
}
|
|
265
259
|
}
|
|
266
|
-
function
|
|
260
|
+
function w(n) {
|
|
267
261
|
if (f === void 0)
|
|
268
262
|
for (const { sourceLinks: l, targetLinks: h } of n)
|
|
269
263
|
l.sort(at), h.sort(ct);
|
|
@@ -271,13 +265,11 @@ function $t() {
|
|
|
271
265
|
function U(n, l) {
|
|
272
266
|
let h = n.y0 - (n.sourceLinks.length - 1) * p / 2;
|
|
273
267
|
for (const { target: u, width: s } of n.sourceLinks) {
|
|
274
|
-
if (u === l)
|
|
275
|
-
break;
|
|
268
|
+
if (u === l) break;
|
|
276
269
|
h += s + p;
|
|
277
270
|
}
|
|
278
271
|
for (const { source: u, width: s } of l.targetLinks) {
|
|
279
|
-
if (u === n)
|
|
280
|
-
break;
|
|
272
|
+
if (u === n) break;
|
|
281
273
|
h -= s;
|
|
282
274
|
}
|
|
283
275
|
return h;
|
|
@@ -285,13 +277,11 @@ function $t() {
|
|
|
285
277
|
function $(n, l) {
|
|
286
278
|
let h = l.y0 - (l.targetLinks.length - 1) * p / 2;
|
|
287
279
|
for (const { source: u, width: s } of l.targetLinks) {
|
|
288
|
-
if (u === n)
|
|
289
|
-
break;
|
|
280
|
+
if (u === n) break;
|
|
290
281
|
h += s + p;
|
|
291
282
|
}
|
|
292
283
|
for (const { target: u, width: s } of n.sourceLinks) {
|
|
293
|
-
if (u === l)
|
|
294
|
-
break;
|
|
284
|
+
if (u === l) break;
|
|
295
285
|
h -= s;
|
|
296
286
|
}
|
|
297
287
|
return h;
|
|
@@ -326,23 +316,20 @@ et.prototype = dt.prototype = {
|
|
|
326
316
|
arcTo: function(t, e, r, c, a) {
|
|
327
317
|
t = +t, e = +e, r = +r, c = +c, a = +a;
|
|
328
318
|
var x = this._x1, p = this._y1, _ = r - t, i = c - e, o = x - t, f = p - e, m = o * o + f * f;
|
|
329
|
-
if (a < 0)
|
|
330
|
-
throw new Error("negative radius: " + a);
|
|
319
|
+
if (a < 0) throw new Error("negative radius: " + a);
|
|
331
320
|
if (this._x1 === null)
|
|
332
321
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
333
|
-
else if (m > z)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
322
|
+
else if (m > z) if (!(Math.abs(f * _ - i * o) > z) || !a)
|
|
323
|
+
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
324
|
+
else {
|
|
325
|
+
var y = r - x, v = c - p, k = _ * _ + i * i, D = y * y + v * v, S = Math.sqrt(k), M = Math.sqrt(m), O = a * Math.tan((tt - Math.acos((k + m - D) / (2 * S * M))) / 2), I = O / M, b = O / S;
|
|
326
|
+
Math.abs(I - 1) > z && (this._ += "L" + (t + I * o) + "," + (e + I * f)), this._ += "A" + a + "," + a + ",0,0," + +(f * y > o * v) + "," + (this._x1 = t + b * _) + "," + (this._y1 = e + b * i);
|
|
327
|
+
}
|
|
340
328
|
},
|
|
341
329
|
arc: function(t, e, r, c, a, x) {
|
|
342
330
|
t = +t, e = +e, r = +r, x = !!x;
|
|
343
331
|
var p = r * Math.cos(c), _ = r * Math.sin(c), i = t + p, o = e + _, f = 1 ^ x, m = x ? c - a : a - c;
|
|
344
|
-
if (r < 0)
|
|
345
|
-
throw new Error("negative radius: " + r);
|
|
332
|
+
if (r < 0) throw new Error("negative radius: " + r);
|
|
346
333
|
this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + i + "," + o), r && (m < 0 && (m = m % nt + nt), m > jt ? this._ += "A" + r + "," + r + ",0,1," + f + "," + (t - p) + "," + (e - _) + "A" + r + "," + r + ",0,1," + f + "," + (this._x1 = i) + "," + (this._y1 = o) : m > z && (this._ += "A" + r + "," + r + ",0," + +(m >= tt) + "," + f + "," + (this._x1 = t + r * Math.cos(a)) + "," + (this._y1 = e + r * Math.sin(a))));
|
|
347
334
|
},
|
|
348
335
|
rect: function(t, e, r, c) {
|
|
@@ -374,8 +361,7 @@ function Xt(t) {
|
|
|
374
361
|
var e = Wt, r = Gt, c = zt, a = Ft, x = null;
|
|
375
362
|
function p() {
|
|
376
363
|
var _, i = Ut.call(arguments), o = e.apply(this, i), f = r.apply(this, i);
|
|
377
|
-
if (x || (x = _ = dt()), t(x, +c.apply(this, (i[0] = o, i)), +a.apply(this, i), +c.apply(this, (i[0] = f, i)), +a.apply(this, i)), _)
|
|
378
|
-
return x = null, _ + "" || null;
|
|
364
|
+
if (x || (x = _ = dt()), t(x, +c.apply(this, (i[0] = o, i)), +a.apply(this, i), +c.apply(this, (i[0] = f, i)), +a.apply(this, i)), _) return x = null, _ + "" || null;
|
|
379
365
|
}
|
|
380
366
|
return p.source = function(_) {
|
|
381
367
|
return arguments.length ? (e = _, p) : e;
|
|
@@ -452,12 +438,12 @@ var it = function() {
|
|
|
452
438
|
y.push(P);
|
|
453
439
|
var d = b.options && b.options.ranges;
|
|
454
440
|
typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
455
|
-
function
|
|
441
|
+
function L() {
|
|
456
442
|
var g;
|
|
457
443
|
return g = f.pop() || b.lex() || O, typeof g != "number" && (g instanceof Array && (f = g, g = f.pop()), g = i.symbols_[g] || g), g;
|
|
458
444
|
}
|
|
459
|
-
for (var E, N,
|
|
460
|
-
if (N = o[o.length - 1], this.defaultActions[N] ?
|
|
445
|
+
for (var E, N, w, U, $ = {}, n, l, h, u; ; ) {
|
|
446
|
+
if (N = o[o.length - 1], this.defaultActions[N] ? w = this.defaultActions[N] : ((E === null || typeof E > "u") && (E = L()), w = v[N] && v[N][E]), typeof w > "u" || !w.length || !w[0]) {
|
|
461
447
|
var s = "";
|
|
462
448
|
u = [];
|
|
463
449
|
for (n in v[N])
|
|
@@ -472,14 +458,14 @@ Expecting ` + u.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : s = "
|
|
|
472
458
|
expected: u
|
|
473
459
|
});
|
|
474
460
|
}
|
|
475
|
-
if (
|
|
461
|
+
if (w[0] instanceof Array && w.length > 1)
|
|
476
462
|
throw new Error("Parse Error: multiple actions possible at state: " + N + ", token: " + E);
|
|
477
|
-
switch (
|
|
463
|
+
switch (w[0]) {
|
|
478
464
|
case 1:
|
|
479
|
-
o.push(E), m.push(b.yytext), y.push(b.yylloc), o.push(
|
|
465
|
+
o.push(E), m.push(b.yytext), y.push(b.yylloc), o.push(w[1]), E = null, S = b.yyleng, k = b.yytext, D = b.yylineno, P = b.yylloc;
|
|
480
466
|
break;
|
|
481
467
|
case 2:
|
|
482
|
-
if (l = this.productions_[
|
|
468
|
+
if (l = this.productions_[w[1]][1], $.$ = m[m.length - l], $._$ = {
|
|
483
469
|
first_line: y[y.length - (l || 1)].first_line,
|
|
484
470
|
last_line: y[y.length - 1].last_line,
|
|
485
471
|
first_column: y[y.length - (l || 1)].first_column,
|
|
@@ -492,12 +478,12 @@ Expecting ` + u.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : s = "
|
|
|
492
478
|
S,
|
|
493
479
|
D,
|
|
494
480
|
C.yy,
|
|
495
|
-
|
|
481
|
+
w[1],
|
|
496
482
|
m,
|
|
497
483
|
y
|
|
498
484
|
].concat(I)), typeof U < "u")
|
|
499
485
|
return U;
|
|
500
|
-
l && (o = o.slice(0, -1 * l * 2), m = m.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[
|
|
486
|
+
l && (o = o.slice(0, -1 * l * 2), m = m.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[w[1]][0]), m.push($.$), y.push($._$), h = v[o[o.length - 2]][o[o.length - 1]], o.push(h);
|
|
501
487
|
break;
|
|
502
488
|
case 3:
|
|
503
489
|
return !0;
|
|
@@ -674,7 +660,7 @@ Expecting ` + u.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : s = "
|
|
|
674
660
|
stateStackSize: function() {
|
|
675
661
|
return this.conditionStack.length;
|
|
676
662
|
},
|
|
677
|
-
options: {
|
|
663
|
+
options: { "case-insensitive": !0 },
|
|
678
664
|
performAction: function(i, o, f, m) {
|
|
679
665
|
switch (f) {
|
|
680
666
|
case 0:
|
|
@@ -695,7 +681,7 @@ Expecting ` + u.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : s = "
|
|
|
695
681
|
return 19;
|
|
696
682
|
}
|
|
697
683
|
},
|
|
698
|
-
rules: [/^(?:sankey-beta\b)
|
|
684
|
+
rules: [/^(?:sankey-beta\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
|
|
699
685
|
conditions: { csv: { rules: [1, 2, 3, 4, 5, 6, 7], inclusive: !1 }, escaped_text: { rules: [6, 7], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7], inclusive: !0 } }
|
|
700
686
|
};
|
|
701
687
|
return _;
|
|
@@ -766,7 +752,7 @@ const sn = {
|
|
|
766
752
|
center: Pt,
|
|
767
753
|
justify: gt
|
|
768
754
|
}, on = function(t, e, r, c) {
|
|
769
|
-
const { securityLevel: a, sankey: x } = st(), p =
|
|
755
|
+
const { securityLevel: a, sankey: x } = st(), p = Lt.sankey;
|
|
770
756
|
let _;
|
|
771
757
|
a === "sandbox" && (_ = K("#i" + e));
|
|
772
758
|
const i = a === "sandbox" ? K(_.nodes()[0].contentDocument.body) : K("body"), o = a === "sandbox" ? i.select(`[id="${e}"]`) : K(`[id="${e}"]`), f = (x == null ? void 0 : x.width) ?? p.width, m = (x == null ? void 0 : x.height) ?? p.width, y = (x == null ? void 0 : x.useMaxWidth) ?? p.useMaxWidth, v = (x == null ? void 0 : x.nodeAlignment) ?? p.nodeAlignment, k = (x == null ? void 0 : x.prefix) ?? p.prefix, D = (x == null ? void 0 : x.suffix) ?? p.suffix, S = (x == null ? void 0 : x.showValues) ?? p.showValues, M = c.db.getGraph(), O = sn[v];
|
|
@@ -778,13 +764,13 @@ const sn = {
|
|
|
778
764
|
o.append("g").attr("class", "nodes").selectAll(".node").data(M.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = ft.next("node-")).id).attr("transform", function(d) {
|
|
779
765
|
return "translate(" + d.x0 + "," + d.y0 + ")";
|
|
780
766
|
}).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => I(d.id));
|
|
781
|
-
const b = ({ id: d, value:
|
|
782
|
-
${k}${Math.round(
|
|
767
|
+
const b = ({ id: d, value: L }) => S ? `${d}
|
|
768
|
+
${k}${Math.round(L * 100) / 100}${D}` : d;
|
|
783
769
|
o.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(M.nodes).join("text").attr("x", (d) => d.x0 < f / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${S ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < f / 2 ? "start" : "end").text(b);
|
|
784
770
|
const C = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(M.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), T = (x == null ? void 0 : x.linkColor) || "gradient";
|
|
785
771
|
if (T === "gradient") {
|
|
786
|
-
const d = C.append("linearGradient").attr("id", (
|
|
787
|
-
d.append("stop").attr("offset", "0%").attr("stop-color", (
|
|
772
|
+
const d = C.append("linearGradient").attr("id", (L) => (L.uid = ft.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
|
|
773
|
+
d.append("stop").attr("offset", "0%").attr("stop-color", (L) => I(L.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (L) => I(L.target.id));
|
|
788
774
|
}
|
|
789
775
|
let P;
|
|
790
776
|
switch (T) {
|
|
@@ -800,7 +786,7 @@ ${k}${Math.round(w * 100) / 100}${D}` : d;
|
|
|
800
786
|
default:
|
|
801
787
|
P = T;
|
|
802
788
|
}
|
|
803
|
-
C.append("path").attr("d", Vt()).attr("stroke", P).attr("stroke-width", (d) => Math.max(1, d.width)),
|
|
789
|
+
C.append("path").attr("d", Vt()).attr("stroke", P).attr("stroke-width", (d) => Math.max(1, d.width)), wt(void 0, o, 0, y);
|
|
804
790
|
}, cn = {
|
|
805
791
|
draw: on
|
|
806
792
|
}, an = (t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|