lowcoder-comps 0.0.32 → 0.0.33
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/{c289b0aa.js → 00bb478a.js} +49 -49
- package/{4a860f5d.js → 02bef5a4.js} +58 -58
- package/{f8b68c1a.js → 057d2a44.js} +21 -21
- package/{d8c50a91.js → 0964fcc6.js} +5 -5
- package/{cc799554.js → 14220e98.js} +52 -52
- package/{24307cf2.js → 1c074fe4.js} +11 -11
- package/{ee801edf.js → 250a6954.js} +36 -36
- package/{4cc9caa5.js → 2cd27cf0.js} +2 -2
- package/{fcee2d3c.js → 2f064957.js} +5 -5
- package/{4a489df6.js → 30c4916b.js} +1 -1
- package/{e6388bfd.js → 36ec7270.js} +2 -2
- package/{c9bb75eb.js → 38c14832.js} +1 -1
- package/{debd9490.js → 3ae34bed.js} +11 -11
- package/{97059d88.js → 3e2939fa.js} +75 -75
- package/{4564a1bc.js → 3f5f874f.js} +28 -28
- package/{1e5cb9c2.js → 3fb86fb9.js} +18 -18
- package/{fd51bb2f.js → 415177f9.js} +2 -2
- package/{a40faea7.js → 47848c42.js} +317 -305
- package/4c6a0ece.js +162535 -0
- package/{d3700d97.js → 4db8e48b.js} +22 -22
- package/{e06dcfb0.js → 531065f1.js} +14 -14
- package/{6deaf0be.js → 5a398ea8.js} +29 -29
- package/{444e09f1.js → 5ab1614c.js} +18 -18
- package/{64d87c95.js → 65bbb6ae.js} +2 -2
- package/{a969f4ca.js → 777cd15c.js} +2057 -2057
- package/{df803461.js → 7dacfa82.js} +26 -26
- package/{a408f817.js → 800cf0d0.js} +18 -18
- package/{7a3f27e4.js → 93e9bd3a.js} +6 -6
- package/98622dfa.js +16582 -0
- package/{2b031be2.js → a2e74e62.js} +1 -1
- package/{c4d99b09.js → a61c3bd3.js} +1 -1
- package/{dce9fa3f.js → b8f48ff4.js} +4 -4
- package/{7ae6dd1c.js → bd0f5f65.js} +6 -6
- package/{aa82b740.js → bf4428f5.js} +56 -56
- package/{aa1becc7.js → cb1972f7.js} +9 -9
- package/{d622fb26.js → dfc10c94.js} +66 -66
- package/{794e64d5.js → ed2c9753.js} +13 -13
- package/{cb40fdd9.js → ef2833e6.js} +308 -314
- package/{de8c90a7.js → f9e72519.js} +30 -30
- package/{f7c6b13d.js → fe063d15.js} +7498 -7263
- package/index.js +2 -2
- package/package.json +27 -1
- package/98955949.js +0 -134435
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as At,
|
|
1
|
+
import { l as At, b7 as zt, b8 as It } from "./4c6a0ece.js";
|
|
2
2
|
const Tt = {};
|
|
3
3
|
function Bt(n, r) {
|
|
4
4
|
const t = r || Tt, e = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, u = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as Ue } from "./
|
|
3
|
-
import { l as Be } from "./
|
|
4
|
-
import { l as Qe } from "./
|
|
1
|
+
import { e as Te, s as Ce, a as Fe, d as Me, b as De, l as Ne, H as Pe, j as oe, k as Ye, m as ke } from "./4c6a0ece.js";
|
|
2
|
+
import { G as Ue } from "./5a398ea8.js";
|
|
3
|
+
import { l as Be } from "./65bbb6ae.js";
|
|
4
|
+
import { l as Qe } from "./0964fcc6.js";
|
|
5
5
|
import "./2ff2c7a6.js";
|
|
6
6
|
import "./256b619e.js";
|
|
7
7
|
var ce = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Y,
|
|
1
|
+
import { l as Y, U as D, k as M } from "./4c6a0ece.js";
|
|
2
2
|
var O = function() {
|
|
3
3
|
var a = function(u, t, e, n) {
|
|
4
4
|
for (e = e || {}, n = u.length; n--; e[u[n]] = t)
|
|
@@ -33,7 +33,7 @@ var O = function() {
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
parse: function(t) {
|
|
36
|
-
var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0,
|
|
36
|
+
var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
|
|
37
37
|
for (var E in this.yy)
|
|
38
38
|
Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
39
39
|
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc == "undefined" && (o.yylloc = {});
|
|
@@ -43,7 +43,7 @@ var O = function() {
|
|
|
43
43
|
typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
44
44
|
function U() {
|
|
45
45
|
var y;
|
|
46
|
-
return y = s.pop() || o.lex() ||
|
|
46
|
+
return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
47
47
|
}
|
|
48
48
|
for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
|
|
49
49
|
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l == "undefined") && (l = U()), h = d[g] && d[g][l]), typeof h == "undefined" || !h.length || !h[0]) {
|
|
@@ -53,7 +53,7 @@ var O = function() {
|
|
|
53
53
|
this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
|
|
54
54
|
o.showPosition ? A = "Parse error on line " + (v + 1) + `:
|
|
55
55
|
` + o.showPosition() + `
|
|
56
|
-
Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l ==
|
|
56
|
+
Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
|
|
57
57
|
text: o.match,
|
|
58
58
|
token: this.terminals_[l] || l,
|
|
59
59
|
line: o.yylineno,
|
|
@@ -65,7 +65,7 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
|
|
|
65
65
|
throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
|
|
66
66
|
switch (h[0]) {
|
|
67
67
|
case 1:
|
|
68
|
-
n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null,
|
|
68
|
+
n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
|
|
69
69
|
break;
|
|
70
70
|
case 2:
|
|
71
71
|
if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
|
|
@@ -78,7 +78,7 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
|
|
|
78
78
|
i[i.length - 1].range[1]
|
|
79
79
|
]), w = this.performAction.apply(_, [
|
|
80
80
|
P,
|
|
81
|
-
|
|
81
|
+
L,
|
|
82
82
|
v,
|
|
83
83
|
p.yy,
|
|
84
84
|
h[1],
|
|
@@ -2,7 +2,7 @@ var ve = Object.defineProperty, Ne = Object.defineProperties;
|
|
|
2
2
|
var ke = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ue = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ie = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var he = (e, a, l) => a in e ? ve(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l,
|
|
5
|
+
var he = (e, a, l) => a in e ? ve(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l, V = (e, a) => {
|
|
6
6
|
for (var l in a || (a = {}))
|
|
7
7
|
Ie.call(a, l) && he(e, l, a[l]);
|
|
8
8
|
if (ue)
|
|
@@ -26,15 +26,15 @@ var K = (e, a, l) => new Promise((u, n) => {
|
|
|
26
26
|
}, b = (f) => f.done ? u(f.value) : Promise.resolve(f.value).then(p, o);
|
|
27
27
|
b((l = l.apply(e, a)).next());
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
30
|
-
import { c as Be } from "./
|
|
31
|
-
import { i as Pe, c as Fe, b as Ke, d as Me, a as xe, p as Ye } from "./
|
|
32
|
-
import { G as We } from "./
|
|
33
|
-
import { o as
|
|
34
|
-
import { s as
|
|
35
|
-
import { c as Ue } from "./
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
29
|
+
import { e as Te, _ as ne, j as J, k as ze, l as S, H as Ce, D as Ae, q as Re } from "./4c6a0ece.js";
|
|
30
|
+
import { c as Be } from "./30c4916b.js";
|
|
31
|
+
import { i as Pe, c as Fe, b as Ke, d as Me, a as xe, p as Ye } from "./00bb478a.js";
|
|
32
|
+
import { G as We } from "./5a398ea8.js";
|
|
33
|
+
import { o as je } from "./92e85b65.js";
|
|
34
|
+
import { s as Ve } from "./2ff7471d.js";
|
|
35
|
+
import { c as Ue } from "./a61c3bd3.js";
|
|
36
|
+
import "./a2e74e62.js";
|
|
37
|
+
import "./0964fcc6.js";
|
|
38
38
|
import "./2ff2c7a6.js";
|
|
39
39
|
import "./256b619e.js";
|
|
40
40
|
import "./f9637058.js";
|
|
@@ -43,7 +43,7 @@ var de, ge, ie = function() {
|
|
|
43
43
|
for (s = s || {}, i = D.length; i--; s[D[i]] = c)
|
|
44
44
|
;
|
|
45
45
|
return s;
|
|
46
|
-
}, a = [1, 7], l = [1, 13], u = [1, 14], n = [1, 15], p = [1, 19], o = [1, 16], b = [1, 17], f = [1, 18], g = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47],
|
|
46
|
+
}, a = [1, 7], l = [1, 13], u = [1, 14], n = [1, 15], p = [1, 19], o = [1, 16], b = [1, 17], f = [1, 18], g = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], y = [1, 23], T = [1, 24], v = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], N = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], E = [1, 49], L = {
|
|
47
47
|
trace: function() {
|
|
48
48
|
},
|
|
49
49
|
yy: {},
|
|
@@ -112,7 +112,7 @@ var de, ge, ie = function() {
|
|
|
112
112
|
h.getLogger().debug("APA123", this ? this : "na"), h.getLogger().debug("COLUMNS: ", t[r]), this.$ = { type: "column-setting", columns: t[r] === "auto" ? -1 : parseInt(t[r]) };
|
|
113
113
|
break;
|
|
114
114
|
case 27:
|
|
115
|
-
h.getLogger().debug("Rule: id-block statement : ", t[r - 2], t[r - 1]), h.generateId(), this.$ = U(
|
|
115
|
+
h.getLogger().debug("Rule: id-block statement : ", t[r - 2], t[r - 1]), h.generateId(), this.$ = U(V({}, t[r - 2]), { type: "composite", children: t[r - 1] });
|
|
116
116
|
break;
|
|
117
117
|
case 28:
|
|
118
118
|
h.getLogger().debug("Rule: blockStatement : ", t[r - 2], t[r - 1], t[r]);
|
|
@@ -149,7 +149,7 @@ var de, ge, ie = function() {
|
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }, { 8: [1, 20] }, e(g, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }), e(x, [2, 16], { 14: 22, 15:
|
|
152
|
+
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }, { 8: [1, 20] }, e(g, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }), e(x, [2, 16], { 14: 22, 15: y, 16: T }), e(x, [2, 17]), e(x, [2, 18]), e(x, [2, 19]), e(x, [2, 20]), e(x, [2, 21]), e(x, [2, 22]), e(v, [2, 25], { 27: [1, 25] }), e(x, [2, 26]), { 19: 26, 26: 12, 32: p }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(N, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(g, [2, 13]), { 26: 35, 32: p }, { 32: [2, 14] }, { 17: [1, 36] }, e(v, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: y, 16: T, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: l, 29: u, 31: n, 32: p, 40: o, 44: b, 47: f }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(N, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(v, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(x, [2, 28]), e(x, [2, 35]), e(x, [2, 36]), e(x, [2, 37]), e(x, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: E }, { 15: [1, 50] }, e(x, [2, 27]), e(N, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: E, 39: [2, 31] }, { 32: [2, 15] }, e(N, [2, 34]), { 39: [2, 32] }],
|
|
153
153
|
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
154
154
|
parseError: function(c, s) {
|
|
155
155
|
if (s.recoverable)
|
|
@@ -160,7 +160,7 @@ var de, ge, ie = function() {
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
parse: function(c) {
|
|
163
|
-
var s = this, i = [0], h = [], d = [null], t = [], m = this.table, r = "", R = 0, W = 0, F = 2, C = 1,
|
|
163
|
+
var s = this, i = [0], h = [], d = [null], t = [], m = this.table, r = "", R = 0, W = 0, F = 2, C = 1, Ee = t.slice.call(arguments, 1), w = Object.create(this.lexer), M = { yy: {} };
|
|
164
164
|
for (var $ in this.yy)
|
|
165
165
|
Object.prototype.hasOwnProperty.call(this.yy, $) && (M.yy[$] = this.yy[$]);
|
|
166
166
|
w.setInput(c, M.yy), M.yy.lexer = w, M.yy.parser = this, typeof w.yylloc == "undefined" && (w.yylloc = {});
|
|
@@ -172,7 +172,7 @@ var de, ge, ie = function() {
|
|
|
172
172
|
var P;
|
|
173
173
|
return P = h.pop() || w.lex() || C, typeof P != "number" && (P instanceof Array && (h = P, P = h.pop()), P = s.symbols_[P] || P), P;
|
|
174
174
|
}
|
|
175
|
-
for (var I, Y, z, te,
|
|
175
|
+
for (var I, Y, z, te, j = {}, q, B, ce, Z; ; ) {
|
|
176
176
|
if (Y = i[i.length - 1], this.defaultActions[Y] ? z = this.defaultActions[Y] : ((I === null || typeof I == "undefined") && (I = De()), z = m[Y] && m[Y][I]), typeof z == "undefined" || !z.length || !z[0]) {
|
|
177
177
|
var se = "";
|
|
178
178
|
Z = [];
|
|
@@ -195,15 +195,15 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : se =
|
|
|
195
195
|
i.push(I), d.push(w.yytext), t.push(w.yylloc), i.push(z[1]), I = null, W = w.yyleng, r = w.yytext, R = w.yylineno, ee = w.yylloc;
|
|
196
196
|
break;
|
|
197
197
|
case 2:
|
|
198
|
-
if (B = this.productions_[z[1]][1],
|
|
198
|
+
if (B = this.productions_[z[1]][1], j.$ = d[d.length - B], j._$ = {
|
|
199
199
|
first_line: t[t.length - (B || 1)].first_line,
|
|
200
200
|
last_line: t[t.length - 1].last_line,
|
|
201
201
|
first_column: t[t.length - (B || 1)].first_column,
|
|
202
202
|
last_column: t[t.length - 1].last_column
|
|
203
|
-
}, we && (
|
|
203
|
+
}, we && (j._$.range = [
|
|
204
204
|
t[t.length - (B || 1)].range[0],
|
|
205
205
|
t[t.length - 1].range[1]
|
|
206
|
-
]), te = this.performAction.apply(
|
|
206
|
+
]), te = this.performAction.apply(j, [
|
|
207
207
|
r,
|
|
208
208
|
W,
|
|
209
209
|
R,
|
|
@@ -211,9 +211,9 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : se =
|
|
|
211
211
|
z[1],
|
|
212
212
|
d,
|
|
213
213
|
t
|
|
214
|
-
].concat(
|
|
214
|
+
].concat(Ee)), typeof te != "undefined")
|
|
215
215
|
return te;
|
|
216
|
-
B && (i = i.slice(0, -1 * B * 2), d = d.slice(0, -1 * B), t = t.slice(0, -1 * B)), i.push(this.productions_[z[1]][0]), d.push(
|
|
216
|
+
B && (i = i.slice(0, -1 * B * 2), d = d.slice(0, -1 * B), t = t.slice(0, -1 * B)), i.push(this.productions_[z[1]][0]), d.push(j.$), t.push(j._$), ce = m[i[i.length - 2]][i[i.length - 1]], i.push(ce);
|
|
217
217
|
break;
|
|
218
218
|
case 3:
|
|
219
219
|
return !0;
|
|
@@ -963,15 +963,15 @@ function me(e, a, l = !1) {
|
|
|
963
963
|
default:
|
|
964
964
|
g = "rect";
|
|
965
965
|
}
|
|
966
|
-
const
|
|
966
|
+
const y = Re((o == null ? void 0 : o.styles) || []), T = o.label, v = o.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
967
967
|
return {
|
|
968
|
-
labelStyle:
|
|
968
|
+
labelStyle: y.labelStyle,
|
|
969
969
|
shape: g,
|
|
970
970
|
labelText: T,
|
|
971
971
|
rx: f,
|
|
972
972
|
ry: f,
|
|
973
973
|
class: b,
|
|
974
|
-
style:
|
|
974
|
+
style: y.style,
|
|
975
975
|
id: o.id,
|
|
976
976
|
directions: o.directions,
|
|
977
977
|
width: v.width,
|
|
@@ -1038,7 +1038,7 @@ function Lt(e, a, l, u, n) {
|
|
|
1038
1038
|
if (o.start && o.end) {
|
|
1039
1039
|
const b = u.getBlock(o.start), f = u.getBlock(o.end);
|
|
1040
1040
|
if (b != null && b.size && (f != null && f.size)) {
|
|
1041
|
-
const g = b.size, x = f.size,
|
|
1041
|
+
const g = b.size, x = f.size, y = [
|
|
1042
1042
|
{ x: g.x, y: g.y },
|
|
1043
1043
|
{ x: g.x + (x.x - g.x) / 2, y: g.y + (x.y - g.y) / 2 },
|
|
1044
1044
|
{ x: x.x, y: x.y }
|
|
@@ -1046,27 +1046,27 @@ function Lt(e, a, l, u, n) {
|
|
|
1046
1046
|
yield Fe(
|
|
1047
1047
|
e,
|
|
1048
1048
|
{ v: o.start, w: o.end, name: o.id },
|
|
1049
|
-
U(
|
|
1049
|
+
U(V({}, o), {
|
|
1050
1050
|
arrowTypeEnd: o.arrowTypeEnd,
|
|
1051
1051
|
arrowTypeStart: o.arrowTypeStart,
|
|
1052
|
-
points:
|
|
1052
|
+
points: y,
|
|
1053
1053
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1054
1054
|
}),
|
|
1055
1055
|
void 0,
|
|
1056
1056
|
"block",
|
|
1057
1057
|
p,
|
|
1058
1058
|
n
|
|
1059
|
-
), o.label && (yield Ke(e, U(
|
|
1059
|
+
), o.label && (yield Ke(e, U(V({}, o), {
|
|
1060
1060
|
label: o.label,
|
|
1061
1061
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
1062
1062
|
arrowTypeEnd: o.arrowTypeEnd,
|
|
1063
1063
|
arrowTypeStart: o.arrowTypeStart,
|
|
1064
|
-
points:
|
|
1064
|
+
points: y,
|
|
1065
1065
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1066
1066
|
})), yield Me(
|
|
1067
|
-
U(
|
|
1067
|
+
U(V({}, o), { x: y[1].x, y: y[1].y }),
|
|
1068
1068
|
{
|
|
1069
|
-
originalPath:
|
|
1069
|
+
originalPath: y
|
|
1070
1070
|
}
|
|
1071
1071
|
));
|
|
1072
1072
|
}
|
|
@@ -1107,7 +1107,7 @@ const _t = (e) => {
|
|
|
1107
1107
|
return { width: a, height: l };
|
|
1108
1108
|
};
|
|
1109
1109
|
function re(e, a, l = 0, u = 0) {
|
|
1110
|
-
var n, p, o, b, f, g, x,
|
|
1110
|
+
var n, p, o, b, f, g, x, y, T, v, N;
|
|
1111
1111
|
S.debug(
|
|
1112
1112
|
"setBlockSizes abc95 (start)",
|
|
1113
1113
|
e.id,
|
|
@@ -1122,20 +1122,20 @@ function re(e, a, l = 0, u = 0) {
|
|
|
1122
1122
|
x: 0,
|
|
1123
1123
|
y: 0
|
|
1124
1124
|
});
|
|
1125
|
-
let
|
|
1125
|
+
let E = 0, L = 0;
|
|
1126
1126
|
if (((o = e.children) == null ? void 0 : o.length) > 0) {
|
|
1127
1127
|
for (const d of e.children)
|
|
1128
1128
|
re(d, a);
|
|
1129
1129
|
const A = _t(e);
|
|
1130
|
-
|
|
1130
|
+
E = A.width, L = A.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", E, L);
|
|
1131
1131
|
for (const d of e.children)
|
|
1132
1132
|
d.size && (S.debug(
|
|
1133
|
-
`abc95 Setting size of children of ${e.id} id=${d.id} ${
|
|
1134
|
-
), d.size.width =
|
|
1135
|
-
`abc95 updating size of ${e.id} children child:${d.id} maxWidth:${
|
|
1133
|
+
`abc95 Setting size of children of ${e.id} id=${d.id} ${E} ${L} ${d.size}`
|
|
1134
|
+
), d.size.width = E * (d.widthInColumns || 1) + _ * ((d.widthInColumns || 1) - 1), d.size.height = L, d.size.x = 0, d.size.y = 0, S.debug(
|
|
1135
|
+
`abc95 updating size of ${e.id} children child:${d.id} maxWidth:${E} maxHeight:${L}`
|
|
1136
1136
|
));
|
|
1137
1137
|
for (const d of e.children)
|
|
1138
|
-
re(d, a,
|
|
1138
|
+
re(d, a, E, L);
|
|
1139
1139
|
const k = e.columns || -1;
|
|
1140
1140
|
let D = 0;
|
|
1141
1141
|
for (const d of e.children)
|
|
@@ -1143,13 +1143,13 @@ function re(e, a, l = 0, u = 0) {
|
|
|
1143
1143
|
let c = e.children.length;
|
|
1144
1144
|
k > 0 && k < D && (c = k), e.widthInColumns;
|
|
1145
1145
|
const s = Math.ceil(D / c);
|
|
1146
|
-
let i = c * (
|
|
1146
|
+
let i = c * (E + _) + _, h = s * (L + _) + _;
|
|
1147
1147
|
if (i < l) {
|
|
1148
1148
|
S.debug(
|
|
1149
1149
|
`Detected to small siebling: abc95 ${e.id} sieblingWidth ${l} sieblingHeight ${u} width ${i}`
|
|
1150
1150
|
), i = l, h = u;
|
|
1151
1151
|
const d = (l - c * _ - _) / c, t = (u - s * _ - _) / s;
|
|
1152
|
-
S.debug("Size indata abc88", e.id, "childWidth", d, "maxWidth",
|
|
1152
|
+
S.debug("Size indata abc88", e.id, "childWidth", d, "maxWidth", E), S.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", L), S.debug("Size indata abc88 xSize", c, "padding", _);
|
|
1153
1153
|
for (const m of e.children)
|
|
1154
1154
|
m.size && (m.size.width = d, m.size.height = t, m.size.x = 0, m.size.y = 0);
|
|
1155
1155
|
}
|
|
@@ -1175,14 +1175,14 @@ function re(e, a, l = 0, u = 0) {
|
|
|
1175
1175
|
S.debug(
|
|
1176
1176
|
"setBlockSizes abc94 (done)",
|
|
1177
1177
|
e.id,
|
|
1178
|
-
(
|
|
1178
|
+
(y = e == null ? void 0 : e.size) == null ? void 0 : y.x,
|
|
1179
1179
|
(T = e == null ? void 0 : e.size) == null ? void 0 : T.width,
|
|
1180
1180
|
(v = e == null ? void 0 : e.size) == null ? void 0 : v.y,
|
|
1181
1181
|
(N = e == null ? void 0 : e.size) == null ? void 0 : N.height
|
|
1182
1182
|
);
|
|
1183
1183
|
}
|
|
1184
1184
|
function _e(e, a) {
|
|
1185
|
-
var l, u, n, p, o, b, f, g, x,
|
|
1185
|
+
var l, u, n, p, o, b, f, g, x, y, T, v, N, E, L, A, k;
|
|
1186
1186
|
S.debug(
|
|
1187
1187
|
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(l = e == null ? void 0 : e.size) == null ? void 0 : l.x} y: ${(u = e == null ? void 0 : e.size) == null ? void 0 : u.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
|
|
1188
1188
|
);
|
|
@@ -1199,8 +1199,8 @@ function _e(e, a) {
|
|
|
1199
1199
|
if (!t.size)
|
|
1200
1200
|
continue;
|
|
1201
1201
|
const { width: r, height: R } = t.size, { px: W, py: F } = mt(D, i);
|
|
1202
|
-
if (F != d && (d = F, h = (
|
|
1203
|
-
`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${W},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(
|
|
1202
|
+
if (F != d && (d = F, h = (y = e == null ? void 0 : e.size) != null && y.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((v = e == null ? void 0 : e.size) == null ? void 0 : v.width) / 2 || 0) : -_, S.debug("New row in layout for block", e.id, " and child ", t.id, d)), S.debug(
|
|
1203
|
+
`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${W},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(E = m == null ? void 0 : m.size) == null ? void 0 : E.y}) parent: ${m.id} width: ${r}${_}`
|
|
1204
1204
|
), m.size) {
|
|
1205
1205
|
const C = r / 2;
|
|
1206
1206
|
t.size.x = h + _ + C, S.debug(
|
|
@@ -1216,25 +1216,25 @@ function _e(e, a) {
|
|
|
1216
1216
|
`layout blocks (<==layoutBlocks) ${e.id} x: ${(L = e == null ? void 0 : e.size) == null ? void 0 : L.x} y: ${(A = e == null ? void 0 : e.size) == null ? void 0 : A.y} width: ${(k = e == null ? void 0 : e.size) == null ? void 0 : k.width}`
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function ye(e, { minX: a, minY: l, maxX: u, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
1220
1220
|
if (e.size && e.id !== "root") {
|
|
1221
1221
|
const { x: p, y: o, width: b, height: f } = e.size;
|
|
1222
1222
|
p - b / 2 < a && (a = p - b / 2), o - f / 2 < l && (l = o - f / 2), p + b / 2 > u && (u = p + b / 2), o + f / 2 > n && (n = o + f / 2);
|
|
1223
1223
|
}
|
|
1224
1224
|
if (e.children)
|
|
1225
1225
|
for (const p of e.children)
|
|
1226
|
-
({ minX: a, minY: l, maxX: u, maxY: n } =
|
|
1226
|
+
({ minX: a, minY: l, maxX: u, maxY: n } = ye(p, { minX: a, minY: l, maxX: u, maxY: n }));
|
|
1227
1227
|
return { minX: a, minY: l, maxX: u, maxY: n };
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function yt(e) {
|
|
1230
1230
|
const a = e.getBlock("root");
|
|
1231
1231
|
if (!a)
|
|
1232
1232
|
return;
|
|
1233
1233
|
re(a, e, 0, 0), _e(a), S.debug("getBlocks", JSON.stringify(a, null, 2));
|
|
1234
|
-
const { minX: l, minY: u, maxX: n, maxY: p } =
|
|
1234
|
+
const { minX: l, minY: u, maxX: n, maxY: p } = ye(a), o = p - u, b = n - l;
|
|
1235
1235
|
return { x: l, y: u, width: b, height: o };
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1237
|
+
const Et = function(e, a) {
|
|
1238
1238
|
return a.db.getClasses();
|
|
1239
1239
|
}, wt = function(e, a, l, u) {
|
|
1240
1240
|
return K(this, null, function* () {
|
|
@@ -1243,21 +1243,21 @@ const yt = function(e, a) {
|
|
|
1243
1243
|
n === "sandbox" && (b = J("#i" + a));
|
|
1244
1244
|
const f = n === "sandbox" ? J(b.nodes()[0].contentDocument.body) : J("body"), g = n === "sandbox" ? f.select(`[id="${a}"]`) : J(`[id="${a}"]`);
|
|
1245
1245
|
Pe(g, ["point", "circle", "cross"], u.type, a);
|
|
1246
|
-
const
|
|
1247
|
-
yield xt(N,
|
|
1248
|
-
const
|
|
1249
|
-
if (yield St(N,
|
|
1250
|
-
const L =
|
|
1251
|
-
ze(g, k, D, !!c), S.debug("Here Bounds",
|
|
1246
|
+
const y = o.getBlocks(), T = o.getBlocksFlat(), v = o.getEdges(), N = g.insert("g").attr("class", "block");
|
|
1247
|
+
yield xt(N, y, o);
|
|
1248
|
+
const E = yt(o);
|
|
1249
|
+
if (yield St(N, y, o), yield Lt(N, v, T, o, a), E) {
|
|
1250
|
+
const L = E, A = Math.max(1, Math.round(0.125 * (L.width / L.height))), k = L.height + A + 10, D = L.width + 10, { useMaxWidth: c } = p;
|
|
1251
|
+
ze(g, k, D, !!c), S.debug("Here Bounds", E, L), g.attr(
|
|
1252
1252
|
"viewBox",
|
|
1253
1253
|
`${L.x - 5} ${L.y - 5} ${L.width + 10} ${L.height + 10}`
|
|
1254
1254
|
);
|
|
1255
1255
|
}
|
|
1256
|
-
Ve
|
|
1256
|
+
je(Ve);
|
|
1257
1257
|
});
|
|
1258
1258
|
}, Dt = {
|
|
1259
1259
|
draw: wt,
|
|
1260
|
-
getClasses:
|
|
1260
|
+
getClasses: Et
|
|
1261
1261
|
}, Kt = {
|
|
1262
1262
|
parser: Xe,
|
|
1263
1263
|
db: dt,
|
|
@@ -14,10 +14,10 @@ var C = (e, l, s) => new Promise((o, i) => {
|
|
|
14
14
|
}, a = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(p, f);
|
|
15
15
|
a((s = s.apply(e, l)).next());
|
|
16
16
|
});
|
|
17
|
-
import { G as F } from "./
|
|
18
|
-
import { S as G,
|
|
19
|
-
import { r as Y } from "./
|
|
20
|
-
import { c as Z } from "./
|
|
17
|
+
import { G as F } from "./5a398ea8.js";
|
|
18
|
+
import { S as G, y as j, z as U, A as H, B as K, q as B, l as g, r as W, e as S, m as q, t as P, u as L, p as A, j as $, C as X, v as J, D as Q } from "./4c6a0ece.js";
|
|
19
|
+
import { r as Y } from "./93e9bd3a.js";
|
|
20
|
+
import { c as Z } from "./a61c3bd3.js";
|
|
21
21
|
function O(e) {
|
|
22
22
|
return typeof e == "string" ? new G([document.querySelectorAll(e)], [document.documentElement]) : new G([U(e)], j);
|
|
23
23
|
}
|
|
@@ -304,14 +304,14 @@ const V = {}, le = function(e) {
|
|
|
304
304
|
if (m) {
|
|
305
305
|
const h = w.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
306
306
|
h.setAttributeNS("http://www.w3.org/2000/svg", "class", x.classes.join(" ")), h.setAttributeNS("http://www.w3.org/2000/svg", "href", x.link), h.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), p === "sandbox" ? h.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : x.linkTarget && h.setAttributeNS("http://www.w3.org/2000/svg", "target", x.linkTarget);
|
|
307
|
-
const
|
|
307
|
+
const D = m.insert(function() {
|
|
308
308
|
return h;
|
|
309
|
-
}, ":first-child"),
|
|
310
|
-
|
|
311
|
-
return
|
|
309
|
+
}, ":first-child"), I = m.select(".label-container");
|
|
310
|
+
I && D.append(function() {
|
|
311
|
+
return I.node();
|
|
312
312
|
});
|
|
313
313
|
const z = m.select(".label");
|
|
314
|
-
z &&
|
|
314
|
+
z && D.append(function() {
|
|
315
315
|
return z.node();
|
|
316
316
|
});
|
|
317
317
|
}
|