@kong-ui-public/documentation 1.1.2 → 1.1.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/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
- package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
- package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
- package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
- package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
- package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
- package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
- package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
- package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
- package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
- package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
- package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
- package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
- package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
- package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
- package/dist/documentation.es.js +1 -1
- package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
- package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
- package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
- package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
- package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
- package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
- package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
- package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
- package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
- package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
- package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
- package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
- package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
- package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
- package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
- package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
- package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
- package/package.json +2 -2
- package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as a,
|
|
1
|
+
import { _ as a, a5 as ci, a6 as ui, aj as Ft, ak as gi, a7 as xi, a8 as pi, l as Ot, aW as di, aa as fi, aq as mi, aD as bt, aC as Nt, aE as yi, bd as bi, ad as Ai, be as Si, ay as Mt } from "./index-BXOX6oou.js";
|
|
2
2
|
import { t as wi } from "./init-DjUOC4st-C8Nwz6AJ.js";
|
|
3
3
|
import { h as Ci } from "./ordinal-DfAQgscy-BEJTu10r.js";
|
|
4
|
-
import { Z as Bt } from "./linear-C2PheBya-
|
|
4
|
+
import { Z as Bt } from "./linear-C2PheBya-DijeUNjP.js";
|
|
5
5
|
function ki(t, i, e) {
|
|
6
6
|
t = +t, i = +i, e = (o = arguments.length) < 2 ? (i = t, t = 0, 1) : o < 3 ? 1 : +e;
|
|
7
|
-
for (var s = -1, o = Math.max(0, Math.ceil((i - t) / e)) | 0,
|
|
8
|
-
|
|
9
|
-
return
|
|
7
|
+
for (var s = -1, o = Math.max(0, Math.ceil((i - t) / e)) | 0, u = new Array(o); ++s < o; )
|
|
8
|
+
u[s] = t + s * e;
|
|
9
|
+
return u;
|
|
10
10
|
}
|
|
11
11
|
function pt() {
|
|
12
|
-
var t = Ci().unknown(void 0), i = t.domain, e = t.range, s = 0, o = 1,
|
|
12
|
+
var t = Ci().unknown(void 0), i = t.domain, e = t.range, s = 0, o = 1, u, g, p = !1, S = 0, T = 0, k = 0.5;
|
|
13
13
|
delete t.unknown;
|
|
14
14
|
function b() {
|
|
15
15
|
var f = i().length, R = o < s, w = R ? o : s, D = R ? s : o;
|
|
16
|
-
|
|
16
|
+
u = (D - w) / Math.max(1, f - S + T * 2), p && (u = Math.floor(u)), w += (D - w - u * (f - S)) * k, g = u * (1 - S), p && (w = Math.round(w), g = Math.round(g));
|
|
17
17
|
var d = ki(f).map(function(C) {
|
|
18
|
-
return w +
|
|
18
|
+
return w + u * C;
|
|
19
19
|
});
|
|
20
20
|
return e(R ? d.reverse() : d);
|
|
21
21
|
}
|
|
@@ -26,9 +26,9 @@ function pt() {
|
|
|
26
26
|
}, t.rangeRound = function(f) {
|
|
27
27
|
return [s, o] = f, s = +s, o = +o, p = !0, b();
|
|
28
28
|
}, t.bandwidth = function() {
|
|
29
|
-
return u;
|
|
30
|
-
}, t.step = function() {
|
|
31
29
|
return g;
|
|
30
|
+
}, t.step = function() {
|
|
31
|
+
return u;
|
|
32
32
|
}, t.round = function(f) {
|
|
33
33
|
return arguments.length ? (p = !!f, b()) : p;
|
|
34
34
|
}, t.padding = function(f) {
|
|
@@ -47,7 +47,7 @@ var dt = function() {
|
|
|
47
47
|
var t = /* @__PURE__ */ a(function(M, h, l, c) {
|
|
48
48
|
for (l = l || {}, c = M.length; c--; l[M[c]] = h) ;
|
|
49
49
|
return l;
|
|
50
|
-
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], o = [1, 5],
|
|
50
|
+
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], o = [1, 5], u = [1, 6], g = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], S = [1, 25], T = [1, 26], k = [1, 28], b = [1, 29], f = [1, 30], R = [1, 31], w = [1, 32], D = [1, 33], d = [1, 34], C = [1, 35], r = [1, 36], P = [1, 37], N = [1, 43], Dt = [1, 42], Lt = [1, 47], U = [1, 50], A = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], q = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], vt = [1, 64], J = {
|
|
51
51
|
trace: /* @__PURE__ */ a(function() {
|
|
52
52
|
}, "trace"),
|
|
53
53
|
yy: {},
|
|
@@ -144,7 +144,7 @@ var dt = function() {
|
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
}, "anonymous"),
|
|
147
|
-
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: o, 35:
|
|
147
|
+
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: o, 35: u, 36: g }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: o, 35: u, 36: g }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: o, 35: u, 36: g }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: o, 35: u, 36: g }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: o, 35: u, 36: g }), { 11: 23, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 39, 13: 38, 24: N, 27: Dt, 29: 40, 30: 41, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 45, 15: 44, 27: Lt, 33: 46, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 49, 17: 48, 24: U, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 52, 17: 51, 24: U, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 20: [1, 53] }, { 22: [1, 54] }, t(A, [2, 18]), { 1: [2, 2] }, t(A, [2, 8]), t(A, [2, 9]), t(q, [2, 37], { 40: 55, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }), t(q, [2, 38]), t(q, [2, 39]), t(I, [2, 40]), t(I, [2, 42]), t(I, [2, 43]), t(I, [2, 44]), t(I, [2, 45]), t(I, [2, 46]), t(I, [2, 47]), t(I, [2, 48]), t(I, [2, 49]), t(I, [2, 50]), t(I, [2, 51]), t(A, [2, 10]), t(A, [2, 22], { 30: 41, 29: 56, 24: N, 27: Dt }), t(A, [2, 24]), t(A, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, t(A, [2, 11]), t(A, [2, 30], { 33: 60, 27: Lt }), t(A, [2, 32]), { 31: [1, 61] }, t(A, [2, 12]), { 17: 62, 24: U }, { 25: 63, 27: vt }, t(A, [2, 14]), { 17: 65, 24: U }, t(A, [2, 16]), t(A, [2, 17]), t(I, [2, 41]), t(A, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(A, [2, 31]), { 27: [1, 69] }, t(A, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(A, [2, 15]), t(A, [2, 26]), t(A, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, t(A, [2, 33]), t(A, [2, 19]), { 25: 73, 27: vt }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
148
148
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
149
149
|
parseError: /* @__PURE__ */ a(function(M, h) {
|
|
150
150
|
if (h.recoverable)
|
|
@@ -155,7 +155,7 @@ var dt = function() {
|
|
|
155
155
|
}
|
|
156
156
|
}, "parseError"),
|
|
157
157
|
parse: /* @__PURE__ */ a(function(M) {
|
|
158
|
-
var h = this, l = [0], c = [], y = [null], n = [], L = this.table, x = "",
|
|
158
|
+
var h = this, l = [0], c = [], y = [null], n = [], L = this.table, x = "", j = 0, Et = 0, oi = 2, Pt = 1, hi = n.slice.call(arguments, 1), _ = Object.create(this.lexer), W = { yy: {} };
|
|
159
159
|
for (var tt in this.yy)
|
|
160
160
|
Object.prototype.hasOwnProperty.call(this.yy, tt) && (W.yy[tt] = this.yy[tt]);
|
|
161
161
|
_.setInput(M, W.yy), W.yy.lexer = _, W.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
@@ -172,15 +172,15 @@ var dt = function() {
|
|
|
172
172
|
return E = c.pop() || _.lex() || Pt, typeof E != "number" && (E instanceof Array && (c = E, E = c.pop()), E = h.symbols_[E] || E), E;
|
|
173
173
|
}
|
|
174
174
|
a(It, "lex");
|
|
175
|
-
for (var v, z, $, et, F = {},
|
|
175
|
+
for (var v, z, $, et, F = {}, G, B, $t, Q; ; ) {
|
|
176
176
|
if (z = l[l.length - 1], this.defaultActions[z] ? $ = this.defaultActions[z] : ((v === null || typeof v > "u") && (v = It()), $ = L[z] && L[z][v]), typeof $ > "u" || !$.length || !$[0]) {
|
|
177
177
|
var st = "";
|
|
178
178
|
Q = [];
|
|
179
|
-
for (
|
|
180
|
-
this.terminals_[
|
|
181
|
-
_.showPosition ? st = "Parse error on line " + (
|
|
179
|
+
for (G in L[z])
|
|
180
|
+
this.terminals_[G] && G > oi && Q.push("'" + this.terminals_[G] + "'");
|
|
181
|
+
_.showPosition ? st = "Parse error on line " + (j + 1) + `:
|
|
182
182
|
` + _.showPosition() + `
|
|
183
|
-
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st = "Parse error on line " + (
|
|
183
|
+
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st = "Parse error on line " + (j + 1) + ": Unexpected " + (v == Pt ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(st, {
|
|
184
184
|
text: _.match,
|
|
185
185
|
token: this.terminals_[v] || v,
|
|
186
186
|
line: _.yylineno,
|
|
@@ -192,7 +192,7 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
|
|
|
192
192
|
throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + v);
|
|
193
193
|
switch ($[0]) {
|
|
194
194
|
case 1:
|
|
195
|
-
l.push(v), y.push(_.yytext), n.push(_.yylloc), l.push($[1]), v = null, Et = _.yyleng, x = _.yytext,
|
|
195
|
+
l.push(v), y.push(_.yytext), n.push(_.yylloc), l.push($[1]), v = null, Et = _.yyleng, x = _.yytext, j = _.yylineno, it = _.yylloc;
|
|
196
196
|
break;
|
|
197
197
|
case 2:
|
|
198
198
|
if (B = this.productions_[$[1]][1], F.$ = y[y.length - B], F._$ = {
|
|
@@ -206,7 +206,7 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
|
|
|
206
206
|
]), et = this.performAction.apply(F, [
|
|
207
207
|
x,
|
|
208
208
|
Et,
|
|
209
|
-
|
|
209
|
+
j,
|
|
210
210
|
W.yy,
|
|
211
211
|
$[1],
|
|
212
212
|
y,
|
|
@@ -524,7 +524,7 @@ var nt, Xt = (nt = class {
|
|
|
524
524
|
getMaxDimension(t, i) {
|
|
525
525
|
if (!this.parentGroup)
|
|
526
526
|
return {
|
|
527
|
-
width: t.reduce((o,
|
|
527
|
+
width: t.reduce((o, u) => Math.max(u.length, o), 0) * i,
|
|
528
528
|
height: i
|
|
529
529
|
};
|
|
530
530
|
const e = {
|
|
@@ -532,8 +532,8 @@ var nt, Xt = (nt = class {
|
|
|
532
532
|
height: 0
|
|
533
533
|
}, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
534
534
|
for (const o of t) {
|
|
535
|
-
const
|
|
536
|
-
e.width = Math.max(e.width,
|
|
535
|
+
const u = Si(s, 1, o), g = u ? u.width : o.length * i, p = u ? u.height : i;
|
|
536
|
+
e.width = Math.max(e.width, g), e.height = Math.max(e.height, p);
|
|
537
537
|
}
|
|
538
538
|
return s.remove(), e;
|
|
539
539
|
}
|
|
@@ -910,8 +910,8 @@ var lt, Li = (lt = class {
|
|
|
910
910
|
] : [];
|
|
911
911
|
}
|
|
912
912
|
}, a(lt, "LinePlot"), lt), ct, vi = (ct = class {
|
|
913
|
-
constructor(t, i, e, s, o,
|
|
914
|
-
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = o, this.plotIndex =
|
|
913
|
+
constructor(t, i, e, s, o, u) {
|
|
914
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = o, this.plotIndex = u;
|
|
915
915
|
}
|
|
916
916
|
getDrawableElement() {
|
|
917
917
|
const t = this.barData.data.map((s) => [
|
|
@@ -948,7 +948,7 @@ var lt, Li = (lt = class {
|
|
|
948
948
|
}
|
|
949
949
|
];
|
|
950
950
|
}
|
|
951
|
-
}, a(ct, "BarPlot"), ct),
|
|
951
|
+
}, a(ct, "BarPlot"), ct), ut, Ei = (ut = class {
|
|
952
952
|
constructor(t, i, e) {
|
|
953
953
|
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
954
954
|
x: 0,
|
|
@@ -1003,12 +1003,12 @@ var lt, Li = (lt = class {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
return t;
|
|
1005
1005
|
}
|
|
1006
|
-
}, a(
|
|
1006
|
+
}, a(ut, "BasePlot"), ut);
|
|
1007
1007
|
function Ut(t, i, e) {
|
|
1008
1008
|
return new Ei(t, i, e);
|
|
1009
1009
|
}
|
|
1010
1010
|
a(Ut, "getPlotComponent");
|
|
1011
|
-
var
|
|
1011
|
+
var gt, Pi = (gt = class {
|
|
1012
1012
|
constructor(t, i, e, s) {
|
|
1013
1013
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1014
1014
|
title: Vt(t, i, e, s),
|
|
@@ -1038,32 +1038,32 @@ var ut, Pi = (ut = class {
|
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
1040
|
calculateVerticalSpace() {
|
|
1041
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100),
|
|
1041
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
|
|
1042
1042
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1043
|
-
),
|
|
1043
|
+
), g = this.componentStore.plot.calculateSpace({
|
|
1044
1044
|
width: o,
|
|
1045
|
-
height:
|
|
1045
|
+
height: u
|
|
1046
1046
|
});
|
|
1047
|
-
t -=
|
|
1047
|
+
t -= g.width, i -= g.height, g = this.componentStore.title.calculateSpace({
|
|
1048
1048
|
width: this.chartConfig.width,
|
|
1049
1049
|
height: i
|
|
1050
|
-
}), s =
|
|
1050
|
+
}), s = g.height, i -= g.height, this.componentStore.xAxis.setAxisPosition("bottom"), g = this.componentStore.xAxis.calculateSpace({
|
|
1051
1051
|
width: t,
|
|
1052
1052
|
height: i
|
|
1053
|
-
}), i -=
|
|
1053
|
+
}), i -= g.height, this.componentStore.yAxis.setAxisPosition("left"), g = this.componentStore.yAxis.calculateSpace({
|
|
1054
1054
|
width: t,
|
|
1055
1055
|
height: i
|
|
1056
|
-
}), e =
|
|
1056
|
+
}), e = g.width, t -= g.width, t > 0 && (o += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1057
1057
|
width: o,
|
|
1058
|
-
height:
|
|
1059
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s +
|
|
1058
|
+
height: u
|
|
1059
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + u }), this.componentStore.yAxis.setRange([s, s + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => ft(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1060
1060
|
}
|
|
1061
1061
|
calculateHorizontalSpace() {
|
|
1062
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = 0,
|
|
1062
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = 0, u = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
|
|
1063
1063
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1064
1064
|
), p = this.componentStore.plot.calculateSpace({
|
|
1065
|
-
width:
|
|
1066
|
-
height:
|
|
1065
|
+
width: u,
|
|
1066
|
+
height: g
|
|
1067
1067
|
});
|
|
1068
1068
|
t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
|
|
1069
1069
|
width: this.chartConfig.width,
|
|
@@ -1074,10 +1074,10 @@ var ut, Pi = (ut = class {
|
|
|
1074
1074
|
}), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
|
|
1075
1075
|
width: t,
|
|
1076
1076
|
height: i
|
|
1077
|
-
}), i -= p.height, o = e + p.height, t > 0 && (
|
|
1078
|
-
width:
|
|
1079
|
-
height:
|
|
1080
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: o }), this.componentStore.yAxis.setRange([s, s +
|
|
1077
|
+
}), i -= p.height, o = e + p.height, t > 0 && (u += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1078
|
+
width: u,
|
|
1079
|
+
height: g
|
|
1080
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: o }), this.componentStore.yAxis.setRange([s, s + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([o, o + g]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((S) => ft(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1081
1081
|
}
|
|
1082
1082
|
calculateSpace() {
|
|
1083
1083
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1090,20 +1090,20 @@ var ut, Pi = (ut = class {
|
|
|
1090
1090
|
t.push(...i.getDrawableElements());
|
|
1091
1091
|
return t;
|
|
1092
1092
|
}
|
|
1093
|
-
}, a(
|
|
1093
|
+
}, a(gt, "Orchestrator"), gt), xt, Ii = (xt = class {
|
|
1094
1094
|
static build(t, i, e, s) {
|
|
1095
1095
|
return new Pi(t, i, e, s).getDrawableElement();
|
|
1096
1096
|
}
|
|
1097
1097
|
}, a(xt, "XYChartBuilder"), xt), X = 0, Ht, Y = Ct(), V = wt(), m = kt(), yt = V.plotColorPalette.split(",").map((t) => t.trim()), Z = !1, St = !1;
|
|
1098
1098
|
function wt() {
|
|
1099
|
-
const t =
|
|
1100
|
-
return
|
|
1099
|
+
const t = bi(), i = bt();
|
|
1100
|
+
return Nt(t.xyChart, i.themeVariables.xyChart);
|
|
1101
1101
|
}
|
|
1102
1102
|
a(wt, "getChartDefaultThemeConfig");
|
|
1103
1103
|
function Ct() {
|
|
1104
1104
|
const t = bt();
|
|
1105
|
-
return
|
|
1106
|
-
|
|
1105
|
+
return Nt(
|
|
1106
|
+
yi.xyChart,
|
|
1107
1107
|
t.xyChart
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -1128,17 +1128,17 @@ function kt() {
|
|
|
1128
1128
|
a(kt, "getChartDefaultData");
|
|
1129
1129
|
function K(t) {
|
|
1130
1130
|
const i = bt();
|
|
1131
|
-
return
|
|
1131
|
+
return Ai(t.trim(), i);
|
|
1132
1132
|
}
|
|
1133
1133
|
a(K, "textSanitizer");
|
|
1134
|
-
function
|
|
1134
|
+
function jt(t) {
|
|
1135
1135
|
Ht = t;
|
|
1136
1136
|
}
|
|
1137
|
-
a(
|
|
1138
|
-
function
|
|
1137
|
+
a(jt, "setTmpSVGG");
|
|
1138
|
+
function Gt(t) {
|
|
1139
1139
|
t === "horizontal" ? Y.chartOrientation = "horizontal" : Y.chartOrientation = "vertical";
|
|
1140
1140
|
}
|
|
1141
|
-
a(
|
|
1141
|
+
a(Gt, "setOrientation");
|
|
1142
1142
|
function Qt(t) {
|
|
1143
1143
|
m.xAxis.title = K(t.text);
|
|
1144
1144
|
}
|
|
@@ -1182,10 +1182,10 @@ function Tt(t) {
|
|
|
1182
1182
|
_t(Math.min(e, 1), Math.max(s, t.length));
|
|
1183
1183
|
}
|
|
1184
1184
|
if (St || Jt(t), At(m.xAxis) && (i = m.xAxis.categories.map((e, s) => [e, t[s]])), O(m.xAxis)) {
|
|
1185
|
-
const e = m.xAxis.min, s = m.xAxis.max, o = (s - e) / (t.length - 1),
|
|
1186
|
-
for (let
|
|
1187
|
-
|
|
1188
|
-
i =
|
|
1185
|
+
const e = m.xAxis.min, s = m.xAxis.max, o = (s - e) / (t.length - 1), u = [];
|
|
1186
|
+
for (let g = e; g <= s; g += o)
|
|
1187
|
+
u.push(`${g}`);
|
|
1188
|
+
i = u.map((g, p) => [g, t[p]]);
|
|
1189
1189
|
}
|
|
1190
1190
|
return i;
|
|
1191
1191
|
}
|
|
@@ -1216,7 +1216,7 @@ a(ii, "setBarData");
|
|
|
1216
1216
|
function ei() {
|
|
1217
1217
|
if (m.plots.length === 0)
|
|
1218
1218
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1219
|
-
return m.title =
|
|
1219
|
+
return m.title = Ft(), Ii.build(Y, m, V, Ht);
|
|
1220
1220
|
}
|
|
1221
1221
|
a(ei, "getDrawableElem");
|
|
1222
1222
|
function si() {
|
|
@@ -1228,17 +1228,17 @@ function ni() {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
a(ni, "getChartConfig");
|
|
1230
1230
|
var $i = /* @__PURE__ */ a(function() {
|
|
1231
|
-
|
|
1231
|
+
mi(), X = 0, Y = Ct(), m = kt(), V = wt(), yt = V.plotColorPalette.split(",").map((t) => t.trim()), Z = !1, St = !1;
|
|
1232
1232
|
}, "clear"), Mi = {
|
|
1233
1233
|
getDrawableElem: ei,
|
|
1234
1234
|
clear: $i,
|
|
1235
1235
|
setAccTitle: pi,
|
|
1236
|
-
getAccTitle:
|
|
1237
|
-
setDiagramTitle:
|
|
1238
|
-
getDiagramTitle:
|
|
1239
|
-
getAccDescription:
|
|
1240
|
-
setAccDescription:
|
|
1241
|
-
setOrientation:
|
|
1236
|
+
getAccTitle: xi,
|
|
1237
|
+
setDiagramTitle: gi,
|
|
1238
|
+
getDiagramTitle: Ft,
|
|
1239
|
+
getAccDescription: ui,
|
|
1240
|
+
setAccDescription: ci,
|
|
1241
|
+
setOrientation: Gt,
|
|
1242
1242
|
setXAxisTitle: Qt,
|
|
1243
1243
|
setXAxisRangeData: _t,
|
|
1244
1244
|
setXAxisBand: Zt,
|
|
@@ -1246,11 +1246,11 @@ var $i = /* @__PURE__ */ a(function() {
|
|
|
1246
1246
|
setYAxisRangeData: qt,
|
|
1247
1247
|
setLineData: ti,
|
|
1248
1248
|
setBarData: ii,
|
|
1249
|
-
setTmpSVGG:
|
|
1249
|
+
setTmpSVGG: jt,
|
|
1250
1250
|
getChartThemeConfig: si,
|
|
1251
1251
|
getChartConfig: ni
|
|
1252
1252
|
}, Bi = /* @__PURE__ */ a((t, i, e, s) => {
|
|
1253
|
-
const o = s.db,
|
|
1253
|
+
const o = s.db, u = o.getChartThemeConfig(), g = o.getChartConfig();
|
|
1254
1254
|
function p(d) {
|
|
1255
1255
|
return d === "top" ? "text-before-edge" : "middle";
|
|
1256
1256
|
}
|
|
@@ -1264,8 +1264,8 @@ var $i = /* @__PURE__ */ a(function() {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
a(T, "getTextTransformation"), Ot.debug(`Rendering xychart chart
|
|
1266
1266
|
` + t);
|
|
1267
|
-
const k =
|
|
1268
|
-
|
|
1267
|
+
const k = di(i), b = k.append("g").attr("class", "main"), f = b.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
|
|
1268
|
+
fi(k, g.height, g.width, !0), k.attr("viewBox", `0 0 ${g.width} ${g.height}`), f.attr("fill", u.backgroundColor), o.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
|
|
1269
1269
|
const R = o.getDrawableElem(), w = {};
|
|
1270
1270
|
function D(d) {
|
|
1271
1271
|
let C = b, r = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/documentation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/documentation.umd.js",
|
|
6
6
|
"module": "./dist/documentation.es.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@kong/icons": "^1.31.0",
|
|
25
25
|
"@kong/markdown": "1.7.32",
|
|
26
|
-
"@kong-ui-public/entities-shared": "^3.26.
|
|
26
|
+
"@kong-ui-public/entities-shared": "^3.26.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@kong/kongponents": "^9.34.2",
|