lowcoder-comps 0.0.21 → 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.
Files changed (58) hide show
  1. package/029c585a.js +825 -0
  2. package/0f49842f.js +915 -0
  3. package/14c95def.js +2396 -0
  4. package/{8219433d.js → 14de54b2.js} +7120 -6939
  5. package/17b0984b.js +1116 -0
  6. package/{31b1cdd2.js → 1a4b39ab.js} +29 -30
  7. package/1e35aee7.js +932 -0
  8. package/{54511d22.js → 1f97d569.js} +73 -76
  9. package/3120eee5.js +1235 -0
  10. package/313e94fb.js +796 -0
  11. package/{b38c288b.js → 41a4677f.js} +10 -12
  12. package/{2768fdea.js → 48a69d01.js} +89 -97
  13. package/4a8006fe.js +2501 -0
  14. package/{a6e7fb9e.js → 585231df.js} +64 -71
  15. package/5e96f5d8.js +64 -0
  16. package/5f9be850.js +1055 -0
  17. package/{f576ac90.js → 6e0c66a6.js} +97 -109
  18. package/76d315c1.js +2192 -0
  19. package/{7c62ef63.js → 867cdd47.js} +1 -1
  20. package/{3bd738e9.js → 8a65542f.js} +58 -64
  21. package/913e1a65.js +804 -0
  22. package/92e85b65.js +65 -0
  23. package/97298a99.js +2966 -0
  24. package/{450c6bd6.js → a396e61e.js} +44 -44
  25. package/a6d42292.js +1284 -0
  26. package/afd2e4d5.js +86 -0
  27. package/be5f3226.js +768 -0
  28. package/{9f3281b9.js → bf75928a.js} +30053 -30574
  29. package/{ba44e76c.js → bfd01456.js} +4257 -4221
  30. package/c239ec69.js +1000 -0
  31. package/e731f493.js +502 -0
  32. package/ef3524ce.js +960 -0
  33. package/f5b4a4bc.js +365 -0
  34. package/{fb09e069.js → fa29410e.js} +598 -622
  35. package/fbc7bdd4.js +218 -0
  36. package/index.js +2 -2
  37. package/package.json +2 -2
  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
@@ -1,16 +1,14 @@
1
- import { p as e, f as o } from "./86a4a706.js";
2
- import { f as t, g as a } from "./54511d22.js";
3
- import { u as s } from "./9f3281b9.js";
4
- import "./4d1cf087.js";
5
- import "./8d8e98a7.js";
6
- import "./39f71758.js";
7
- import "./fea654db.js";
8
- import "./75095038.js";
9
- import "./7c62ef63.js";
1
+ import { p as e, f as o } from "./17b0984b.js";
2
+ import { f as t, g as a } from "./1f97d569.js";
3
+ import { t as s } from "./bf75928a.js";
4
+ import "./14c95def.js";
5
+ import "./f5b4a4bc.js";
6
+ import "./c239ec69.js";
7
+ import "./97298a99.js";
8
+ import "./867cdd47.js";
10
9
  import "./2ff2c7a6.js";
11
10
  import "./256b619e.js";
12
- import "./acdad8f2.js";
13
- const A = {
11
+ const k = {
14
12
  parser: e,
15
13
  db: o,
16
14
  renderer: t,
@@ -20,5 +18,5 @@ const A = {
20
18
  }
21
19
  };
22
20
  export {
23
- A as diagram
21
+ k as diagram
24
22
  };
@@ -1,44 +1,44 @@
1
- import { p as R, d as N, s as W } from "./04ea1009.js";
2
- import { c as t, h as H, l as b, i as v, j as L, D as U, x as C } from "./9f3281b9.js";
3
- import { G as A, l as F } from "./4d1cf087.js";
4
- import { l as $ } from "./7c62ef63.js";
1
+ import { p as P, d as N, s as W } from "./ef3524ce.js";
2
+ import { c as t, h as H, l as b, i as R, j as T, F as v, z as U } from "./bf75928a.js";
3
+ import { G as C, l as F } from "./14c95def.js";
4
+ import { l as $ } from "./867cdd47.js";
5
5
  import "./2ff2c7a6.js";
6
6
  import "./256b619e.js";
7
7
  const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), J = (e, i) => {
8
8
  const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
9
9
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
10
10
  }, Y = (e, i) => {
11
- const o = function(d, m, f) {
12
- const S = d.append("tspan").attr("x", 2 * t().state.padding).text(m);
13
- f || S.attr("dy", t().state.textHeight);
11
+ const o = function(l, m, w) {
12
+ const E = l.append("tspan").attr("x", 2 * t().state.padding).text(m);
13
+ w || E.attr("dy", t().state.textHeight);
14
14
  }, s = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), g = s.height, p = e.append("text").attr("x", t().state.padding).attr(
15
15
  "y",
16
16
  g + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
17
17
  ).attr("class", "state-description");
18
18
  let a = !0, r = !0;
19
- i.descriptions.forEach(function(d) {
20
- a || (o(p, d, r), r = !1), a = !1;
19
+ i.descriptions.forEach(function(l) {
20
+ a || (o(p, l, r), r = !1), a = !1;
21
21
  });
22
- const w = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = p.node().getBBox(), l = Math.max(x.width, s.width);
23
- return w.attr("x2", l + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", l + 2 * t().state.padding).attr("height", x.height + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
22
+ const y = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = p.node().getBBox(), d = Math.max(x.width, s.width);
23
+ return y.attr("x2", d + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", d + 2 * t().state.padding).attr("height", x.height + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
24
24
  }, I = (e, i, o) => {
25
25
  const c = t().state.padding, s = 2 * t().state.padding, g = e.node().getBBox(), p = g.width, a = g.x, r = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), x = r.node().getBBox().width + s;
26
- let l = Math.max(x, p);
27
- l === p && (l = l + s);
28
- let d;
26
+ let d = Math.max(x, p);
27
+ d === p && (d = d + s);
28
+ let l;
29
29
  const m = e.node().getBBox();
30
- i.doc, d = a - c, x > p && (d = (p - l) / 2 + c), Math.abs(a - m.x) < c && x > p && (d = a - (x - p) / 2);
31
- const f = 1 - t().state.textHeight;
32
- return e.insert("rect", ":first-child").attr("x", d).attr("y", f).attr("class", o ? "alt-composit" : "composit").attr("width", l).attr(
30
+ i.doc, l = a - c, x > p && (l = (p - d) / 2 + c), Math.abs(a - m.x) < c && x > p && (l = a - (x - p) / 2);
31
+ const w = 1 - t().state.textHeight;
32
+ return e.insert("rect", ":first-child").attr("x", l).attr("y", w).attr("class", o ? "alt-composit" : "composit").attr("width", d).attr(
33
33
  "height",
34
34
  m.height + t().state.textHeight + t().state.titleShift + 1
35
- ).attr("rx", "0"), r.attr("x", d + c), x <= p && r.attr("x", a + (l - s) / 2 - x / 2 + c), e.insert("rect", ":first-child").attr("x", d).attr(
35
+ ).attr("rx", "0"), r.attr("x", l + c), x <= p && r.attr("x", a + (d - s) / 2 - x / 2 + c), e.insert("rect", ":first-child").attr("x", l).attr(
36
36
  "y",
37
37
  t().state.titleShift - t().state.textHeight - t().state.padding
38
- ).attr("width", l).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", d).attr(
38
+ ).attr("width", d).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", l).attr(
39
39
  "y",
40
40
  t().state.titleShift - t().state.textHeight - t().state.padding
41
- ).attr("width", l).attr("height", m.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
41
+ ).attr("width", d).attr("height", m.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
42
42
  }, _ = (e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
43
43
  "cx",
44
44
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
@@ -52,43 +52,43 @@ const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().s
52
52
  o = c, c = s;
53
53
  }
54
54
  return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
55
- }, D = (e, i, o, c) => {
55
+ }, Z = (e, i, o, c) => {
56
56
  let s = 0;
57
57
  const g = c.append("text");
58
58
  g.style("text-anchor", "start"), g.attr("class", "noteText");
59
59
  let p = e.replace(/\r\n/g, "<br/>");
60
60
  p = p.replace(/\n/g, "<br/>");
61
- const a = p.split(L.lineBreakRegex);
61
+ const a = p.split(T.lineBreakRegex);
62
62
  let r = 1.25 * t().state.noteMargin;
63
- for (const w of a) {
64
- const x = w.trim();
63
+ for (const y of a) {
64
+ const x = y.trim();
65
65
  if (x.length > 0) {
66
- const l = g.append("tspan");
67
- if (l.text(x), r === 0) {
68
- const d = l.node().getBBox();
69
- r += d.height;
66
+ const d = g.append("tspan");
67
+ if (d.text(x), r === 0) {
68
+ const l = d.node().getBBox();
69
+ r += l.height;
70
70
  }
71
- s += r, l.attr("x", i + t().state.noteMargin), l.attr("y", o + s + 1.25 * t().state.noteMargin);
71
+ s += r, d.attr("x", i + t().state.noteMargin), d.attr("y", o + s + 1.25 * t().state.noteMargin);
72
72
  }
73
73
  }
74
74
  return { textWidth: g.node().getBBox().width, textHeight: s };
75
- }, Z = (e, i) => {
75
+ }, j = (e, i) => {
76
76
  i.attr("class", "state-note");
77
- const o = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: s, textHeight: g } = D(e, 0, 0, c);
77
+ const o = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: s, textHeight: g } = Z(e, 0, 0, c);
78
78
  return o.attr("height", g + 2 * t().state.noteMargin), o.attr("width", s + t().state.noteMargin * 2), o;
79
- }, T = function(e, i) {
79
+ }, L = function(e, i) {
80
80
  const o = i.id, c = {
81
81
  id: o,
82
82
  label: i.id,
83
83
  width: 0,
84
84
  height: 0
85
85
  }, s = e.append("g").attr("id", o).attr("class", "stateGroup");
86
- i.type === "start" && O(s), i.type === "end" && _(s), (i.type === "fork" || i.type === "join") && q(s, i), i.type === "note" && Z(i.note.text, s), i.type === "divider" && X(s), i.type === "default" && i.descriptions.length === 0 && J(s, i), i.type === "default" && i.descriptions.length > 0 && Y(s, i);
86
+ i.type === "start" && O(s), i.type === "end" && _(s), (i.type === "fork" || i.type === "join") && q(s, i), i.type === "note" && j(i.note.text, s), i.type === "divider" && X(s), i.type === "default" && i.descriptions.length === 0 && J(s, i), i.type === "default" && i.descriptions.length > 0 && Y(s, i);
87
87
  const g = s.node().getBBox();
88
88
  return c.width = g.width + 2 * t().state.padding, c.height = g.height + 2 * t().state.padding, c;
89
89
  };
90
90
  let G = 0;
91
- const j = function(e, i, o) {
91
+ const K = function(e, i, o) {
92
92
  const c = function(r) {
93
93
  switch (r) {
94
94
  case N.relationType.AGGREGATION:
@@ -106,35 +106,35 @@ const j = function(e, i, o) {
106
106
  return r.x;
107
107
  }).y(function(r) {
108
108
  return r.y;
109
- }).curve(U), p = e.append("path").attr("d", g(s)).attr("id", "edge" + G).attr("class", "transition");
109
+ }).curve(v), p = e.append("path").attr("d", g(s)).attr("id", "edge" + G).attr("class", "transition");
110
110
  let a = "";
111
111
  if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), p.attr(
112
112
  "marker-end",
113
113
  "url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
114
114
  ), o.title !== void 0) {
115
- const r = e.append("g").attr("class", "stateLabel"), { x: w, y: x } = C.calcLabelPosition(i.points), l = L.getRows(o.title);
116
- let d = 0;
115
+ const r = e.append("g").attr("class", "stateLabel"), { x: y, y: x } = U.calcLabelPosition(i.points), d = T.getRows(o.title);
116
+ let l = 0;
117
117
  const m = [];
118
- let f = 0, S = 0;
119
- for (let u = 0; u <= l.length; u++) {
120
- const h = r.append("text").attr("text-anchor", "middle").text(l[u]).attr("x", w).attr("y", x + d), y = h.node().getBBox();
121
- f = Math.max(f, y.width), S = Math.min(S, y.x), b.info(y.x, w, x + d), d === 0 && (d = h.node().getBBox().height, b.info("Title height", d, x)), m.push(h);
118
+ let w = 0, E = 0;
119
+ for (let u = 0; u <= d.length; u++) {
120
+ const h = r.append("text").attr("text-anchor", "middle").text(d[u]).attr("x", y).attr("y", x + l), f = h.node().getBBox();
121
+ w = Math.max(w, f.width), E = Math.min(E, f.x), b.info(f.x, y, x + l), l === 0 && (l = h.node().getBBox().height, b.info("Title height", l, x)), m.push(h);
122
122
  }
123
- let k = d * l.length;
124
- if (l.length > 1) {
125
- const u = (l.length - 1) * d * 0.5;
126
- m.forEach((h, y) => h.attr("y", x + y * d - u)), k = d * l.length;
123
+ let k = l * d.length;
124
+ if (d.length > 1) {
125
+ const u = (d.length - 1) * l * 0.5;
126
+ m.forEach((h, f) => h.attr("y", x + f * l - u)), k = l * d.length;
127
127
  }
128
128
  const n = r.node().getBBox();
129
- r.insert("rect", ":first-child").attr("class", "box").attr("x", w - f / 2 - t().state.padding / 2).attr("y", x - k / 2 - t().state.padding / 2 - 3.5).attr("width", f + t().state.padding).attr("height", k + t().state.padding), b.info(n);
129
+ r.insert("rect", ":first-child").attr("class", "box").attr("x", y - w / 2 - t().state.padding / 2).attr("y", x - k / 2 - t().state.padding / 2 - 3.5).attr("width", w + t().state.padding).attr("height", k + t().state.padding), b.info(n);
130
130
  }
131
131
  G++;
132
132
  };
133
133
  let B;
134
- const z = {}, K = function() {
135
- }, Q = function(e) {
134
+ const z = {}, Q = function() {
135
+ }, V = function(e) {
136
136
  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 19,7 L9,13 L14,7 L9,1 Z");
137
- }, V = function(e, i, o, c) {
137
+ }, D = function(e, i, o, c) {
138
138
  B = t().state;
139
139
  const s = t().securityLevel;
140
140
  let g;
@@ -142,31 +142,23 @@ const z = {}, K = function() {
142
142
  const p = s === "sandbox" ? H(g.nodes()[0].contentDocument.body) : H("body"), a = s === "sandbox" ? g.nodes()[0].contentDocument : document;
143
143
  b.debug("Rendering diagram " + e);
144
144
  const r = p.select(`[id='${i}']`);
145
- Q(r), new A({
146
- multigraph: !0,
147
- compound: !0,
148
- // acyclicer: 'greedy',
149
- rankdir: "RL"
150
- // ranksep: '20'
151
- }).setDefaultEdgeLabel(function() {
152
- return {};
153
- });
154
- const x = c.db.getRootDoc();
155
- P(x, r, void 0, !1, p, a, c);
156
- const l = B.padding, d = r.node().getBBox(), m = d.width + l * 2, f = d.height + l * 2, S = m * 1.75;
157
- v(r, f, S, B.useMaxWidth), r.attr(
145
+ V(r);
146
+ const y = c.db.getRootDoc();
147
+ A(y, r, void 0, !1, p, a, c);
148
+ const x = B.padding, d = r.node().getBBox(), l = d.width + x * 2, m = d.height + x * 2, w = l * 1.75;
149
+ R(r, m, w, B.useMaxWidth), r.attr(
158
150
  "viewBox",
159
- `${d.x - B.padding} ${d.y - B.padding} ` + m + " " + f
151
+ `${d.x - B.padding} ${d.y - B.padding} ` + l + " " + m
160
152
  );
161
- }, tt = (e) => e ? e.length * B.fontSizeFactor : 1, P = (e, i, o, c, s, g, p) => {
162
- const a = new A({
153
+ }, tt = (e) => e ? e.length * B.fontSizeFactor : 1, A = (e, i, o, c, s, g, p) => {
154
+ const a = new C({
163
155
  compound: !0,
164
156
  multigraph: !0
165
157
  });
166
- let r, w = !0;
158
+ let r, y = !0;
167
159
  for (r = 0; r < e.length; r++)
168
160
  if (e[r].stmt === "relation") {
169
- w = !1;
161
+ y = !1;
170
162
  break;
171
163
  }
172
164
  o ? a.setGraph({
@@ -175,8 +167,8 @@ const z = {}, K = function() {
175
167
  compound: !0,
176
168
  // acyclicer: 'greedy',
177
169
  ranker: "tight-tree",
178
- ranksep: w ? 1 : B.edgeLengthFactor,
179
- nodeSep: w ? 1 : 50,
170
+ ranksep: y ? 1 : B.edgeLengthFactor,
171
+ nodeSep: y ? 1 : 50,
180
172
  isMultiGraph: !0
181
173
  // ranksep: 5,
182
174
  // nodesep: 1
@@ -187,82 +179,82 @@ const z = {}, K = function() {
187
179
  // isCompound: true,
188
180
  // acyclicer: 'greedy',
189
181
  // ranker: 'longest-path'
190
- ranksep: w ? 1 : B.edgeLengthFactor,
191
- nodeSep: w ? 1 : 50,
182
+ ranksep: y ? 1 : B.edgeLengthFactor,
183
+ nodeSep: y ? 1 : 50,
192
184
  ranker: "tight-tree",
193
185
  // ranker: 'network-simplex'
194
186
  isMultiGraph: !0
195
187
  }), a.setDefaultEdgeLabel(function() {
196
188
  return {};
197
189
  }), p.db.extract(e);
198
- const x = p.db.getStates(), l = p.db.getRelations(), d = Object.keys(x);
199
- for (const n of d) {
190
+ const x = p.db.getStates(), d = p.db.getRelations(), l = Object.keys(x);
191
+ for (const n of l) {
200
192
  const u = x[n];
201
193
  o && (u.parentId = o);
202
194
  let h;
203
195
  if (u.doc) {
204
- let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
205
- h = P(u.doc, y, u.id, !c, s, g, p);
196
+ let f = i.append("g").attr("id", u.id).attr("class", "stateGroup");
197
+ h = A(u.doc, f, u.id, !c, s, g, p);
206
198
  {
207
- y = I(y, u, c);
208
- let E = y.node().getBBox();
209
- h.width = E.width, h.height = E.height + B.padding / 2, z[u.id] = { y: B.compositTitleSize };
199
+ f = I(f, u, c);
200
+ let S = f.node().getBBox();
201
+ h.width = S.width, h.height = S.height + B.padding / 2, z[u.id] = { y: B.compositTitleSize };
210
202
  }
211
203
  } else
212
- h = T(i, u);
204
+ h = L(i, u);
213
205
  if (u.note) {
214
- const y = {
206
+ const f = {
215
207
  descriptions: [],
216
208
  id: u.id + "-note",
217
209
  note: u.note,
218
210
  type: "note"
219
- }, E = T(i, y);
220
- u.note.position === "left of" ? (a.setNode(h.id + "-note", E), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", E)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
211
+ }, S = L(i, f);
212
+ u.note.position === "left of" ? (a.setNode(h.id + "-note", S), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", S)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
221
213
  } else
222
214
  a.setNode(h.id, h);
223
215
  }
224
216
  b.debug("Count=", a.nodeCount(), a);
225
217
  let m = 0;
226
- l.forEach(function(n) {
218
+ d.forEach(function(n) {
227
219
  m++, b.debug("Setting edge", n), a.setEdge(
228
220
  n.id1,
229
221
  n.id2,
230
222
  {
231
223
  relation: n,
232
224
  width: tt(n.title),
233
- height: B.labelHeight * L.getRows(n.title).length,
225
+ height: B.labelHeight * T.getRows(n.title).length,
234
226
  labelpos: "c"
235
227
  },
236
228
  "id" + m
237
229
  );
238
230
  }), F(a), b.debug("Graph after layout", a.nodes());
239
- const f = i.node();
231
+ const w = i.node();
240
232
  a.nodes().forEach(function(n) {
241
- n !== void 0 && a.node(n) !== void 0 ? (b.warn("Node " + n + ": " + JSON.stringify(a.node(n))), s.select("#" + f.id + " #" + n).attr(
233
+ n !== void 0 && a.node(n) !== void 0 ? (b.warn("Node " + n + ": " + JSON.stringify(a.node(n))), s.select("#" + w.id + " #" + n).attr(
242
234
  "transform",
243
235
  "translate(" + (a.node(n).x - a.node(n).width / 2) + "," + (a.node(n).y + (z[n] ? z[n].y : 0) - a.node(n).height / 2) + " )"
244
- ), s.select("#" + f.id + " #" + n).attr("data-x-shift", a.node(n).x - a.node(n).width / 2), g.querySelectorAll("#" + f.id + " #" + n + " .divider").forEach((h) => {
245
- const y = h.parentElement;
246
- let E = 0, M = 0;
247
- y && (y.parentElement && (E = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", E - M - 8);
236
+ ), s.select("#" + w.id + " #" + n).attr("data-x-shift", a.node(n).x - a.node(n).width / 2), g.querySelectorAll("#" + w.id + " #" + n + " .divider").forEach((h) => {
237
+ const f = h.parentElement;
238
+ let S = 0, M = 0;
239
+ f && (f.parentElement && (S = f.parentElement.getBBox().width), M = parseInt(f.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", S - M - 8);
248
240
  })) : b.debug("No Node " + n + ": " + JSON.stringify(a.node(n)));
249
241
  });
250
- let S = f.getBBox();
242
+ let E = w.getBBox();
251
243
  a.edges().forEach(function(n) {
252
- n !== void 0 && a.edge(n) !== void 0 && (b.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(a.edge(n))), j(i, a.edge(n), a.edge(n).relation));
253
- }), S = f.getBBox();
244
+ n !== void 0 && a.edge(n) !== void 0 && (b.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(a.edge(n))), K(i, a.edge(n), a.edge(n).relation));
245
+ }), E = w.getBBox();
254
246
  const k = {
255
247
  id: o || "root",
256
248
  label: o || "root",
257
249
  width: 0,
258
250
  height: 0
259
251
  };
260
- return k.width = S.width + 2 * B.padding, k.height = S.height + 2 * B.padding, b.debug("Doc rendered", k, a), k;
252
+ return k.width = E.width + 2 * B.padding, k.height = E.height + 2 * B.padding, b.debug("Doc rendered", k, a), k;
261
253
  }, et = {
262
- setConf: K,
263
- draw: V
254
+ setConf: Q,
255
+ draw: D
264
256
  }, dt = {
265
- parser: R,
257
+ parser: P,
266
258
  db: N,
267
259
  renderer: et,
268
260
  styles: W,