@digipair/skill-web-chatbot 0.8.37 → 0.8.40
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/Tableau10-558cc280.cjs.js +9 -0
- package/Tableau10-558cc280.esm.js +7 -0
- package/arc-d1f6357e.cjs.js +88 -0
- package/arc-d1f6357e.esm.js +86 -0
- package/blockDiagram-5dc23a45.cjs.js +2921 -0
- package/blockDiagram-5dc23a45.esm.js +2919 -0
- package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
- package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
- package/channel-ebbc4130.cjs.js +9 -0
- package/channel-ebbc4130.esm.js +7 -0
- package/classDiagram-f52caa06.cjs.js +209 -0
- package/classDiagram-f52caa06.esm.js +207 -0
- package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
- package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
- package/clone-afc2f047.cjs.js +10 -0
- package/clone-afc2f047.esm.js +8 -0
- package/createText-03b82060.cjs.js +2936 -0
- package/createText-03b82060.esm.js +2933 -0
- package/edges-16357fde.cjs.js +1998 -0
- package/edges-16357fde.esm.js +1981 -0
- package/erDiagram-c7ff1bec.cjs.js +1807 -0
- package/erDiagram-c7ff1bec.esm.js +1805 -0
- package/flowDb-9a89ea33.cjs.js +5542 -0
- package/flowDb-9a89ea33.esm.js +5538 -0
- package/flowDiagram-aadb13b0.cjs.js +1351 -0
- package/flowDiagram-aadb13b0.esm.js +1349 -0
- package/flowDiagram-v2-f2119625.cjs.js +31 -0
- package/flowDiagram-v2-f2119625.esm.js +29 -0
- package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
- package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
- package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
- package/ganttDiagram-3c2fde2b.esm.js +3708 -0
- package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
- package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
- package/graph-0ee63739.cjs.js +961 -0
- package/graph-0ee63739.esm.js +938 -0
- package/index-bb6d8841.cjs.js +648 -0
- package/index-bb6d8841.esm.js +646 -0
- package/index.cjs2.js +5410 -4623
- package/index.esm.js +1 -1
- package/index.esm2.js +5291 -4527
- package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
- package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
- package/journeyDiagram-14fe341a.cjs.js +1061 -0
- package/journeyDiagram-14fe341a.esm.js +1059 -0
- package/katex-d90b6d29.cjs.js +25690 -0
- package/katex-d90b6d29.esm.js +25688 -0
- package/layout-fd473db2.cjs.js +1626 -0
- package/layout-fd473db2.esm.js +1619 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
- package/line-24d93f1b.cjs.js +34 -0
- package/line-24d93f1b.esm.js +32 -0
- package/linear-9bcf74c4.cjs.js +537 -0
- package/linear-9bcf74c4.esm.js +531 -0
- package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
- package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
- package/package.json +1 -1
- package/path-428ebac9.cjs.js +317 -0
- package/path-428ebac9.esm.js +314 -0
- package/pieDiagram-828dae43.cjs.js +951 -0
- package/pieDiagram-828dae43.esm.js +949 -0
- package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
- package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
- package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
- package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
- package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
- package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
- package/sequenceDiagram-b517d154.cjs.js +5949 -0
- package/sequenceDiagram-b517d154.esm.js +5947 -0
- package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
- package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
- package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
- package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
- package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
- package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
- package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
- package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
- package/styles-e75131e4.cjs.js +671 -0
- package/styles-e75131e4.esm.js +661 -0
- package/svgDrawCommon-ecc5f780.cjs.js +68 -0
- package/svgDrawCommon-ecc5f780.esm.js +60 -0
- package/timeline-definition-4ee9bff4.cjs.js +1161 -0
- package/timeline-definition-4ee9bff4.esm.js +1159 -0
- package/xychartDiagram-e5e6b652.cjs.js +3150 -0
- package/xychartDiagram-e5e6b652.esm.js +3148 -0
- package/arc-da8fd8d8.cjs.js +0 -88
- package/arc-da8fd8d8.esm.js +0 -86
- package/classDiagram-185c1a10.cjs.js +0 -96
- package/classDiagram-185c1a10.esm.js +0 -94
- package/constant-2fe7eae5.cjs.js +0 -58
- package/constant-2fe7eae5.esm.js +0 -55
- package/createText-94e3ebbf.cjs.js +0 -2775
- package/createText-94e3ebbf.esm.js +0 -2773
- package/edges-558884ee.cjs.js +0 -1450
- package/edges-558884ee.esm.js +0 -1436
- package/erDiagram-97139f44.cjs.js +0 -1949
- package/erDiagram-97139f44.esm.js +0 -1947
- package/flowDb-a4faf166.cjs.js +0 -6918
- package/flowDb-a4faf166.esm.js +0 -6914
- package/flowDiagram-ccbbb58d.cjs.js +0 -999
- package/flowDiagram-ccbbb58d.esm.js +0 -997
- package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
- package/flowDiagram-v2-79ccd6da.esm.js +0 -27
- package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
- package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
- package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
- package/ganttDiagram-3eff0dd8.esm.js +0 -3853
- package/index-d0b453e2.cjs.js +0 -609
- package/index-d0b453e2.esm.js +0 -607
- package/journeyDiagram-b6904cec.cjs.js +0 -1292
- package/journeyDiagram-b6904cec.esm.js +0 -1290
- package/layout-c5a37d74.cjs.js +0 -2808
- package/layout-c5a37d74.esm.js +0 -2795
- package/line-ce5d1152.cjs.js +0 -34
- package/line-ce5d1152.esm.js +0 -32
- package/linear-db016d0c.cjs.js +0 -485
- package/linear-db016d0c.esm.js +0 -479
- package/pieDiagram-fd367f1f.cjs.js +0 -1157
- package/pieDiagram-fd367f1f.esm.js +0 -1155
- package/sequenceDiagram-169f11ec.cjs.js +0 -4805
- package/sequenceDiagram-169f11ec.esm.js +0 -4803
- package/styles-3814544c.cjs.js +0 -534
- package/styles-3814544c.esm.js +0 -524
- package/svgDraw-af99a425.cjs.js +0 -144
- package/svgDraw-af99a425.esm.js +0 -141
- package/svgDrawCommon-ebe6c236.cjs.js +0 -70
- package/svgDrawCommon-ebe6c236.esm.js +0 -62
- package/timeline-definition-65183566.cjs.js +0 -1394
- package/timeline-definition-65183566.esm.js +0 -1392
|
@@ -1,999 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var flowDbA4faf166 = require('./flowDb-a4faf166.cjs.js');
|
|
4
|
-
var layoutC5a37d74 = require('./layout-c5a37d74.cjs.js');
|
|
5
|
-
var index = require('./index.cjs2.js');
|
|
6
|
-
var styles3814544c = require('./styles-3814544c.cjs.js');
|
|
7
|
-
var lineCe5d1152 = require('./line-ce5d1152.cjs.js');
|
|
8
|
-
require('./index-d0b453e2.cjs.js');
|
|
9
|
-
require('./edges-558884ee.cjs.js');
|
|
10
|
-
require('./createText-94e3ebbf.cjs.js');
|
|
11
|
-
require('./svgDraw-af99a425.cjs.js');
|
|
12
|
-
require('./array-2ff2c7a6.cjs.js');
|
|
13
|
-
require('./constant-2fe7eae5.cjs.js');
|
|
14
|
-
|
|
15
|
-
function Dt(r) {
|
|
16
|
-
if (!r.ok) throw new Error(r.status + " " + r.statusText);
|
|
17
|
-
return r.text();
|
|
18
|
-
}
|
|
19
|
-
function Rt(r, e) {
|
|
20
|
-
return fetch(r, e).then(Dt);
|
|
21
|
-
}
|
|
22
|
-
function Gt(r) {
|
|
23
|
-
return function(e, t) {
|
|
24
|
-
return Rt(e, t).then(function(n) {
|
|
25
|
-
return new DOMParser().parseFromString(n, r);
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
var Pt = Gt("image/svg+xml"), Y = {
|
|
30
|
-
normal: Wt,
|
|
31
|
-
vee: $t,
|
|
32
|
-
undirected: Vt
|
|
33
|
-
};
|
|
34
|
-
function Ut(r) {
|
|
35
|
-
Y = r;
|
|
36
|
-
}
|
|
37
|
-
function Wt(r, e, t, n) {
|
|
38
|
-
var a = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), s = a.append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
39
|
-
styles3814544c.re(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
40
|
-
}
|
|
41
|
-
function $t(r, e, t, n) {
|
|
42
|
-
var a = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), s = a.append("path").attr("d", "M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
43
|
-
styles3814544c.re(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
44
|
-
}
|
|
45
|
-
function Vt(r, e, t, n) {
|
|
46
|
-
var a = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), s = a.append("path").attr("d", "M 0 5 L 10 5").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
47
|
-
styles3814544c.re(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
48
|
-
}
|
|
49
|
-
function zt(r, e) {
|
|
50
|
-
var t = r;
|
|
51
|
-
return t.node().appendChild(e.label), styles3814544c.re(t, e.labelStyle), t;
|
|
52
|
-
}
|
|
53
|
-
function Yt(r, e) {
|
|
54
|
-
for(var t = r.append("text"), n = Ht(e.label).split("\n"), a = 0; a < n.length; a++)t.append("tspan").attr("xml:space", "preserve").attr("dy", "1em").attr("x", "1").text(n[a]);
|
|
55
|
-
return styles3814544c.re(t, e.labelStyle), t;
|
|
56
|
-
}
|
|
57
|
-
function Ht(r) {
|
|
58
|
-
for(var e = "", t = !1, n, a = 0; a < r.length; ++a)if (n = r[a], t) {
|
|
59
|
-
switch(n){
|
|
60
|
-
case "n":
|
|
61
|
-
e += "\n";
|
|
62
|
-
break;
|
|
63
|
-
default:
|
|
64
|
-
e += n;
|
|
65
|
-
}
|
|
66
|
-
t = !1;
|
|
67
|
-
} else n === "\\" ? t = !0 : e += n;
|
|
68
|
-
return e;
|
|
69
|
-
}
|
|
70
|
-
function K(r, e, t) {
|
|
71
|
-
var n = e.label, a = r.append("g");
|
|
72
|
-
e.labelType === "svg" ? zt(a, e) : typeof n != "string" || e.labelType === "html" ? styles3814544c.le(a, e) : Yt(a, e);
|
|
73
|
-
var s = a.node().getBBox(), i;
|
|
74
|
-
switch(t){
|
|
75
|
-
case "top":
|
|
76
|
-
i = -e.height / 2;
|
|
77
|
-
break;
|
|
78
|
-
case "bottom":
|
|
79
|
-
i = e.height / 2 - s.height;
|
|
80
|
-
break;
|
|
81
|
-
default:
|
|
82
|
-
i = -s.height / 2;
|
|
83
|
-
}
|
|
84
|
-
return a.attr("transform", "translate(" + -s.width / 2 + "," + i + ")"), a;
|
|
85
|
-
}
|
|
86
|
-
var H = function H(r, e) {
|
|
87
|
-
var t = e.nodes().filter(function(s) {
|
|
88
|
-
return styles3814544c.ue(e, s);
|
|
89
|
-
}), n = r.selectAll("g.cluster").data(t, function(s) {
|
|
90
|
-
return s;
|
|
91
|
-
});
|
|
92
|
-
styles3814544c.ye(n.exit(), e).style("opacity", 0).remove();
|
|
93
|
-
var a = n.enter().append("g").attr("class", "cluster").attr("id", function(s) {
|
|
94
|
-
var i = e.node(s);
|
|
95
|
-
return i.id;
|
|
96
|
-
}).style("opacity", 0).each(function(s) {
|
|
97
|
-
var i = e.node(s), o = index.At(this);
|
|
98
|
-
index.At(this).append("rect");
|
|
99
|
-
var c = o.append("g").attr("class", "label");
|
|
100
|
-
K(c, i, i.clusterLabelPos);
|
|
101
|
-
});
|
|
102
|
-
return n = n.merge(a), n = styles3814544c.ye(n, e).style("opacity", 1), n.selectAll("rect").each(function(s) {
|
|
103
|
-
var i = e.node(s), o = index.At(this);
|
|
104
|
-
styles3814544c.re(o, i.style);
|
|
105
|
-
}), n;
|
|
106
|
-
};
|
|
107
|
-
function Xt(r) {
|
|
108
|
-
H = r;
|
|
109
|
-
}
|
|
110
|
-
var X = function X(r, e) {
|
|
111
|
-
var t = r.selectAll("g.edgeLabel").data(e.edges(), function(a) {
|
|
112
|
-
return styles3814544c.we(a);
|
|
113
|
-
}).classed("update", !0);
|
|
114
|
-
t.exit().remove(), t.enter().append("g").classed("edgeLabel", !0).style("opacity", 0), t = r.selectAll("g.edgeLabel"), t.each(function(a) {
|
|
115
|
-
var s = index.At(this);
|
|
116
|
-
s.select(".label").remove();
|
|
117
|
-
var i = e.edge(a), o = K(s, e.edge(a), 0).classed("label", !0), c = o.node().getBBox();
|
|
118
|
-
i.labelId && o.attr("id", i.labelId), layoutC5a37d74.b(i, "width") || (i.width = c.width), layoutC5a37d74.b(i, "height") || (i.height = c.height);
|
|
119
|
-
});
|
|
120
|
-
var n;
|
|
121
|
-
return t.exit ? n = t.exit() : n = t.selectAll(null), styles3814544c.ye(n, e).style("opacity", 0).remove(), t;
|
|
122
|
-
};
|
|
123
|
-
function Ft(r) {
|
|
124
|
-
X = r;
|
|
125
|
-
}
|
|
126
|
-
function O(r, e) {
|
|
127
|
-
return r.intersect(e);
|
|
128
|
-
}
|
|
129
|
-
var F = function F(r, e, t) {
|
|
130
|
-
var n = r.selectAll("g.edgePath").data(e.edges(), function(i) {
|
|
131
|
-
return styles3814544c.we(i);
|
|
132
|
-
}).classed("update", !0), a = Zt(n, e);
|
|
133
|
-
Ot(n, e);
|
|
134
|
-
var s = n.merge !== void 0 ? n.merge(a) : n;
|
|
135
|
-
return styles3814544c.ye(s, e).style("opacity", 1), s.each(function(i) {
|
|
136
|
-
var o = index.At(this), c = e.edge(i);
|
|
137
|
-
c.elem = this, c.id && o.attr("id", c.id), styles3814544c.he(o, c.class, (o.classed("update") ? "update " : "") + "edgePath");
|
|
138
|
-
}), s.selectAll("path.path").each(function(i) {
|
|
139
|
-
var o = e.edge(i);
|
|
140
|
-
o.arrowheadId = layoutC5a37d74.te("arrowhead");
|
|
141
|
-
var c = index.At(this).attr("marker-end", function() {
|
|
142
|
-
return "url(" + Qt(location.href, o.arrowheadId) + ")";
|
|
143
|
-
}).style("fill", "none");
|
|
144
|
-
styles3814544c.ye(c, e).attr("d", function(d) {
|
|
145
|
-
return Jt(e, d);
|
|
146
|
-
}), styles3814544c.re(c, o.style);
|
|
147
|
-
}), s.selectAll("defs *").remove(), s.selectAll("defs").each(function(i) {
|
|
148
|
-
var o = e.edge(i), c = t[o.arrowhead];
|
|
149
|
-
c(index.At(this), o.arrowheadId, o, "arrowhead");
|
|
150
|
-
}), s;
|
|
151
|
-
};
|
|
152
|
-
function qt(r) {
|
|
153
|
-
F = r;
|
|
154
|
-
}
|
|
155
|
-
function Qt(r, e) {
|
|
156
|
-
var t = r.split("#")[0];
|
|
157
|
-
return t + "#" + e;
|
|
158
|
-
}
|
|
159
|
-
function Jt(r, e) {
|
|
160
|
-
var t = r.edge(e), n = r.node(e.v), a = r.node(e.w), s = t.points.slice(1, t.points.length - 1);
|
|
161
|
-
return s.unshift(O(n, s[0])), s.push(O(a, s[s.length - 1])), ot(t, s);
|
|
162
|
-
}
|
|
163
|
-
function ot(r, e) {
|
|
164
|
-
var t = (lineCe5d1152.S || Pt.line)().x(function(n) {
|
|
165
|
-
return n.x;
|
|
166
|
-
}).y(function(n) {
|
|
167
|
-
return n.y;
|
|
168
|
-
});
|
|
169
|
-
return (t.curve || t.interpolate)(r.curve), t(e);
|
|
170
|
-
}
|
|
171
|
-
function Kt(r) {
|
|
172
|
-
var e = r.getBBox(), t = r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width / 2, e.height / 2);
|
|
173
|
-
return {
|
|
174
|
-
x: t.e,
|
|
175
|
-
y: t.f
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function Zt(r, e) {
|
|
179
|
-
var t = r.enter().append("g").attr("class", "edgePath").style("opacity", 0);
|
|
180
|
-
return t.append("path").attr("class", "path").attr("d", function(n) {
|
|
181
|
-
var a = e.edge(n), s = e.node(n.v).elem, i = layoutC5a37d74.k(a.points.length).map(function() {
|
|
182
|
-
return Kt(s);
|
|
183
|
-
});
|
|
184
|
-
return ot(a, i);
|
|
185
|
-
}), t.append("defs"), t;
|
|
186
|
-
}
|
|
187
|
-
function Ot(r, e) {
|
|
188
|
-
var t = r.exit();
|
|
189
|
-
styles3814544c.ye(t, e).style("opacity", 0).remove();
|
|
190
|
-
}
|
|
191
|
-
var q = function q(r, e, t) {
|
|
192
|
-
var n = e.nodes().filter(function(i) {
|
|
193
|
-
return !styles3814544c.ue(e, i);
|
|
194
|
-
}), a = r.selectAll("g.node").data(n, function(i) {
|
|
195
|
-
return i;
|
|
196
|
-
}).classed("update", !0);
|
|
197
|
-
a.exit().remove(), a.enter().append("g").attr("class", "node").style("opacity", 0), a = r.selectAll("g.node"), a.each(function(i) {
|
|
198
|
-
var o = e.node(i), c = index.At(this);
|
|
199
|
-
styles3814544c.he(c, o.class, (c.classed("update") ? "update " : "") + "node"), c.select("g.label").remove();
|
|
200
|
-
var d = c.append("g").attr("class", "label"), l = K(d, o), v = t[o.shape], h = layoutC5a37d74.gn(l.node().getBBox(), "width", "height");
|
|
201
|
-
o.elem = this, o.id && c.attr("id", o.id), o.labelId && d.attr("id", o.labelId), layoutC5a37d74.b(o, "width") && (h.width = o.width), layoutC5a37d74.b(o, "height") && (h.height = o.height), h.width += o.paddingLeft + o.paddingRight, h.height += o.paddingTop + o.paddingBottom, d.attr("transform", "translate(" + (o.paddingLeft - o.paddingRight) / 2 + "," + (o.paddingTop - o.paddingBottom) / 2 + ")");
|
|
202
|
-
var u = index.At(this);
|
|
203
|
-
u.select(".label-container").remove();
|
|
204
|
-
var p = v(u, h, o).classed("label-container", !0);
|
|
205
|
-
styles3814544c.re(p, o.style);
|
|
206
|
-
var g = p.node().getBBox();
|
|
207
|
-
o.width = g.width, o.height = g.height;
|
|
208
|
-
});
|
|
209
|
-
var s;
|
|
210
|
-
return a.exit ? s = a.exit() : s = a.selectAll(null), styles3814544c.ye(s, e).style("opacity", 0).remove(), a;
|
|
211
|
-
};
|
|
212
|
-
function jt(r) {
|
|
213
|
-
q = r;
|
|
214
|
-
}
|
|
215
|
-
function te(r, e) {
|
|
216
|
-
var t = r.filter(function() {
|
|
217
|
-
return !index.At(this).classed("update");
|
|
218
|
-
});
|
|
219
|
-
function n(a) {
|
|
220
|
-
var s = e.node(a);
|
|
221
|
-
return "translate(" + s.x + "," + s.y + ")";
|
|
222
|
-
}
|
|
223
|
-
t.attr("transform", n), styles3814544c.ye(r, e).style("opacity", 1).attr("transform", n), styles3814544c.ye(t.selectAll("rect"), e).attr("width", function(a) {
|
|
224
|
-
return e.node(a).width;
|
|
225
|
-
}).attr("height", function(a) {
|
|
226
|
-
return e.node(a).height;
|
|
227
|
-
}).attr("x", function(a) {
|
|
228
|
-
var s = e.node(a);
|
|
229
|
-
return -s.width / 2;
|
|
230
|
-
}).attr("y", function(a) {
|
|
231
|
-
var s = e.node(a);
|
|
232
|
-
return -s.height / 2;
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
function ee(r, e) {
|
|
236
|
-
var t = r.filter(function() {
|
|
237
|
-
return !index.At(this).classed("update");
|
|
238
|
-
});
|
|
239
|
-
function n(a) {
|
|
240
|
-
var s = e.edge(a);
|
|
241
|
-
return layoutC5a37d74.b(s, "x") ? "translate(" + s.x + "," + s.y + ")" : "";
|
|
242
|
-
}
|
|
243
|
-
t.attr("transform", n), styles3814544c.ye(r, e).style("opacity", 1).attr("transform", n);
|
|
244
|
-
}
|
|
245
|
-
function re(r, e) {
|
|
246
|
-
var t = r.filter(function() {
|
|
247
|
-
return !index.At(this).classed("update");
|
|
248
|
-
});
|
|
249
|
-
function n(a) {
|
|
250
|
-
var s = e.node(a);
|
|
251
|
-
return "translate(" + s.x + "," + s.y + ")";
|
|
252
|
-
}
|
|
253
|
-
t.attr("transform", n), styles3814544c.ye(r, e).style("opacity", 1).attr("transform", n);
|
|
254
|
-
}
|
|
255
|
-
function lt(r, e, t, n) {
|
|
256
|
-
var a = r.x, s = r.y, i = a - n.x, o = s - n.y, c = Math.sqrt(e * e * o * o + t * t * i * i), d = Math.abs(e * t * i / c);
|
|
257
|
-
n.x < a && (d = -d);
|
|
258
|
-
var l = Math.abs(e * t * o / c);
|
|
259
|
-
return n.y < s && (l = -l), {
|
|
260
|
-
x: a + d,
|
|
261
|
-
y: s + l
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
function ae(r, e, t) {
|
|
265
|
-
return lt(r, e, e, t);
|
|
266
|
-
}
|
|
267
|
-
function ne(r, e, t, n) {
|
|
268
|
-
var a, s, i, o, c, d, l, v, h, u, p, g, f, y, k;
|
|
269
|
-
if (a = e.y - r.y, i = r.x - e.x, c = e.x * r.y - r.x * e.y, h = a * t.x + i * t.y + c, u = a * n.x + i * n.y + c, !(h !== 0 && u !== 0 && j(h, u)) && (s = n.y - t.y, o = t.x - n.x, d = n.x * t.y - t.x * n.y, l = s * r.x + o * r.y + d, v = s * e.x + o * e.y + d, !(l !== 0 && v !== 0 && j(l, v)) && (p = a * o - s * i, p !== 0))) return g = Math.abs(p / 2), f = i * d - o * c, y = f < 0 ? (f - g) / p : (f + g) / p, f = s * c - a * d, k = f < 0 ? (f - g) / p : (f + g) / p, {
|
|
270
|
-
x: y,
|
|
271
|
-
y: k
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
function j(r, e) {
|
|
275
|
-
return r * e > 0;
|
|
276
|
-
}
|
|
277
|
-
function T(r, e, t) {
|
|
278
|
-
var n = r.x, a = r.y, s = [], i = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY;
|
|
279
|
-
e.forEach(function(p) {
|
|
280
|
-
i = Math.min(i, p.x), o = Math.min(o, p.y);
|
|
281
|
-
});
|
|
282
|
-
for(var c = n - r.width / 2 - i, d = a - r.height / 2 - o, l = 0; l < e.length; l++){
|
|
283
|
-
var v = e[l], h = e[l < e.length - 1 ? l + 1 : 0], u = ne(r, t, {
|
|
284
|
-
x: c + v.x,
|
|
285
|
-
y: d + v.y
|
|
286
|
-
}, {
|
|
287
|
-
x: c + h.x,
|
|
288
|
-
y: d + h.y
|
|
289
|
-
});
|
|
290
|
-
u && s.push(u);
|
|
291
|
-
}
|
|
292
|
-
return s.length ? (s.length > 1 && s.sort(function(p, g) {
|
|
293
|
-
var f = p.x - t.x, y = p.y - t.y, k = Math.sqrt(f * f + y * y), I = g.x - t.x, E = g.y - t.y, U = Math.sqrt(I * I + E * E);
|
|
294
|
-
return k < U ? -1 : k === U ? 0 : 1;
|
|
295
|
-
}), s[0]) : (console.log("NO INTERSECTION FOUND, RETURN NODE CENTER", r), r);
|
|
296
|
-
}
|
|
297
|
-
function Z(r, e) {
|
|
298
|
-
var t = r.x, n = r.y, a = e.x - t, s = e.y - n, i = r.width / 2, o = r.height / 2, c, d;
|
|
299
|
-
return Math.abs(s) * i > Math.abs(a) * o ? (s < 0 && (o = -o), c = s === 0 ? 0 : o * a / s, d = o) : (a < 0 && (i = -i), c = i, d = a === 0 ? 0 : i * s / a), {
|
|
300
|
-
x: t + c,
|
|
301
|
-
y: n + d
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
var Q = {
|
|
305
|
-
rect: ie,
|
|
306
|
-
ellipse: oe,
|
|
307
|
-
circle: le,
|
|
308
|
-
diamond: ce
|
|
309
|
-
};
|
|
310
|
-
function se(r) {
|
|
311
|
-
Q = r;
|
|
312
|
-
}
|
|
313
|
-
function ie(r, e, t) {
|
|
314
|
-
var n = r.insert("rect", ":first-child").attr("rx", t.rx).attr("ry", t.ry).attr("x", -e.width / 2).attr("y", -e.height / 2).attr("width", e.width).attr("height", e.height);
|
|
315
|
-
return t.intersect = function(a) {
|
|
316
|
-
return Z(t, a);
|
|
317
|
-
}, n;
|
|
318
|
-
}
|
|
319
|
-
function oe(r, e, t) {
|
|
320
|
-
var n = e.width / 2, a = e.height / 2, s = r.insert("ellipse", ":first-child").attr("x", -e.width / 2).attr("y", -e.height / 2).attr("rx", n).attr("ry", a);
|
|
321
|
-
return t.intersect = function(i) {
|
|
322
|
-
return lt(t, n, a, i);
|
|
323
|
-
}, s;
|
|
324
|
-
}
|
|
325
|
-
function le(r, e, t) {
|
|
326
|
-
var n = Math.max(e.width, e.height) / 2, a = r.insert("circle", ":first-child").attr("x", -e.width / 2).attr("y", -e.height / 2).attr("r", n);
|
|
327
|
-
return t.intersect = function(s) {
|
|
328
|
-
return ae(t, n, s);
|
|
329
|
-
}, a;
|
|
330
|
-
}
|
|
331
|
-
function ce(r, e, t) {
|
|
332
|
-
var n = e.width * Math.SQRT2 / 2, a = e.height * Math.SQRT2 / 2, s = [
|
|
333
|
-
{
|
|
334
|
-
x: 0,
|
|
335
|
-
y: -a
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
x: -n,
|
|
339
|
-
y: 0
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
x: 0,
|
|
343
|
-
y: a
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
x: n,
|
|
347
|
-
y: 0
|
|
348
|
-
}
|
|
349
|
-
], i = r.insert("polygon", ":first-child").attr("points", s.map(function(o) {
|
|
350
|
-
return o.x + "," + o.y;
|
|
351
|
-
}).join(" "));
|
|
352
|
-
return t.intersect = function(o) {
|
|
353
|
-
return T(t, s, o);
|
|
354
|
-
}, i;
|
|
355
|
-
}
|
|
356
|
-
function de() {
|
|
357
|
-
var r = function r(e, t) {
|
|
358
|
-
fe(t);
|
|
359
|
-
var n = R(e, "output"), a = R(n, "clusters"), s = R(n, "edgePaths"), i = X(R(n, "edgeLabels"), t), o = q(R(n, "nodes"), t, Q);
|
|
360
|
-
layoutC5a37d74.zs(t), re(o, t), ee(i, t), F(s, t, Y);
|
|
361
|
-
var c = H(a, t);
|
|
362
|
-
te(c, t), pe(t);
|
|
363
|
-
};
|
|
364
|
-
return r.createNodes = function(e) {
|
|
365
|
-
return arguments.length ? (jt(e), r) : q;
|
|
366
|
-
}, r.createClusters = function(e) {
|
|
367
|
-
return arguments.length ? (Xt(e), r) : H;
|
|
368
|
-
}, r.createEdgeLabels = function(e) {
|
|
369
|
-
return arguments.length ? (Ft(e), r) : X;
|
|
370
|
-
}, r.createEdgePaths = function(e) {
|
|
371
|
-
return arguments.length ? (qt(e), r) : F;
|
|
372
|
-
}, r.shapes = function(e) {
|
|
373
|
-
return arguments.length ? (se(e), r) : Q;
|
|
374
|
-
}, r.arrows = function(e) {
|
|
375
|
-
return arguments.length ? (Ut(e), r) : Y;
|
|
376
|
-
}, r;
|
|
377
|
-
}
|
|
378
|
-
var he = {
|
|
379
|
-
paddingLeft: 10,
|
|
380
|
-
paddingRight: 10,
|
|
381
|
-
paddingTop: 10,
|
|
382
|
-
paddingBottom: 10,
|
|
383
|
-
rx: 0,
|
|
384
|
-
ry: 0,
|
|
385
|
-
shape: "rect"
|
|
386
|
-
}, ue = {
|
|
387
|
-
arrowhead: "normal",
|
|
388
|
-
curve: index.gf
|
|
389
|
-
};
|
|
390
|
-
function fe(r) {
|
|
391
|
-
r.nodes().forEach(function(e) {
|
|
392
|
-
var t = r.node(e);
|
|
393
|
-
!layoutC5a37d74.b(t, "label") && !r.children(e).length && (t.label = e), layoutC5a37d74.b(t, "paddingX") && layoutC5a37d74.bo(t, {
|
|
394
|
-
paddingLeft: t.paddingX,
|
|
395
|
-
paddingRight: t.paddingX
|
|
396
|
-
}), layoutC5a37d74.b(t, "paddingY") && layoutC5a37d74.bo(t, {
|
|
397
|
-
paddingTop: t.paddingY,
|
|
398
|
-
paddingBottom: t.paddingY
|
|
399
|
-
}), layoutC5a37d74.b(t, "padding") && layoutC5a37d74.bo(t, {
|
|
400
|
-
paddingLeft: t.padding,
|
|
401
|
-
paddingRight: t.padding,
|
|
402
|
-
paddingTop: t.padding,
|
|
403
|
-
paddingBottom: t.padding
|
|
404
|
-
}), layoutC5a37d74.bo(t, he), layoutC5a37d74.c([
|
|
405
|
-
"paddingLeft",
|
|
406
|
-
"paddingRight",
|
|
407
|
-
"paddingTop",
|
|
408
|
-
"paddingBottom"
|
|
409
|
-
], function(n) {
|
|
410
|
-
t[n] = Number(t[n]);
|
|
411
|
-
}), layoutC5a37d74.b(t, "width") && (t._prevWidth = t.width), layoutC5a37d74.b(t, "height") && (t._prevHeight = t.height);
|
|
412
|
-
}), r.edges().forEach(function(e) {
|
|
413
|
-
var t = r.edge(e);
|
|
414
|
-
layoutC5a37d74.b(t, "label") || (t.label = ""), layoutC5a37d74.bo(t, ue);
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
function pe(r) {
|
|
418
|
-
layoutC5a37d74.c(r.nodes(), function(e) {
|
|
419
|
-
var t = r.node(e);
|
|
420
|
-
layoutC5a37d74.b(t, "_prevWidth") ? t.width = t._prevWidth : delete t.width, layoutC5a37d74.b(t, "_prevHeight") ? t.height = t._prevHeight : delete t.height, delete t._prevWidth, delete t._prevHeight;
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
function R(r, e) {
|
|
424
|
-
var t = r.select("g." + e);
|
|
425
|
-
return t.empty() && (t = r.append("g").attr("class", e)), t;
|
|
426
|
-
}
|
|
427
|
-
function ct(r, e, t) {
|
|
428
|
-
var n = e.width, a = e.height, s = (n + a) * 0.9, i = [
|
|
429
|
-
{
|
|
430
|
-
x: s / 2,
|
|
431
|
-
y: 0
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
x: s,
|
|
435
|
-
y: -s / 2
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
x: s / 2,
|
|
439
|
-
y: -s
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
x: 0,
|
|
443
|
-
y: -s / 2
|
|
444
|
-
}
|
|
445
|
-
], o = A(r, s, s, i);
|
|
446
|
-
return t.intersect = function(c) {
|
|
447
|
-
return T(t, i, c);
|
|
448
|
-
}, o;
|
|
449
|
-
}
|
|
450
|
-
function dt(r, e, t) {
|
|
451
|
-
var a = e.height, s = a / 4, i = e.width + 2 * s, o = [
|
|
452
|
-
{
|
|
453
|
-
x: s,
|
|
454
|
-
y: 0
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
x: i - s,
|
|
458
|
-
y: 0
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
x: i,
|
|
462
|
-
y: -a / 2
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
x: i - s,
|
|
466
|
-
y: -a
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
x: s,
|
|
470
|
-
y: -a
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
x: 0,
|
|
474
|
-
y: -a / 2
|
|
475
|
-
}
|
|
476
|
-
], c = A(r, i, a, o);
|
|
477
|
-
return t.intersect = function(d) {
|
|
478
|
-
return T(t, o, d);
|
|
479
|
-
}, c;
|
|
480
|
-
}
|
|
481
|
-
function ht(r, e, t) {
|
|
482
|
-
var n = e.width, a = e.height, s = [
|
|
483
|
-
{
|
|
484
|
-
x: -a / 2,
|
|
485
|
-
y: 0
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
x: n,
|
|
489
|
-
y: 0
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
x: n,
|
|
493
|
-
y: -a
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
x: -a / 2,
|
|
497
|
-
y: -a
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
x: 0,
|
|
501
|
-
y: -a / 2
|
|
502
|
-
}
|
|
503
|
-
], i = A(r, n, a, s);
|
|
504
|
-
return t.intersect = function(o) {
|
|
505
|
-
return T(t, s, o);
|
|
506
|
-
}, i;
|
|
507
|
-
}
|
|
508
|
-
function ut(r, e, t) {
|
|
509
|
-
var n = e.width, a = e.height, s = [
|
|
510
|
-
{
|
|
511
|
-
x: -2 * a / 6,
|
|
512
|
-
y: 0
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
x: n - a / 6,
|
|
516
|
-
y: 0
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
x: n + 2 * a / 6,
|
|
520
|
-
y: -a
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
x: a / 6,
|
|
524
|
-
y: -a
|
|
525
|
-
}
|
|
526
|
-
], i = A(r, n, a, s);
|
|
527
|
-
return t.intersect = function(o) {
|
|
528
|
-
return T(t, s, o);
|
|
529
|
-
}, i;
|
|
530
|
-
}
|
|
531
|
-
function ft(r, e, t) {
|
|
532
|
-
var n = e.width, a = e.height, s = [
|
|
533
|
-
{
|
|
534
|
-
x: 2 * a / 6,
|
|
535
|
-
y: 0
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
x: n + a / 6,
|
|
539
|
-
y: 0
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
x: n - 2 * a / 6,
|
|
543
|
-
y: -a
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
x: -a / 6,
|
|
547
|
-
y: -a
|
|
548
|
-
}
|
|
549
|
-
], i = A(r, n, a, s);
|
|
550
|
-
return t.intersect = function(o) {
|
|
551
|
-
return T(t, s, o);
|
|
552
|
-
}, i;
|
|
553
|
-
}
|
|
554
|
-
function pt(r, e, t) {
|
|
555
|
-
var n = e.width, a = e.height, s = [
|
|
556
|
-
{
|
|
557
|
-
x: -2 * a / 6,
|
|
558
|
-
y: 0
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
x: n + 2 * a / 6,
|
|
562
|
-
y: 0
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
x: n - a / 6,
|
|
566
|
-
y: -a
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
x: a / 6,
|
|
570
|
-
y: -a
|
|
571
|
-
}
|
|
572
|
-
], i = A(r, n, a, s);
|
|
573
|
-
return t.intersect = function(o) {
|
|
574
|
-
return T(t, s, o);
|
|
575
|
-
}, i;
|
|
576
|
-
}
|
|
577
|
-
function vt(r, e, t) {
|
|
578
|
-
var n = e.width, a = e.height, s = [
|
|
579
|
-
{
|
|
580
|
-
x: a / 6,
|
|
581
|
-
y: 0
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
x: n - a / 6,
|
|
585
|
-
y: 0
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
x: n + 2 * a / 6,
|
|
589
|
-
y: -a
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
x: -2 * a / 6,
|
|
593
|
-
y: -a
|
|
594
|
-
}
|
|
595
|
-
], i = A(r, n, a, s);
|
|
596
|
-
return t.intersect = function(o) {
|
|
597
|
-
return T(t, s, o);
|
|
598
|
-
}, i;
|
|
599
|
-
}
|
|
600
|
-
function yt(r, e, t) {
|
|
601
|
-
var n = e.width, a = e.height, s = [
|
|
602
|
-
{
|
|
603
|
-
x: 0,
|
|
604
|
-
y: 0
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
x: n + a / 2,
|
|
608
|
-
y: 0
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
x: n,
|
|
612
|
-
y: -a / 2
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
x: n + a / 2,
|
|
616
|
-
y: -a
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
x: 0,
|
|
620
|
-
y: -a
|
|
621
|
-
}
|
|
622
|
-
], i = A(r, n, a, s);
|
|
623
|
-
return t.intersect = function(o) {
|
|
624
|
-
return T(t, s, o);
|
|
625
|
-
}, i;
|
|
626
|
-
}
|
|
627
|
-
function gt(r, e, t) {
|
|
628
|
-
var n = e.height, a = e.width + n / 4, s = r.insert("rect", ":first-child").attr("rx", n / 2).attr("ry", n / 2).attr("x", -a / 2).attr("y", -n / 2).attr("width", a).attr("height", n);
|
|
629
|
-
return t.intersect = function(i) {
|
|
630
|
-
return Z(t, i);
|
|
631
|
-
}, s;
|
|
632
|
-
}
|
|
633
|
-
function wt(r, e, t) {
|
|
634
|
-
var n = e.width, a = e.height, s = [
|
|
635
|
-
{
|
|
636
|
-
x: 0,
|
|
637
|
-
y: 0
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
x: n,
|
|
641
|
-
y: 0
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
x: n,
|
|
645
|
-
y: -a
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
x: 0,
|
|
649
|
-
y: -a
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
x: 0,
|
|
653
|
-
y: 0
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
x: -8,
|
|
657
|
-
y: 0
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
x: n + 8,
|
|
661
|
-
y: 0
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
x: n + 8,
|
|
665
|
-
y: -a
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
x: -8,
|
|
669
|
-
y: -a
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
x: -8,
|
|
673
|
-
y: 0
|
|
674
|
-
}
|
|
675
|
-
], i = A(r, n, a, s);
|
|
676
|
-
return t.intersect = function(o) {
|
|
677
|
-
return T(t, s, o);
|
|
678
|
-
}, i;
|
|
679
|
-
}
|
|
680
|
-
function mt(r, e, t) {
|
|
681
|
-
var n = e.width, a = n / 2, s = a / (2.5 + n / 50), i = e.height + s, o = "M 0," + s + " a " + a + "," + s + " 0,0,0 " + n + " 0 a " + a + "," + s + " 0,0,0 " + -n + " 0 l 0," + i + " a " + a + "," + s + " 0,0,0 " + n + " 0 l 0," + -i, c = r.attr("label-offset-y", s).insert("path", ":first-child").attr("d", o).attr("transform", "translate(" + -n / 2 + "," + -(i / 2 + s) + ")");
|
|
682
|
-
return t.intersect = function(d) {
|
|
683
|
-
var l = Z(t, d), v = l.x - t.x;
|
|
684
|
-
if (a != 0 && (Math.abs(v) < t.width / 2 || Math.abs(v) == t.width / 2 && Math.abs(l.y - t.y) > t.height / 2 - s)) {
|
|
685
|
-
var h = s * s * (1 - v * v / (a * a));
|
|
686
|
-
h != 0 && (h = Math.sqrt(h)), h = s - h, d.y - t.y > 0 && (h = -h), l.y += h;
|
|
687
|
-
}
|
|
688
|
-
return l;
|
|
689
|
-
}, c;
|
|
690
|
-
}
|
|
691
|
-
function ve(r) {
|
|
692
|
-
r.shapes().question = ct, r.shapes().hexagon = dt, r.shapes().stadium = gt, r.shapes().subroutine = wt, r.shapes().cylinder = mt, r.shapes().rect_left_inv_arrow = ht, r.shapes().lean_right = ut, r.shapes().lean_left = ft, r.shapes().trapezoid = pt, r.shapes().inv_trapezoid = vt, r.shapes().rect_right_inv_arrow = yt;
|
|
693
|
-
}
|
|
694
|
-
function ye(r) {
|
|
695
|
-
r({
|
|
696
|
-
question: ct
|
|
697
|
-
}), r({
|
|
698
|
-
hexagon: dt
|
|
699
|
-
}), r({
|
|
700
|
-
stadium: gt
|
|
701
|
-
}), r({
|
|
702
|
-
subroutine: wt
|
|
703
|
-
}), r({
|
|
704
|
-
cylinder: mt
|
|
705
|
-
}), r({
|
|
706
|
-
rect_left_inv_arrow: ht
|
|
707
|
-
}), r({
|
|
708
|
-
lean_right: ut
|
|
709
|
-
}), r({
|
|
710
|
-
lean_left: ft
|
|
711
|
-
}), r({
|
|
712
|
-
trapezoid: pt
|
|
713
|
-
}), r({
|
|
714
|
-
inv_trapezoid: vt
|
|
715
|
-
}), r({
|
|
716
|
-
rect_right_inv_arrow: yt
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
function A(r, e, t, n) {
|
|
720
|
-
return r.insert("polygon", ":first-child").attr("points", n.map(function(a) {
|
|
721
|
-
return a.x + "," + a.y;
|
|
722
|
-
}).join(" ")).attr("transform", "translate(" + -e / 2 + "," + t / 2 + ")");
|
|
723
|
-
}
|
|
724
|
-
var ge = {
|
|
725
|
-
addToRender: ve,
|
|
726
|
-
addToRenderV2: ye
|
|
727
|
-
}, xt = {}, we = function we(r) {
|
|
728
|
-
var e = Object.keys(r);
|
|
729
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
730
|
-
try {
|
|
731
|
-
for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
732
|
-
var t = _step.value;
|
|
733
|
-
xt[t] = r[t];
|
|
734
|
-
}
|
|
735
|
-
} catch (err) {
|
|
736
|
-
_didIteratorError = true;
|
|
737
|
-
_iteratorError = err;
|
|
738
|
-
} finally{
|
|
739
|
-
try {
|
|
740
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
741
|
-
_iterator.return();
|
|
742
|
-
}
|
|
743
|
-
} finally{
|
|
744
|
-
if (_didIteratorError) {
|
|
745
|
-
throw _iteratorError;
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
}, bt = function bt(r, e, t, n, a, s) {
|
|
750
|
-
var i = n ? n.select('[id="'.concat(t, '"]')) : index.At('[id="'.concat(t, '"]')), o = a || document;
|
|
751
|
-
Object.keys(r).forEach(function(d) {
|
|
752
|
-
var l = r[d];
|
|
753
|
-
var v = "default";
|
|
754
|
-
l.classes.length > 0 && (v = l.classes.join(" "));
|
|
755
|
-
var h = index.v0(l.styles);
|
|
756
|
-
var u = l.text !== void 0 ? l.text : l.id, p;
|
|
757
|
-
if (index.ia(index.Ut().flowchart.htmlLabels)) {
|
|
758
|
-
var y = {
|
|
759
|
-
label: u.replace(/fa[blrs]?:fa-[\w-]+/g, function(k) {
|
|
760
|
-
return "<i class='".concat(k.replace(":", " "), "'></i>");
|
|
761
|
-
})
|
|
762
|
-
};
|
|
763
|
-
p = styles3814544c.le(i, y).node(), p.parentNode.removeChild(p);
|
|
764
|
-
} else {
|
|
765
|
-
var y1 = o.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
766
|
-
y1.setAttribute("style", h.labelStyle.replace("color:", "fill:"));
|
|
767
|
-
var k = u.split(index.Bn.lineBreakRegex);
|
|
768
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
769
|
-
try {
|
|
770
|
-
for(var _iterator = k[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
771
|
-
var I = _step.value;
|
|
772
|
-
var E = o.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
773
|
-
E.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), E.setAttribute("dy", "1em"), E.setAttribute("x", "1"), E.textContent = I, y1.appendChild(E);
|
|
774
|
-
}
|
|
775
|
-
} catch (err) {
|
|
776
|
-
_didIteratorError = true;
|
|
777
|
-
_iteratorError = err;
|
|
778
|
-
} finally{
|
|
779
|
-
try {
|
|
780
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
781
|
-
_iterator.return();
|
|
782
|
-
}
|
|
783
|
-
} finally{
|
|
784
|
-
if (_didIteratorError) {
|
|
785
|
-
throw _iteratorError;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
p = y1;
|
|
790
|
-
}
|
|
791
|
-
var g = 0, f = "";
|
|
792
|
-
switch(l.type){
|
|
793
|
-
case "round":
|
|
794
|
-
g = 5, f = "rect";
|
|
795
|
-
break;
|
|
796
|
-
case "square":
|
|
797
|
-
f = "rect";
|
|
798
|
-
break;
|
|
799
|
-
case "diamond":
|
|
800
|
-
f = "question";
|
|
801
|
-
break;
|
|
802
|
-
case "hexagon":
|
|
803
|
-
f = "hexagon";
|
|
804
|
-
break;
|
|
805
|
-
case "odd":
|
|
806
|
-
f = "rect_left_inv_arrow";
|
|
807
|
-
break;
|
|
808
|
-
case "lean_right":
|
|
809
|
-
f = "lean_right";
|
|
810
|
-
break;
|
|
811
|
-
case "lean_left":
|
|
812
|
-
f = "lean_left";
|
|
813
|
-
break;
|
|
814
|
-
case "trapezoid":
|
|
815
|
-
f = "trapezoid";
|
|
816
|
-
break;
|
|
817
|
-
case "inv_trapezoid":
|
|
818
|
-
f = "inv_trapezoid";
|
|
819
|
-
break;
|
|
820
|
-
case "odd_right":
|
|
821
|
-
f = "rect_left_inv_arrow";
|
|
822
|
-
break;
|
|
823
|
-
case "circle":
|
|
824
|
-
f = "circle";
|
|
825
|
-
break;
|
|
826
|
-
case "ellipse":
|
|
827
|
-
f = "ellipse";
|
|
828
|
-
break;
|
|
829
|
-
case "stadium":
|
|
830
|
-
f = "stadium";
|
|
831
|
-
break;
|
|
832
|
-
case "subroutine":
|
|
833
|
-
f = "subroutine";
|
|
834
|
-
break;
|
|
835
|
-
case "cylinder":
|
|
836
|
-
f = "cylinder";
|
|
837
|
-
break;
|
|
838
|
-
case "group":
|
|
839
|
-
f = "rect";
|
|
840
|
-
break;
|
|
841
|
-
default:
|
|
842
|
-
f = "rect";
|
|
843
|
-
}
|
|
844
|
-
index.S.warn("Adding node", l.id, l.domId), e.setNode(s.db.lookUpDomId(l.id), {
|
|
845
|
-
labelType: "svg",
|
|
846
|
-
labelStyle: h.labelStyle,
|
|
847
|
-
shape: f,
|
|
848
|
-
label: p,
|
|
849
|
-
rx: g,
|
|
850
|
-
ry: g,
|
|
851
|
-
class: v,
|
|
852
|
-
style: h.style,
|
|
853
|
-
id: s.db.lookUpDomId(l.id)
|
|
854
|
-
});
|
|
855
|
-
});
|
|
856
|
-
}, kt = function kt(r, e, t) {
|
|
857
|
-
var n = 0, a, s;
|
|
858
|
-
if (r.defaultStyle !== void 0) {
|
|
859
|
-
var i = index.v0(r.defaultStyle);
|
|
860
|
-
a = i.style, s = i.labelStyle;
|
|
861
|
-
}
|
|
862
|
-
r.forEach(function(i) {
|
|
863
|
-
n++;
|
|
864
|
-
var o = "L-" + i.start + "-" + i.end, c = "LS-" + i.start, d = "LE-" + i.end, l = {};
|
|
865
|
-
i.type === "arrow_open" ? l.arrowhead = "none" : l.arrowhead = "normal";
|
|
866
|
-
var v = "", h = "";
|
|
867
|
-
if (i.style !== void 0) {
|
|
868
|
-
var u = index.v0(i.style);
|
|
869
|
-
v = u.style, h = u.labelStyle;
|
|
870
|
-
} else switch(i.stroke){
|
|
871
|
-
case "normal":
|
|
872
|
-
v = "fill:none", a !== void 0 && (v = a), s !== void 0 && (h = s);
|
|
873
|
-
break;
|
|
874
|
-
case "dotted":
|
|
875
|
-
v = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
876
|
-
break;
|
|
877
|
-
case "thick":
|
|
878
|
-
v = " stroke-width: 3.5px;fill:none";
|
|
879
|
-
break;
|
|
880
|
-
}
|
|
881
|
-
l.style = v, l.labelStyle = h, i.interpolate !== void 0 ? l.curve = index.y0(i.interpolate, index.gf) : r.defaultInterpolate !== void 0 ? l.curve = index.y0(r.defaultInterpolate, index.gf) : l.curve = index.y0(xt.curve, index.gf), i.text === void 0 ? i.style !== void 0 && (l.arrowheadStyle = "fill: #333") : (l.arrowheadStyle = "fill: #333", l.labelpos = "c", index.ia(index.Ut().flowchart.htmlLabels) ? (l.labelType = "html", l.label = '<span id="L-'.concat(o, '" class="edgeLabel L-').concat(c, "' L-").concat(d, '" style="').concat(l.labelStyle, '">').concat(i.text.replace(/fa[blrs]?:fa-[\w-]+/g, function(u) {
|
|
882
|
-
return "<i class='".concat(u.replace(":", " "), "'></i>");
|
|
883
|
-
}), "</span>")) : (l.labelType = "text", l.label = i.text.replace(index.Bn.lineBreakRegex, "\n"), i.style === void 0 && (l.style = l.style || "stroke: #333; stroke-width: 1.5px;fill:none"), l.labelStyle = l.labelStyle.replace("color:", "fill:"))), l.id = o, l.class = c + " " + d, l.minlen = i.length || 1, e.setEdge(t.db.lookUpDomId(i.start), t.db.lookUpDomId(i.end), l, n);
|
|
884
|
-
});
|
|
885
|
-
}, me = function me(r, e) {
|
|
886
|
-
index.S.info("Extracting classes"), e.db.clear();
|
|
887
|
-
try {
|
|
888
|
-
return e.parse(r), e.db.getClasses();
|
|
889
|
-
} catch (t) {
|
|
890
|
-
return index.S.error(t), {};
|
|
891
|
-
}
|
|
892
|
-
}, xe = function xe(r, e, t, n) {
|
|
893
|
-
index.S.info("Drawing flowchart"), n.db.clear();
|
|
894
|
-
var _J = index.Ut(), a = _J.securityLevel, s = _J.flowchart;
|
|
895
|
-
var i;
|
|
896
|
-
a === "sandbox" && (i = index.At("#i" + e));
|
|
897
|
-
var o = a === "sandbox" ? index.At(i.nodes()[0].contentDocument.body) : index.At("body"), c = a === "sandbox" ? i.nodes()[0].contentDocument : document;
|
|
898
|
-
var d = n.db.getDirection();
|
|
899
|
-
d === void 0 && (d = "TD");
|
|
900
|
-
var l = s.nodeSpacing || 50, v = s.rankSpacing || 50, h = new layoutC5a37d74.A({
|
|
901
|
-
multigraph: !0,
|
|
902
|
-
compound: !0
|
|
903
|
-
}).setGraph({
|
|
904
|
-
rankdir: d,
|
|
905
|
-
nodesep: l,
|
|
906
|
-
ranksep: v,
|
|
907
|
-
marginx: 8,
|
|
908
|
-
marginy: 8
|
|
909
|
-
}).setDefaultEdgeLabel(function() {
|
|
910
|
-
return {};
|
|
911
|
-
});
|
|
912
|
-
var u;
|
|
913
|
-
var p = n.db.getSubGraphs();
|
|
914
|
-
for(var w = p.length - 1; w >= 0; w--)u = p[w], n.db.addVertex(u.id, u.title, "group", void 0, u.classes);
|
|
915
|
-
var g = n.db.getVertices();
|
|
916
|
-
index.S.warn("Get vertices", g);
|
|
917
|
-
var f = n.db.getEdges();
|
|
918
|
-
var y = 0;
|
|
919
|
-
for(y = p.length - 1; y >= 0; y--){
|
|
920
|
-
u = p[y], styles3814544c.j("cluster").append("text");
|
|
921
|
-
for(var w1 = 0; w1 < u.nodes.length; w1++)index.S.warn("Setting subgraph", u.nodes[w1], n.db.lookUpDomId(u.nodes[w1]), n.db.lookUpDomId(u.id)), h.setParent(n.db.lookUpDomId(u.nodes[w1]), n.db.lookUpDomId(u.id));
|
|
922
|
-
}
|
|
923
|
-
bt(g, h, e, o, c, n), kt(f, h, n);
|
|
924
|
-
var k = new de();
|
|
925
|
-
ge.addToRender(k), k.arrows().none = function(b, L, m, B) {
|
|
926
|
-
var C = b.append("marker").attr("id", L).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 0 0 L 0 0 L 0 0 z");
|
|
927
|
-
styles3814544c.re(C, m[B + "Style"]);
|
|
928
|
-
}, k.arrows().normal = function(b, L) {
|
|
929
|
-
b.append("marker").attr("id", L).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowheadPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
930
|
-
};
|
|
931
|
-
var I = o.select('[id="'.concat(e, '"]')), E = o.select("#" + e + " g");
|
|
932
|
-
for(k(E, h), E.selectAll("g.node").attr("title", function() {
|
|
933
|
-
return n.db.getTooltip(this.id);
|
|
934
|
-
}), n.db.indexNodes("subGraph" + y), y = 0; y < p.length; y++)if (u = p[y], u.title !== "undefined") {
|
|
935
|
-
var w2 = c.querySelectorAll("#" + e + ' [id="' + n.db.lookUpDomId(u.id) + '"] rect'), b = c.querySelectorAll("#" + e + ' [id="' + n.db.lookUpDomId(u.id) + '"]'), L = w2[0].x.baseVal.value, m = w2[0].y.baseVal.value, B = w2[0].width.baseVal.value, C = index.At(b[0]).select(".label");
|
|
936
|
-
C.attr("transform", "translate(".concat(L + B / 2, ", ").concat(m + 14, ")")), C.attr("id", e + "Text");
|
|
937
|
-
for(var W = 0; W < u.classes.length; W++)b[0].classList.add(u.classes[W]);
|
|
938
|
-
}
|
|
939
|
-
if (!s.htmlLabels) {
|
|
940
|
-
var w3 = c.querySelectorAll('[id="' + e + '"] .edgeLabel .label');
|
|
941
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
942
|
-
try {
|
|
943
|
-
for(var _iterator = w3[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
944
|
-
var b1 = _step.value;
|
|
945
|
-
var L1 = b1.getBBox(), m1 = c.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
946
|
-
m1.setAttribute("rx", 0), m1.setAttribute("ry", 0), m1.setAttribute("width", L1.width), m1.setAttribute("height", L1.height), b1.insertBefore(m1, b1.firstChild);
|
|
947
|
-
}
|
|
948
|
-
} catch (err) {
|
|
949
|
-
_didIteratorError = true;
|
|
950
|
-
_iteratorError = err;
|
|
951
|
-
} finally{
|
|
952
|
-
try {
|
|
953
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
954
|
-
_iterator.return();
|
|
955
|
-
}
|
|
956
|
-
} finally{
|
|
957
|
-
if (_didIteratorError) {
|
|
958
|
-
throw _iteratorError;
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
index.Gg(h, I, s.diagramPadding, s.useMaxWidth), Object.keys(g).forEach(function(w) {
|
|
964
|
-
var b = g[w];
|
|
965
|
-
if (b.link) {
|
|
966
|
-
var L = o.select("#" + e + ' [id="' + n.db.lookUpDomId(w) + '"]');
|
|
967
|
-
if (L) {
|
|
968
|
-
var m = c.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
969
|
-
m.setAttributeNS("http://www.w3.org/2000/svg", "class", b.classes.join(" ")), m.setAttributeNS("http://www.w3.org/2000/svg", "href", b.link), m.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), a === "sandbox" ? m.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : b.linkTarget && m.setAttributeNS("http://www.w3.org/2000/svg", "target", b.linkTarget);
|
|
970
|
-
var B = L.insert(function() {
|
|
971
|
-
return m;
|
|
972
|
-
}, ":first-child"), G = L.select(".label-container");
|
|
973
|
-
G && B.append(function() {
|
|
974
|
-
return G.node();
|
|
975
|
-
});
|
|
976
|
-
var C = L.select(".label");
|
|
977
|
-
C && B.append(function() {
|
|
978
|
-
return C.node();
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
});
|
|
983
|
-
}, be = {
|
|
984
|
-
setConf: we,
|
|
985
|
-
addVertices: bt,
|
|
986
|
-
addEdges: kt,
|
|
987
|
-
getClasses: me,
|
|
988
|
-
draw: xe
|
|
989
|
-
}, Me = {
|
|
990
|
-
parser: flowDbA4faf166.et,
|
|
991
|
-
db: flowDbA4faf166.Je,
|
|
992
|
-
renderer: styles3814544c.ge,
|
|
993
|
-
styles: styles3814544c.ke,
|
|
994
|
-
init: function(r) {
|
|
995
|
-
r.flowchart || (r.flowchart = {}), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, be.setConf(r.flowchart), flowDbA4faf166.Je.clear(), flowDbA4faf166.Je.setGen("gen-1");
|
|
996
|
-
}
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
exports.diagram = Me;
|