@kong-ui-public/documentation 0.7.83 → 0.7.84
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-CMfPif8e-CmRJF0Pz.js +151 -0
- package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
- package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
- package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
- package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
- package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
- package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
- package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
- package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
- package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
- package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
- package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
- package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
- package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
- package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
- package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
- package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +401 -273
- package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
- package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
- package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
- package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
- package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
- package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
- package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
- package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
- package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
- package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
- package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
- package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
- package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
- package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
- package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
- package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
- package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
- package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
- package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
- package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
- package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
- package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
- package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
- package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
- package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
- package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
- package/package.json +2 -2
- package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
- package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
- package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
- package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
- package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
- package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
- package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
- package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
- package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
- package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
- package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
- package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
- package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
- package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
- package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
- package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
- package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
- package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Z as Vn, X as jn, O as Bn, _ as Zn, w as Ue } from "./linear-
|
|
1
|
+
import { aI as Re, aJ as Ke, aK as Qe, aL as Xe, aM as ve, _ as d, aN as et, aO as Te, g as _t, a5 as Fn, a6 as Yn, al as An, am as En, a8 as Un, a7 as In, aP as Ln, ar as Wn, ah as Hn, l as Jt, af as jt, ag as zn, ab as Nn, aq as On, aQ as ne, aR as Pn } from "./index-BXFfc1qh.js";
|
|
2
|
+
import { Z as Vn, X as jn, O as Bn, _ as Zn, w as Ue } from "./linear-XztDb0hj-RsuwoFLQ.js";
|
|
3
3
|
import { t as Gn } from "./init-DjUOC4st-C8Nwz6AJ.js";
|
|
4
4
|
function qn(t, e) {
|
|
5
5
|
let n;
|
|
@@ -29,10 +29,10 @@ function Rn(t) {
|
|
|
29
29
|
return t;
|
|
30
30
|
}
|
|
31
31
|
var Zt = 1, re = 2, fe = 3, Bt = 4, Ie = 1e-6;
|
|
32
|
-
function
|
|
32
|
+
function Kn(t) {
|
|
33
33
|
return "translate(" + t + ",0)";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Qn(t) {
|
|
36
36
|
return "translate(0," + t + ")";
|
|
37
37
|
}
|
|
38
38
|
function Xn(t) {
|
|
@@ -45,7 +45,7 @@ function er() {
|
|
|
45
45
|
return !this.__axis;
|
|
46
46
|
}
|
|
47
47
|
function tn(t, e) {
|
|
48
|
-
var n = [], r = null, a = null, s = 6, c = 6, m = 3, $ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, f = t === Zt || t === Bt ? -1 : 1, C = t === Bt || t === re ? "x" : "y", Y = t === Zt || t === fe ?
|
|
48
|
+
var n = [], r = null, a = null, s = 6, c = 6, m = 3, $ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, f = t === Zt || t === Bt ? -1 : 1, C = t === Bt || t === re ? "x" : "y", Y = t === Zt || t === fe ? Kn : Qn;
|
|
49
49
|
function x(w) {
|
|
50
50
|
var Z = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), y = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Rn), A = Math.max(s, 0) + m, z = e.range(), H = +z[0] + $, V = +z[z.length - 1] + $, j = (e.bandwidth ? tr : Xn)(e.copy(), $), R = w.selection ? w.selection() : w, b = R.selectAll(".domain").data([null]), U = R.selectAll(".tick").data(Z, e).order(), T = U.exit(), F = U.enter().append("g").attr("class", "tick"), M = U.select("line"), D = U.select("text");
|
|
51
51
|
b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), U = U.merge(F), M = M.merge(F.append("line").attr("stroke", "currentColor").attr(C + "2", f * s)), D = D.merge(F.append("text").attr("fill", "currentColor").attr(C, f * A).attr("dy", t === Zt ? "0em" : t === fe ? "0.71em" : "0.32em")), w !== R && (b = b.transition(w), U = U.transition(w), M = M.transition(w), D = D.transition(w), T = T.transition(w).attr("opacity", Ie).attr("transform", function(k) {
|
|
@@ -91,7 +91,7 @@ const ir = Math.PI / 180, ar = 180 / Math.PI, Rt = 18, en = 0.96422, nn = 1, rn
|
|
|
91
91
|
function on(t) {
|
|
92
92
|
if (t instanceof ot) return new ot(t.l, t.a, t.b, t.opacity);
|
|
93
93
|
if (t instanceof dt) return cn(t);
|
|
94
|
-
t instanceof
|
|
94
|
+
t instanceof Qe || (t = Ln(t));
|
|
95
95
|
var e = oe(t.r), n = oe(t.g), r = oe(t.b), a = ie((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / nn), s, c;
|
|
96
96
|
return e === n && n === r ? s = c = a : (s = ie((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / en), c = ie((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / rn)), new ot(116 * a - 16, 500 * (s - a), 200 * (a - c), t.opacity);
|
|
97
97
|
}
|
|
@@ -101,7 +101,7 @@ function or(t, e, n, r) {
|
|
|
101
101
|
function ot(t, e, n, r) {
|
|
102
102
|
this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
|
|
103
103
|
}
|
|
104
|
-
Re(ot, or,
|
|
104
|
+
Re(ot, or, Ke(Xe, {
|
|
105
105
|
brighter(t) {
|
|
106
106
|
return new ot(this.l + Rt * (t ?? 1), this.a, this.b, this.opacity);
|
|
107
107
|
},
|
|
@@ -110,7 +110,7 @@ Re(ot, or, Qe(Xe, {
|
|
|
110
110
|
},
|
|
111
111
|
rgb() {
|
|
112
112
|
var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
|
|
113
|
-
return e = en * ae(e), t = nn * ae(t), n = rn * ae(n), new
|
|
113
|
+
return e = en * ae(e), t = nn * ae(t), n = rn * ae(n), new Qe(
|
|
114
114
|
se(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
|
|
115
115
|
se(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
|
|
116
116
|
se(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
|
|
@@ -147,7 +147,7 @@ function cn(t) {
|
|
|
147
147
|
var e = t.h * ir;
|
|
148
148
|
return new ot(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
|
|
149
149
|
}
|
|
150
|
-
Re(dt, ge,
|
|
150
|
+
Re(dt, ge, Ke(Xe, {
|
|
151
151
|
brighter(t) {
|
|
152
152
|
return new dt(this.h, this.c, this.l + Rt * (t ?? 1), this.opacity);
|
|
153
153
|
},
|
|
@@ -173,7 +173,7 @@ function dr(t, e) {
|
|
|
173
173
|
return s < a && (c = n, n = r, r = c, c = a, a = s, s = c), t[n] = e.floor(a), t[r] = e.ceil(s), t;
|
|
174
174
|
}
|
|
175
175
|
const ce = /* @__PURE__ */ new Date(), le = /* @__PURE__ */ new Date();
|
|
176
|
-
function
|
|
176
|
+
function Q(t, e, n, r) {
|
|
177
177
|
function a(s) {
|
|
178
178
|
return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
|
|
179
179
|
}
|
|
@@ -188,7 +188,7 @@ function K(t, e, n, r) {
|
|
|
188
188
|
$.push(f = /* @__PURE__ */ new Date(+s)), e(s, m), t(s);
|
|
189
189
|
while (f < s && s < c);
|
|
190
190
|
return $;
|
|
191
|
-
}, a.filter = (s) =>
|
|
191
|
+
}, a.filter = (s) => Q((c) => {
|
|
192
192
|
if (c >= c) for (; t(c), !s(c); ) c.setTime(c - 1);
|
|
193
193
|
}, (c, m) => {
|
|
194
194
|
if (c >= c)
|
|
@@ -200,67 +200,67 @@ function K(t, e, n, r) {
|
|
|
200
200
|
;
|
|
201
201
|
}), n && (a.count = (s, c) => (ce.setTime(+s), le.setTime(+c), t(ce), t(le), Math.floor(n(ce, le))), a.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? a.filter(r ? (c) => r(c) % s === 0 : (c) => a.count(0, c) % s === 0) : a)), a;
|
|
202
202
|
}
|
|
203
|
-
const $t =
|
|
203
|
+
const $t = Q(() => {
|
|
204
204
|
}, (t, e) => {
|
|
205
205
|
t.setTime(+t + e);
|
|
206
206
|
}, (t, e) => e - t);
|
|
207
|
-
$t.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ?
|
|
207
|
+
$t.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? Q((e) => {
|
|
208
208
|
e.setTime(Math.floor(e / t) * t);
|
|
209
209
|
}, (e, n) => {
|
|
210
210
|
e.setTime(+e + n * t);
|
|
211
211
|
}, (e, n) => (n - e) / t) : $t);
|
|
212
212
|
$t.range;
|
|
213
|
-
const ht = 1e3, at = ht * 60, ft = at * 60, gt = ft * 24, be = gt * 7, Le = gt * 30, ue = gt * 365, mt =
|
|
213
|
+
const ht = 1e3, at = ht * 60, ft = at * 60, gt = ft * 24, be = gt * 7, Le = gt * 30, ue = gt * 365, mt = Q((t) => {
|
|
214
214
|
t.setTime(t - t.getMilliseconds());
|
|
215
215
|
}, (t, e) => {
|
|
216
216
|
t.setTime(+t + e * ht);
|
|
217
217
|
}, (t, e) => (e - t) / ht, (t) => t.getUTCSeconds());
|
|
218
218
|
mt.range;
|
|
219
|
-
const It =
|
|
219
|
+
const It = Q((t) => {
|
|
220
220
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht);
|
|
221
221
|
}, (t, e) => {
|
|
222
222
|
t.setTime(+t + e * at);
|
|
223
223
|
}, (t, e) => (e - t) / at, (t) => t.getMinutes());
|
|
224
224
|
It.range;
|
|
225
|
-
const hr =
|
|
225
|
+
const hr = Q((t) => {
|
|
226
226
|
t.setUTCSeconds(0, 0);
|
|
227
227
|
}, (t, e) => {
|
|
228
228
|
t.setTime(+t + e * at);
|
|
229
229
|
}, (t, e) => (e - t) / at, (t) => t.getUTCMinutes());
|
|
230
230
|
hr.range;
|
|
231
|
-
const Lt =
|
|
231
|
+
const Lt = Q((t) => {
|
|
232
232
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht - t.getMinutes() * at);
|
|
233
233
|
}, (t, e) => {
|
|
234
234
|
t.setTime(+t + e * ft);
|
|
235
235
|
}, (t, e) => (e - t) / ft, (t) => t.getHours());
|
|
236
236
|
Lt.range;
|
|
237
|
-
const fr =
|
|
237
|
+
const fr = Q((t) => {
|
|
238
238
|
t.setUTCMinutes(0, 0, 0);
|
|
239
239
|
}, (t, e) => {
|
|
240
240
|
t.setTime(+t + e * ft);
|
|
241
241
|
}, (t, e) => (e - t) / ft, (t) => t.getUTCHours());
|
|
242
242
|
fr.range;
|
|
243
|
-
const vt =
|
|
243
|
+
const vt = Q(
|
|
244
244
|
(t) => t.setHours(0, 0, 0, 0),
|
|
245
245
|
(t, e) => t.setDate(t.getDate() + e),
|
|
246
246
|
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * at) / gt,
|
|
247
247
|
(t) => t.getDate() - 1
|
|
248
248
|
);
|
|
249
249
|
vt.range;
|
|
250
|
-
const xe =
|
|
250
|
+
const xe = Q((t) => {
|
|
251
251
|
t.setUTCHours(0, 0, 0, 0);
|
|
252
252
|
}, (t, e) => {
|
|
253
253
|
t.setUTCDate(t.getUTCDate() + e);
|
|
254
254
|
}, (t, e) => (e - t) / gt, (t) => t.getUTCDate() - 1);
|
|
255
255
|
xe.range;
|
|
256
|
-
const gr =
|
|
256
|
+
const gr = Q((t) => {
|
|
257
257
|
t.setUTCHours(0, 0, 0, 0);
|
|
258
258
|
}, (t, e) => {
|
|
259
259
|
t.setUTCDate(t.getUTCDate() + e);
|
|
260
260
|
}, (t, e) => (e - t) / gt, (t) => Math.floor(t / gt));
|
|
261
261
|
gr.range;
|
|
262
262
|
function xt(t) {
|
|
263
|
-
return
|
|
263
|
+
return Q((e) => {
|
|
264
264
|
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
|
|
265
265
|
}, (e, n) => {
|
|
266
266
|
e.setDate(e.getDate() + n * 7);
|
|
@@ -275,49 +275,49 @@ Tt.range;
|
|
|
275
275
|
dn.range;
|
|
276
276
|
hn.range;
|
|
277
277
|
function wt(t) {
|
|
278
|
-
return
|
|
278
|
+
return Q((e) => {
|
|
279
279
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
280
280
|
}, (e, n) => {
|
|
281
281
|
e.setUTCDate(e.getUTCDate() + n * 7);
|
|
282
282
|
}, (e, n) => (n - e) / be);
|
|
283
283
|
}
|
|
284
|
-
const fn = wt(0),
|
|
284
|
+
const fn = wt(0), Kt = wt(1), yr = wt(2), mr = wt(3), Ft = wt(4), kr = wt(5), pr = wt(6);
|
|
285
285
|
fn.range;
|
|
286
|
-
|
|
286
|
+
Kt.range;
|
|
287
287
|
yr.range;
|
|
288
288
|
mr.range;
|
|
289
289
|
Ft.range;
|
|
290
290
|
kr.range;
|
|
291
291
|
pr.range;
|
|
292
|
-
const Ht =
|
|
292
|
+
const Ht = Q((t) => {
|
|
293
293
|
t.setDate(1), t.setHours(0, 0, 0, 0);
|
|
294
294
|
}, (t, e) => {
|
|
295
295
|
t.setMonth(t.getMonth() + e);
|
|
296
296
|
}, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
|
|
297
297
|
Ht.range;
|
|
298
|
-
const vr =
|
|
298
|
+
const vr = Q((t) => {
|
|
299
299
|
t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
|
|
300
300
|
}, (t, e) => {
|
|
301
301
|
t.setUTCMonth(t.getUTCMonth() + e);
|
|
302
302
|
}, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
|
|
303
303
|
vr.range;
|
|
304
|
-
const yt =
|
|
304
|
+
const yt = Q((t) => {
|
|
305
305
|
t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
306
306
|
}, (t, e) => {
|
|
307
307
|
t.setFullYear(t.getFullYear() + e);
|
|
308
308
|
}, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
|
|
309
|
-
yt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null :
|
|
309
|
+
yt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Q((e) => {
|
|
310
310
|
e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
311
311
|
}, (e, n) => {
|
|
312
312
|
e.setFullYear(e.getFullYear() + n * t);
|
|
313
313
|
});
|
|
314
314
|
yt.range;
|
|
315
|
-
const bt =
|
|
315
|
+
const bt = Q((t) => {
|
|
316
316
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
317
317
|
}, (t, e) => {
|
|
318
318
|
t.setUTCFullYear(t.getUTCFullYear() + e);
|
|
319
319
|
}, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
|
|
320
|
-
bt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null :
|
|
320
|
+
bt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Q((e) => {
|
|
321
321
|
e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
322
322
|
}, (e, n) => {
|
|
323
323
|
e.setUTCFullYear(e.getUTCFullYear() + n * t);
|
|
@@ -401,8 +401,8 @@ function wr(t) {
|
|
|
401
401
|
s: Ze,
|
|
402
402
|
S: Jr,
|
|
403
403
|
u: Rr,
|
|
404
|
-
U:
|
|
405
|
-
V:
|
|
404
|
+
U: Kr,
|
|
405
|
+
V: Qr,
|
|
406
406
|
w: Xr,
|
|
407
407
|
W: ti,
|
|
408
408
|
x: null,
|
|
@@ -495,7 +495,7 @@ function wr(t) {
|
|
|
495
495
|
if ("s" in u) return new Date(u.s * 1e3 + ("L" in u ? u.L : 0));
|
|
496
496
|
if (E && !("Z" in u) && (u.Z = 0), "p" in u && (u.H = u.H % 12 + u.p * 12), u.m === void 0 && (u.m = "q" in u ? u.q : 0), "V" in u) {
|
|
497
497
|
if (u.V < 1 || u.V > 53) return null;
|
|
498
|
-
"w" in u || (u.w = 1), "Z" in u ? (W = he(At(u.y, 0, 1)), B = W.getUTCDay(), W = B > 4 || B === 0 ?
|
|
498
|
+
"w" in u || (u.w = 1), "Z" in u ? (W = he(At(u.y, 0, 1)), B = W.getUTCDay(), W = B > 4 || B === 0 ? Kt.ceil(W) : Kt(W), W = xe.offset(W, (u.V - 1) * 7), u.y = W.getUTCFullYear(), u.m = W.getUTCMonth(), u.d = W.getUTCDate() + (u.w + 6) % 7) : (W = de(At(u.y, 0, 1)), B = W.getDay(), W = B > 4 || B === 0 ? Wt.ceil(W) : Wt(W), W = vt.offset(W, (u.V - 1) * 7), u.y = W.getFullYear(), u.m = W.getMonth(), u.d = W.getDate() + (u.w + 6) % 7);
|
|
499
499
|
} else ("W" in u || "U" in u) && ("w" in u || (u.w = "u" in u ? u.u % 7 : "W" in u ? 1 : 0), B = "Z" in u ? he(At(u.y, 0, 1)).getUTCDay() : de(At(u.y, 0, 1)).getDay(), u.m = 0, u.d = "W" in u ? (u.w + 6) % 7 + u.W * 7 - (B + 5) % 7 : u.w + u.U * 7 - (B + 6) % 7);
|
|
500
500
|
return "Z" in u ? (u.H += u.Z / 100 | 0, u.M += u.Z % 100, he(u)) : de(u);
|
|
501
501
|
};
|
|
@@ -727,14 +727,14 @@ function Rr(t) {
|
|
|
727
727
|
var e = t.getDay();
|
|
728
728
|
return e === 0 ? 7 : e;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Kr(t, e) {
|
|
731
731
|
return P(zt.count(yt(t) - 1, t), e, 2);
|
|
732
732
|
}
|
|
733
733
|
function yn(t) {
|
|
734
734
|
var e = t.getDay();
|
|
735
735
|
return e >= 4 || e === 0 ? Tt(t) : Tt.ceil(t);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Qr(t, e) {
|
|
738
738
|
return t = yn(t), P(Tt.count(yt(t), t) + (yt(t).getDay() === 4), e, 2);
|
|
739
739
|
}
|
|
740
740
|
function Xr(t) {
|
|
@@ -805,7 +805,7 @@ function mi(t) {
|
|
|
805
805
|
return t.getUTCDay();
|
|
806
806
|
}
|
|
807
807
|
function ki(t, e) {
|
|
808
|
-
return P(
|
|
808
|
+
return P(Kt.count(bt(t) - 1, t), e, 2);
|
|
809
809
|
}
|
|
810
810
|
function pi(t, e) {
|
|
811
811
|
return P(t.getUTCFullYear() % 100, e, 2);
|
|
@@ -832,7 +832,7 @@ function Be(t) {
|
|
|
832
832
|
function Ze(t) {
|
|
833
833
|
return Math.floor(+t / 1e3);
|
|
834
834
|
}
|
|
835
|
-
var Dt,
|
|
835
|
+
var Dt, Qt;
|
|
836
836
|
wi({
|
|
837
837
|
dateTime: "%x, %X",
|
|
838
838
|
date: "%-m/%-d/%Y",
|
|
@@ -844,7 +844,7 @@ wi({
|
|
|
844
844
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
845
845
|
});
|
|
846
846
|
function wi(t) {
|
|
847
|
-
return Dt = wr(t),
|
|
847
|
+
return Dt = wr(t), Qt = Dt.format, Dt.parse, Dt.utcFormat, Dt.utcParse, Dt;
|
|
848
848
|
}
|
|
849
849
|
function Ci(t) {
|
|
850
850
|
return new Date(t);
|
|
@@ -874,7 +874,7 @@ function pn(t, e, n, r, a, s, c, m, $, f) {
|
|
|
874
874
|
}, C;
|
|
875
875
|
}
|
|
876
876
|
function _i() {
|
|
877
|
-
return Gn.apply(pn(br, xr, yt, Ht, zt, vt, Lt, It, mt,
|
|
877
|
+
return Gn.apply(pn(br, xr, yt, Ht, zt, vt, Lt, It, mt, Qt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
878
878
|
}
|
|
879
879
|
var vn = { exports: {} };
|
|
880
880
|
(function(t, e) {
|
|
@@ -1593,7 +1593,7 @@ et.extend(Si);
|
|
|
1593
1593
|
et.extend(Fi);
|
|
1594
1594
|
et.extend(Ai);
|
|
1595
1595
|
var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt = [], Ot = [], _e = /* @__PURE__ */ new Map(), Me = [], Xt = [], Yt = "", Se = "", xn = ["active", "done", "crit", "milestone"], $e = [], Pt = !1, Fe = !1, Ye = "sunday", te = "saturday", me = 0, Ui = /* @__PURE__ */ d(function() {
|
|
1596
|
-
Me = [], Xt = [], Yt = "", $e = [], Gt = 0, pe = void 0, qt = void 0,
|
|
1596
|
+
Me = [], Xt = [], Yt = "", $e = [], Gt = 0, pe = void 0, qt = void 0, K = [], st = "", we = "", Se = "", Ce = void 0, De = "", Nt = [], Ot = [], Pt = !1, Fe = !1, me = 0, _e = /* @__PURE__ */ new Map(), Wn(), Ye = "sunday", te = "saturday";
|
|
1597
1597
|
}, "clear"), Ii = /* @__PURE__ */ d(function(t) {
|
|
1598
1598
|
we = t;
|
|
1599
1599
|
}, "setAxisFormat"), Li = /* @__PURE__ */ d(function() {
|
|
@@ -1626,9 +1626,9 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1626
1626
|
Nt = t.toLowerCase().split(/[\s,]+/);
|
|
1627
1627
|
}, "setIncludes"), Ri = /* @__PURE__ */ d(function() {
|
|
1628
1628
|
return Nt;
|
|
1629
|
-
}, "getIncludes"),
|
|
1629
|
+
}, "getIncludes"), Ki = /* @__PURE__ */ d(function(t) {
|
|
1630
1630
|
Ot = t.toLowerCase().split(/[\s,]+/);
|
|
1631
|
-
}, "setExcludes"),
|
|
1631
|
+
}, "setExcludes"), Qi = /* @__PURE__ */ d(function() {
|
|
1632
1632
|
return Ot;
|
|
1633
1633
|
}, "getExcludes"), Xi = /* @__PURE__ */ d(function() {
|
|
1634
1634
|
return _e;
|
|
@@ -1642,7 +1642,7 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1642
1642
|
let n = 0;
|
|
1643
1643
|
for (; !t && n < e; )
|
|
1644
1644
|
t = qe(), n++;
|
|
1645
|
-
return Xt =
|
|
1645
|
+
return Xt = K, Xt;
|
|
1646
1646
|
}, "getTasks"), wn = /* @__PURE__ */ d(function(t, e, n, r) {
|
|
1647
1647
|
return r.includes(t.format(e.trim())) ? !1 : n.includes("weekends") && (t.isoWeekday() === Ge[te] || t.isoWeekday() === Ge[te] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(t.format(e.trim()));
|
|
1648
1648
|
}, "isInvalidDate"), ra = /* @__PURE__ */ d(function(t) {
|
|
@@ -1783,7 +1783,7 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1783
1783
|
break;
|
|
1784
1784
|
}
|
|
1785
1785
|
return a;
|
|
1786
|
-
}, "parseData"), pe, qt,
|
|
1786
|
+
}, "parseData"), pe, qt, K = [], Mn = {}, la = /* @__PURE__ */ d(function(t, e) {
|
|
1787
1787
|
const n = {
|
|
1788
1788
|
section: Yt,
|
|
1789
1789
|
type: Yt,
|
|
@@ -1795,11 +1795,11 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1795
1795
|
classes: []
|
|
1796
1796
|
}, r = ca(qt, e);
|
|
1797
1797
|
n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = qt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.order = me, me++;
|
|
1798
|
-
const a =
|
|
1798
|
+
const a = K.push(n);
|
|
1799
1799
|
qt = n.id, Mn[n.id] = a - 1;
|
|
1800
1800
|
}, "addTask"), Ct = /* @__PURE__ */ d(function(t) {
|
|
1801
1801
|
const e = Mn[t];
|
|
1802
|
-
return
|
|
1802
|
+
return K[e];
|
|
1803
1803
|
}, "findTaskById"), ua = /* @__PURE__ */ d(function(t, e) {
|
|
1804
1804
|
const n = {
|
|
1805
1805
|
section: Yt,
|
|
@@ -1811,31 +1811,31 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1811
1811
|
n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, pe = n, Xt.push(n);
|
|
1812
1812
|
}, "addTaskOrg"), qe = /* @__PURE__ */ d(function() {
|
|
1813
1813
|
const t = /* @__PURE__ */ d(function(n) {
|
|
1814
|
-
const r =
|
|
1814
|
+
const r = K[n];
|
|
1815
1815
|
let a = "";
|
|
1816
|
-
switch (
|
|
1816
|
+
switch (K[n].raw.startTime.type) {
|
|
1817
1817
|
case "prevTaskEnd": {
|
|
1818
1818
|
const s = Ct(r.prevTaskId);
|
|
1819
1819
|
r.startTime = s.endTime;
|
|
1820
1820
|
break;
|
|
1821
1821
|
}
|
|
1822
1822
|
case "getStartDate":
|
|
1823
|
-
a = ke(void 0, st,
|
|
1823
|
+
a = ke(void 0, st, K[n].raw.startTime.startData), a && (K[n].startTime = a);
|
|
1824
1824
|
break;
|
|
1825
1825
|
}
|
|
1826
|
-
return
|
|
1827
|
-
|
|
1826
|
+
return K[n].startTime && (K[n].endTime = _n(
|
|
1827
|
+
K[n].startTime,
|
|
1828
1828
|
st,
|
|
1829
|
-
|
|
1829
|
+
K[n].raw.endTime.data,
|
|
1830
1830
|
Pt
|
|
1831
|
-
),
|
|
1832
|
-
|
|
1831
|
+
), K[n].endTime && (K[n].processed = !0, K[n].manualEndTime = et(
|
|
1832
|
+
K[n].raw.endTime.data,
|
|
1833
1833
|
"YYYY-MM-DD",
|
|
1834
1834
|
!0
|
|
1835
|
-
).isValid(), Cn(
|
|
1835
|
+
).isValid(), Cn(K[n], st, Ot, Nt))), K[n].processed;
|
|
1836
1836
|
}, "compileTask");
|
|
1837
1837
|
let e = !0;
|
|
1838
|
-
for (const [n, r] of
|
|
1838
|
+
for (const [n, r] of K.entries())
|
|
1839
1839
|
t(n), e = e && r.processed;
|
|
1840
1840
|
return e;
|
|
1841
1841
|
}, "compileTasks"), da = /* @__PURE__ */ d(function(t, e) {
|
|
@@ -1918,8 +1918,8 @@ var Ge = { friday: 5, saturday: 6 }, st = "", we = "", Ce = void 0, De = "", Nt
|
|
|
1918
1918
|
addTaskOrg: ua,
|
|
1919
1919
|
setIncludes: Ji,
|
|
1920
1920
|
getIncludes: Ri,
|
|
1921
|
-
setExcludes:
|
|
1922
|
-
getExcludes:
|
|
1921
|
+
setExcludes: Ki,
|
|
1922
|
+
getExcludes: Qi,
|
|
1923
1923
|
setClickEvent: fa,
|
|
1924
1924
|
setLink: da,
|
|
1925
1925
|
getLinks: Xi,
|
|
@@ -2118,7 +2118,7 @@ var ma = /* @__PURE__ */ d(function() {
|
|
|
2118
2118
|
}
|
|
2119
2119
|
d(V, "drawExcludeDays");
|
|
2120
2120
|
function j(T, F, M, D) {
|
|
2121
|
-
let k = rr(y).tickSize(-D + F + a.gridLineStartPadding).tickFormat(
|
|
2121
|
+
let k = rr(y).tickSize(-D + F + a.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
2122
2122
|
const _ = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
|
|
2123
2123
|
r.db.getTickInterval() || a.tickInterval
|
|
2124
2124
|
);
|
|
@@ -2149,7 +2149,7 @@ var ma = /* @__PURE__ */ d(function() {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
if (Z.append("g").attr("class", "grid").attr("transform", "translate(" + T + ", " + (D - 50) + ")").call(k).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || a.topAxis) {
|
|
2152
|
-
let o = nr(y).tickSize(-D + F + a.gridLineStartPadding).tickFormat(
|
|
2152
|
+
let o = nr(y).tickSize(-D + F + a.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
2153
2153
|
if (_ !== null) {
|
|
2154
2154
|
const g = _[1], h = _[2], S = r.db.getWeekday() || a.weekday;
|
|
2155
2155
|
switch (h) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as J } from "./chunk-
|
|
2
|
-
import { e as Q } from "./chunk-
|
|
3
|
-
import {
|
|
4
|
-
import { X as gt } from "./mermaid-parser.core-
|
|
1
|
+
import { m as J } from "./chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js";
|
|
2
|
+
import { e as Q } from "./chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js";
|
|
3
|
+
import { aB as Z, _ as $, g as tt, aC as rt, aD as et, aE as ot, l as w, a5 as nt, a6 as at, a7 as ct, a8 as it, al as st, am as dt, ab as k, ar as ht, af as mt, aq as $t, aF as lt } from "./index-BXFfc1qh.js";
|
|
4
|
+
import { X as gt } from "./mermaid-parser.core-C4mt_cFi-BuaZi6gx.js";
|
|
5
5
|
var x = {
|
|
6
6
|
NORMAL: 0,
|
|
7
7
|
REVERSE: 1,
|
|
@@ -325,19 +325,19 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
325
325
|
At(e, t);
|
|
326
326
|
}, "populate"), At = /* @__PURE__ */ $((r, t) => {
|
|
327
327
|
const e = {
|
|
328
|
-
Commit: /* @__PURE__ */ $((a) => t.commit(
|
|
329
|
-
Branch: /* @__PURE__ */ $((a) => t.branch(
|
|
328
|
+
Commit: /* @__PURE__ */ $((a) => t.commit(It(a)), "Commit"),
|
|
329
|
+
Branch: /* @__PURE__ */ $((a) => t.branch(Gt(a)), "Branch"),
|
|
330
330
|
Merge: /* @__PURE__ */ $((a) => t.merge(Ot(a)), "Merge"),
|
|
331
331
|
Checkout: /* @__PURE__ */ $((a) => t.checkout(qt(a)), "Checkout"),
|
|
332
332
|
CherryPicking: /* @__PURE__ */ $((a) => t.cherryPick(Ht(a)), "CherryPicking")
|
|
333
333
|
}[r.$type];
|
|
334
334
|
e ? e(r) : w.error(`Unknown statement type: ${r.$type}`);
|
|
335
|
-
}, "parseStatement"),
|
|
335
|
+
}, "parseStatement"), It = /* @__PURE__ */ $((r) => ({
|
|
336
336
|
id: r.id,
|
|
337
337
|
msg: r.message ?? "",
|
|
338
338
|
type: r.type !== void 0 ? x[r.type] : x.NORMAL,
|
|
339
339
|
tags: r.tags ?? void 0
|
|
340
|
-
}), "parseCommit"),
|
|
340
|
+
}), "parseCommit"), Gt = /* @__PURE__ */ $((r) => ({
|
|
341
341
|
name: r.name,
|
|
342
342
|
order: r.order ?? 0
|
|
343
343
|
}), "parseBranch"), Ot = /* @__PURE__ */ $((r) => ({
|
|
@@ -358,7 +358,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
358
358
|
const t = await gt("gitGraph", r);
|
|
359
359
|
w.debug(t), Rt(t, V);
|
|
360
360
|
}, "parse")
|
|
361
|
-
}, W = tt(), E = W == null ? void 0 : W.gitGraph, A = 10,
|
|
361
|
+
}, W = tt(), E = W == null ? void 0 : W.gitGraph, A = 10, I = 40, T = 4, M = 2, G = 8, v = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), z = 30, q = /* @__PURE__ */ new Map(), D = [], R = 0, f = "LR", Dt = /* @__PURE__ */ $(() => {
|
|
362
362
|
v.clear(), C.clear(), q.clear(), R = 0, D = [], f = "LR";
|
|
363
363
|
}, "clear"), X = /* @__PURE__ */ $((r) => {
|
|
364
364
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
@@ -393,7 +393,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
393
393
|
const d = t.get(h);
|
|
394
394
|
if (d != null && d.parents.length) {
|
|
395
395
|
const l = St(d.parents);
|
|
396
|
-
a = C.get(l).y -
|
|
396
|
+
a = C.get(l).y - I, a <= c && (c = a);
|
|
397
397
|
const o = v.get(d.branch).pos, n = a - A;
|
|
398
398
|
C.set(d.id, { x: o, y: n });
|
|
399
399
|
}
|
|
@@ -407,7 +407,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
407
407
|
if (a === void 0)
|
|
408
408
|
throw new Error(`Closest parent position not found for commit ${r.id}`);
|
|
409
409
|
return a;
|
|
410
|
-
}, "findClosestParentPos"), Wt = /* @__PURE__ */ $((r) => _t(r) +
|
|
410
|
+
}, "findClosestParentPos"), Wt = /* @__PURE__ */ $((r) => _t(r) + I, "calculateCommitPosition"), jt = /* @__PURE__ */ $((r, t) => {
|
|
411
411
|
const e = v.get(r.branch);
|
|
412
412
|
if (!e)
|
|
413
413
|
throw new Error(`Branch not found for commit ${r.id}`);
|
|
@@ -423,26 +423,26 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
423
423
|
if (i === x.HIGHLIGHT)
|
|
424
424
|
r.append("rect").attr("x", e.x - 10).attr("y", e.y - 10).attr("width", 20).attr("height", 20).attr(
|
|
425
425
|
"class",
|
|
426
|
-
`commit ${t.id} commit-highlight${c %
|
|
426
|
+
`commit ${t.id} commit-highlight${c % G} ${a}-outer`
|
|
427
427
|
), r.append("rect").attr("x", e.x - 6).attr("y", e.y - 6).attr("width", 12).attr("height", 12).attr(
|
|
428
428
|
"class",
|
|
429
|
-
`commit ${t.id} commit${c %
|
|
429
|
+
`commit ${t.id} commit${c % G} ${a}-inner`
|
|
430
430
|
);
|
|
431
431
|
else if (i === x.CHERRY_PICK)
|
|
432
432
|
r.append("circle").attr("cx", e.x).attr("cy", e.y).attr("r", 10).attr("class", `commit ${t.id} ${a}`), r.append("circle").attr("cx", e.x - 3).attr("cy", e.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${a}`), r.append("circle").attr("cx", e.x + 3).attr("cy", e.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${a}`), r.append("line").attr("x1", e.x + 3).attr("y1", e.y + 1).attr("x2", e.x).attr("y2", e.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${a}`), r.append("line").attr("x1", e.x - 3).attr("y1", e.y + 1).attr("x2", e.x).attr("y2", e.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${a}`);
|
|
433
433
|
else {
|
|
434
434
|
const h = r.append("circle");
|
|
435
|
-
if (h.attr("cx", e.x), h.attr("cy", e.y), h.attr("r", t.type === x.MERGE ? 9 : 10), h.attr("class", `commit ${t.id} commit${c %
|
|
435
|
+
if (h.attr("cx", e.x), h.attr("cy", e.y), h.attr("r", t.type === x.MERGE ? 9 : 10), h.attr("class", `commit ${t.id} commit${c % G}`), i === x.MERGE) {
|
|
436
436
|
const d = r.append("circle");
|
|
437
437
|
d.attr("cx", e.x), d.attr("cy", e.y), d.attr("r", 6), d.attr(
|
|
438
438
|
"class",
|
|
439
|
-
`commit ${a} ${t.id} commit${c %
|
|
439
|
+
`commit ${a} ${t.id} commit${c % G}`
|
|
440
440
|
);
|
|
441
441
|
}
|
|
442
442
|
i === x.REVERSE && r.append("path").attr(
|
|
443
443
|
"d",
|
|
444
444
|
`M ${e.x - 5},${e.y - 5}L${e.x + 5},${e.y + 5}M${e.x - 5},${e.y + 5}L${e.x + 5},${e.y - 5}`
|
|
445
|
-
).attr("class", `commit ${a} ${t.id} commit${c %
|
|
445
|
+
).attr("class", `commit ${a} ${t.id} commit${c % G}`);
|
|
446
446
|
}
|
|
447
447
|
}, "drawCommitBullet"), Yt = /* @__PURE__ */ $((r, t, e, a) => {
|
|
448
448
|
var c;
|
|
@@ -528,10 +528,10 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
528
528
|
const i = U(r.parents);
|
|
529
529
|
if (i) {
|
|
530
530
|
const h = a.get(i) ?? c;
|
|
531
|
-
return t === "TB" ? h.y +
|
|
531
|
+
return t === "TB" ? h.y + I : t === "BT" ? (a.get(r.id) ?? c).y - I : h.x + I;
|
|
532
532
|
}
|
|
533
533
|
} else
|
|
534
|
-
return t === "TB" ? z : t === "BT" ? (a.get(r.id) ?? c).y -
|
|
534
|
+
return t === "TB" ? z : t === "BT" ? (a.get(r.id) ?? c).y - I : 0;
|
|
535
535
|
return 0;
|
|
536
536
|
}, "calculatePosition"), Jt = /* @__PURE__ */ $((r, t, e) => {
|
|
537
537
|
var a, c;
|
|
@@ -561,7 +561,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
561
561
|
const p = Xt(m), y = m.customType ?? m.type, L = ((u = v.get(m.branch)) == null ? void 0 : u.index) ?? 0;
|
|
562
562
|
Kt(a, m, g, p, L, y), Yt(c, m, g, i), Vt(c, m, g, i);
|
|
563
563
|
}
|
|
564
|
-
f === "TB" || f === "BT" ? C.set(m.id, { x: g.x, y: g.posWithOffset }) : C.set(m.id, { x: g.posWithOffset, y: g.y }), i = f === "BT" && d ? i +
|
|
564
|
+
f === "TB" || f === "BT" ? C.set(m.id, { x: g.x, y: g.posWithOffset }) : C.set(m.id, { x: g.posWithOffset, y: g.y }), i = f === "BT" && d ? i + I : i + I + A, i > R && (R = i);
|
|
565
565
|
});
|
|
566
566
|
}, "drawCommits"), Qt = /* @__PURE__ */ $((r, t, e, a, c) => {
|
|
567
567
|
const i = (f === "TB" || f === "BT" ? e.x < a.x : e.y < a.y) ? t.branch : r.branch, h = /* @__PURE__ */ $((l) => l.branch === i, "isOnBranchToGetCurve"), d = /* @__PURE__ */ $((l) => l.seq > r.seq && l.seq < t.seq, "isBetweenCommits");
|
|
@@ -591,7 +591,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
591
591
|
m = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, f === "TB" ? (o.x < n.x && (e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${m} ${o.x + y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${g} ${n.x} ${o.y + y} L ${n.x} ${n.y}`), o.x > n.x && (m = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${g} ${o.x - y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x + p} ${o.y} ${m} ${n.x} ${o.y + y} L ${n.x} ${n.y}`), o.x === n.x && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`)) : f === "BT" ? (o.x < n.x && (e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${g} ${o.x + y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${m} ${n.x} ${o.y - y} L ${n.x} ${n.y}`), o.x > n.x && (m = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${m} ${o.x - y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${m} ${n.x} ${o.y - y} L ${n.x} ${n.y}`), o.x === n.x && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`)) : (o.y < n.y && (e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${g} ${n.x} ${o.y + y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${m} ${o.x + y} ${n.y} L ${n.x} ${n.y}`), o.y > n.y && (e.type === x.MERGE && t.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${m} ${n.x} ${o.y - y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${g} ${o.x + y} ${n.y} L ${n.x} ${n.y}`), o.y === n.y && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`));
|
|
592
592
|
if (b === void 0)
|
|
593
593
|
throw new Error("Line definition not found");
|
|
594
|
-
r.append("path").attr("d", b).attr("class", "arrow arrow" + L %
|
|
594
|
+
r.append("path").attr("d", b).attr("class", "arrow arrow" + L % G);
|
|
595
595
|
}, "drawArrow"), tr = /* @__PURE__ */ $((r, t) => {
|
|
596
596
|
const e = r.append("g").attr("class", "commit-arrows");
|
|
597
597
|
[...t.keys()].forEach((a) => {
|
|
@@ -604,7 +604,7 @@ var Et = /* @__PURE__ */ $(function() {
|
|
|
604
604
|
const e = r.append("g");
|
|
605
605
|
t.forEach((a, c) => {
|
|
606
606
|
var i;
|
|
607
|
-
const h = c %
|
|
607
|
+
const h = c % G, d = (i = v.get(a.name)) == null ? void 0 : i.pos;
|
|
608
608
|
if (d === void 0)
|
|
609
609
|
throw new Error(`Position not found for branch ${a.name}`);
|
|
610
610
|
const l = e.append("line");
|