@kong-ui-public/documentation 0.7.83 → 0.7.85

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 (66) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  7. package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  8. package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  9. package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  10. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  11. package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  12. package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  13. package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  14. package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  15. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  16. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  17. package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  18. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  19. package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  20. package/dist/documentation.es.js +1 -1
  21. package/dist/documentation.umd.js +401 -273
  22. package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  23. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  24. package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  25. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  26. package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  27. package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  28. package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
  29. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  30. package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  31. package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  32. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  33. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  34. package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  35. package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  36. package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  37. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  38. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  39. package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  40. package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  41. package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  42. package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  43. package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  44. package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  45. package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  46. package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  47. package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  48. package/package.json +5 -5
  49. package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
  50. package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
  51. package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
  52. package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
  53. package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
  54. package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
  55. package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
  56. package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
  57. package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
  58. package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
  59. package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
  60. package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
  61. package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
  62. package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
  63. package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
  64. package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
  65. package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
  66. package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
@@ -1,254 +0,0 @@
1
- import { R as u } from "./chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js";
2
- import { _ as g, g as w, at as B, aw as W, af as H, l as m, e as X, an as x, bp as Y, az as C, aA as R } from "./index-D1jNpyAG.js";
3
- var U = /* @__PURE__ */ g((a, t, e, p) => {
4
- t.forEach((o) => {
5
- Q[o](a, e, p);
6
- });
7
- }, "insertMarkers"), O = /* @__PURE__ */ g((a, t, e) => {
8
- m.trace("Making markers for ", e), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
9
- }, "extension"), Z = /* @__PURE__ */ g((a, t, e) => {
10
- a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
11
- }, "composition"), N = /* @__PURE__ */ g((a, t, e) => {
12
- a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
13
- }, "aggregation"), A = /* @__PURE__ */ g((a, t, e) => {
14
- a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
15
- }, "dependency"), z = /* @__PURE__ */ g((a, t, e) => {
16
- a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
17
- }, "lollipop"), I = /* @__PURE__ */ g((a, t, e) => {
18
- a.append("marker").attr("id", e + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
19
- }, "point"), q = /* @__PURE__ */ g((a, t, e) => {
20
- a.append("marker").attr("id", e + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
21
- }, "circle"), G = /* @__PURE__ */ g((a, t, e) => {
22
- a.append("marker").attr("id", e + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
23
- }, "cross"), J = /* @__PURE__ */ g((a, t, e) => {
24
- a.append("defs").append("marker").attr("id", e + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
25
- }, "barb"), Q = {
26
- extension: O,
27
- composition: Z,
28
- aggregation: N,
29
- dependency: A,
30
- lollipop: z,
31
- point: I,
32
- circle: q,
33
- cross: G,
34
- barb: J
35
- }, et = U, V = /* @__PURE__ */ g((a, t, e, p, o) => {
36
- t.arrowTypeStart && $(a, "start", t.arrowTypeStart, e, p, o), t.arrowTypeEnd && $(a, "end", t.arrowTypeEnd, e, p, o);
37
- }, "addEdgeMarkers"), F = {
38
- arrow_cross: "cross",
39
- arrow_point: "point",
40
- arrow_barb: "barb",
41
- arrow_circle: "circle",
42
- aggregation: "aggregation",
43
- extension: "extension",
44
- composition: "composition",
45
- dependency: "dependency",
46
- lollipop: "lollipop"
47
- }, $ = /* @__PURE__ */ g((a, t, e, p, o, l) => {
48
- const n = F[e];
49
- if (!n) {
50
- m.warn(`Unknown arrow type: ${e}`);
51
- return;
52
- }
53
- const r = t === "start" ? "Start" : "End";
54
- a.attr(`marker-${t}`, `url(${p}#${o}_${l}-${n}${r})`);
55
- }, "addEdgeMarker"), M = {}, k = {}, at = /* @__PURE__ */ g(() => {
56
- M = {}, k = {};
57
- }, "clear"), rt = /* @__PURE__ */ g((a, t) => {
58
- const e = w(), p = B(e.flowchart.htmlLabels), o = t.labelType === "markdown" ? W(
59
- a,
60
- t.label,
61
- {
62
- style: t.labelStyle,
63
- useHtmlLabels: p,
64
- addSvgBackground: !0
65
- },
66
- e
67
- ) : u(t.label, t.labelStyle), l = a.insert("g").attr("class", "edgeLabel"), n = l.insert("g").attr("class", "label");
68
- n.node().appendChild(o);
69
- let r = o.getBBox();
70
- if (p) {
71
- const d = o.children[0], i = H(o);
72
- r = d.getBoundingClientRect(), i.attr("width", r.width), i.attr("height", r.height);
73
- }
74
- n.attr("transform", "translate(" + -r.width / 2 + ", " + -r.height / 2 + ")"), M[t.id] = l, t.width = r.width, t.height = r.height;
75
- let s;
76
- if (t.startLabelLeft) {
77
- const d = u(t.startLabelLeft, t.labelStyle), i = a.insert("g").attr("class", "edgeTerminals"), h = i.insert("g").attr("class", "inner");
78
- s = h.node().appendChild(d);
79
- const c = d.getBBox();
80
- h.attr("transform", "translate(" + -c.width / 2 + ", " + -c.height / 2 + ")"), k[t.id] || (k[t.id] = {}), k[t.id].startLeft = i, L(s, t.startLabelLeft);
81
- }
82
- if (t.startLabelRight) {
83
- const d = u(t.startLabelRight, t.labelStyle), i = a.insert("g").attr("class", "edgeTerminals"), h = i.insert("g").attr("class", "inner");
84
- s = i.node().appendChild(d), h.node().appendChild(d);
85
- const c = d.getBBox();
86
- h.attr("transform", "translate(" + -c.width / 2 + ", " + -c.height / 2 + ")"), k[t.id] || (k[t.id] = {}), k[t.id].startRight = i, L(s, t.startLabelRight);
87
- }
88
- if (t.endLabelLeft) {
89
- const d = u(t.endLabelLeft, t.labelStyle), i = a.insert("g").attr("class", "edgeTerminals"), h = i.insert("g").attr("class", "inner");
90
- s = h.node().appendChild(d);
91
- const c = d.getBBox();
92
- h.attr("transform", "translate(" + -c.width / 2 + ", " + -c.height / 2 + ")"), i.node().appendChild(d), k[t.id] || (k[t.id] = {}), k[t.id].endLeft = i, L(s, t.endLabelLeft);
93
- }
94
- if (t.endLabelRight) {
95
- const d = u(t.endLabelRight, t.labelStyle), i = a.insert("g").attr("class", "edgeTerminals"), h = i.insert("g").attr("class", "inner");
96
- s = h.node().appendChild(d);
97
- const c = d.getBBox();
98
- h.attr("transform", "translate(" + -c.width / 2 + ", " + -c.height / 2 + ")"), i.node().appendChild(d), k[t.id] || (k[t.id] = {}), k[t.id].endRight = i, L(s, t.endLabelRight);
99
- }
100
- return o;
101
- }, "insertEdgeLabel");
102
- function L(a, t) {
103
- w().flowchart.htmlLabels && a && (a.style.width = t.length * 9 + "px", a.style.height = "12px");
104
- }
105
- g(L, "setTerminalWidth");
106
- var st = /* @__PURE__ */ g((a, t) => {
107
- m.debug("Moving label abc88 ", a.id, a.label, M[a.id], t);
108
- let e = t.updatedPath ? t.updatedPath : t.originalPath;
109
- const p = w(), { subGraphTitleTotalMargin: o } = X(p);
110
- if (a.label) {
111
- const l = M[a.id];
112
- let n = a.x, r = a.y;
113
- if (e) {
114
- const s = x.calcLabelPosition(e);
115
- m.debug(
116
- "Moving label " + a.label + " from (",
117
- n,
118
- ",",
119
- r,
120
- ") to (",
121
- s.x,
122
- ",",
123
- s.y,
124
- ") abc88"
125
- ), t.updatedPath && (n = s.x, r = s.y);
126
- }
127
- l.attr("transform", `translate(${n}, ${r + o / 2})`);
128
- }
129
- if (a.startLabelLeft) {
130
- const l = k[a.id].startLeft;
131
- let n = a.x, r = a.y;
132
- if (e) {
133
- const s = x.calcTerminalLabelPosition(a.arrowTypeStart ? 10 : 0, "start_left", e);
134
- n = s.x, r = s.y;
135
- }
136
- l.attr("transform", `translate(${n}, ${r})`);
137
- }
138
- if (a.startLabelRight) {
139
- const l = k[a.id].startRight;
140
- let n = a.x, r = a.y;
141
- if (e) {
142
- const s = x.calcTerminalLabelPosition(
143
- a.arrowTypeStart ? 10 : 0,
144
- "start_right",
145
- e
146
- );
147
- n = s.x, r = s.y;
148
- }
149
- l.attr("transform", `translate(${n}, ${r})`);
150
- }
151
- if (a.endLabelLeft) {
152
- const l = k[a.id].endLeft;
153
- let n = a.x, r = a.y;
154
- if (e) {
155
- const s = x.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_left", e);
156
- n = s.x, r = s.y;
157
- }
158
- l.attr("transform", `translate(${n}, ${r})`);
159
- }
160
- if (a.endLabelRight) {
161
- const l = k[a.id].endRight;
162
- let n = a.x, r = a.y;
163
- if (e) {
164
- const s = x.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_right", e);
165
- n = s.x, r = s.y;
166
- }
167
- l.attr("transform", `translate(${n}, ${r})`);
168
- }
169
- }, "positionEdgeLabel"), j = /* @__PURE__ */ g((a, t) => {
170
- const e = a.x, p = a.y, o = Math.abs(t.x - e), l = Math.abs(t.y - p), n = a.width / 2, r = a.height / 2;
171
- return o >= n || l >= r;
172
- }, "outsideNode"), D = /* @__PURE__ */ g((a, t, e) => {
173
- m.debug(`intersection calc abc89:
174
- outsidePoint: ${JSON.stringify(t)}
175
- insidePoint : ${JSON.stringify(e)}
176
- node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);
177
- const p = a.x, o = a.y, l = Math.abs(p - e.x), n = a.width / 2;
178
- let r = e.x < t.x ? n - l : n + l;
179
- const s = a.height / 2, d = Math.abs(t.y - e.y), i = Math.abs(t.x - e.x);
180
- if (Math.abs(o - t.y) * n > Math.abs(p - t.x) * s) {
181
- let h = e.y < t.y ? t.y - s - o : o - s - t.y;
182
- r = i * h / d;
183
- const c = {
184
- x: e.x < t.x ? e.x + r : e.x - i + r,
185
- y: e.y < t.y ? e.y + d - h : e.y - d + h
186
- };
187
- return r === 0 && (c.x = t.x, c.y = t.y), i === 0 && (c.x = t.x), d === 0 && (c.y = t.y), m.debug(`abc89 topp/bott calc, Q ${d}, q ${h}, R ${i}, r ${r}`, c), c;
188
- } else {
189
- e.x < t.x ? r = t.x - n - p : r = p - n - t.x;
190
- let h = d * r / i, c = e.x < t.x ? e.x + i - r : e.x - i + r, y = e.y < t.y ? e.y + h : e.y - h;
191
- return m.debug(`sides calc abc89, Q ${d}, q ${h}, R ${i}, r ${r}`, { _x: c, _y: y }), r === 0 && (c = t.x, y = t.y), i === 0 && (c = t.x), d === 0 && (y = t.y), { x: c, y };
192
- }
193
- }, "intersection"), S = /* @__PURE__ */ g((a, t) => {
194
- m.debug("abc88 cutPathAtIntersect", a, t);
195
- let e = [], p = a[0], o = !1;
196
- return a.forEach((l) => {
197
- if (!j(t, l) && !o) {
198
- const n = D(t, p, l);
199
- let r = !1;
200
- e.forEach((s) => {
201
- r = r || s.x === n.x && s.y === n.y;
202
- }), e.some((s) => s.x === n.x && s.y === n.y) || e.push(n), o = !0;
203
- } else
204
- p = l, o || e.push(l);
205
- }), e;
206
- }, "cutPathAtIntersect"), nt = /* @__PURE__ */ g(function(a, t, e, p, o, l, n) {
207
- let r = e.points;
208
- m.debug("abc88 InsertEdge: edge=", e, "e=", t);
209
- let s = !1;
210
- const d = l.node(t.v);
211
- var i = l.node(t.w);
212
- i != null && i.intersect && d != null && d.intersect && (r = r.slice(1, e.points.length - 1), r.unshift(d.intersect(r[0])), r.push(i.intersect(r[r.length - 1]))), e.toCluster && (m.debug("to cluster abc88", p[e.toCluster]), r = S(e.points, p[e.toCluster].node), s = !0), e.fromCluster && (m.debug("from cluster abc88", p[e.fromCluster]), r = S(r.reverse(), p[e.fromCluster].node).reverse(), s = !0);
213
- const h = r.filter((P) => !Number.isNaN(P.y));
214
- let c = R;
215
- e.curve && (o === "graph" || o === "flowchart") && (c = e.curve);
216
- const { x: y, y: E } = Y(e), v = C().x(y).y(E).curve(c);
217
- let f;
218
- switch (e.thickness) {
219
- case "normal":
220
- f = "edge-thickness-normal";
221
- break;
222
- case "thick":
223
- f = "edge-thickness-thick";
224
- break;
225
- case "invisible":
226
- f = "edge-thickness-thick";
227
- break;
228
- default:
229
- f = "";
230
- }
231
- switch (e.pattern) {
232
- case "solid":
233
- f += " edge-pattern-solid";
234
- break;
235
- case "dotted":
236
- f += " edge-pattern-dotted";
237
- break;
238
- case "dashed":
239
- f += " edge-pattern-dashed";
240
- break;
241
- }
242
- const T = a.append("path").attr("d", v(h)).attr("id", e.id).attr("class", " " + f + (e.classes ? " " + e.classes : "")).attr("style", e.style);
243
- let b = "";
244
- (w().flowchart.arrowMarkerAbsolute || w().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), V(T, e, b, n, o);
245
- let _ = {};
246
- return s && (_.updatedPath = r), _.originalPath = e.points, _;
247
- }, "insertEdge");
248
- export {
249
- et as a,
250
- rt as e,
251
- nt as n,
252
- at as r,
253
- st as s
254
- };