@airalogy/aimd-recorder 1.17.0 → 1.19.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/README.md +42 -10
- package/README.zh-CN.md +42 -10
- package/dist/AimdCodeField-BQUuM-EF.js +182 -0
- package/dist/{AimdDnaSequenceField-D6ZgCDpp.js → AimdDnaSequenceField-TBKunqU_.js} +2 -2
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-B5Tq4zPV.js → AimdEditor.vue_vue_type_style_index_0_lang-tdh0dJNa.js} +3922 -3829
- package/dist/AimdMarkdownField-DmNX2g4j.js +254 -0
- package/dist/AimdMarkdownNoteField-B5ruzmwS.js +259 -0
- package/dist/{_commonjsHelpers-CZXJ37nu.js → _commonjsHelpers-B5RozER-.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/arc-B-vsgEXF.js +83 -0
- package/dist/architectureDiagram-3BPJPVTR-BwPNOtNH.js +4692 -0
- package/dist/blockDiagram-GPEHLZMM-CMUI4kKc.js +2425 -0
- package/dist/c4Diagram-AAUBKEIU-Cpmfsy_s.js +1577 -0
- package/dist/channel-DlMAXHQK.js +5 -0
- package/dist/chunk-2J33WTMH-DP9BS2ux.js +19 -0
- package/dist/chunk-4BX2VUAB-ncsOeLMb.js +8 -0
- package/dist/chunk-55IACEB6-C7wHk4B7.js +8 -0
- package/dist/chunk-727SXJPM-Caa5aVUO.js +1528 -0
- package/dist/chunk-AQP2D5EJ-CL8egKqD.js +1387 -0
- package/dist/chunk-FMBD7UC4-heVR6BSA.js +19 -0
- package/dist/chunk-ND2GUHAM-BYH-wC2J.js +68 -0
- package/dist/chunk-QZHKN3VN-Bx2K7vkq.js +15 -0
- package/dist/classDiagram-4FO5ZUOK-BLLfLYy0.js +16 -0
- package/dist/classDiagram-v2-Q7XG4LA2-BLLfLYy0.js +16 -0
- package/dist/components.js +3776 -2247
- package/dist/composables.js +96 -70
- package/dist/cose-bilkent-S5V4N54A-E1YmM_xr.js +2609 -0
- package/dist/cytoscape.esm-r59gEWFs.js +18710 -0
- package/dist/dagre-BM42HDAG-BsXpQirH.js +445 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/diagram-2AECGRRQ-CamqbWlY.js +217 -0
- package/dist/diagram-5GNKFQAL-DZyRFcOC.js +123 -0
- package/dist/diagram-KO2AKTUF-CmkGcy7R.js +461 -0
- package/dist/diagram-LMA3HP47-IdDwQPZ-.js +142 -0
- package/dist/diagram-OG6HWLK6-t0LBcUIU.js +528 -0
- package/dist/erDiagram-TEJ5UH35-DJBY2iZG.js +899 -0
- package/dist/flowDiagram-I6XJVG4X-DE4MzPPk.js +1628 -0
- package/dist/ganttDiagram-6RSMTGT7-CmAc35Yw.js +2707 -0
- package/dist/gitGraphDiagram-PVQCEYII-DDQZ5flw.js +815 -0
- package/dist/graph-BsJ8-1Pq.js +1510 -0
- package/dist/index.js +110 -83
- package/dist/infoDiagram-5YYISTIA-DSZjFR5g.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-YF4QCWOH-DCO9dx2L.js +621 -0
- package/dist/journeyDiagram-JHISSGLW-b-PpuBqg.js +834 -0
- package/dist/kanban-definition-UN3LZRKU-BjclDuJZ.js +724 -0
- package/dist/katex-DNob3HGn.js +11690 -0
- package/dist/layout-D4wqKu72.js +1703 -0
- package/dist/linear-Voc3BJib.js +259 -0
- package/dist/mermaid.core-Dt_VbeGP.js +15940 -0
- package/dist/mindmap-definition-RKZ34NQL-B3vrXRVY.js +827 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/pieDiagram-4H26LBE5-DFpWxSxk.js +163 -0
- package/dist/quadrantDiagram-W4KKPZXB-BYHcrGoB.js +1024 -0
- package/dist/record.js +1199 -0
- package/dist/requirementDiagram-4Y6WPE33-C-FgWrRz.js +882 -0
- package/dist/sankeyDiagram-5OEKKPKP-IwN0Evji.js +847 -0
- package/dist/sequenceDiagram-3UESZ5HK-_OnqhBO2.js +2891 -0
- package/dist/stateDiagram-AJRCARHV-BRLv0Zcw.js +263 -0
- package/dist/stateDiagram-v2-BHNVJYJU-BofX0AdS.js +16 -0
- package/dist/timeline-definition-PNZ67QCA-C-DpPLpw.js +1055 -0
- package/dist/{useFieldRendering-xLajJhyA.js → useCodeBlockRendering-DoTZaJTW.js} +1528 -1725
- package/dist/useMonacoAutoHeight-D4T-El3J.js +66 -0
- package/dist/vennDiagram-CIIHVFJN-zTHQR9Oq.js +1557 -0
- package/dist/wardley-L42UT6IY-D7b2ujEZ.js +22512 -0
- package/dist/wardleyDiagram-YWT4CUSO-au5koizO.js +675 -0
- package/dist/xychartDiagram-2RQKCTM6-BNf12P8z.js +1342 -0
- package/package.json +13 -8
- package/src/__tests__/assigner-graph.test.ts +82 -0
- package/src/__tests__/assigner-runner-dependent-data.test.ts +32 -0
- package/src/__tests__/markdown-field.test.ts +150 -1
- package/src/__tests__/markdown-note-field.test.ts +86 -3
- package/src/__tests__/recorder-assigner-control.test.ts +993 -0
- package/src/__tests__/recorder-editor.test.ts +17 -0
- package/src/__tests__/recorder-markdown-assigner-integration.test.ts +49 -0
- package/src/__tests__/step-field.test.ts +47 -1
- package/src/__tests__/type-plugins.test.ts +1 -0
- package/src/__tests__/var-field-render.test.ts +806 -1
- package/src/components/AimdAssignerGraph.vue +816 -0
- package/src/components/AimdCodeField.vue +24 -5
- package/src/components/AimdMarkdownField.vue +556 -11
- package/src/components/AimdMarkdownNoteField.vue +241 -30
- package/src/components/AimdRecorder.vue +1619 -99
- package/src/components/AimdRecorderEditor.vue +276 -8
- package/src/components/AimdRecorderWysiwygFieldHost.vue +6 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +32 -0
- package/src/components/AimdStepCheckField.vue +82 -18
- package/src/components/AimdVarField.vue +694 -25
- package/src/components/AimdVarTableField.vue +325 -138
- package/src/components/icons/AimdAssignerCalculatorIcon.vue +18 -0
- package/src/components/icons/AimdAssignerCloudStatusIcon.vue +22 -0
- package/src/components/index.ts +9 -1
- package/src/components/recorderMilkdownPlugin.ts +14 -0
- package/src/composables/__tests__/useRecordState.test.ts +86 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +175 -0
- package/src/composables/index.ts +28 -1
- package/src/composables/useAssignerRunner.ts +376 -0
- package/src/composables/useCodeBlockRendering.ts +51 -0
- package/src/composables/useFieldRendering.ts +32 -4
- package/src/composables/useMonacoAutoHeight.ts +127 -0
- package/src/composables/useRecordState.ts +22 -3
- package/src/composables/useVarHelpers.ts +237 -32
- package/src/index.ts +20 -1
- package/src/locales.ts +45 -0
- package/src/record/index.ts +120 -0
- package/src/styles/aimd.css +216 -1
- package/src/type-plugins.ts +7 -0
- package/src/type-utils.ts +1 -3
- package/src/types.ts +130 -2
- package/dist/AimdCodeField-DC3DPvgc.js +0 -172
- package/dist/AimdMarkdownField-BJ20QtO8.js +0 -67
- package/dist/AimdMarkdownNoteField-DwAQhoyk.js +0 -186
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { M as ln, N as an, O as Y, P as O, Q, R as un, S as y, T as tn, V as j, W as _, X as rn, Y as o, Z as on, $ as sn, a0 as fn } from "./mermaid.core-Dt_VbeGP.js";
|
|
2
|
+
function cn(l) {
|
|
3
|
+
return l.innerRadius;
|
|
4
|
+
}
|
|
5
|
+
function yn(l) {
|
|
6
|
+
return l.outerRadius;
|
|
7
|
+
}
|
|
8
|
+
function gn(l) {
|
|
9
|
+
return l.startAngle;
|
|
10
|
+
}
|
|
11
|
+
function dn(l) {
|
|
12
|
+
return l.endAngle;
|
|
13
|
+
}
|
|
14
|
+
function mn(l) {
|
|
15
|
+
return l && l.padAngle;
|
|
16
|
+
}
|
|
17
|
+
function pn(l, h, D, S, v, R, V, a) {
|
|
18
|
+
var E = D - l, i = S - h, n = V - v, d = a - R, u = d * E - n * i;
|
|
19
|
+
if (!(u * u < y))
|
|
20
|
+
return u = (n * (h - R) - d * (l - v)) / u, [l + u * E, h + u * i];
|
|
21
|
+
}
|
|
22
|
+
function H(l, h, D, S, v, R, V) {
|
|
23
|
+
var a = l - D, E = h - S, i = (V ? R : -R) / j(a * a + E * E), n = i * E, d = -i * a, u = l + n, s = h + d, f = D + n, c = S + d, W = (u + f) / 2, t = (s + c) / 2, m = f - u, g = c - s, A = m * m + g * g, T = v - R, P = u * c - f * s, I = (g < 0 ? -1 : 1) * j(on(0, T * T * A - P * P)), M = (P * g - m * I) / A, N = (-P * m - g * I) / A, w = (P * g + m * I) / A, p = (-P * m + g * I) / A, x = M - W, e = N - t, r = w - W, X = p - t;
|
|
24
|
+
return x * x + e * e > r * r + X * X && (M = w, N = p), {
|
|
25
|
+
cx: M,
|
|
26
|
+
cy: N,
|
|
27
|
+
x01: -n,
|
|
28
|
+
y01: -d,
|
|
29
|
+
x11: M * (v / T - 1),
|
|
30
|
+
y11: N * (v / T - 1)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function hn() {
|
|
34
|
+
var l = cn, h = yn, D = Q(0), S = null, v = gn, R = dn, V = mn, a = null, E = ln(i);
|
|
35
|
+
function i() {
|
|
36
|
+
var n, d, u = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - un, c = R.apply(this, arguments) - un, W = rn(c - f), t = c > f;
|
|
37
|
+
if (a || (a = n = E()), s < u && (d = s, s = u, u = d), !(s > y)) a.moveTo(0, 0);
|
|
38
|
+
else if (W > tn - y)
|
|
39
|
+
a.moveTo(s * Y(f), s * O(f)), a.arc(0, 0, s, f, c, !t), u > y && (a.moveTo(u * Y(c), u * O(c)), a.arc(0, 0, u, c, f, t));
|
|
40
|
+
else {
|
|
41
|
+
var m = f, g = c, A = f, T = c, P = W, I = W, M = V.apply(this, arguments) / 2, N = M > y && (S ? +S.apply(this, arguments) : j(u * u + s * s)), w = _(rn(s - u) / 2, +D.apply(this, arguments)), p = w, x = w, e, r;
|
|
42
|
+
if (N > y) {
|
|
43
|
+
var X = sn(N / u * O(M)), z = sn(N / s * O(M));
|
|
44
|
+
(P -= X * 2) > y ? (X *= t ? 1 : -1, A += X, T -= X) : (P = 0, A = T = (f + c) / 2), (I -= z * 2) > y ? (z *= t ? 1 : -1, m += z, g -= z) : (I = 0, m = g = (f + c) / 2);
|
|
45
|
+
}
|
|
46
|
+
var Z = s * Y(m), $ = s * O(m), B = u * Y(T), C = u * O(T);
|
|
47
|
+
if (w > y) {
|
|
48
|
+
var F = s * Y(g), G = s * O(g), J = u * Y(A), K = u * O(A), q;
|
|
49
|
+
if (W < an)
|
|
50
|
+
if (q = pn(Z, $, J, K, F, G, B, C)) {
|
|
51
|
+
var L = Z - q[0], U = $ - q[1], k = F - q[0], b = G - q[1], nn = 1 / O(fn((L * k + U * b) / (j(L * L + U * U) * j(k * k + b * b))) / 2), en = j(q[0] * q[0] + q[1] * q[1]);
|
|
52
|
+
p = _(w, (u - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
|
|
53
|
+
} else
|
|
54
|
+
p = x = 0;
|
|
55
|
+
}
|
|
56
|
+
I > y ? x > y ? (e = H(J, K, Z, $, s, x, t), r = H(F, G, B, C, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), !t), a.arc(r.cx, r.cy, x, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : (a.moveTo(Z, $), a.arc(0, 0, s, m, g, !t)) : a.moveTo(Z, $), !(u > y) || !(P > y) ? a.lineTo(B, C) : p > y ? (e = H(B, C, F, G, u, -p, t), r = H(Z, $, J, K, u, -p, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), p < w ? a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, u, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), t), a.arc(r.cx, r.cy, p, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : a.arc(0, 0, u, T, A, t);
|
|
57
|
+
}
|
|
58
|
+
if (a.closePath(), n) return a = null, n + "" || null;
|
|
59
|
+
}
|
|
60
|
+
return i.centroid = function() {
|
|
61
|
+
var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, d = (+v.apply(this, arguments) + +R.apply(this, arguments)) / 2 - an / 2;
|
|
62
|
+
return [Y(d) * n, O(d) * n];
|
|
63
|
+
}, i.innerRadius = function(n) {
|
|
64
|
+
return arguments.length ? (l = typeof n == "function" ? n : Q(+n), i) : l;
|
|
65
|
+
}, i.outerRadius = function(n) {
|
|
66
|
+
return arguments.length ? (h = typeof n == "function" ? n : Q(+n), i) : h;
|
|
67
|
+
}, i.cornerRadius = function(n) {
|
|
68
|
+
return arguments.length ? (D = typeof n == "function" ? n : Q(+n), i) : D;
|
|
69
|
+
}, i.padRadius = function(n) {
|
|
70
|
+
return arguments.length ? (S = n == null ? null : typeof n == "function" ? n : Q(+n), i) : S;
|
|
71
|
+
}, i.startAngle = function(n) {
|
|
72
|
+
return arguments.length ? (v = typeof n == "function" ? n : Q(+n), i) : v;
|
|
73
|
+
}, i.endAngle = function(n) {
|
|
74
|
+
return arguments.length ? (R = typeof n == "function" ? n : Q(+n), i) : R;
|
|
75
|
+
}, i.padAngle = function(n) {
|
|
76
|
+
return arguments.length ? (V = typeof n == "function" ? n : Q(+n), i) : V;
|
|
77
|
+
}, i.context = function(n) {
|
|
78
|
+
return arguments.length ? (a = n ?? null, i) : a;
|
|
79
|
+
}, i;
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
hn as d
|
|
83
|
+
};
|