@kong-ui-public/documentation 1.1.2 → 1.1.4

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 (50) hide show
  1. package/dist/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
  2. package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
  3. package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
  4. package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
  5. package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
  6. package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
  8. package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
  9. package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
  10. package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
  11. package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
  12. package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
  13. package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
  14. package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
  15. package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
  16. package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
  17. package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
  18. package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
  19. package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
  20. package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
  21. package/dist/documentation.es.js +1 -1
  22. package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
  23. package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
  24. package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
  25. package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
  26. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
  27. package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
  28. package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
  29. package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
  30. package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
  31. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
  32. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
  33. package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
  34. package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
  35. package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
  36. package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
  37. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
  38. package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
  39. package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
  40. package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
  41. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
  42. package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
  43. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
  44. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
  45. package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
  46. package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
  47. package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
  48. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
  49. package/package.json +2 -2
  50. package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
@@ -1,22 +1,22 @@
1
- import { A as G, R as N, I } from "./chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js";
2
- import { _ as f, g as t, af as M, l as S, ag as O, ab as H, ay as P, az as U, aq as C } from "./index-ZM4BlVwk.js";
3
- import { L as _ } from "./graph-BYZMvqpu-BpeF1PUA.js";
4
- import { o as $ } from "./layout-BHI4imdk-DgoNZaqw.js";
5
- var T = {}, W = /* @__PURE__ */ f((e, n) => {
1
+ import { I as G, R as N, A as I } from "./chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js";
2
+ import { _ as u, g as t, a9 as M, l as S, aa as O, ag as H, ay as P, az as U, ao as C } from "./index-BXOX6oou.js";
3
+ import { L as _ } from "./graph-BYZMvqpu-CWGqkYZM.js";
4
+ import { o as $ } from "./layout-BHI4imdk-BlkmyDbe.js";
5
+ var T = {}, W = /* @__PURE__ */ u((e, n) => {
6
6
  T[e] = n;
7
- }, "set"), j = /* @__PURE__ */ f((e) => T[e], "get"), D = /* @__PURE__ */ f(() => Object.keys(T), "keys"), F = /* @__PURE__ */ f(() => D().length, "size"), J = {
7
+ }, "set"), j = /* @__PURE__ */ u((e) => T[e], "get"), D = /* @__PURE__ */ u(() => Object.keys(T), "keys"), F = /* @__PURE__ */ u(() => D().length, "size"), J = {
8
8
  get: j,
9
9
  set: W,
10
10
  keys: D,
11
11
  size: F
12
- }, Y = /* @__PURE__ */ f((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), "drawStartState"), q = /* @__PURE__ */ f((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), "drawDivider"), X = /* @__PURE__ */ f((e, n) => {
13
- 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(n.id), s = o.node().getBBox();
14
- return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", s.width + 2 * t().state.padding).attr("height", s.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
15
- }, "drawSimpleState"), Z = /* @__PURE__ */ f((e, n) => {
16
- const o = /* @__PURE__ */ f(function(g, u, B) {
17
- const m = g.append("tspan").attr("x", 2 * t().state.padding).text(u);
12
+ }, Y = /* @__PURE__ */ u((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), "drawStartState"), q = /* @__PURE__ */ u((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), "drawDivider"), X = /* @__PURE__ */ u((e, n) => {
13
+ 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(n.id), r = o.node().getBBox();
14
+ return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", r.width + 2 * t().state.padding).attr("height", r.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
15
+ }, "drawSimpleState"), Z = /* @__PURE__ */ u((e, n) => {
16
+ const o = /* @__PURE__ */ u(function(g, f, B) {
17
+ const m = g.append("tspan").attr("x", 2 * t().state.padding).text(f);
18
18
  B || m.attr("dy", t().state.textHeight);
19
- }, "addTspan"), 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(n.descriptions[0]).node().getBBox(), d = s.height, l = e.append("text").attr("x", t().state.padding).attr(
19
+ }, "addTspan"), r = 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(n.descriptions[0]).node().getBBox(), d = r.height, l = e.append("text").attr("x", t().state.padding).attr(
20
20
  "y",
21
21
  d + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
22
22
  ).attr("class", "state-description");
@@ -24,65 +24,65 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
24
24
  n.descriptions.forEach(function(g) {
25
25
  h || (o(l, g, a), a = !1), h = !1;
26
26
  });
27
- const r = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + d + t().state.dividerMargin / 2).attr("y2", t().state.padding + d + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = l.node().getBBox(), p = Math.max(x.width, s.width);
28
- return r.attr("x2", p + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", p + 2 * t().state.padding).attr("height", x.height + d + 2 * t().state.padding).attr("rx", t().state.radius), e;
29
- }, "drawDescrState"), K = /* @__PURE__ */ f((e, n, o) => {
30
- const s = t().state.padding, d = 2 * t().state.padding, l = e.node().getBBox(), h = l.width, a = l.x, r = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), x = r.node().getBBox().width + d;
27
+ const s = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + d + t().state.dividerMargin / 2).attr("y2", t().state.padding + d + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = l.node().getBBox(), p = Math.max(x.width, r.width);
28
+ return s.attr("x2", p + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", p + 2 * t().state.padding).attr("height", x.height + d + 2 * t().state.padding).attr("rx", t().state.radius), e;
29
+ }, "drawDescrState"), K = /* @__PURE__ */ u((e, n, o) => {
30
+ const r = t().state.padding, d = 2 * t().state.padding, l = e.node().getBBox(), h = l.width, a = l.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), x = s.node().getBBox().width + d;
31
31
  let p = Math.max(x, h);
32
32
  p === h && (p = p + d);
33
33
  let g;
34
- const u = e.node().getBBox();
35
- n.doc, g = a - s, x > h && (g = (h - p) / 2 + s), Math.abs(a - u.x) < s && x > h && (g = a - (x - h) / 2);
34
+ const f = e.node().getBBox();
35
+ n.doc, g = a - r, x > h && (g = (h - p) / 2 + r), Math.abs(a - f.x) < r && x > h && (g = a - (x - h) / 2);
36
36
  const B = 1 - t().state.textHeight;
37
37
  return e.insert("rect", ":first-child").attr("x", g).attr("y", B).attr("class", o ? "alt-composit" : "composit").attr("width", p).attr(
38
38
  "height",
39
- u.height + t().state.textHeight + t().state.titleShift + 1
40
- ).attr("rx", "0"), r.attr("x", g + s), x <= h && r.attr("x", a + (p - d) / 2 - x / 2 + s), e.insert("rect", ":first-child").attr("x", g).attr(
39
+ f.height + t().state.textHeight + t().state.titleShift + 1
40
+ ).attr("rx", "0"), s.attr("x", g + r), x <= h && s.attr("x", a + (p - d) / 2 - x / 2 + r), e.insert("rect", ":first-child").attr("x", g).attr(
41
41
  "y",
42
42
  t().state.titleShift - t().state.textHeight - t().state.padding
43
43
  ).attr("width", p).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", g).attr(
44
44
  "y",
45
45
  t().state.titleShift - t().state.textHeight - t().state.padding
46
- ).attr("width", p).attr("height", u.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
47
- }, "addTitleAndBox"), Q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
46
+ ).attr("width", p).attr("height", f.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
47
+ }, "addTitleAndBox"), Q = /* @__PURE__ */ u((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
48
48
  "cx",
49
49
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
50
50
  ).attr(
51
51
  "cy",
52
52
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
53
- ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), V = /* @__PURE__ */ f((e, n) => {
54
- let o = t().state.forkWidth, s = t().state.forkHeight;
53
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), V = /* @__PURE__ */ u((e, n) => {
54
+ let o = t().state.forkWidth, r = t().state.forkHeight;
55
55
  if (n.parentId) {
56
56
  let d = o;
57
- o = s, s = d;
57
+ o = r, r = d;
58
58
  }
59
- return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", s).attr("x", t().state.padding).attr("y", t().state.padding);
60
- }, "drawForkJoinState"), tt = /* @__PURE__ */ f((e, n, o, s) => {
59
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", r).attr("x", t().state.padding).attr("y", t().state.padding);
60
+ }, "drawForkJoinState"), tt = /* @__PURE__ */ u((e, n, o, r) => {
61
61
  let d = 0;
62
- const l = s.append("text");
62
+ const l = r.append("text");
63
63
  l.style("text-anchor", "start"), l.attr("class", "noteText");
64
64
  let h = e.replace(/\r\n/g, "<br/>");
65
65
  h = h.replace(/\n/g, "<br/>");
66
66
  const a = h.split(H.lineBreakRegex);
67
- let r = 1.25 * t().state.noteMargin;
67
+ let s = 1.25 * t().state.noteMargin;
68
68
  for (const x of a) {
69
69
  const p = x.trim();
70
70
  if (p.length > 0) {
71
71
  const g = l.append("tspan");
72
- if (g.text(p), r === 0) {
73
- const u = g.node().getBBox();
74
- r += u.height;
72
+ if (g.text(p), s === 0) {
73
+ const f = g.node().getBBox();
74
+ s += f.height;
75
75
  }
76
- d += r, g.attr("x", n + t().state.noteMargin), g.attr("y", o + d + 1.25 * t().state.noteMargin);
76
+ d += s, g.attr("x", n + t().state.noteMargin), g.attr("y", o + d + 1.25 * t().state.noteMargin);
77
77
  }
78
78
  }
79
79
  return { textWidth: l.node().getBBox().width, textHeight: d };
80
- }, "_drawLongText"), et = /* @__PURE__ */ f((e, n) => {
80
+ }, "_drawLongText"), et = /* @__PURE__ */ u((e, n) => {
81
81
  n.attr("class", "state-note");
82
- const o = n.append("rect").attr("x", 0).attr("y", t().state.padding), s = n.append("g"), { textWidth: d, textHeight: l } = tt(e, 0, 0, s);
82
+ const o = n.append("rect").attr("x", 0).attr("y", t().state.padding), r = n.append("g"), { textWidth: d, textHeight: l } = tt(e, 0, 0, r);
83
83
  return o.attr("height", l + 2 * t().state.noteMargin), o.attr("width", d + t().state.noteMargin * 2), o;
84
- }, "drawNote"), L = /* @__PURE__ */ f(function(e, n) {
85
- const o = n.id, s = {
84
+ }, "drawNote"), L = /* @__PURE__ */ u(function(e, n) {
85
+ const o = n.id, r = {
86
86
  id: o,
87
87
  label: n.id,
88
88
  width: 0,
@@ -90,10 +90,10 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
90
90
  }, d = e.append("g").attr("id", o).attr("class", "stateGroup");
91
91
  n.type === "start" && Y(d), n.type === "end" && Q(d), (n.type === "fork" || n.type === "join") && V(d, n), n.type === "note" && et(n.note.text, d), n.type === "divider" && q(d), n.type === "default" && n.descriptions.length === 0 && X(d, n), n.type === "default" && n.descriptions.length > 0 && Z(d, n);
92
92
  const l = d.node().getBBox();
93
- return s.width = l.width + 2 * t().state.padding, s.height = l.height + 2 * t().state.padding, J.set(o, s), s;
94
- }, "drawState"), A = 0, at = /* @__PURE__ */ f(function(e, n, o) {
95
- const s = /* @__PURE__ */ f(function(r) {
96
- switch (r) {
93
+ return r.width = l.width + 2 * t().state.padding, r.height = l.height + 2 * t().state.padding, J.set(o, r), r;
94
+ }, "drawState"), A = 0, at = /* @__PURE__ */ u(function(e, n, o) {
95
+ const r = /* @__PURE__ */ u(function(s) {
96
+ switch (s) {
97
97
  case N.relationType.AGGREGATION:
98
98
  return "aggregation";
99
99
  case N.relationType.EXTENSION:
@@ -104,61 +104,61 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
104
104
  return "dependency";
105
105
  }
106
106
  }, "getRelationType");
107
- n.points = n.points.filter((r) => !Number.isNaN(r.y));
108
- const d = n.points, l = P().x(function(r) {
109
- return r.x;
110
- }).y(function(r) {
111
- return r.y;
107
+ n.points = n.points.filter((s) => !Number.isNaN(s.y));
108
+ const d = n.points, l = P().x(function(s) {
109
+ return s.x;
110
+ }).y(function(s) {
111
+ return s.y;
112
112
  }).curve(U), h = e.append("path").attr("d", l(d)).attr("id", "edge" + A).attr("class", "transition");
113
113
  let a = "";
114
114
  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, "\\)")), h.attr(
115
115
  "marker-end",
116
- "url(" + a + "#" + s(N.relationType.DEPENDENCY) + "End)"
116
+ "url(" + a + "#" + r(N.relationType.DEPENDENCY) + "End)"
117
117
  ), o.title !== void 0) {
118
- const r = e.append("g").attr("class", "stateLabel"), { x, y: p } = C.calcLabelPosition(n.points), g = H.getRows(o.title);
119
- let u = 0;
118
+ const s = e.append("g").attr("class", "stateLabel"), { x, y: p } = C.calcLabelPosition(n.points), g = H.getRows(o.title);
119
+ let f = 0;
120
120
  const B = [];
121
121
  let m = 0, v = 0;
122
122
  for (let y = 0; y <= g.length; y++) {
123
- const c = r.append("text").attr("text-anchor", "middle").text(g[y]).attr("x", x).attr("y", p + u), w = c.node().getBBox();
124
- m = Math.max(m, w.width), v = Math.min(v, w.x), S.info(w.x, x, p + u), u === 0 && (u = c.node().getBBox().height, S.info("Title height", u, p)), B.push(c);
123
+ const c = s.append("text").attr("text-anchor", "middle").text(g[y]).attr("x", x).attr("y", p + f), w = c.node().getBBox();
124
+ m = Math.max(m, w.width), v = Math.min(v, w.x), S.info(w.x, x, p + f), f === 0 && (f = c.node().getBBox().height, S.info("Title height", f, p)), B.push(c);
125
125
  }
126
- let E = u * g.length;
126
+ let E = f * g.length;
127
127
  if (g.length > 1) {
128
- const y = (g.length - 1) * u * 0.5;
129
- B.forEach((c, w) => c.attr("y", p + w * u - y)), E = u * g.length;
128
+ const y = (g.length - 1) * f * 0.5;
129
+ B.forEach((c, w) => c.attr("y", p + w * f - y)), E = f * g.length;
130
130
  }
131
- const i = r.node().getBBox();
132
- r.insert("rect", ":first-child").attr("class", "box").attr("x", x - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(i);
131
+ const i = s.node().getBBox();
132
+ s.insert("rect", ":first-child").attr("class", "box").attr("x", x - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(i);
133
133
  }
134
134
  A++;
135
- }, "drawEdge"), b, z = {}, nt = /* @__PURE__ */ f(function() {
136
- }, "setConf"), it = /* @__PURE__ */ f(function(e) {
135
+ }, "drawEdge"), b, z = {}, nt = /* @__PURE__ */ u(function() {
136
+ }, "setConf"), it = /* @__PURE__ */ u(function(e) {
137
137
  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");
138
- }, "insertMarkers"), dt = /* @__PURE__ */ f(function(e, n, o, s) {
138
+ }, "insertMarkers"), dt = /* @__PURE__ */ u(function(e, n, o, r) {
139
139
  b = t().state;
140
140
  const d = t().securityLevel;
141
141
  let l;
142
142
  d === "sandbox" && (l = M("#i" + n));
143
143
  const h = d === "sandbox" ? M(l.nodes()[0].contentDocument.body) : M("body"), a = d === "sandbox" ? l.nodes()[0].contentDocument : document;
144
144
  S.debug("Rendering diagram " + e);
145
- const r = h.select(`[id='${n}']`);
146
- it(r);
147
- const x = s.db.getRootDoc();
148
- R(x, r, void 0, !1, h, a, s);
149
- const p = b.padding, g = r.node().getBBox(), u = g.width + p * 2, B = g.height + p * 2, m = u * 1.75;
150
- O(r, B, m, b.useMaxWidth), r.attr(
145
+ const s = h.select(`[id='${n}']`);
146
+ it(s);
147
+ const x = r.db.getRootDoc();
148
+ R(x, s, void 0, !1, h, a, r);
149
+ const p = b.padding, g = s.node().getBBox(), f = g.width + p * 2, B = g.height + p * 2, m = f * 1.75;
150
+ O(s, B, m, b.useMaxWidth), s.attr(
151
151
  "viewBox",
152
- `${g.x - b.padding} ${g.y - b.padding} ` + u + " " + B
152
+ `${g.x - b.padding} ${g.y - b.padding} ` + f + " " + B
153
153
  );
154
- }, "draw"), st = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ f((e, n, o, s, d, l, h) => {
154
+ }, "draw"), rt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ u((e, n, o, r, d, l, h) => {
155
155
  const a = new _({
156
156
  compound: !0,
157
157
  multigraph: !0
158
158
  });
159
- let r, x = !0;
160
- for (r = 0; r < e.length; r++)
161
- if (e[r].stmt === "relation") {
159
+ let s, x = !0;
160
+ for (s = 0; s < e.length; s++)
161
+ if (e[s].stmt === "relation") {
162
162
  x = !1;
163
163
  break;
164
164
  }
@@ -188,16 +188,16 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
188
188
  }), a.setDefaultEdgeLabel(function() {
189
189
  return {};
190
190
  }), h.db.extract(e);
191
- const p = h.db.getStates(), g = h.db.getRelations(), u = Object.keys(p);
192
- for (const i of u) {
191
+ const p = h.db.getStates(), g = h.db.getRelations(), f = Object.keys(p);
192
+ for (const i of f) {
193
193
  const y = p[i];
194
194
  o && (y.parentId = o);
195
195
  let c;
196
196
  if (y.doc) {
197
197
  let w = n.append("g").attr("id", y.id).attr("class", "stateGroup");
198
- c = R(y.doc, w, y.id, !s, d, l, h);
198
+ c = R(y.doc, w, y.id, !r, d, l, h);
199
199
  {
200
- w = K(w, y, s);
200
+ w = K(w, y, r);
201
201
  let k = w.node().getBBox();
202
202
  c.width = k.width, c.height = k.height + b.padding / 2, z[y.id] = { y: b.compositTitleSize };
203
203
  }
@@ -222,7 +222,7 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
222
222
  i.id2,
223
223
  {
224
224
  relation: i,
225
- width: st(i.title),
225
+ width: rt(i.title),
226
226
  height: b.labelHeight * H.getRows(i.title).length,
227
227
  labelpos: "c"
228
228
  },
@@ -251,15 +251,15 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
251
251
  height: 0
252
252
  };
253
253
  return E.width = v.width + 2 * b.padding, E.height = v.height + 2 * b.padding, S.debug("Doc rendered", E, a), E;
254
- }, "renderDoc"), rt = {
254
+ }, "renderDoc"), st = {
255
255
  setConf: nt,
256
256
  draw: dt
257
257
  }, lt = {
258
- parser: G,
258
+ parser: I,
259
259
  db: N,
260
- renderer: rt,
261
- styles: I,
262
- init: /* @__PURE__ */ f((e) => {
260
+ renderer: st,
261
+ styles: G,
262
+ init: /* @__PURE__ */ u((e) => {
263
263
  e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute, N.clear();
264
264
  }, "init")
265
265
  };
@@ -1,10 +1,10 @@
1
- import { A as a, R as s, L as e, I as t } from "./chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js";
2
- import { _ as o } from "./index-ZM4BlVwk.js";
1
+ import { I as a, L as e, R as s, A as t } from "./chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js";
2
+ import { _ as o } from "./index-BXOX6oou.js";
3
3
  var l = {
4
- parser: a,
4
+ parser: t,
5
5
  db: s,
6
6
  renderer: e,
7
- styles: t,
7
+ styles: a,
8
8
  init: /* @__PURE__ */ o((r) => {
9
9
  r.state || (r.state = {}), r.state.arrowMarkerAbsolute = r.arrowMarkerAbsolute, s.clear();
10
10
  }, "init")