@ucap-llm/ai-ui 1.1.13 → 1.1.15
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/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
- package/_basePickBy-e7598e72.mjs +153 -0
- package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
- package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
- package/ai-ui.es.js +9 -8
- package/ai-ui.umd.js +3425 -923
- package/arc-8909f880.mjs +85 -0
- package/arc-qimaJRLH-591a6072.mjs +85 -0
- package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
- package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
- package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
- package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
- package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
- package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
- package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
- package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
- package/channel-CuHzivgY-bb3d765a.mjs +5 -0
- package/channel-a1f4f18c.mjs +5 -0
- package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
- package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
- package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
- package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
- package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
- package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
- package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
- package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
- package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
- package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
- package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
- package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
- package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
- package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
- package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
- package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
- package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
- package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
- package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
- package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
- package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
- package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
- package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
- package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
- package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
- package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
- package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
- package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
- package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
- package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
- package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
- package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
- package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
- package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
- package/graph-DOmtxVvg-727f4e14.mjs +247 -0
- package/index-433e2395.mjs +168385 -0
- package/info-4N47QTOZ-688db415.mjs +10 -0
- package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
- package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
- package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
- package/init-DjUOC4st-87c930f1.mjs +16 -0
- package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
- package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
- package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
- package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
- package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
- package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
- package/linear-BgV5F0PU-8137edad.mjs +447 -0
- package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
- package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
- package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
- package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
- package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
- package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
- package/package.json +2 -2
- package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
- package/packet-KVYON367-c82af3fe.mjs +10 -0
- package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
- package/pie-R6RNRRYF-eb27797b.mjs +10 -0
- package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
- package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
- package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
- package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
- package/radar-MK3ICKWK-723229d0.mjs +10 -0
- package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
- package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
- package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
- package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
- package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
- package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
- package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
- package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
- package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
- package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
- package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
- package/style.css +10 -1
- package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
- package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
- package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
- package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
- package/_basePickBy-12958109.mjs +0 -153
- package/arc-14f9a207.mjs +0 -85
- package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
- package/channel-7bd711b4.mjs +0 -5
- package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
- package/index-f83d4b07.mjs +0 -97448
- package/info-4N47QTOZ-20cf90f5.mjs +0 -10
- package/katex-2e45926a.mjs +0 -11700
- package/packet-KVYON367-453a49e8.mjs +0 -10
- package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
- package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { G as a, f as G } from "./mermaid-parser.core-6eb44241.mjs";
|
|
2
|
+
import "./index-433e2395.mjs";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./_baseUniq-8cd7fbc4.mjs";
|
|
5
|
+
import "./_basePickBy-e7598e72.mjs";
|
|
6
|
+
import "./clone-327a1426.mjs";
|
|
7
|
+
export {
|
|
8
|
+
a as GitGraphModule,
|
|
9
|
+
G as createGitGraphServices
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { K as a, H as G } from "./mermaid-parser.core-BTS3sfcL-8c80284a.mjs";
|
|
2
|
+
import "./index-433e2395.mjs";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./_baseUniq-DPnX6tpB-5eb6efbd.mjs";
|
|
5
|
+
import "./_basePickBy-DMehTBs0-8955b30b.mjs";
|
|
6
|
+
import "./clone-Csc9uFbU-6c4f28bd.mjs";
|
|
7
|
+
export {
|
|
8
|
+
a as GitGraphModule,
|
|
9
|
+
G as createGitGraphServices
|
|
10
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { p as Z } from "./chunk-4BMEZGHF-
|
|
2
|
-
import { I as F } from "./chunk-XZIHB7SX-
|
|
3
|
-
import {
|
|
4
|
-
import { p as gr } from "./mermaid-parser.core-
|
|
1
|
+
import { p as Z } from "./chunk-4BMEZGHF-705995af.mjs";
|
|
2
|
+
import { I as F } from "./chunk-XZIHB7SX-fafd3ca2.mjs";
|
|
3
|
+
import { c1 as U, bz as h, bF as rr, c2 as er, c3 as tr, c4 as ar, bM as w, bB as nr, bC as sr, bD as or, bE as cr, bP as ir, bQ as dr, bH as B, bW as hr, bL as lr, bV as $r, c5 as fr } from "./index-433e2395.mjs";
|
|
4
|
+
import { p as gr } from "./mermaid-parser.core-6eb44241.mjs";
|
|
5
5
|
import "vue";
|
|
6
|
-
import "./_baseUniq-
|
|
7
|
-
import "./_basePickBy-
|
|
8
|
-
import "./clone-
|
|
9
|
-
var
|
|
6
|
+
import "./_baseUniq-8cd7fbc4.mjs";
|
|
7
|
+
import "./_basePickBy-e7598e72.mjs";
|
|
8
|
+
import "./clone-327a1426.mjs";
|
|
9
|
+
var p = {
|
|
10
10
|
NORMAL: 0,
|
|
11
11
|
REVERSE: 1,
|
|
12
12
|
HIGHLIGHT: 2,
|
|
@@ -29,10 +29,10 @@ var x = {
|
|
|
29
29
|
options: {}
|
|
30
30
|
};
|
|
31
31
|
});
|
|
32
|
-
function
|
|
32
|
+
function S() {
|
|
33
33
|
return ar({ length: 7 });
|
|
34
34
|
}
|
|
35
|
-
h(
|
|
35
|
+
h(S, "getID");
|
|
36
36
|
function N(t, r) {
|
|
37
37
|
const a = /* @__PURE__ */ Object.create(null);
|
|
38
38
|
return t.reduce((s, e) => {
|
|
@@ -41,16 +41,16 @@ function N(t, r) {
|
|
|
41
41
|
}, []);
|
|
42
42
|
}
|
|
43
43
|
h(N, "uniqBy");
|
|
44
|
-
var
|
|
44
|
+
var xr = /* @__PURE__ */ h(function(t) {
|
|
45
45
|
i.records.direction = t;
|
|
46
|
-
}, "setDirection"),
|
|
46
|
+
}, "setDirection"), pr = /* @__PURE__ */ h(function(t) {
|
|
47
47
|
w.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
|
|
48
48
|
try {
|
|
49
49
|
i.records.options = JSON.parse(t);
|
|
50
50
|
} catch (r) {
|
|
51
51
|
w.error("error while parsing gitGraph options", r.message);
|
|
52
52
|
}
|
|
53
|
-
}, "setOptions"),
|
|
53
|
+
}, "setOptions"), ur = /* @__PURE__ */ h(function() {
|
|
54
54
|
return i.records.options;
|
|
55
55
|
}, "getOptions"), br = /* @__PURE__ */ h(function(t) {
|
|
56
56
|
let r = t.msg, a = t.id;
|
|
@@ -60,10 +60,10 @@ var ur = /* @__PURE__ */ h(function(t) {
|
|
|
60
60
|
const n = z();
|
|
61
61
|
a = B.sanitizeText(a, n), r = B.sanitizeText(r, n), e = e == null ? void 0 : e.map((o) => B.sanitizeText(o, n));
|
|
62
62
|
const c = {
|
|
63
|
-
id: a || i.records.seq + "-" +
|
|
63
|
+
id: a || i.records.seq + "-" + S(),
|
|
64
64
|
message: r,
|
|
65
65
|
seq: i.records.seq++,
|
|
66
|
-
type: s ??
|
|
66
|
+
type: s ?? p.NORMAL,
|
|
67
67
|
tags: e ?? [],
|
|
68
68
|
parents: i.records.head == null ? [] : [i.records.head.id],
|
|
69
69
|
branch: i.records.currBranch
|
|
@@ -143,12 +143,12 @@ var ur = /* @__PURE__ */ h(function(t) {
|
|
|
143
143
|
}, d;
|
|
144
144
|
}
|
|
145
145
|
const f = o || "", g = {
|
|
146
|
-
id: a || `${i.records.seq}-${
|
|
146
|
+
id: a || `${i.records.seq}-${S()}`,
|
|
147
147
|
message: `merged branch ${r} into ${i.records.currBranch}`,
|
|
148
148
|
seq: i.records.seq++,
|
|
149
149
|
parents: i.records.head == null ? [] : [i.records.head.id, f],
|
|
150
150
|
branch: i.records.currBranch,
|
|
151
|
-
type:
|
|
151
|
+
type: p.MERGE,
|
|
152
152
|
customType: s,
|
|
153
153
|
customId: !!a,
|
|
154
154
|
tags: e ?? []
|
|
@@ -176,7 +176,7 @@ var ur = /* @__PURE__ */ h(function(t) {
|
|
|
176
176
|
"Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
|
|
177
177
|
);
|
|
178
178
|
const o = c.branch;
|
|
179
|
-
if (c.type ===
|
|
179
|
+
if (c.type === p.MERGE && !e)
|
|
180
180
|
throw new Error(
|
|
181
181
|
"Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
|
|
182
182
|
);
|
|
@@ -214,14 +214,14 @@ var ur = /* @__PURE__ */ h(function(t) {
|
|
|
214
214
|
}, g;
|
|
215
215
|
}
|
|
216
216
|
const f = {
|
|
217
|
-
id: i.records.seq + "-" +
|
|
217
|
+
id: i.records.seq + "-" + S(),
|
|
218
218
|
message: `cherry-picked ${c == null ? void 0 : c.message} into ${i.records.currBranch}`,
|
|
219
219
|
seq: i.records.seq++,
|
|
220
220
|
parents: i.records.head == null ? [] : [i.records.head.id, c.id],
|
|
221
221
|
branch: i.records.currBranch,
|
|
222
|
-
type:
|
|
222
|
+
type: p.CHERRY_PICK,
|
|
223
223
|
tags: s ? s.filter(Boolean) : [
|
|
224
|
-
`cherry-pick:${c.id}${c.type ===
|
|
224
|
+
`cherry-pick:${c.id}${c.type === p.MERGE ? `|parent:${e}` : ""}`
|
|
225
225
|
]
|
|
226
226
|
};
|
|
227
227
|
i.records.head = f, i.records.commits.set(f.id, f), i.records.branches.set(i.records.currBranch, f.id), w.debug(i.records.branches), w.debug("in cherryPick");
|
|
@@ -296,12 +296,12 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
296
296
|
return i.records.direction;
|
|
297
297
|
}, "getDirection"), Rr = /* @__PURE__ */ h(function() {
|
|
298
298
|
return i.records.head;
|
|
299
|
-
}, "getHead"),
|
|
300
|
-
commitType:
|
|
299
|
+
}, "getHead"), Q = {
|
|
300
|
+
commitType: p,
|
|
301
301
|
getConfig: z,
|
|
302
|
-
setDirection:
|
|
303
|
-
setOptions:
|
|
304
|
-
getOptions:
|
|
302
|
+
setDirection: xr,
|
|
303
|
+
setOptions: pr,
|
|
304
|
+
getOptions: ur,
|
|
305
305
|
commit: br,
|
|
306
306
|
branch: mr,
|
|
307
307
|
merge: wr,
|
|
@@ -339,7 +339,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
339
339
|
}, "parseStatement"), Or = /* @__PURE__ */ h((t) => ({
|
|
340
340
|
id: t.id,
|
|
341
341
|
msg: t.message ?? "",
|
|
342
|
-
type: t.type !== void 0 ?
|
|
342
|
+
type: t.type !== void 0 ? p[t.type] : p.NORMAL,
|
|
343
343
|
tags: t.tags ?? void 0
|
|
344
344
|
}), "parseCommit"), zr = /* @__PURE__ */ h((t) => ({
|
|
345
345
|
name: t.name,
|
|
@@ -347,7 +347,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
347
347
|
}), "parseBranch"), Gr = /* @__PURE__ */ h((t) => ({
|
|
348
348
|
branch: t.branch,
|
|
349
349
|
id: t.id ?? "",
|
|
350
|
-
type: t.type !== void 0 ?
|
|
350
|
+
type: t.type !== void 0 ? p[t.type] : void 0,
|
|
351
351
|
tags: t.tags ?? void 0
|
|
352
352
|
}), "parseMerge"), Hr = /* @__PURE__ */ h((t) => t.branch, "parseCheckout"), Pr = /* @__PURE__ */ h((t) => {
|
|
353
353
|
var a;
|
|
@@ -360,24 +360,24 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
360
360
|
}, "parseCherryPicking"), Wr = {
|
|
361
361
|
parse: /* @__PURE__ */ h(async (t) => {
|
|
362
362
|
const r = await gr("gitGraph", t);
|
|
363
|
-
w.debug(r), Ir(r,
|
|
363
|
+
w.debug(r), Ir(r, Q);
|
|
364
364
|
}, "parse")
|
|
365
|
-
},
|
|
366
|
-
C.clear(), E.clear(), G.clear(), M = 0, W = [],
|
|
367
|
-
}, "clear"),
|
|
365
|
+
}, j = rr(), b = j == null ? void 0 : j.gitGraph, R = 10, I = 40, k = 4, L = 2, O = 8, C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, G = /* @__PURE__ */ new Map(), W = [], M = 0, x = "LR", Sr = /* @__PURE__ */ h(() => {
|
|
366
|
+
C.clear(), E.clear(), G.clear(), M = 0, W = [], x = "LR";
|
|
367
|
+
}, "clear"), X = /* @__PURE__ */ h((t) => {
|
|
368
368
|
const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
369
369
|
return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((s) => {
|
|
370
370
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
371
371
|
e.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), e.setAttribute("dy", "1em"), e.setAttribute("x", "0"), e.setAttribute("class", "row"), e.textContent = s.trim(), r.appendChild(e);
|
|
372
372
|
}), r;
|
|
373
|
-
}, "drawText"),
|
|
373
|
+
}, "drawText"), J = /* @__PURE__ */ h((t) => {
|
|
374
374
|
let r, a, s;
|
|
375
|
-
return
|
|
375
|
+
return x === "BT" ? (a = /* @__PURE__ */ h((e, n) => e <= n, "comparisonFunc"), s = 1 / 0) : (a = /* @__PURE__ */ h((e, n) => e >= n, "comparisonFunc"), s = 0), t.forEach((e) => {
|
|
376
376
|
var c, o;
|
|
377
|
-
const n =
|
|
377
|
+
const n = x === "TB" || x == "BT" ? (c = E.get(e)) == null ? void 0 : c.y : (o = E.get(e)) == null ? void 0 : o.x;
|
|
378
378
|
n !== void 0 && a(n, s) && (r = e, s = n);
|
|
379
379
|
}), r;
|
|
380
|
-
}, "findClosestParent"),
|
|
380
|
+
}, "findClosestParent"), jr = /* @__PURE__ */ h((t) => {
|
|
381
381
|
let r = "", a = 1 / 0;
|
|
382
382
|
return t.forEach((s) => {
|
|
383
383
|
const e = E.get(s).y;
|
|
@@ -396,7 +396,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
396
396
|
}), t.forEach((c) => {
|
|
397
397
|
const o = r.get(c);
|
|
398
398
|
if (o != null && o.parents.length) {
|
|
399
|
-
const $ =
|
|
399
|
+
const $ = jr(o.parents);
|
|
400
400
|
s = E.get($).y - I, s <= e && (e = s);
|
|
401
401
|
const l = C.get(o.branch).pos, f = s - R;
|
|
402
402
|
E.set(o.id, { x: l, y: f });
|
|
@@ -404,7 +404,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
404
404
|
});
|
|
405
405
|
}, "setParallelBTPos"), Dr = /* @__PURE__ */ h((t) => {
|
|
406
406
|
var s;
|
|
407
|
-
const r =
|
|
407
|
+
const r = J(t.parents.filter((e) => e !== null));
|
|
408
408
|
if (!r)
|
|
409
409
|
throw new Error(`Closest parent not found for commit ${t.id}`);
|
|
410
410
|
const a = (s = E.get(r)) == null ? void 0 : s.y;
|
|
@@ -424,7 +424,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
424
424
|
const e = r + a, n = s.pos;
|
|
425
425
|
E.set(t.id, { x: n, y: e });
|
|
426
426
|
}, "setRootPosition"), _r = /* @__PURE__ */ h((t, r, a, s, e, n) => {
|
|
427
|
-
if (n ===
|
|
427
|
+
if (n === p.HIGHLIGHT)
|
|
428
428
|
t.append("rect").attr("x", a.x - 10).attr("y", a.y - 10).attr("width", 20).attr("height", 20).attr(
|
|
429
429
|
"class",
|
|
430
430
|
`commit ${r.id} commit-highlight${e % O} ${s}-outer`
|
|
@@ -432,28 +432,28 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
432
432
|
"class",
|
|
433
433
|
`commit ${r.id} commit${e % O} ${s}-inner`
|
|
434
434
|
);
|
|
435
|
-
else if (n ===
|
|
435
|
+
else if (n === p.CHERRY_PICK)
|
|
436
436
|
t.append("circle").attr("cx", a.x).attr("cy", a.y).attr("r", 10).attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x - 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x + 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x + 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x - 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`);
|
|
437
437
|
else {
|
|
438
438
|
const c = t.append("circle");
|
|
439
|
-
if (c.attr("cx", a.x), c.attr("cy", a.y), c.attr("r", r.type ===
|
|
439
|
+
if (c.attr("cx", a.x), c.attr("cy", a.y), c.attr("r", r.type === p.MERGE ? 9 : 10), c.attr("class", `commit ${r.id} commit${e % O}`), n === p.MERGE) {
|
|
440
440
|
const o = t.append("circle");
|
|
441
441
|
o.attr("cx", a.x), o.attr("cy", a.y), o.attr("r", 6), o.attr(
|
|
442
442
|
"class",
|
|
443
443
|
`commit ${s} ${r.id} commit${e % O}`
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
|
-
n ===
|
|
446
|
+
n === p.REVERSE && t.append("path").attr(
|
|
447
447
|
"d",
|
|
448
448
|
`M ${a.x - 5},${a.y - 5}L${a.x + 5},${a.y + 5}M${a.x - 5},${a.y + 5}L${a.x + 5},${a.y - 5}`
|
|
449
449
|
).attr("class", `commit ${s} ${r.id} commit${e % O}`);
|
|
450
450
|
}
|
|
451
451
|
}, "drawCommitBullet"), Vr = /* @__PURE__ */ h((t, r, a, s) => {
|
|
452
452
|
var e;
|
|
453
|
-
if (r.type !==
|
|
453
|
+
if (r.type !== p.CHERRY_PICK && (r.customId && r.type === p.MERGE || r.type !== p.MERGE) && (b != null && b.showCommitLabel)) {
|
|
454
454
|
const n = t.append("g"), c = n.insert("rect").attr("class", "commit-label-bkg"), o = n.append("text").attr("x", s).attr("y", a.y + 25).attr("class", "commit-label").text(r.id), $ = (e = o.node()) == null ? void 0 : e.getBBox();
|
|
455
|
-
if ($ && (c.attr("x", a.posWithOffset - $.width / 2 - L).attr("y", a.y + 13.5).attr("width", $.width + 2 * L).attr("height", $.height + 2 * L),
|
|
456
|
-
if (
|
|
455
|
+
if ($ && (c.attr("x", a.posWithOffset - $.width / 2 - L).attr("y", a.y + 13.5).attr("width", $.width + 2 * L).attr("height", $.height + 2 * L), x === "TB" || x === "BT" ? (c.attr("x", a.x - ($.width + 4 * k + 5)).attr("y", a.y - 12), o.attr("x", a.x - ($.width + 4 * k)).attr("y", a.y + $.height - 12)) : o.attr("x", a.posWithOffset - $.width / 2), b.rotateCommitLabel))
|
|
456
|
+
if (x === "TB" || x === "BT")
|
|
457
457
|
o.attr(
|
|
458
458
|
"transform",
|
|
459
459
|
"rotate(-45, " + a.x + ", " + a.y + ")"
|
|
@@ -469,7 +469,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
469
469
|
);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
}, "drawCommitLabel"),
|
|
472
|
+
}, "drawCommitLabel"), Qr = /* @__PURE__ */ h((t, r, a, s) => {
|
|
473
473
|
var e;
|
|
474
474
|
if (r.tags.length > 0) {
|
|
475
475
|
let n = 0, c = 0, o = 0;
|
|
@@ -486,17 +486,17 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
486
486
|
}), n += 20;
|
|
487
487
|
}
|
|
488
488
|
for (const { tag: l, hole: f, rect: g, yOffset: d } of $) {
|
|
489
|
-
const y = o / 2,
|
|
489
|
+
const y = o / 2, u = a.y - 19.2 - d;
|
|
490
490
|
if (g.attr("class", "tag-label-bkg").attr(
|
|
491
491
|
"points",
|
|
492
492
|
`
|
|
493
|
-
${s - c / 2 - k / 2},${
|
|
494
|
-
${s - c / 2 - k / 2},${
|
|
495
|
-
${a.posWithOffset - c / 2 - k},${
|
|
496
|
-
${a.posWithOffset + c / 2 + k},${
|
|
497
|
-
${a.posWithOffset + c / 2 + k},${
|
|
498
|
-
${a.posWithOffset - c / 2 - k},${
|
|
499
|
-
), f.attr("cy",
|
|
493
|
+
${s - c / 2 - k / 2},${u + L}
|
|
494
|
+
${s - c / 2 - k / 2},${u - L}
|
|
495
|
+
${a.posWithOffset - c / 2 - k},${u - y - L}
|
|
496
|
+
${a.posWithOffset + c / 2 + k},${u - y - L}
|
|
497
|
+
${a.posWithOffset + c / 2 + k},${u + y + L}
|
|
498
|
+
${a.posWithOffset - c / 2 - k},${u + y + L}`
|
|
499
|
+
), f.attr("cy", u).attr("cx", s - c / 2 + k / 2).attr("r", 1.5).attr("class", "tag-hole"), x === "TB" || x === "BT") {
|
|
500
500
|
const m = s + d;
|
|
501
501
|
g.attr("class", "tag-label-bkg").attr(
|
|
502
502
|
"points",
|
|
@@ -511,25 +511,25 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
}, "drawCommitTags"),
|
|
514
|
+
}, "drawCommitTags"), Xr = /* @__PURE__ */ h((t) => {
|
|
515
515
|
switch (t.customType ?? t.type) {
|
|
516
|
-
case
|
|
516
|
+
case p.NORMAL:
|
|
517
517
|
return "commit-normal";
|
|
518
|
-
case
|
|
518
|
+
case p.REVERSE:
|
|
519
519
|
return "commit-reverse";
|
|
520
|
-
case
|
|
520
|
+
case p.HIGHLIGHT:
|
|
521
521
|
return "commit-highlight";
|
|
522
|
-
case
|
|
522
|
+
case p.MERGE:
|
|
523
523
|
return "commit-merge";
|
|
524
|
-
case
|
|
524
|
+
case p.CHERRY_PICK:
|
|
525
525
|
return "commit-cherry-pick";
|
|
526
526
|
default:
|
|
527
527
|
return "commit-normal";
|
|
528
528
|
}
|
|
529
|
-
}, "getCommitClassType"),
|
|
529
|
+
}, "getCommitClassType"), Jr = /* @__PURE__ */ h((t, r, a, s) => {
|
|
530
530
|
const e = { x: 0, y: 0 };
|
|
531
531
|
if (t.parents.length > 0) {
|
|
532
|
-
const n =
|
|
532
|
+
const n = J(t.parents);
|
|
533
533
|
if (n) {
|
|
534
534
|
const c = s.get(n) ?? e;
|
|
535
535
|
return r === "TB" ? c.y + I : r === "BT" ? (s.get(t.id) ?? e).y - I : c.x + I;
|
|
@@ -539,7 +539,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
539
539
|
return 0;
|
|
540
540
|
}, "calculatePosition"), Zr = /* @__PURE__ */ h((t, r, a) => {
|
|
541
541
|
var c, o;
|
|
542
|
-
const s =
|
|
542
|
+
const s = x === "BT" && a ? r : r + R, e = x === "TB" || x === "BT" ? s : (c = C.get(t.branch)) == null ? void 0 : c.pos, n = x === "TB" || x === "BT" ? (o = C.get(t.branch)) == null ? void 0 : o.pos : s;
|
|
543
543
|
if (n === void 0 || e === void 0)
|
|
544
544
|
throw new Error(`Position were undefined for commit ${t.id}`);
|
|
545
545
|
return { x: n, y: e, posWithOffset: s };
|
|
@@ -547,28 +547,28 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
547
547
|
if (!b)
|
|
548
548
|
throw new Error("GitGraph config not found");
|
|
549
549
|
const s = t.append("g").attr("class", "commit-bullets"), e = t.append("g").attr("class", "commit-labels");
|
|
550
|
-
let n =
|
|
550
|
+
let n = x === "TB" || x === "BT" ? P : 0;
|
|
551
551
|
const c = [...r.keys()], o = (b == null ? void 0 : b.parallelCommits) ?? !1, $ = /* @__PURE__ */ h((f, g) => {
|
|
552
|
-
var
|
|
553
|
-
const d = (
|
|
552
|
+
var u, m;
|
|
553
|
+
const d = (u = r.get(f)) == null ? void 0 : u.seq, y = (m = r.get(g)) == null ? void 0 : m.seq;
|
|
554
554
|
return d !== void 0 && y !== void 0 ? d - y : 0;
|
|
555
555
|
}, "sortKeys");
|
|
556
556
|
let l = c.sort($);
|
|
557
|
-
|
|
557
|
+
x === "BT" && (o && Ar(l, r, n), l = l.reverse()), l.forEach((f) => {
|
|
558
558
|
var y;
|
|
559
559
|
const g = r.get(f);
|
|
560
560
|
if (!g)
|
|
561
561
|
throw new Error(`Commit not found for key ${f}`);
|
|
562
|
-
o && (n =
|
|
562
|
+
o && (n = Jr(g, x, n, E));
|
|
563
563
|
const d = Zr(g, n, o);
|
|
564
564
|
if (a) {
|
|
565
|
-
const
|
|
566
|
-
_r(s, g, d,
|
|
565
|
+
const u = Xr(g), m = g.customType ?? g.type, q = ((y = C.get(g.branch)) == null ? void 0 : y.index) ?? 0;
|
|
566
|
+
_r(s, g, d, u, q, m), Vr(e, g, d, n), Qr(e, g, d, n);
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
x === "TB" || x === "BT" ? E.set(g.id, { x: d.x, y: d.posWithOffset }) : E.set(g.id, { x: d.posWithOffset, y: d.y }), n = x === "BT" && o ? n + I : n + I + R, n > M && (M = n);
|
|
569
569
|
});
|
|
570
570
|
}, "drawCommits"), Fr = /* @__PURE__ */ h((t, r, a, s, e) => {
|
|
571
|
-
const c = (
|
|
571
|
+
const c = (x === "TB" || x === "BT" ? a.x < s.x : a.y < s.y) ? r.branch : t.branch, o = /* @__PURE__ */ h((l) => l.branch === c, "isOnBranchToGetCurve"), $ = /* @__PURE__ */ h((l) => l.seq > t.seq && l.seq < r.seq, "isBetweenCommits");
|
|
572
572
|
return [...e.values()].some((l) => $(l) && o(l));
|
|
573
573
|
}, "shouldRerouteArrow"), H = /* @__PURE__ */ h((t, r, a = 0) => {
|
|
574
574
|
const s = t + Math.abs(t - r) / 2;
|
|
@@ -579,20 +579,20 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
579
579
|
const n = Math.abs(t - r);
|
|
580
580
|
return H(t, r - n / 5, a + 1);
|
|
581
581
|
}, "findLane"), Ur = /* @__PURE__ */ h((t, r, a, s) => {
|
|
582
|
-
var y,
|
|
582
|
+
var y, u, m, q, Y;
|
|
583
583
|
const e = E.get(r.id), n = E.get(a.id);
|
|
584
584
|
if (e === void 0 || n === void 0)
|
|
585
585
|
throw new Error(`Commit positions not found for commits ${r.id} and ${a.id}`);
|
|
586
586
|
const c = Fr(r, a, e, n, s);
|
|
587
587
|
let o = "", $ = "", l = 0, f = 0, g = (y = C.get(a.branch)) == null ? void 0 : y.index;
|
|
588
|
-
a.type ===
|
|
588
|
+
a.type === p.MERGE && r.id !== a.parents[0] && (g = (u = C.get(r.branch)) == null ? void 0 : u.index);
|
|
589
589
|
let d;
|
|
590
590
|
if (c) {
|
|
591
591
|
o = "A 10 10, 0, 0, 0,", $ = "A 10 10, 0, 0, 1,", l = 10, f = 10;
|
|
592
592
|
const T = e.y < n.y ? H(e.y, n.y) : H(n.y, e.y), v = e.x < n.x ? H(e.x, n.x) : H(n.x, e.x);
|
|
593
|
-
|
|
593
|
+
x === "TB" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${$} ${v} ${e.y + f} L ${v} ${n.y - l} ${o} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (m = C.get(r.branch)) == null ? void 0 : m.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${o} ${v} ${e.y + f} L ${v} ${n.y - l} ${$} ${v - f} ${n.y} L ${n.x} ${n.y}`) : x === "BT" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${o} ${v} ${e.y - f} L ${v} ${n.y + l} ${$} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (q = C.get(r.branch)) == null ? void 0 : q.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${$} ${v} ${e.y - f} L ${v} ${n.y + l} ${o} ${v - f} ${n.y} L ${n.x} ${n.y}`) : e.y < n.y ? d = `M ${e.x} ${e.y} L ${e.x} ${T - l} ${o} ${e.x + f} ${T} L ${n.x - l} ${T} ${$} ${n.x} ${T + f} L ${n.x} ${n.y}` : (g = (Y = C.get(r.branch)) == null ? void 0 : Y.index, d = `M ${e.x} ${e.y} L ${e.x} ${T + l} ${$} ${e.x + f} ${T} L ${n.x - l} ${T} ${o} ${n.x} ${T - f} L ${n.x} ${n.y}`);
|
|
594
594
|
} else
|
|
595
|
-
o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20,
|
|
595
|
+
o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, x === "TB" ? (e.x < n.x && (a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${$} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x + l} ${e.y} ${o} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : x === "BT" ? (e.x < n.x && (a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${o} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : (e.y < n.y && (a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y > n.y && (a.type === p.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y === n.y && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`));
|
|
596
596
|
if (d === void 0)
|
|
597
597
|
throw new Error("Line definition not found");
|
|
598
598
|
t.append("path").attr("d", d).attr("class", "arrow arrow" + g % O);
|
|
@@ -607,38 +607,38 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
607
607
|
}, "drawArrows"), ee = /* @__PURE__ */ h((t, r) => {
|
|
608
608
|
const a = t.append("g");
|
|
609
609
|
r.forEach((s, e) => {
|
|
610
|
-
var
|
|
611
|
-
const n = e % O, c = (
|
|
610
|
+
var u;
|
|
611
|
+
const n = e % O, c = (u = C.get(s.name)) == null ? void 0 : u.pos;
|
|
612
612
|
if (c === void 0)
|
|
613
613
|
throw new Error(`Position not found for branch ${s.name}`);
|
|
614
614
|
const o = a.append("line");
|
|
615
|
-
o.attr("x1", 0), o.attr("y1", c), o.attr("x2", M), o.attr("y2", c), o.attr("class", "branch branch" + n),
|
|
616
|
-
const $ = s.name, l =
|
|
615
|
+
o.attr("x1", 0), o.attr("y1", c), o.attr("x2", M), o.attr("y2", c), o.attr("class", "branch branch" + n), x === "TB" ? (o.attr("y1", P), o.attr("x1", c), o.attr("y2", M), o.attr("x2", c)) : x === "BT" && (o.attr("y1", M), o.attr("x1", c), o.attr("y2", P), o.attr("x2", c)), W.push(c);
|
|
616
|
+
const $ = s.name, l = X($), f = a.insert("rect"), d = a.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + n);
|
|
617
617
|
d.node().appendChild(l);
|
|
618
618
|
const y = l.getBBox();
|
|
619
619
|
f.attr("class", "branchLabelBkg label" + n).attr("rx", 4).attr("ry", 4).attr("x", -y.width - 4 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -y.height / 2 + 8).attr("width", y.width + 18).attr("height", y.height + 4), d.attr(
|
|
620
620
|
"transform",
|
|
621
621
|
"translate(" + (-y.width - 14 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (c - y.height / 2 - 1) + ")"
|
|
622
|
-
),
|
|
622
|
+
), x === "TB" ? (f.attr("x", c - y.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", 0)")) : x === "BT" ? (f.attr("x", c - y.width / 2 - 10).attr("y", M), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", " + M + ")")) : f.attr("transform", "translate(-19, " + (c - y.height / 2) + ")");
|
|
623
623
|
});
|
|
624
624
|
}, "drawBranches"), te = /* @__PURE__ */ h(function(t, r, a, s, e) {
|
|
625
|
-
return C.set(t, { pos: r, index: a }), r += 50 + (e ? 40 : 0) + (
|
|
625
|
+
return C.set(t, { pos: r, index: a }), r += 50 + (e ? 40 : 0) + (x === "TB" || x === "BT" ? s.width / 2 : 0), r;
|
|
626
626
|
}, "setBranchPosition"), ae = /* @__PURE__ */ h(function(t, r, a, s) {
|
|
627
|
-
if (
|
|
627
|
+
if (Sr(), w.debug("in gitgraph renderer", t + `
|
|
628
628
|
`, "id:", r, a), !b)
|
|
629
629
|
throw new Error("GitGraph config not found");
|
|
630
630
|
const e = b.rotateCommitLabel ?? !1, n = s.db;
|
|
631
631
|
G = n.getCommits();
|
|
632
632
|
const c = n.getBranchesAsObjArray();
|
|
633
|
-
|
|
633
|
+
x = n.getDirection();
|
|
634
634
|
const o = lr(`[id="${r}"]`);
|
|
635
635
|
let $ = 0;
|
|
636
636
|
c.forEach((l, f) => {
|
|
637
637
|
var q;
|
|
638
|
-
const g =
|
|
639
|
-
(q =
|
|
638
|
+
const g = X(l.name), d = o.append("g"), y = d.insert("g").attr("class", "branchLabel"), u = y.insert("g").attr("class", "label branch-label");
|
|
639
|
+
(q = u.node()) == null || q.appendChild(g);
|
|
640
640
|
const m = g.getBBox();
|
|
641
|
-
$ = te(l.name, $, f, m, e),
|
|
641
|
+
$ = te(l.name, $, f, m, e), u.remove(), y.remove(), d.remove();
|
|
642
642
|
}), K(o, G, !1), b.showBranches && ee(o, c), re(o, G), K(o, G, !0), $r.insertTitle(
|
|
643
643
|
o,
|
|
644
644
|
"gitTitleText",
|
|
@@ -707,7 +707,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
707
707
|
}
|
|
708
708
|
`, "getStyles"), oe = se, ye = {
|
|
709
709
|
parser: Wr,
|
|
710
|
-
db:
|
|
710
|
+
db: Q,
|
|
711
711
|
renderer: ne,
|
|
712
712
|
styles: oe
|
|
713
713
|
};
|