lowcoder-comps 0.0.21 → 0.0.23

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.
Files changed (58) hide show
  1. package/060799f2.js +960 -0
  2. package/1012bc4d.js +804 -0
  3. package/{b38c288b.js → 13094807.js} +10 -12
  4. package/{54511d22.js → 17eec513.js} +73 -76
  5. package/3581323b.js +1055 -0
  6. package/{f576ac90.js → 39041099.js} +97 -109
  7. package/43aa9013.js +218 -0
  8. package/4835e2da.js +2501 -0
  9. package/4ac12b61.js +915 -0
  10. package/52f00270.js +932 -0
  11. package/53ac8761.js +1235 -0
  12. package/53c41f32.js +1116 -0
  13. package/6b0ac243.js +64 -0
  14. package/6b615aa6.js +365 -0
  15. package/{9f3281b9.js → 6ddb6f97.js} +48410 -35551
  16. package/6fa8963b.js +2396 -0
  17. package/{ba44e76c.js → 7958ae6b.js} +4257 -4221
  18. package/{7c62ef63.js → 7b5e16e2.js} +1 -1
  19. package/83aee898.js +825 -0
  20. package/{31b1cdd2.js → 877dfc2d.js} +29 -30
  21. package/92e85b65.js +65 -0
  22. package/9f3e59b9.js +796 -0
  23. package/{a6e7fb9e.js → 9fadb810.js} +64 -71
  24. package/a8fa2c8f.js +1284 -0
  25. package/{8219433d.js → af05a28a.js} +7038 -6859
  26. package/{450c6bd6.js → ba9c56f6.js} +44 -44
  27. package/{2768fdea.js → bd004c35.js} +89 -97
  28. package/{fb09e069.js → bfe4f54a.js} +598 -622
  29. package/d0baa7b9.js +86 -0
  30. package/dcf6bbc3.js +768 -0
  31. package/e21892cc.js +2966 -0
  32. package/e52f46f3.js +2192 -0
  33. package/{3bd738e9.js → eaef549d.js} +58 -64
  34. package/fc7a026c.js +502 -0
  35. package/fcffa471.js +1000 -0
  36. package/index.js +2 -2
  37. package/package.json +7 -8
  38. package/04ea1009.js +0 -985
  39. package/0a1968f4.js +0 -832
  40. package/3087113d.js +0 -1032
  41. package/39f71758.js +0 -849
  42. package/4d1cf087.js +0 -2679
  43. package/59cbb8ee.js +0 -2456
  44. package/62c916e0.js +0 -86
  45. package/74645131.js +0 -1246
  46. package/75095038.js +0 -159
  47. package/86a4a706.js +0 -1118
  48. package/88c87bf8.js +0 -943
  49. package/8d8e98a7.js +0 -365
  50. package/9200edf7.js +0 -70
  51. package/acdad8f2.js +0 -7
  52. package/cbee3d44.js +0 -607
  53. package/cc0f1351.js +0 -793
  54. package/e614be0d.js +0 -91
  55. package/f40ee59a.js +0 -940
  56. package/fc5c5300.js +0 -2103
  57. package/fe636892.js +0 -823
  58. package/fea654db.js +0 -2827
package/6b0ac243.js ADDED
@@ -0,0 +1,64 @@
1
+ import { aO as o, m as i } from "./6ddb6f97.js";
2
+ const c = (s, t) => {
3
+ const r = s.append("rect");
4
+ if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
5
+ for (const e in t.attrs)
6
+ r.attr(e, t.attrs[e]);
7
+ return t.class !== void 0 && r.attr("class", t.class), r;
8
+ }, x = (s, t) => {
9
+ const r = {
10
+ x: t.startx,
11
+ y: t.starty,
12
+ width: t.stopx - t.startx,
13
+ height: t.stopy - t.starty,
14
+ fill: t.fill,
15
+ stroke: t.stroke,
16
+ class: "rect"
17
+ };
18
+ c(s, r).lower();
19
+ }, d = (s, t) => {
20
+ const r = t.text.replace(o, " "), e = s.append("text");
21
+ e.attr("x", t.x), e.attr("y", t.y), e.attr("class", "legend"), e.style("text-anchor", t.anchor), t.class !== void 0 && e.attr("class", t.class);
22
+ const n = e.append("tspan");
23
+ return n.attr("x", t.x + t.textMargin * 2), n.text(r), e;
24
+ }, h = (s, t, r, e) => {
25
+ const n = s.append("image");
26
+ n.attr("x", t), n.attr("y", r);
27
+ const a = i.sanitizeUrl(e);
28
+ n.attr("xlink:href", a);
29
+ }, y = (s, t, r, e) => {
30
+ const n = s.append("use");
31
+ n.attr("x", t), n.attr("y", r);
32
+ const a = i.sanitizeUrl(e);
33
+ n.attr("xlink:href", `#${a}`);
34
+ }, g = () => ({
35
+ x: 0,
36
+ y: 0,
37
+ width: 100,
38
+ height: 100,
39
+ fill: "#EDF2AE",
40
+ stroke: "#666",
41
+ anchor: "start",
42
+ rx: 0,
43
+ ry: 0
44
+ }), p = () => ({
45
+ x: 0,
46
+ y: 0,
47
+ width: 100,
48
+ height: 100,
49
+ "text-anchor": "start",
50
+ style: "#666",
51
+ textMargin: 0,
52
+ rx: 0,
53
+ ry: 0,
54
+ tspan: !0
55
+ });
56
+ export {
57
+ x as a,
58
+ y as b,
59
+ h as c,
60
+ c as d,
61
+ p as e,
62
+ d as f,
63
+ g
64
+ };
package/6b615aa6.js ADDED
@@ -0,0 +1,365 @@
1
+ var E = (n, t, e) => new Promise((r, i) => {
2
+ var a = (f) => {
3
+ try {
4
+ l(e.next(f));
5
+ } catch (h) {
6
+ i(h);
7
+ }
8
+ }, u = (f) => {
9
+ try {
10
+ l(e.throw(f));
11
+ } catch (h) {
12
+ i(h);
13
+ }
14
+ }, l = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(a, u);
15
+ l((e = e.apply(n, t)).next());
16
+ });
17
+ import { b as j, i as m, m as L, G as A, l as M } from "./6fa8963b.js";
18
+ import { i as _, u as H, s as V, a as U, b as W, p as O, c as Y, d as q, e as z, f as K, g as T, h as B } from "./fcffa471.js";
19
+ import { l as s, p as S, c as X, h as J } from "./6ddb6f97.js";
20
+ import { a as Q } from "./e21892cc.js";
21
+ var Z = 4;
22
+ function I(n) {
23
+ return j(n, Z);
24
+ }
25
+ function x(n) {
26
+ var t = {
27
+ options: {
28
+ directed: n.isDirected(),
29
+ multigraph: n.isMultigraph(),
30
+ compound: n.isCompound()
31
+ },
32
+ nodes: tt(n),
33
+ edges: et(n)
34
+ };
35
+ return m(n.graph()) || (t.value = I(n.graph())), t;
36
+ }
37
+ function tt(n) {
38
+ return L(n.nodes(), function(t) {
39
+ var e = n.node(t), r = n.parent(t), i = { v: t };
40
+ return m(e) || (i.value = e), m(r) || (i.parent = r), i;
41
+ });
42
+ }
43
+ function et(n) {
44
+ return L(n.edges(), function(t) {
45
+ var e = n.edge(t), r = { v: t.v, w: t.w };
46
+ return m(t.name) || (r.name = t.name), m(e) || (r.value = e), r;
47
+ });
48
+ }
49
+ let d = {}, g = {}, R = {};
50
+ const nt = () => {
51
+ g = {}, R = {}, d = {};
52
+ }, C = (n, t) => (s.trace("In isDecendant", t, " ", n, " = ", g[t].includes(n)), !!g[t].includes(n)), it = (n, t) => (s.info("Decendants of ", t, " is ", g[t]), s.info("Edge is ", n), n.v === t || n.w === t ? !1 : g[t] ? g[t].includes(n.v) || C(n.v, t) || C(n.w, t) || g[t].includes(n.w) : (s.debug("Tilt, ", t, ",not in decendants"), !1)), p = (n, t, e, r) => {
53
+ s.warn(
54
+ "Copying children of ",
55
+ n,
56
+ "root",
57
+ r,
58
+ "data",
59
+ t.node(n),
60
+ r
61
+ );
62
+ const i = t.children(n) || [];
63
+ n !== r && i.push(n), s.warn("Copying (nodes) clusterId", n, "nodes", i), i.forEach((a) => {
64
+ if (t.children(a).length > 0)
65
+ p(a, t, e, r);
66
+ else {
67
+ const u = t.node(a);
68
+ s.info("cp ", a, " to ", r, " with parent ", n), e.setNode(a, u), r !== t.parent(a) && (s.warn("Setting parent", a, t.parent(a)), e.setParent(a, t.parent(a))), n !== r && a !== n ? (s.debug("Setting parent", a, n), e.setParent(a, n)) : (s.info("In copy ", n, "root", r, "data", t.node(n), r), s.debug(
69
+ "Not Setting parent for node=",
70
+ a,
71
+ "cluster!==rootId",
72
+ n !== r,
73
+ "node!==clusterId",
74
+ a !== n
75
+ ));
76
+ const l = t.edges(a);
77
+ s.debug("Copying Edges", l), l.forEach((f) => {
78
+ s.info("Edge", f);
79
+ const h = t.edge(f.v, f.w, f.name);
80
+ s.info("Edge data", h, r);
81
+ try {
82
+ it(f, r) ? (s.info("Copying as ", f.v, f.w, h, f.name), e.setEdge(f.v, f.w, h, f.name), s.info("newGraph edges ", e.edges(), e.edge(e.edges()[0]))) : s.info(
83
+ "Skipping copy of edge ",
84
+ f.v,
85
+ "-->",
86
+ f.w,
87
+ " rootId: ",
88
+ r,
89
+ " clusterId:",
90
+ n
91
+ );
92
+ } catch (w) {
93
+ s.error(w);
94
+ }
95
+ });
96
+ }
97
+ s.debug("Removing node", a), t.removeNode(a);
98
+ });
99
+ }, P = (n, t) => {
100
+ const e = t.children(n);
101
+ let r = [...e];
102
+ for (const i of e)
103
+ R[i] = n, r = [...r, ...P(i, t)];
104
+ return r;
105
+ }, b = (n, t) => {
106
+ s.trace("Searching", n);
107
+ const e = t.children(n);
108
+ if (s.trace("Searching children of id ", n, e), e.length < 1)
109
+ return s.trace("This is a valid node", n), n;
110
+ for (const r of e) {
111
+ const i = b(r, t);
112
+ if (i)
113
+ return s.trace("Found replacement for", n, " => ", i), i;
114
+ }
115
+ }, N = (n) => !d[n] || !d[n].externalConnections ? n : d[n] ? d[n].id : n, st = (n, t) => {
116
+ if (!n || t > 10) {
117
+ s.debug("Opting out, no graph ");
118
+ return;
119
+ } else
120
+ s.debug("Opting in, graph ");
121
+ n.nodes().forEach(function(e) {
122
+ n.children(e).length > 0 && (s.warn(
123
+ "Cluster identified",
124
+ e,
125
+ " Replacement id in edges: ",
126
+ b(e, n)
127
+ ), g[e] = P(e, n), d[e] = { id: b(e, n), clusterData: n.node(e) });
128
+ }), n.nodes().forEach(function(e) {
129
+ const r = n.children(e), i = n.edges();
130
+ r.length > 0 ? (s.debug("Cluster identified", e, g), i.forEach((a) => {
131
+ if (a.v !== e && a.w !== e) {
132
+ const u = C(a.v, e), l = C(a.w, e);
133
+ u ^ l && (s.warn("Edge: ", a, " leaves cluster ", e), s.warn("Decendants of XXX ", e, ": ", g[e]), d[e].externalConnections = !0);
134
+ }
135
+ })) : s.debug("Not a cluster ", e, g);
136
+ }), n.edges().forEach(function(e) {
137
+ const r = n.edge(e);
138
+ s.warn("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), s.warn("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(n.edge(e)));
139
+ let i = e.v, a = e.w;
140
+ if (s.warn(
141
+ "Fix XXX",
142
+ d,
143
+ "ids:",
144
+ e.v,
145
+ e.w,
146
+ "Translating: ",
147
+ d[e.v],
148
+ " --- ",
149
+ d[e.w]
150
+ ), d[e.v] && d[e.w] && d[e.v] === d[e.w]) {
151
+ s.warn("Fixing and trixing link to self - removing XXX", e.v, e.w, e.name), s.warn("Fixing and trixing - removing XXX", e.v, e.w, e.name), i = N(e.v), a = N(e.w), n.removeEdge(e.v, e.w, e.name);
152
+ const u = e.w + "---" + e.v;
153
+ n.setNode(u, {
154
+ domId: u,
155
+ id: u,
156
+ labelStyle: "",
157
+ labelText: r.label,
158
+ padding: 0,
159
+ shape: "labelRect",
160
+ style: ""
161
+ });
162
+ const l = structuredClone(r), f = structuredClone(r);
163
+ l.label = "", l.arrowTypeEnd = "none", f.label = "", l.fromCluster = e.v, f.toCluster = e.v, n.setEdge(i, u, l, e.name + "-cyclic-special"), n.setEdge(u, a, f, e.name + "-cyclic-special");
164
+ } else
165
+ (d[e.v] || d[e.w]) && (s.warn("Fixing and trixing - removing XXX", e.v, e.w, e.name), i = N(e.v), a = N(e.w), n.removeEdge(e.v, e.w, e.name), i !== e.v && (r.fromCluster = e.v), a !== e.w && (r.toCluster = e.w), s.warn("Fix Replacing with XXX", i, a, e.name), n.setEdge(i, a, r, e.name));
166
+ }), s.warn("Adjusted Graph", x(n)), F(n, 0), s.trace(d);
167
+ }, F = (n, t) => {
168
+ if (s.warn("extractor - ", t, x(n), n.children("D")), t > 10) {
169
+ s.error("Bailing out");
170
+ return;
171
+ }
172
+ let e = n.nodes(), r = !1;
173
+ for (const i of e) {
174
+ const a = n.children(i);
175
+ r = r || a.length > 0;
176
+ }
177
+ if (!r) {
178
+ s.debug("Done, no node has children", n.nodes());
179
+ return;
180
+ }
181
+ s.debug("Nodes = ", e, t);
182
+ for (const i of e)
183
+ if (s.debug(
184
+ "Extracting node",
185
+ i,
186
+ d,
187
+ d[i] && !d[i].externalConnections,
188
+ !n.parent(i),
189
+ n.node(i),
190
+ n.children("D"),
191
+ " Depth ",
192
+ t
193
+ ), !d[i])
194
+ s.debug("Not a cluster", i, t);
195
+ else if (!d[i].externalConnections && // !graph.parent(node) &&
196
+ n.children(i) && n.children(i).length > 0) {
197
+ s.warn(
198
+ "Cluster without external connections, without a parent and with children",
199
+ i,
200
+ t
201
+ );
202
+ let u = n.graph().rankdir === "TB" ? "LR" : "TB";
203
+ d[i] && d[i].clusterData && d[i].clusterData.dir && (u = d[i].clusterData.dir, s.warn("Fixing dir", d[i].clusterData.dir, u));
204
+ const l = new A({
205
+ multigraph: !0,
206
+ compound: !0
207
+ }).setGraph({
208
+ rankdir: u,
209
+ // Todo: set proper spacing
210
+ nodesep: 50,
211
+ ranksep: 50,
212
+ marginx: 8,
213
+ marginy: 8
214
+ }).setDefaultEdgeLabel(function() {
215
+ return {};
216
+ });
217
+ s.warn("Old graph before copy", x(n)), p(i, n, l, i), n.setNode(i, {
218
+ clusterNode: !0,
219
+ id: i,
220
+ clusterData: d[i].clusterData,
221
+ labelText: d[i].labelText,
222
+ graph: l
223
+ }), s.warn("New graph after copy node: (", i, ")", x(l)), s.debug("Old graph after copy", x(n));
224
+ } else
225
+ s.warn(
226
+ "Cluster ** ",
227
+ i,
228
+ " **not meeting the criteria !externalConnections:",
229
+ !d[i].externalConnections,
230
+ " no parent: ",
231
+ !n.parent(i),
232
+ " children ",
233
+ n.children(i) && n.children(i).length > 0,
234
+ n.children("D"),
235
+ t
236
+ ), s.debug(d);
237
+ e = n.nodes(), s.warn("New list of nodes", e);
238
+ for (const i of e) {
239
+ const a = n.node(i);
240
+ s.warn(" Now next level", i, a), a.clusterNode && F(a.graph, t + 1);
241
+ }
242
+ }, k = (n, t) => {
243
+ if (t.length === 0)
244
+ return [];
245
+ let e = Object.assign(t);
246
+ return t.forEach((r) => {
247
+ const i = n.children(r), a = k(n, i);
248
+ e = [...e, ...a];
249
+ }), e;
250
+ }, rt = (n) => k(n, n.children()), at = (n, t) => {
251
+ s.info("Creating subgraph rect for ", t.id, t);
252
+ const e = n.insert("g").attr("class", "cluster" + (t.class ? " " + t.class : "")).attr("id", t.id), r = e.insert("rect", ":first-child"), i = S(X().flowchart.htmlLabels), a = e.insert("g").attr("class", "cluster-label"), u = t.labelType === "markdown" ? Q(a, t.labelText, { style: t.labelStyle, useHtmlLabels: i }) : a.node().appendChild(T(t.labelText, t.labelStyle, void 0, !0));
253
+ let l = u.getBBox();
254
+ if (S(X().flowchart.htmlLabels)) {
255
+ const c = u.children[0], o = J(u);
256
+ l = c.getBoundingClientRect(), o.attr("width", l.width), o.attr("height", l.height);
257
+ }
258
+ const f = 0 * t.padding, h = f / 2, w = t.width <= l.width + f ? l.width + f : t.width;
259
+ t.width <= l.width + f ? t.diff = (l.width - t.width) / 2 - t.padding / 2 : t.diff = -t.padding / 2, s.trace("Data ", t, JSON.stringify(t)), r.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - w / 2).attr("y", t.y - t.height / 2 - h).attr("width", w).attr("height", t.height + f), i ? a.attr(
260
+ "transform",
261
+ // This puts the labal on top of the box instead of inside it
262
+ "translate(" + (t.x - l.width / 2) + ", " + (t.y - t.height / 2) + ")"
263
+ ) : a.attr(
264
+ "transform",
265
+ // This puts the labal on top of the box instead of inside it
266
+ "translate(" + t.x + ", " + (t.y - t.height / 2) + ")"
267
+ );
268
+ const v = r.node().getBBox();
269
+ return t.width = v.width, t.height = v.height, t.intersect = function(c) {
270
+ return B(t, c);
271
+ }, e;
272
+ }, ct = (n, t) => {
273
+ const e = n.insert("g").attr("class", "note-cluster").attr("id", t.id), r = e.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
274
+ r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
275
+ const u = r.node().getBBox();
276
+ return t.width = u.width, t.height = u.height, t.intersect = function(l) {
277
+ return B(t, l);
278
+ }, e;
279
+ }, ot = (n, t) => {
280
+ const e = n.insert("g").attr("class", t.classes).attr("id", t.id), r = e.insert("rect", ":first-child"), i = e.insert("g").attr("class", "cluster-label"), a = e.append("rect"), u = i.node().appendChild(T(t.labelText, t.labelStyle, void 0, !0));
281
+ let l = u.getBBox();
282
+ if (S(X().flowchart.htmlLabels)) {
283
+ const c = u.children[0], o = J(u);
284
+ l = c.getBoundingClientRect(), o.attr("width", l.width), o.attr("height", l.height);
285
+ }
286
+ l = u.getBBox();
287
+ const f = 0 * t.padding, h = f / 2, w = t.width <= l.width + t.padding ? l.width + t.padding : t.width;
288
+ t.width <= l.width + t.padding ? t.diff = (l.width + t.padding * 0 - t.width) / 2 : t.diff = -t.padding / 2, r.attr("class", "outer").attr("x", t.x - w / 2 - h).attr("y", t.y - t.height / 2 - h).attr("width", w + f).attr("height", t.height + f), a.attr("class", "inner").attr("x", t.x - w / 2 - h).attr("y", t.y - t.height / 2 - h + l.height - 1).attr("width", w + f).attr("height", t.height + f - l.height - 3), i.attr(
289
+ "transform",
290
+ "translate(" + (t.x - l.width / 2) + ", " + (t.y - t.height / 2 - t.padding / 3 + (S(X().flowchart.htmlLabels) ? 5 : 3)) + ")"
291
+ );
292
+ const v = r.node().getBBox();
293
+ return t.height = v.height, t.intersect = function(c) {
294
+ return B(t, c);
295
+ }, e;
296
+ }, lt = (n, t) => {
297
+ const e = n.insert("g").attr("class", t.classes).attr("id", t.id), r = e.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
298
+ r.attr("class", "divider").attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2).attr("width", t.width + i).attr("height", t.height + i);
299
+ const u = r.node().getBBox();
300
+ return t.width = u.width, t.height = u.height, t.diff = -t.padding / 2, t.intersect = function(l) {
301
+ return B(t, l);
302
+ }, e;
303
+ }, ft = { rect: at, roundedWithTitle: ot, noteGroup: ct, divider: lt };
304
+ let $ = {};
305
+ const dt = (n, t) => {
306
+ s.trace("Inserting cluster");
307
+ const e = t.shape || "rect";
308
+ $[t.id] = ft[e](n, t);
309
+ }, ut = () => {
310
+ $ = {};
311
+ }, G = (n, t, e, r, i) => E(void 0, null, function* () {
312
+ s.info("Graph in recursive render: XXX", x(t), i);
313
+ const a = t.graph().rankdir;
314
+ s.trace("Dir in recursive render - dir:", a);
315
+ const u = n.insert("g").attr("class", "root");
316
+ t.nodes() ? s.info("Recursive render XXX", t.nodes()) : s.info("No nodes found for", t), t.edges().length > 0 && s.trace("Recursive edges", t.edge(t.edges()[0]));
317
+ const l = u.insert("g").attr("class", "clusters"), f = u.insert("g").attr("class", "edgePaths"), h = u.insert("g").attr("class", "edgeLabels"), w = u.insert("g").attr("class", "nodes");
318
+ yield Promise.all(
319
+ t.nodes().map(function(c) {
320
+ return E(this, null, function* () {
321
+ const o = t.node(c);
322
+ if (i !== void 0) {
323
+ const y = JSON.parse(JSON.stringify(i.clusterData));
324
+ s.info("Setting data for cluster XXX (", c, ") ", y, i), t.setNode(i.id, y), t.parent(c) || (s.trace("Setting parent", c, i.id), t.setParent(c, i.id, y));
325
+ }
326
+ if (s.info("(Insert) Node XXX" + c + ": " + JSON.stringify(t.node(c))), o && o.clusterNode) {
327
+ s.info("Cluster identified", c, o.width, t.node(c));
328
+ const y = yield G(w, o.graph, e, r, t.node(c)), D = y.elem;
329
+ H(o, D), o.diff = y.diff || 0, s.info("Node bounds (abc123)", c, o, o.width, o.x, o.y), V(D, o), s.warn("Recursive render complete ", D, o);
330
+ } else
331
+ t.children(c).length > 0 ? (s.info("Cluster - the non recursive path XXX", c, o.id, o, t), s.info(b(o.id, t)), d[o.id] = { id: b(o.id, t), node: o }) : (s.info("Node - the non recursive path", c, o.id, o), yield U(w, t.node(c), a));
332
+ });
333
+ })
334
+ ), t.edges().forEach(function(c) {
335
+ const o = t.edge(c.v, c.w, c.name);
336
+ s.info("Edge " + c.v + " -> " + c.w + ": " + JSON.stringify(c)), s.info("Edge " + c.v + " -> " + c.w + ": ", c, " ", JSON.stringify(t.edge(c))), s.info("Fix", d, "ids:", c.v, c.w, "Translateing: ", d[c.v], d[c.w]), W(h, o);
337
+ }), t.edges().forEach(function(c) {
338
+ s.info("Edge " + c.v + " -> " + c.w + ": " + JSON.stringify(c));
339
+ }), s.info("#############################################"), s.info("### Layout ###"), s.info("#############################################"), s.info(t), M(t), s.info("Graph after layout:", x(t));
340
+ let v = 0;
341
+ return rt(t).forEach(function(c) {
342
+ const o = t.node(c);
343
+ s.info("Position " + c + ": " + JSON.stringify(t.node(c))), s.info(
344
+ "Position " + c + ": (" + o.x,
345
+ "," + o.y,
346
+ ") width: ",
347
+ o.width,
348
+ " height: ",
349
+ o.height
350
+ ), o && o.clusterNode ? O(o) : t.children(c).length > 0 ? (dt(l, o), d[o.id].node = o) : O(o);
351
+ }), t.edges().forEach(function(c) {
352
+ const o = t.edge(c);
353
+ s.info("Edge " + c.v + " -> " + c.w + ": " + JSON.stringify(o), o);
354
+ const y = Y(f, c, o, d, e, t, r);
355
+ q(o, y);
356
+ }), t.nodes().forEach(function(c) {
357
+ const o = t.node(c);
358
+ s.info(c, o.type, o.diff), o.type === "group" && (v = o.diff);
359
+ }), { elem: u, diff: v };
360
+ }), vt = (n, t, e, r, i) => E(void 0, null, function* () {
361
+ _(n, e, r, i), z(), K(), ut(), nt(), s.warn("Graph at first:", JSON.stringify(x(t))), st(t), s.warn("Graph after:", JSON.stringify(x(t))), yield G(n, t, r, i);
362
+ });
363
+ export {
364
+ vt as r
365
+ };