lowcoder-comps 0.0.20 → 0.0.22
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/029c585a.js +825 -0
- package/0f49842f.js +915 -0
- package/14c95def.js +2396 -0
- package/{5a7c40d7.js → 14de54b2.js} +7120 -6939
- package/17b0984b.js +1116 -0
- package/{a1f987b7.js → 1a4b39ab.js} +29 -30
- package/1e35aee7.js +932 -0
- package/{804e952b.js → 1f97d569.js} +73 -76
- package/3120eee5.js +1235 -0
- package/313e94fb.js +796 -0
- package/{384b70d4.js → 41a4677f.js} +10 -12
- package/{e1466a22.js → 48a69d01.js} +89 -97
- package/4a8006fe.js +2501 -0
- package/{a06ced05.js → 585231df.js} +64 -71
- package/5e96f5d8.js +64 -0
- package/5f9be850.js +1055 -0
- package/{3196b84f.js → 6e0c66a6.js} +97 -109
- package/76d315c1.js +2192 -0
- package/{31c6e136.js → 867cdd47.js} +1 -1
- package/{0d5d7030.js → 8a65542f.js} +58 -64
- package/913e1a65.js +804 -0
- package/92e85b65.js +65 -0
- package/97298a99.js +2966 -0
- package/{5fd0f607.js → a396e61e.js} +44 -44
- package/a6d42292.js +1284 -0
- package/afd2e4d5.js +86 -0
- package/be5f3226.js +768 -0
- package/{4791bdd6.js → bf75928a.js} +30142 -30663
- package/{011ccb4a.js → bfd01456.js} +4257 -4221
- package/c239ec69.js +1000 -0
- package/e731f493.js +502 -0
- package/ef3524ce.js +960 -0
- package/f5b4a4bc.js +365 -0
- package/{8d714103.js → fa29410e.js} +598 -622
- package/fbc7bdd4.js +218 -0
- package/index.js +2 -2
- package/package.json +2 -2
- package/01102044.js +0 -940
- package/0e8dfd52.js +0 -793
- package/0f25771b.js +0 -1118
- package/2470e1d8.js +0 -91
- package/32432dc3.js +0 -86
- package/36552e14.js +0 -849
- package/3ad35722.js +0 -365
- package/3f4db197.js +0 -943
- package/71827e37.js +0 -1032
- package/7a200c6a.js +0 -607
- package/872f2918.js +0 -7
- package/93b98f3e.js +0 -832
- package/a42a2ba9.js +0 -2103
- package/af0489f3.js +0 -2456
- package/b56f953d.js +0 -985
- package/b89c6a6a.js +0 -159
- package/bc7030d3.js +0 -70
- package/c739ba3e.js +0 -2679
- package/d306d59c.js +0 -2827
- package/d8adcd1e.js +0 -823
- package/ef845d7f.js +0 -1246
package/2470e1d8.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { p as N, d as M, s as W } from "./71827e37.js";
|
|
2
|
-
import { c as S, l as d, h as u, i as H } from "./4791bdd6.js";
|
|
3
|
-
import { G as X, l as Y } from "./c739ba3e.js";
|
|
4
|
-
import { s as l } from "./b89c6a6a.js";
|
|
5
|
-
import "./31c6e136.js";
|
|
6
|
-
import "./2ff2c7a6.js";
|
|
7
|
-
import "./256b619e.js";
|
|
8
|
-
let h = {};
|
|
9
|
-
const g = 20, p = function(e) {
|
|
10
|
-
const s = Object.entries(h).find((k) => k[1].label === e);
|
|
11
|
-
if (s)
|
|
12
|
-
return s[0];
|
|
13
|
-
}, Z = function(e) {
|
|
14
|
-
e.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
15
|
-
}, D = function(e, s, k, a) {
|
|
16
|
-
const c = S().class;
|
|
17
|
-
h = {}, d.info("Rendering diagram " + e);
|
|
18
|
-
const L = S().securityLevel;
|
|
19
|
-
let y;
|
|
20
|
-
L === "sandbox" && (y = u("#i" + s));
|
|
21
|
-
const x = L === "sandbox" ? u(y.nodes()[0].contentDocument.body) : u("body"), n = x.select(`[id='${s}']`);
|
|
22
|
-
Z(n);
|
|
23
|
-
const r = new X({
|
|
24
|
-
multigraph: !0
|
|
25
|
-
});
|
|
26
|
-
r.setGraph({
|
|
27
|
-
isMultiGraph: !0
|
|
28
|
-
}), r.setDefaultEdgeLabel(function() {
|
|
29
|
-
return {};
|
|
30
|
-
});
|
|
31
|
-
const m = a.db.getClasses(), $ = Object.keys(m);
|
|
32
|
-
for (const t of $) {
|
|
33
|
-
const o = m[t], i = l.drawClass(n, o, c, a);
|
|
34
|
-
h[i.id] = i, r.setNode(i.id, i), d.info("Org height: " + i.height);
|
|
35
|
-
}
|
|
36
|
-
a.db.getRelations().forEach(function(t) {
|
|
37
|
-
d.info(
|
|
38
|
-
"tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)
|
|
39
|
-
), r.setEdge(
|
|
40
|
-
p(t.id1),
|
|
41
|
-
p(t.id2),
|
|
42
|
-
{
|
|
43
|
-
relation: t
|
|
44
|
-
},
|
|
45
|
-
t.title || "DEFAULT"
|
|
46
|
-
);
|
|
47
|
-
}), a.db.getNotes().forEach(function(t) {
|
|
48
|
-
d.debug(`Adding note: ${JSON.stringify(t)}`);
|
|
49
|
-
const o = l.drawNote(n, t, c, a);
|
|
50
|
-
h[o.id] = o, r.setNode(o.id, o), t.class && t.class in m && r.setEdge(
|
|
51
|
-
t.id,
|
|
52
|
-
p(t.class),
|
|
53
|
-
{
|
|
54
|
-
relation: {
|
|
55
|
-
id1: t.id,
|
|
56
|
-
id2: t.class,
|
|
57
|
-
relation: {
|
|
58
|
-
type1: "none",
|
|
59
|
-
type2: "none",
|
|
60
|
-
lineType: 10
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"DEFAULT"
|
|
65
|
-
);
|
|
66
|
-
}), Y(r), r.nodes().forEach(function(t) {
|
|
67
|
-
t !== void 0 && r.node(t) !== void 0 && (d.debug("Node " + t + ": " + JSON.stringify(r.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr(
|
|
68
|
-
"transform",
|
|
69
|
-
"translate(" + (r.node(t).x - r.node(t).width / 2) + "," + (r.node(t).y - r.node(t).height / 2) + " )"
|
|
70
|
-
));
|
|
71
|
-
}), r.edges().forEach(function(t) {
|
|
72
|
-
t !== void 0 && r.edge(t) !== void 0 && (d.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(r.edge(t))), l.drawEdge(n, r.edge(t), r.edge(t).relation, c, a));
|
|
73
|
-
});
|
|
74
|
-
const f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
75
|
-
H(n, b, E, c.useMaxWidth);
|
|
76
|
-
const w = `${f.x - g} ${f.y - g} ${E} ${b}`;
|
|
77
|
-
d.debug(`viewBox ${w}`), n.attr("viewBox", w);
|
|
78
|
-
}, B = {
|
|
79
|
-
draw: D
|
|
80
|
-
}, R = {
|
|
81
|
-
parser: N,
|
|
82
|
-
db: M,
|
|
83
|
-
renderer: B,
|
|
84
|
-
styles: W,
|
|
85
|
-
init: (e) => {
|
|
86
|
-
e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute, M.clear();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
R as diagram
|
|
91
|
-
};
|
package/32432dc3.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { w as ln, c as H } from "./256b619e.js";
|
|
2
|
-
import { aB as an, aC as M, aD as D, aE as rn, aF as y, Q as on, aG as S, aH as _, aI as un, aJ as t, aK as sn, aL as tn, aM as fn } from "./4791bdd6.js";
|
|
3
|
-
function cn(l) {
|
|
4
|
-
return l.innerRadius;
|
|
5
|
-
}
|
|
6
|
-
function yn(l) {
|
|
7
|
-
return l.outerRadius;
|
|
8
|
-
}
|
|
9
|
-
function gn(l) {
|
|
10
|
-
return l.startAngle;
|
|
11
|
-
}
|
|
12
|
-
function mn(l) {
|
|
13
|
-
return l.endAngle;
|
|
14
|
-
}
|
|
15
|
-
function pn(l) {
|
|
16
|
-
return l && l.padAngle;
|
|
17
|
-
}
|
|
18
|
-
function dn(l, h, q, E, v, A, J, a) {
|
|
19
|
-
var B = q - l, i = E - h, n = J - v, m = a - A, r = m * B - n * i;
|
|
20
|
-
if (!(r * r < y))
|
|
21
|
-
return r = (n * (h - A) - m * (l - v)) / r, [l + r * B, h + r * i];
|
|
22
|
-
}
|
|
23
|
-
function W(l, h, q, E, v, A, J) {
|
|
24
|
-
var a = l - q, B = h - E, i = (J ? A : -A) / S(a * a + B * B), n = i * B, m = -i * a, r = l + n, s = h + m, f = q + n, c = E + m, K = (r + f) / 2, o = (s + c) / 2, p = f - r, g = c - s, R = p * p + g * g, T = v - A, P = r * c - f * s, C = (g < 0 ? -1 : 1) * S(fn(0, T * T * R - P * P)), F = (P * g - p * C) / R, G = (-P * p - g * C) / R, w = (P * g + p * C) / R, d = (-P * p + g * C) / R, x = F - K, e = G - o, u = w - K, L = d - o;
|
|
25
|
-
return x * x + e * e > u * u + L * L && (F = w, G = d), {
|
|
26
|
-
cx: F,
|
|
27
|
-
cy: G,
|
|
28
|
-
x01: -n,
|
|
29
|
-
y01: -m,
|
|
30
|
-
x11: F * (v / T - 1),
|
|
31
|
-
y11: G * (v / T - 1)
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function vn() {
|
|
35
|
-
var l = cn, h = yn, q = H(0), E = null, v = gn, A = mn, J = pn, a = null, B = ln(i);
|
|
36
|
-
function i() {
|
|
37
|
-
var n, m, r = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - rn, c = A.apply(this, arguments) - rn, K = un(c - f), o = c > f;
|
|
38
|
-
if (a || (a = n = B()), s < r && (m = s, s = r, r = m), !(s > y))
|
|
39
|
-
a.moveTo(0, 0);
|
|
40
|
-
else if (K > on - y)
|
|
41
|
-
a.moveTo(s * M(f), s * D(f)), a.arc(0, 0, s, f, c, !o), r > y && (a.moveTo(r * M(c), r * D(c)), a.arc(0, 0, r, c, f, o));
|
|
42
|
-
else {
|
|
43
|
-
var p = f, g = c, R = f, T = c, P = K, C = K, F = J.apply(this, arguments) / 2, G = F > y && (E ? +E.apply(this, arguments) : S(r * r + s * s)), w = _(un(s - r) / 2, +q.apply(this, arguments)), d = w, x = w, e, u;
|
|
44
|
-
if (G > y) {
|
|
45
|
-
var L = sn(G / r * D(F)), j = sn(G / s * D(F));
|
|
46
|
-
(P -= L * 2) > y ? (L *= o ? 1 : -1, R += L, T -= L) : (P = 0, R = T = (f + c) / 2), (C -= j * 2) > y ? (j *= o ? 1 : -1, p += j, g -= j) : (C = 0, p = g = (f + c) / 2);
|
|
47
|
-
}
|
|
48
|
-
var O = s * M(p), Q = s * D(p), z = r * M(T), N = r * D(T);
|
|
49
|
-
if (w > y) {
|
|
50
|
-
var U = s * M(g), V = s * D(g), X = r * M(R), Y = r * D(R), I;
|
|
51
|
-
if (K < an)
|
|
52
|
-
if (I = dn(O, Q, X, Y, U, V, z, N)) {
|
|
53
|
-
var Z = O - I[0], $ = Q - I[1], k = U - I[0], b = V - I[1], nn = 1 / D(tn((Z * k + $ * b) / (S(Z * Z + $ * $) * S(k * k + b * b))) / 2), en = S(I[0] * I[0] + I[1] * I[1]);
|
|
54
|
-
d = _(w, (r - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
|
|
55
|
-
} else
|
|
56
|
-
d = x = 0;
|
|
57
|
-
}
|
|
58
|
-
C > y ? x > y ? (e = W(X, Y, O, Q, s, x, o), u = W(U, V, z, N, s, x, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, x, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(O, Q), a.arc(0, 0, s, p, g, !o)) : a.moveTo(O, Q), !(r > y) || !(P > y) ? a.lineTo(z, N) : d > y ? (e = W(z, N, U, V, r, -d, o), u = W(O, Q, X, Y, r, -d, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), d < w ? a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, d, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, r, T, R, o);
|
|
59
|
-
}
|
|
60
|
-
if (a.closePath(), n)
|
|
61
|
-
return a = null, n + "" || null;
|
|
62
|
-
}
|
|
63
|
-
return i.centroid = function() {
|
|
64
|
-
var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, m = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2;
|
|
65
|
-
return [M(m) * n, D(m) * n];
|
|
66
|
-
}, i.innerRadius = function(n) {
|
|
67
|
-
return arguments.length ? (l = typeof n == "function" ? n : H(+n), i) : l;
|
|
68
|
-
}, i.outerRadius = function(n) {
|
|
69
|
-
return arguments.length ? (h = typeof n == "function" ? n : H(+n), i) : h;
|
|
70
|
-
}, i.cornerRadius = function(n) {
|
|
71
|
-
return arguments.length ? (q = typeof n == "function" ? n : H(+n), i) : q;
|
|
72
|
-
}, i.padRadius = function(n) {
|
|
73
|
-
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : H(+n), i) : E;
|
|
74
|
-
}, i.startAngle = function(n) {
|
|
75
|
-
return arguments.length ? (v = typeof n == "function" ? n : H(+n), i) : v;
|
|
76
|
-
}, i.endAngle = function(n) {
|
|
77
|
-
return arguments.length ? (A = typeof n == "function" ? n : H(+n), i) : A;
|
|
78
|
-
}, i.padAngle = function(n) {
|
|
79
|
-
return arguments.length ? (J = typeof n == "function" ? n : H(+n), i) : J;
|
|
80
|
-
}, i.context = function(n) {
|
|
81
|
-
return arguments.length ? (a = n == null ? null : n, i) : a;
|
|
82
|
-
}, i;
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
vn as a
|
|
86
|
-
};
|