@foris/ai-agent 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent.es.js +3 -3
- package/dist/ai-agent.umd.js +619 -609
- package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
- package/dist/ai-prompt-code-editor/index.d.ts +1 -0
- package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
- package/dist/arc-CYayZuAl.js +85 -0
- package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-CqFKxLlH.js} +3 -3
- package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-DEi-xIcu.js} +46 -46
- package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-mFZhX_-U.js} +3 -3
- package/dist/channel-CbDO3juL.js +5 -0
- package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-D5qkn5BA.js} +1 -1
- package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-CR8xZK7z.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-Cm3F2ypm.js} +11 -11
- package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-CxISwEU9.js} +44 -44
- package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-DZxSUJCY.js} +1 -1
- package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-5NUdQ31M.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-CSeHgX9s.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-DfqMo2XK.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-6wC7c07U.js} +6 -6
- package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-6wC7c07U.js} +6 -6
- package/dist/code-block-QI2IAROF-zqFu2qJj.js +2812 -0
- package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-BzL4MMWZ.js} +2 -2
- package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-CwTDE2RX.js} +3 -3
- package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-UeQhynP7.js} +47 -47
- package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-DZy1cp9G.js} +13 -13
- package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-DyT7Ss8-.js} +16 -16
- package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-CpzaErVm.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BHP6h-eN.js} +6 -6
- package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-0qqei9Bz.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-DGukWnfa.js} +16 -16
- package/dist/hooks/useCodeTransform.d.ts +13 -0
- package/dist/{index-C2DJ8qoy.js → index-Zd10d_CE.js} +18512 -11461
- package/dist/index.d.ts +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-CRWuQBon.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-Bl-asDPd.js} +5 -5
- package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-IdguZzXg.js} +39 -39
- package/dist/{linear-CxGB80S5.js → linear-CRqCHTKs.js} +1 -1
- package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-CkTMfgBy.js} +1 -1
- package/dist/{mermaid.core-xMGW442o.js → mermaid.core-DyFxH-Px.js} +87 -87
- package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-C8jP5oWr.js} +69 -69
- package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-DuP0zFKX.js} +23 -23
- package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-ACKBMWQA.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-DAH6cyPg.js} +4 -4
- package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DpLK8yNI.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-CslcsjON.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-oVuJ6JZY.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/tailwind.css +52 -0
- package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-D_aGDXh0.js} +47 -47
- package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-u3osfT09.js} +35 -35
- package/package.json +2 -1
- package/dist/ai-input-action/InputAction.d.ts +0 -8
- package/dist/ai-input-action/index.d.ts +0 -1
- package/dist/arc-DN1xn8kz.js +0 -85
- package/dist/channel-BC4mWQQF.js +0 -5
- package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
package/dist/tailwind.css
CHANGED
|
@@ -124,3 +124,55 @@
|
|
|
124
124
|
@apply bg-background text-foreground;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
/* Shiki Notation Diff Styles */
|
|
129
|
+
.line.diff.add {
|
|
130
|
+
background-color: rgba(34, 197, 94, 0.15);
|
|
131
|
+
position: relative;
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.line.diff.remove {
|
|
136
|
+
background-color: rgba(239, 68, 68, 0.15);
|
|
137
|
+
position: relative;
|
|
138
|
+
display: block;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.line.highlighted {
|
|
142
|
+
background-color: rgba(59, 130, 246, 0.15);
|
|
143
|
+
position: relative;
|
|
144
|
+
display: block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.line.highlighted.error {
|
|
148
|
+
background-color: rgba(239, 68, 68, 0.2);
|
|
149
|
+
position: relative;
|
|
150
|
+
display: block;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.line.highlighted.warning {
|
|
154
|
+
background-color: rgba(234, 179, 8, 0.2);
|
|
155
|
+
position: relative;
|
|
156
|
+
display: block;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Dark mode styles */
|
|
160
|
+
.dark .line.diff.add {
|
|
161
|
+
background-color: rgba(34, 197, 94, 0.25);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.dark .line.diff.remove {
|
|
165
|
+
background-color: rgba(239, 68, 68, 0.25);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.dark .line.highlighted {
|
|
169
|
+
background-color: rgba(59, 130, 246, 0.25);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.dark .line.highlighted.error {
|
|
173
|
+
background-color: rgba(239, 68, 68, 0.3);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.dark .line.highlighted.warning {
|
|
177
|
+
background-color: rgba(234, 179, 8, 0.3);
|
|
178
|
+
}
|
package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-D_aGDXh0.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as s,
|
|
2
|
-
import { d as nt } from "./arc-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { _ as s, D as xt, ac as kt, v as vt, j as q, d as _t, l as E, ad as bt, ae as wt, af as St, ag as Et } from "./mermaid.core-DyFxH-Px.js";
|
|
2
|
+
import { d as nt } from "./arc-CYayZuAl.js";
|
|
3
|
+
import "./index-Zd10d_CE.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var X = function() {
|
|
@@ -66,13 +66,13 @@ var X = function() {
|
|
|
66
66
|
}
|
|
67
67
|
}, "parseError"),
|
|
68
68
|
parse: /* @__PURE__ */ s(function(r) {
|
|
69
|
-
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "",
|
|
69
|
+
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
|
|
70
70
|
for (var L in this.yy)
|
|
71
71
|
Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
|
|
72
72
|
v.setInput(r, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
73
73
|
var b = v.yylloc;
|
|
74
74
|
o.push(b);
|
|
75
|
-
var
|
|
75
|
+
var $ = v.options && v.options.ranges;
|
|
76
76
|
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
77
77
|
function R(T) {
|
|
78
78
|
h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
|
|
@@ -83,15 +83,15 @@ var X = function() {
|
|
|
83
83
|
return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
|
|
84
84
|
}
|
|
85
85
|
s(A, "lex");
|
|
86
|
-
for (var w, H, I, K,
|
|
86
|
+
for (var w, H, I, K, z = {}, j, P, et, G; ; ) {
|
|
87
87
|
if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
|
|
88
88
|
var Q = "";
|
|
89
89
|
G = [];
|
|
90
90
|
for (j in S[H])
|
|
91
91
|
this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
|
|
92
|
-
v.showPosition ? Q = "Parse error on line " + (
|
|
92
|
+
v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
|
|
93
93
|
` + v.showPosition() + `
|
|
94
|
-
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (
|
|
94
|
+
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
|
|
95
95
|
text: v.match,
|
|
96
96
|
token: this.terminals_[w] || w,
|
|
97
97
|
line: v.yylineno,
|
|
@@ -103,28 +103,28 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
103
103
|
throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
|
|
104
104
|
switch (I[0]) {
|
|
105
105
|
case 1:
|
|
106
|
-
h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext,
|
|
106
|
+
h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
|
|
107
107
|
break;
|
|
108
108
|
case 2:
|
|
109
|
-
if (P = this.productions_[I[1]][1],
|
|
109
|
+
if (P = this.productions_[I[1]][1], z.$ = y[y.length - P], z._$ = {
|
|
110
110
|
first_line: o[o.length - (P || 1)].first_line,
|
|
111
111
|
last_line: o[o.length - 1].last_line,
|
|
112
112
|
first_column: o[o.length - (P || 1)].first_column,
|
|
113
113
|
last_column: o[o.length - 1].last_column
|
|
114
|
-
},
|
|
114
|
+
}, $ && (z._$.range = [
|
|
115
115
|
o[o.length - (P || 1)].range[0],
|
|
116
116
|
o[o.length - 1].range[1]
|
|
117
|
-
]), K = this.performAction.apply(
|
|
117
|
+
]), K = this.performAction.apply(z, [
|
|
118
118
|
k,
|
|
119
119
|
C,
|
|
120
|
-
|
|
120
|
+
M,
|
|
121
121
|
N.yy,
|
|
122
122
|
I[1],
|
|
123
123
|
y,
|
|
124
124
|
o
|
|
125
125
|
].concat(O)), typeof K < "u")
|
|
126
126
|
return K;
|
|
127
|
-
P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(
|
|
127
|
+
P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
|
|
128
128
|
break;
|
|
129
129
|
case 3:
|
|
130
130
|
return !0;
|
|
@@ -370,10 +370,10 @@ xt(at, {
|
|
|
370
370
|
getSections: () => dt,
|
|
371
371
|
getTasks: () => ut
|
|
372
372
|
});
|
|
373
|
-
var
|
|
374
|
-
Y.length = 0, U.length = 0,
|
|
373
|
+
var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
|
|
374
|
+
Y.length = 0, U.length = 0, V = "", W.length = 0, vt();
|
|
375
375
|
}, "clear"), ht = /* @__PURE__ */ s(function(n) {
|
|
376
|
-
|
|
376
|
+
V = n, Y.push(n);
|
|
377
377
|
}, "addSection"), dt = /* @__PURE__ */ s(function() {
|
|
378
378
|
return Y;
|
|
379
379
|
}, "getSections"), ut = /* @__PURE__ */ s(function() {
|
|
@@ -382,24 +382,24 @@ var W = "", lt = 0, Y = [], U = [], z = [], ot = /* @__PURE__ */ s(() => kt, "ge
|
|
|
382
382
|
let e = 0;
|
|
383
383
|
for (; !n && e < t; )
|
|
384
384
|
n = it(), e++;
|
|
385
|
-
return U.push(...
|
|
385
|
+
return U.push(...W), U;
|
|
386
386
|
}, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
387
387
|
const l = {
|
|
388
388
|
id: lt++,
|
|
389
|
-
section:
|
|
390
|
-
type:
|
|
389
|
+
section: V,
|
|
390
|
+
type: V,
|
|
391
391
|
task: n,
|
|
392
392
|
score: t || 0,
|
|
393
393
|
//if event is defined, then add it the events array
|
|
394
394
|
events: e ? [e] : []
|
|
395
395
|
};
|
|
396
|
-
|
|
396
|
+
W.push(l);
|
|
397
397
|
}, "addTask"), yt = /* @__PURE__ */ s(function(n) {
|
|
398
|
-
|
|
398
|
+
W.find((e) => e.id === lt - 1).events.push(n);
|
|
399
399
|
}, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
|
|
400
400
|
const t = {
|
|
401
|
-
section:
|
|
402
|
-
type:
|
|
401
|
+
section: V,
|
|
402
|
+
type: V,
|
|
403
403
|
description: n,
|
|
404
404
|
task: n,
|
|
405
405
|
classes: []
|
|
@@ -407,10 +407,10 @@ var W = "", lt = 0, Y = [], U = [], z = [], ot = /* @__PURE__ */ s(() => kt, "ge
|
|
|
407
407
|
U.push(t);
|
|
408
408
|
}, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
|
|
409
409
|
const n = /* @__PURE__ */ s(function(e) {
|
|
410
|
-
return
|
|
410
|
+
return W[e].processed;
|
|
411
411
|
}, "compileTask");
|
|
412
412
|
let t = !0;
|
|
413
|
-
for (const [e, l] of
|
|
413
|
+
for (const [e, l] of W.entries())
|
|
414
414
|
n(e), t = t && l.processed;
|
|
415
415
|
return t;
|
|
416
416
|
}, "compileTasks"), It = {
|
|
@@ -442,7 +442,7 @@ var W = "", lt = 0, Y = [], U = [], z = [], ot = /* @__PURE__ */ s(() => kt, "ge
|
|
|
442
442
|
m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
443
443
|
}
|
|
444
444
|
return s(g, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? c(i) : g(i), l;
|
|
445
|
-
}, "drawFace"),
|
|
445
|
+
}, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
|
|
446
446
|
const e = n.append("circle");
|
|
447
447
|
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
448
448
|
}, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
|
|
@@ -450,7 +450,7 @@ var W = "", lt = 0, Y = [], U = [], z = [], ot = /* @__PURE__ */ s(() => kt, "ge
|
|
|
450
450
|
l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
|
|
451
451
|
const i = l.append("tspan");
|
|
452
452
|
return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
|
|
453
|
-
}, "drawText"),
|
|
453
|
+
}, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
|
|
454
454
|
function e(i, d, c, g, m) {
|
|
455
455
|
return i + "," + d + " " + (i + c) + "," + d + " " + (i + c) + "," + (d + g - m) + " " + (i + c - m * 1.2) + "," + (d + g) + " " + i + "," + (d + g);
|
|
456
456
|
}
|
|
@@ -567,30 +567,30 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
567
567
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
|
|
568
568
|
);
|
|
569
569
|
const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
|
|
570
|
-
return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"),
|
|
571
|
-
}, "drawNode"),
|
|
570
|
+
return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, i, l), t;
|
|
571
|
+
}, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
|
|
572
572
|
var g;
|
|
573
573
|
const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
574
574
|
return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
|
|
575
|
-
}, "getVirtualNodeHeight"),
|
|
575
|
+
}, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
|
|
576
576
|
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
577
577
|
"d",
|
|
578
578
|
`M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
579
579
|
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
580
580
|
}, "defaultBkg"), F = {
|
|
581
581
|
drawRect: Z,
|
|
582
|
-
drawCircle:
|
|
582
|
+
drawCircle: Mt,
|
|
583
583
|
drawSection: Ht,
|
|
584
584
|
drawText: ft,
|
|
585
|
-
drawLabel:
|
|
585
|
+
drawLabel: $t,
|
|
586
586
|
drawTask: Pt,
|
|
587
587
|
drawBackgroundRect: At,
|
|
588
588
|
getTextObj: Ct,
|
|
589
589
|
getNoteRect: D,
|
|
590
590
|
initGraphics: Rt,
|
|
591
591
|
drawNode: Ft,
|
|
592
|
-
getVirtualNodeHeight:
|
|
593
|
-
},
|
|
592
|
+
getVirtualNodeHeight: zt
|
|
593
|
+
}, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
594
594
|
var O, v, N;
|
|
595
595
|
const i = _t(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
|
|
596
596
|
E.debug("timeline", l.db);
|
|
@@ -614,21 +614,21 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
614
614
|
width: 150,
|
|
615
615
|
padding: 20,
|
|
616
616
|
maxHeight: r
|
|
617
|
-
},
|
|
618
|
-
E.debug("sectionHeight before draw",
|
|
617
|
+
}, $ = F.getVirtualNodeHeight(p, b, i);
|
|
618
|
+
E.debug("sectionHeight before draw", $), r = Math.max(r, $ + 20);
|
|
619
619
|
});
|
|
620
|
-
let
|
|
620
|
+
let M = 0, C = 0;
|
|
621
621
|
E.debug("tasks.length", x.length);
|
|
622
622
|
for (const [L, b] of x.entries()) {
|
|
623
|
-
const
|
|
623
|
+
const $ = {
|
|
624
624
|
number: L,
|
|
625
625
|
descr: b,
|
|
626
626
|
section: b.section,
|
|
627
627
|
width: 150,
|
|
628
628
|
padding: 20,
|
|
629
629
|
maxHeight: a
|
|
630
|
-
}, R = F.getVirtualNodeHeight(p,
|
|
631
|
-
E.debug("taskHeight before draw", R), a = Math.max(a, R + 20),
|
|
630
|
+
}, R = F.getVirtualNodeHeight(p, $, i);
|
|
631
|
+
E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
|
|
632
632
|
let A = 0;
|
|
633
633
|
for (const w of b.events) {
|
|
634
634
|
const H = {
|
|
@@ -644,7 +644,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
644
644
|
b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
|
|
645
645
|
}
|
|
646
646
|
E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
|
|
647
|
-
const b = x.filter((w) => w.section === L),
|
|
647
|
+
const b = x.filter((w) => w.section === L), $ = {
|
|
648
648
|
number: S,
|
|
649
649
|
descr: L,
|
|
650
650
|
section: S,
|
|
@@ -652,8 +652,8 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
652
652
|
padding: 20,
|
|
653
653
|
maxHeight: r
|
|
654
654
|
};
|
|
655
|
-
E.debug("sectionNode",
|
|
656
|
-
const R = p.append("g"), A = F.drawNode(R,
|
|
655
|
+
E.debug("sectionNode", $);
|
|
656
|
+
const R = p.append("g"), A = F.drawNode(R, $, S, i);
|
|
657
657
|
E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += r + 50, b.length > 0 && st(
|
|
658
658
|
p,
|
|
659
659
|
b,
|
|
@@ -662,7 +662,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
662
662
|
o,
|
|
663
663
|
a,
|
|
664
664
|
i,
|
|
665
|
-
|
|
665
|
+
M,
|
|
666
666
|
C,
|
|
667
667
|
r,
|
|
668
668
|
!1
|
|
@@ -675,7 +675,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
675
675
|
o,
|
|
676
676
|
a,
|
|
677
677
|
i,
|
|
678
|
-
|
|
678
|
+
M,
|
|
679
679
|
C,
|
|
680
680
|
r,
|
|
681
681
|
!0
|
|
@@ -729,7 +729,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
729
729
|
}, "drawEvents"), Ot = {
|
|
730
730
|
setConf: /* @__PURE__ */ s(() => {
|
|
731
731
|
}, "setConf"),
|
|
732
|
-
draw:
|
|
732
|
+
draw: Wt
|
|
733
733
|
}, jt = /* @__PURE__ */ s((n) => {
|
|
734
734
|
let t = "";
|
|
735
735
|
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as a, ak as gi, l as Xt,
|
|
1
|
+
import { _ as a, ak as gi, l as Xt, a9 as Wt, a1 as xi, G as St, F as Nt, E as di, i as fi, p as Yt, s as pi, g as mi, o as yi, b as bi, c as Ai, v as wi, K as Ci, k as Si } from "./mermaid.core-DyFxH-Px.js";
|
|
2
2
|
import { i as _i } from "./init-DjUOC4st.js";
|
|
3
3
|
import { o as ki } from "./ordinal-MUacOSdK.js";
|
|
4
|
-
import { l as zt } from "./linear-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { l as zt } from "./linear-CRqCHTKs.js";
|
|
5
|
+
import "./index-Zd10d_CE.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "./defaultLocale-DcQU6Vee.js";
|
|
@@ -48,8 +48,8 @@ function yt() {
|
|
|
48
48
|
}, _i.apply(C(), arguments);
|
|
49
49
|
}
|
|
50
50
|
var bt = function() {
|
|
51
|
-
var e = /* @__PURE__ */ a(function(
|
|
52
|
-
for (u = u || {}, x =
|
|
51
|
+
var e = /* @__PURE__ */ a(function(F, h, u, x) {
|
|
52
|
+
for (u = u || {}, x = F.length; x--; u[F[x]] = h)
|
|
53
53
|
;
|
|
54
54
|
return u;
|
|
55
55
|
}, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], p = [1, 25], k = [1, 26], v = [1, 28], C = [1, 29], b = [1, 30], E = [1, 31], D = [1, 32], P = [1, 33], I = [1, 34], y = [1, 35], _ = [1, 36], c = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], l = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], S = [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], R = [1, 64], $ = {
|
|
@@ -177,7 +177,7 @@ var bt = function() {
|
|
|
177
177
|
return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
|
|
178
178
|
}
|
|
179
179
|
a(Vt, "lex");
|
|
180
|
-
for (var M, H, B, pt,
|
|
180
|
+
for (var M, H, B, pt, G = {}, ct, O, Bt, ut; ; ) {
|
|
181
181
|
if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = j[H] && j[H][M]), typeof B > "u" || !B.length || !B[0]) {
|
|
182
182
|
var mt = "";
|
|
183
183
|
ut = [];
|
|
@@ -200,15 +200,15 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
200
200
|
x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, f = T.yytext, lt = T.yylineno, ft = T.yylloc;
|
|
201
201
|
break;
|
|
202
202
|
case 2:
|
|
203
|
-
if (
|
|
204
|
-
first_line: r[r.length - (
|
|
203
|
+
if (O = this.productions_[B[1]][1], G.$ = w[w.length - O], G._$ = {
|
|
204
|
+
first_line: r[r.length - (O || 1)].first_line,
|
|
205
205
|
last_line: r[r.length - 1].last_line,
|
|
206
|
-
first_column: r[r.length - (
|
|
206
|
+
first_column: r[r.length - (O || 1)].first_column,
|
|
207
207
|
last_column: r[r.length - 1].last_column
|
|
208
|
-
}, ci && (
|
|
209
|
-
r[r.length - (
|
|
208
|
+
}, ci && (G._$.range = [
|
|
209
|
+
r[r.length - (O || 1)].range[0],
|
|
210
210
|
r[r.length - 1].range[1]
|
|
211
|
-
]), pt = this.performAction.apply(
|
|
211
|
+
]), pt = this.performAction.apply(G, [
|
|
212
212
|
f,
|
|
213
213
|
It,
|
|
214
214
|
lt,
|
|
@@ -218,7 +218,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
218
218
|
r
|
|
219
219
|
].concat(li)), typeof pt < "u")
|
|
220
220
|
return pt;
|
|
221
|
-
|
|
221
|
+
O && (x = x.slice(0, -1 * O * 2), w = w.slice(0, -1 * O), r = r.slice(0, -1 * O)), x.push(this.productions_[B[1]][0]), w.push(G.$), r.push(G._$), Bt = j[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
|
|
222
222
|
break;
|
|
223
223
|
case 3:
|
|
224
224
|
return !0;
|
|
@@ -227,7 +227,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
227
227
|
return !0;
|
|
228
228
|
}, "parse")
|
|
229
229
|
}, Et = /* @__PURE__ */ function() {
|
|
230
|
-
var
|
|
230
|
+
var F = {
|
|
231
231
|
EOF: 1,
|
|
232
232
|
parseError: /* @__PURE__ */ a(function(u, x) {
|
|
233
233
|
if (this.yy.parser)
|
|
@@ -502,7 +502,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
502
502
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
|
|
503
503
|
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
|
|
504
504
|
};
|
|
505
|
-
return
|
|
505
|
+
return F;
|
|
506
506
|
}();
|
|
507
507
|
$.lexer = Et;
|
|
508
508
|
function N() {
|
|
@@ -520,10 +520,10 @@ function _t(e) {
|
|
|
520
520
|
return e.type === "band";
|
|
521
521
|
}
|
|
522
522
|
a(_t, "isBandAxisData");
|
|
523
|
-
function
|
|
523
|
+
function q(e) {
|
|
524
524
|
return e.type === "linear";
|
|
525
525
|
}
|
|
526
|
-
a(
|
|
526
|
+
a(q, "isLinearAxisData");
|
|
527
527
|
var J, Ht = (J = class {
|
|
528
528
|
constructor(t) {
|
|
529
529
|
this.parentGroup = t;
|
|
@@ -544,7 +544,7 @@ var J, Ht = (J = class {
|
|
|
544
544
|
}
|
|
545
545
|
return n.remove(), s;
|
|
546
546
|
}
|
|
547
|
-
}, a(J, "TextDimensionCalculatorWithFont"), J),
|
|
547
|
+
}, a(J, "TextDimensionCalculatorWithFont"), J), Ft = 0.7, Ot = 0.2, tt, Ut = (tt = class {
|
|
548
548
|
constructor(t, i, s, n) {
|
|
549
549
|
this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
|
|
550
550
|
}
|
|
@@ -571,12 +571,12 @@ var J, Ht = (J = class {
|
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
573
|
recalculateOuterPaddingToDrawBar() {
|
|
574
|
-
|
|
574
|
+
Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
|
|
575
575
|
}
|
|
576
576
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
577
577
|
let i = t.height;
|
|
578
578
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
579
|
-
const s = this.getLabelDimension(), n =
|
|
579
|
+
const s = this.getLabelDimension(), n = Ot * t.width;
|
|
580
580
|
this.outerPadding = Math.min(s.width / 2, n);
|
|
581
581
|
const o = s.height + this.axisConfig.labelPadding * 2;
|
|
582
582
|
this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
|
|
@@ -593,7 +593,7 @@ var J, Ht = (J = class {
|
|
|
593
593
|
calculateSpaceIfDrawnVertical(t) {
|
|
594
594
|
let i = t.width;
|
|
595
595
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
596
|
-
const s = this.getLabelDimension(), n =
|
|
596
|
+
const s = this.getLabelDimension(), n = Ot * t.height;
|
|
597
597
|
this.outerPadding = Math.min(s.height / 2, n);
|
|
598
598
|
const o = s.width + this.axisConfig.labelPadding * 2;
|
|
599
599
|
o <= i && (i -= o, this.showLabel = !0);
|
|
@@ -1011,15 +1011,15 @@ var nt, Li = (nt = class {
|
|
|
1011
1011
|
return t;
|
|
1012
1012
|
}
|
|
1013
1013
|
}, a(rt, "BasePlot"), rt);
|
|
1014
|
-
function
|
|
1014
|
+
function Gt(e, t, i) {
|
|
1015
1015
|
return new Ii(e, t, i);
|
|
1016
1016
|
}
|
|
1017
|
-
a(
|
|
1017
|
+
a(Gt, "getPlotComponent");
|
|
1018
1018
|
var ot, Mi = (ot = class {
|
|
1019
1019
|
constructor(t, i, s, n) {
|
|
1020
1020
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1021
1021
|
title: $t(t, i, s, n),
|
|
1022
|
-
plot:
|
|
1022
|
+
plot: Gt(t, i, s),
|
|
1023
1023
|
xAxis: wt(
|
|
1024
1024
|
i.xAxis,
|
|
1025
1025
|
t.xAxis,
|
|
@@ -1101,7 +1101,7 @@ var ot, Mi = (ot = class {
|
|
|
1101
1101
|
static build(t, i, s, n) {
|
|
1102
1102
|
return new Mi(t, i, s, n).getDrawableElement();
|
|
1103
1103
|
}
|
|
1104
|
-
}, a(ht, "XYChartBuilder"), ht), Q = 0,
|
|
1104
|
+
}, a(ht, "XYChartBuilder"), ht), Q = 0, qt, K = Tt(), Z = Rt(), A = Dt(), Ct = Z.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
|
|
1105
1105
|
function Rt() {
|
|
1106
1106
|
const e = xi(), t = St();
|
|
1107
1107
|
return Nt(e.xyChart, t.themeVariables.xyChart);
|
|
@@ -1139,7 +1139,7 @@ function xt(e) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
a(xt, "textSanitizer");
|
|
1141
1141
|
function jt(e) {
|
|
1142
|
-
|
|
1142
|
+
qt = e;
|
|
1143
1143
|
}
|
|
1144
1144
|
a(jt, "setTmpSVGG");
|
|
1145
1145
|
function Qt(e) {
|
|
@@ -1171,7 +1171,7 @@ function ti(e, t) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
a(ti, "setYAxisRangeData");
|
|
1173
1173
|
function ii(e) {
|
|
1174
|
-
const t = Math.min(...e), i = Math.max(...e), s =
|
|
1174
|
+
const t = Math.min(...e), i = Math.max(...e), s = q(A.yAxis) ? A.yAxis.min : 1 / 0, n = q(A.yAxis) ? A.yAxis.max : -1 / 0;
|
|
1175
1175
|
A.yAxis = {
|
|
1176
1176
|
type: "linear",
|
|
1177
1177
|
title: A.yAxis.title,
|
|
@@ -1185,10 +1185,10 @@ function Pt(e) {
|
|
|
1185
1185
|
if (e.length === 0)
|
|
1186
1186
|
return t;
|
|
1187
1187
|
if (!gt) {
|
|
1188
|
-
const i =
|
|
1188
|
+
const i = q(A.xAxis) ? A.xAxis.min : 1 / 0, s = q(A.xAxis) ? A.xAxis.max : -1 / 0;
|
|
1189
1189
|
vt(Math.min(i, 1), Math.max(s, e.length));
|
|
1190
1190
|
}
|
|
1191
|
-
if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])),
|
|
1191
|
+
if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), q(A.xAxis)) {
|
|
1192
1192
|
const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
|
|
1193
1193
|
for (let g = i; g <= s; g += n)
|
|
1194
1194
|
o.push(`${g}`);
|
|
@@ -1223,7 +1223,7 @@ a(si, "setBarData");
|
|
|
1223
1223
|
function ni() {
|
|
1224
1224
|
if (A.plots.length === 0)
|
|
1225
1225
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1226
|
-
return A.title = Yt(), Vi.build(K, A, Z,
|
|
1226
|
+
return A.title = Yt(), Vi.build(K, A, Z, qt);
|
|
1227
1227
|
}
|
|
1228
1228
|
a(ni, "getDrawableElem");
|
|
1229
1229
|
function ai() {
|
|
@@ -1311,7 +1311,7 @@ var Bi = /* @__PURE__ */ a(function() {
|
|
|
1311
1311
|
_.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width - 10).attr("y", (l) => l.data.y + l.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
|
|
1312
1312
|
} else {
|
|
1313
1313
|
let c = function(l, L, S) {
|
|
1314
|
-
const { data: R, label: $ } = l, N = L * $.length * 0.7,
|
|
1314
|
+
const { data: R, label: $ } = l, N = L * $.length * 0.7, F = R.x + R.width / 2, h = F - N / 2, u = F + N / 2, x = h >= R.x && u <= R.x + R.width, d = R.y + S + L <= R.y + R.height;
|
|
1315
1315
|
return x && d;
|
|
1316
1316
|
};
|
|
1317
1317
|
a(c, "fitsInBar");
|
|
@@ -1333,13 +1333,13 @@ var Bi = /* @__PURE__ */ a(function() {
|
|
|
1333
1333
|
break;
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
}, "draw"),
|
|
1336
|
+
}, "draw"), Fi = {
|
|
1337
1337
|
draw: zi
|
|
1338
|
-
},
|
|
1338
|
+
}, qi = {
|
|
1339
1339
|
parser: Ti,
|
|
1340
1340
|
db: Wi,
|
|
1341
|
-
renderer:
|
|
1341
|
+
renderer: Fi
|
|
1342
1342
|
};
|
|
1343
1343
|
export {
|
|
1344
|
-
|
|
1344
|
+
qi as diagram
|
|
1345
1345
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/ai-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"use-stick-to-bottom": "1.1.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
+
"@shikijs/transformers": "3.20.0",
|
|
55
56
|
"@testing-library/jest-dom": "6.4.0",
|
|
56
57
|
"@testing-library/react": "14.2.0",
|
|
57
58
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputAction } from './InputAction';
|