@digipair/skill-web-chatbot 0.114.2 → 0.114.6
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/dist/index.cjs.js +2118 -8
- package/package.json +6 -2
- package/dist/SAP-icons.cjs.js +0 -2489
- package/dist/SAP-icons.cjs2.js +0 -2489
- package/dist/Tableau10-558cc280.cjs.js +0 -9
- package/dist/arc-d1f6357e.cjs.js +0 -88
- package/dist/array-2ff2c7a6.cjs.js +0 -11
- package/dist/blockDiagram-5dc23a45.cjs.js +0 -2916
- package/dist/c4Diagram-1e775db3.cjs.js +0 -4386
- package/dist/channel-ebbc4130.cjs.js +0 -9
- package/dist/classDiagram-f52caa06.cjs.js +0 -209
- package/dist/classDiagram-v2-640c694e.cjs.js +0 -401
- package/dist/clone-afc2f047.cjs.js +0 -10
- package/dist/createText-03b82060.cjs.js +0 -2940
- package/dist/edges-16357fde.cjs.js +0 -2002
- package/dist/erDiagram-c7ff1bec.cjs.js +0 -1807
- package/dist/flowDb-9a89ea33.cjs.js +0 -5542
- package/dist/flowDiagram-aadb13b0.cjs.js +0 -1351
- package/dist/flowDiagram-v2-f2119625.cjs.js +0 -31
- package/dist/flowchart-elk-definition-cf813a97.cjs.js +0 -50248
- package/dist/ganttDiagram-3c2fde2b.cjs.js +0 -3710
- package/dist/gitGraphDiagram-c3a0619c.cjs.js +0 -3815
- package/dist/graph-0ee63739.cjs.js +0 -954
- package/dist/index-bb6d8841.cjs.js +0 -648
- package/dist/index.cjs2.js +0 -76743
- package/dist/infoDiagram-2f5c50c0.cjs.js +0 -460
- package/dist/init-f9637058.cjs.js +0 -17
- package/dist/journeyDiagram-14fe341a.cjs.js +0 -1061
- package/dist/katex-d90b6d29.cjs.js +0 -25690
- package/dist/layout-fd473db2.cjs.js +0 -1613
- package/dist/line-24d93f1b.cjs.js +0 -34
- package/dist/linear-9bcf74c4.cjs.js +0 -537
- package/dist/mindmap-definition-9399c7e6.cjs.js +0 -20488
- package/dist/ordinal-5695958c.cjs.js +0 -330
- package/dist/path-428ebac9.cjs.js +0 -316
- package/dist/pieDiagram-828dae43.cjs.js +0 -949
- package/dist/quadrantDiagram-5fa00455.cjs.js +0 -2409
- package/dist/requirementDiagram-03163dc4.cjs.js +0 -2267
- package/dist/sankeyDiagram-52ec8976.cjs.js +0 -1848
- package/dist/sequenceDiagram-b517d154.cjs.js +0 -5948
- package/dist/stateDiagram-fca82b5b.cjs.js +0 -283
- package/dist/stateDiagram-v2-ed04200a.cjs.js +0 -373
- package/dist/styles-11e81fdd.cjs.js +0 -3943
- package/dist/styles-cacbff60.cjs.js +0 -2120
- package/dist/styles-e75131e4.cjs.js +0 -671
- package/dist/svgDrawCommon-ecc5f780.cjs.js +0 -68
- package/dist/timeline-definition-4ee9bff4.cjs.js +0 -1161
- package/dist/xychartDiagram-e5e6b652.cjs.js +0 -3150
|
@@ -1,1351 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var flowDb9a89ea33 = require('./flowDb-9a89ea33.cjs.js');
|
|
4
|
-
var graph0ee63739 = require('./graph-0ee63739.cjs.js');
|
|
5
|
-
var index = require('./index.cjs2.js');
|
|
6
|
-
var layoutFd473db2 = require('./layout-fd473db2.cjs.js');
|
|
7
|
-
var stylesE75131e4 = require('./styles-e75131e4.cjs.js');
|
|
8
|
-
var line24d93f1b = require('./line-24d93f1b.cjs.js');
|
|
9
|
-
require('./index-bb6d8841.cjs.js');
|
|
10
|
-
require('./clone-afc2f047.cjs.js');
|
|
11
|
-
require('./edges-16357fde.cjs.js');
|
|
12
|
-
require('./createText-03b82060.cjs.js');
|
|
13
|
-
require('./channel-ebbc4130.cjs.js');
|
|
14
|
-
require('./array-2ff2c7a6.cjs.js');
|
|
15
|
-
require('./path-428ebac9.cjs.js');
|
|
16
|
-
|
|
17
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
18
|
-
try {
|
|
19
|
-
var info = gen[key](arg);
|
|
20
|
-
var value = info.value;
|
|
21
|
-
} catch (error) {
|
|
22
|
-
reject(error);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (info.done) {
|
|
26
|
-
resolve(value);
|
|
27
|
-
} else {
|
|
28
|
-
Promise.resolve(value).then(_next, _throw);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function _async_to_generator(fn) {
|
|
32
|
-
return function() {
|
|
33
|
-
var self = this, args = arguments;
|
|
34
|
-
return new Promise(function(resolve, reject) {
|
|
35
|
-
var gen = fn.apply(self, args);
|
|
36
|
-
function _next(value) {
|
|
37
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
38
|
-
}
|
|
39
|
-
function _throw(err) {
|
|
40
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
41
|
-
}
|
|
42
|
-
_next(undefined);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function _ts_generator(thisArg, body) {
|
|
47
|
-
var f, y, t, g, _ = {
|
|
48
|
-
label: 0,
|
|
49
|
-
sent: function() {
|
|
50
|
-
if (t[0] & 1) throw t[1];
|
|
51
|
-
return t[1];
|
|
52
|
-
},
|
|
53
|
-
trys: [],
|
|
54
|
-
ops: []
|
|
55
|
-
};
|
|
56
|
-
return g = {
|
|
57
|
-
next: verb(0),
|
|
58
|
-
"throw": verb(1),
|
|
59
|
-
"return": verb(2)
|
|
60
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
61
|
-
return this;
|
|
62
|
-
}), g;
|
|
63
|
-
function verb(n) {
|
|
64
|
-
return function(v) {
|
|
65
|
-
return step([
|
|
66
|
-
n,
|
|
67
|
-
v
|
|
68
|
-
]);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function step(op) {
|
|
72
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
73
|
-
while(_)try {
|
|
74
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
75
|
-
if (y = 0, t) op = [
|
|
76
|
-
op[0] & 2,
|
|
77
|
-
t.value
|
|
78
|
-
];
|
|
79
|
-
switch(op[0]){
|
|
80
|
-
case 0:
|
|
81
|
-
case 1:
|
|
82
|
-
t = op;
|
|
83
|
-
break;
|
|
84
|
-
case 4:
|
|
85
|
-
_.label++;
|
|
86
|
-
return {
|
|
87
|
-
value: op[1],
|
|
88
|
-
done: false
|
|
89
|
-
};
|
|
90
|
-
case 5:
|
|
91
|
-
_.label++;
|
|
92
|
-
y = op[1];
|
|
93
|
-
op = [
|
|
94
|
-
0
|
|
95
|
-
];
|
|
96
|
-
continue;
|
|
97
|
-
case 7:
|
|
98
|
-
op = _.ops.pop();
|
|
99
|
-
_.trys.pop();
|
|
100
|
-
continue;
|
|
101
|
-
default:
|
|
102
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
103
|
-
_ = 0;
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
107
|
-
_.label = op[1];
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
111
|
-
_.label = t[1];
|
|
112
|
-
t = op;
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
if (t && _.label < t[2]) {
|
|
116
|
-
_.label = t[2];
|
|
117
|
-
_.ops.push(op);
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
if (t[2]) _.ops.pop();
|
|
121
|
-
_.trys.pop();
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
op = body.call(thisArg, _);
|
|
125
|
-
} catch (e) {
|
|
126
|
-
op = [
|
|
127
|
-
6,
|
|
128
|
-
e
|
|
129
|
-
];
|
|
130
|
-
y = 0;
|
|
131
|
-
} finally{
|
|
132
|
-
f = t = 0;
|
|
133
|
-
}
|
|
134
|
-
if (op[0] & 5) throw op[1];
|
|
135
|
-
return {
|
|
136
|
-
value: op[0] ? op[1] : void 0,
|
|
137
|
-
done: true
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function _ts_values(o) {
|
|
142
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
143
|
-
if (m) return m.call(o);
|
|
144
|
-
if (o && typeof o.length === "number") return {
|
|
145
|
-
next: function() {
|
|
146
|
-
if (o && i >= o.length) o = void 0;
|
|
147
|
-
return {
|
|
148
|
-
value: o && o[i++],
|
|
149
|
-
done: !o
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
154
|
-
}
|
|
155
|
-
function Rt(r) {
|
|
156
|
-
if (!r.ok) throw new Error(r.status + " " + r.statusText);
|
|
157
|
-
return r.text();
|
|
158
|
-
}
|
|
159
|
-
function Gt(r, e) {
|
|
160
|
-
return fetch(r, e).then(Rt);
|
|
161
|
-
}
|
|
162
|
-
function Pt(r) {
|
|
163
|
-
return function(e, t) {
|
|
164
|
-
return Gt(e, t).then(function(n) {
|
|
165
|
-
return new DOMParser().parseFromString(n, r);
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
var Ut = Pt("image/svg+xml"), H = {
|
|
170
|
-
normal: $t,
|
|
171
|
-
vee: Vt,
|
|
172
|
-
undirected: zt
|
|
173
|
-
};
|
|
174
|
-
function Wt(r) {
|
|
175
|
-
H = r;
|
|
176
|
-
}
|
|
177
|
-
function $t(r, e, t, n) {
|
|
178
|
-
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");
|
|
179
|
-
stylesE75131e4.ee(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
180
|
-
}
|
|
181
|
-
function Vt(r, e, t, n) {
|
|
182
|
-
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");
|
|
183
|
-
stylesE75131e4.ee(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
184
|
-
}
|
|
185
|
-
function zt(r, e, t, n) {
|
|
186
|
-
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");
|
|
187
|
-
stylesE75131e4.ee(s, t[n + "Style"]), t[n + "Class"] && s.attr("class", t[n + "Class"]);
|
|
188
|
-
}
|
|
189
|
-
function Yt(r, e) {
|
|
190
|
-
var t = r;
|
|
191
|
-
return t.node().appendChild(e.label), stylesE75131e4.ee(t, e.labelStyle), t;
|
|
192
|
-
}
|
|
193
|
-
function Ht(r, e) {
|
|
194
|
-
for(var t = r.append("text"), n = Xt(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]);
|
|
195
|
-
return stylesE75131e4.ee(t, e.labelStyle), t;
|
|
196
|
-
}
|
|
197
|
-
function Xt(r) {
|
|
198
|
-
for(var e = "", t = false, n, a = 0; a < r.length; ++a)if (n = r[a], t) {
|
|
199
|
-
switch(n){
|
|
200
|
-
case "n":
|
|
201
|
-
e += "\n";
|
|
202
|
-
break;
|
|
203
|
-
default:
|
|
204
|
-
e += n;
|
|
205
|
-
}
|
|
206
|
-
t = false;
|
|
207
|
-
} else n === "\\" ? t = true : e += n;
|
|
208
|
-
return e;
|
|
209
|
-
}
|
|
210
|
-
function J(r, e, t) {
|
|
211
|
-
var n = e.label, a = r.append("g");
|
|
212
|
-
e.labelType === "svg" ? Yt(a, e) : typeof n != "string" || e.labelType === "html" ? stylesE75131e4.te(a, e) : Ht(a, e);
|
|
213
|
-
var s = a.node().getBBox(), i;
|
|
214
|
-
switch(t){
|
|
215
|
-
case "top":
|
|
216
|
-
i = -e.height / 2;
|
|
217
|
-
break;
|
|
218
|
-
case "bottom":
|
|
219
|
-
i = e.height / 2 - s.height;
|
|
220
|
-
break;
|
|
221
|
-
default:
|
|
222
|
-
i = -s.height / 2;
|
|
223
|
-
}
|
|
224
|
-
return a.attr("transform", "translate(" + -s.width / 2 + "," + i + ")"), a;
|
|
225
|
-
}
|
|
226
|
-
var X = function X(r, e) {
|
|
227
|
-
var t = e.nodes().filter(function(s) {
|
|
228
|
-
return stylesE75131e4.fe(e, s);
|
|
229
|
-
}), n = r.selectAll("g.cluster").data(t, function(s) {
|
|
230
|
-
return s;
|
|
231
|
-
});
|
|
232
|
-
stylesE75131e4.ue(n.exit(), e).style("opacity", 0).remove();
|
|
233
|
-
var a = n.enter().append("g").attr("class", "cluster").attr("id", function(s) {
|
|
234
|
-
var i = e.node(s);
|
|
235
|
-
return i.id;
|
|
236
|
-
}).style("opacity", 0).each(function(s) {
|
|
237
|
-
var i = e.node(s), o = index.bt(this);
|
|
238
|
-
index.bt(this).append("rect");
|
|
239
|
-
var c = o.append("g").attr("class", "label");
|
|
240
|
-
J(c, i, i.clusterLabelPos);
|
|
241
|
-
});
|
|
242
|
-
return n = n.merge(a), n = stylesE75131e4.ue(n, e).style("opacity", 1), n.selectAll("rect").each(function(s) {
|
|
243
|
-
var i = e.node(s), o = index.bt(this);
|
|
244
|
-
stylesE75131e4.ee(o, i.style);
|
|
245
|
-
}), n;
|
|
246
|
-
};
|
|
247
|
-
function Ft(r) {
|
|
248
|
-
X = r;
|
|
249
|
-
}
|
|
250
|
-
var F = function F(r, e) {
|
|
251
|
-
var t = r.selectAll("g.edgeLabel").data(e.edges(), function(a) {
|
|
252
|
-
return stylesE75131e4.pe(a);
|
|
253
|
-
}).classed("update", true);
|
|
254
|
-
t.exit().remove(), t.enter().append("g").classed("edgeLabel", true).style("opacity", 0), t = r.selectAll("g.edgeLabel"), t.each(function(a) {
|
|
255
|
-
var s = index.bt(this);
|
|
256
|
-
s.select(".label").remove();
|
|
257
|
-
var i = e.edge(a), o = J(s, e.edge(a), 0).classed("label", true), c = o.node().getBBox();
|
|
258
|
-
i.labelId && o.attr("id", i.labelId), graph0ee63739.E(i, "width") || (i.width = c.width), graph0ee63739.E(i, "height") || (i.height = c.height);
|
|
259
|
-
});
|
|
260
|
-
var n;
|
|
261
|
-
return t.exit ? n = t.exit() : n = t.selectAll(null), stylesE75131e4.ue(n, e).style("opacity", 0).remove(), t;
|
|
262
|
-
};
|
|
263
|
-
function qt(r) {
|
|
264
|
-
F = r;
|
|
265
|
-
}
|
|
266
|
-
function O(r, e) {
|
|
267
|
-
return r.intersect(e);
|
|
268
|
-
}
|
|
269
|
-
var q = function q(r, e, t) {
|
|
270
|
-
var n = r.selectAll("g.edgePath").data(e.edges(), function(i) {
|
|
271
|
-
return stylesE75131e4.pe(i);
|
|
272
|
-
}).classed("update", true), a = Ot(n, e);
|
|
273
|
-
jt(n, e);
|
|
274
|
-
var s = n.merge !== void 0 ? n.merge(a) : n;
|
|
275
|
-
return stylesE75131e4.ue(s, e).style("opacity", 1), s.each(function(i) {
|
|
276
|
-
var o = index.bt(this), c = e.edge(i);
|
|
277
|
-
c.elem = this, c.id && o.attr("id", c.id), stylesE75131e4.be(o, c.class, (o.classed("update") ? "update " : "") + "edgePath");
|
|
278
|
-
}), s.selectAll("path.path").each(function(i) {
|
|
279
|
-
var o = e.edge(i);
|
|
280
|
-
o.arrowheadId = layoutFd473db2.en("arrowhead");
|
|
281
|
-
var c = index.bt(this).attr("marker-end", function() {
|
|
282
|
-
return "url(" + Kt(location.href, o.arrowheadId) + ")";
|
|
283
|
-
}).style("fill", "none");
|
|
284
|
-
stylesE75131e4.ue(c, e).attr("d", function(d) {
|
|
285
|
-
return Jt(e, d);
|
|
286
|
-
}), stylesE75131e4.ee(c, o.style);
|
|
287
|
-
}), s.selectAll("defs *").remove(), s.selectAll("defs").each(function(i) {
|
|
288
|
-
var o = e.edge(i), c = t[o.arrowhead];
|
|
289
|
-
c(index.bt(this), o.arrowheadId, o, "arrowhead");
|
|
290
|
-
}), s;
|
|
291
|
-
};
|
|
292
|
-
function Qt(r) {
|
|
293
|
-
q = r;
|
|
294
|
-
}
|
|
295
|
-
function Kt(r, e) {
|
|
296
|
-
var t = r.split("#")[0];
|
|
297
|
-
return t + "#" + e;
|
|
298
|
-
}
|
|
299
|
-
function Jt(r, e) {
|
|
300
|
-
var t = r.edge(e), n = r.node(e.v), a = r.node(e.w), s = t.points.slice(1, t.points.length - 1);
|
|
301
|
-
return s.unshift(O(n, s[0])), s.push(O(a, s[s.length - 1])), lt(t, s);
|
|
302
|
-
}
|
|
303
|
-
function lt(r, e) {
|
|
304
|
-
var t = (line24d93f1b.P || Ut.line)().x(function(n) {
|
|
305
|
-
return n.x;
|
|
306
|
-
}).y(function(n) {
|
|
307
|
-
return n.y;
|
|
308
|
-
});
|
|
309
|
-
return (t.curve || t.interpolate)(r.curve), t(e);
|
|
310
|
-
}
|
|
311
|
-
function Zt(r) {
|
|
312
|
-
var e = r.getBBox(), t = r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width / 2, e.height / 2);
|
|
313
|
-
return {
|
|
314
|
-
x: t.e,
|
|
315
|
-
y: t.f
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function Ot(r, e) {
|
|
319
|
-
var t = r.enter().append("g").attr("class", "edgePath").style("opacity", 0);
|
|
320
|
-
return t.append("path").attr("class", "path").attr("d", function(n) {
|
|
321
|
-
var a = e.edge(n), s = e.node(n.v).elem, i = layoutFd473db2.N(a.points.length).map(function() {
|
|
322
|
-
return Zt(s);
|
|
323
|
-
});
|
|
324
|
-
return lt(a, i);
|
|
325
|
-
}), t.append("defs"), t;
|
|
326
|
-
}
|
|
327
|
-
function jt(r, e) {
|
|
328
|
-
var t = r.exit();
|
|
329
|
-
stylesE75131e4.ue(t, e).style("opacity", 0).remove();
|
|
330
|
-
}
|
|
331
|
-
var Q = function Q(r, e, t) {
|
|
332
|
-
var n = e.nodes().filter(function(i) {
|
|
333
|
-
return !stylesE75131e4.fe(e, i);
|
|
334
|
-
}), a = r.selectAll("g.node").data(n, function(i) {
|
|
335
|
-
return i;
|
|
336
|
-
}).classed("update", true);
|
|
337
|
-
a.exit().remove(), a.enter().append("g").attr("class", "node").style("opacity", 0), a = r.selectAll("g.node"), a.each(function(i) {
|
|
338
|
-
var o = e.node(i), c = index.bt(this);
|
|
339
|
-
stylesE75131e4.be(c, o.class, (c.classed("update") ? "update " : "") + "node"), c.select("g.label").remove();
|
|
340
|
-
var d = c.append("g").attr("class", "label"), l = J(d, o), g = t[o.shape], h = layoutFd473db2.G(l.node().getBBox(), "width", "height");
|
|
341
|
-
o.elem = this, o.id && c.attr("id", o.id), o.labelId && d.attr("id", o.labelId), graph0ee63739.E(o, "width") && (h.width = o.width), graph0ee63739.E(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 + ")");
|
|
342
|
-
var u = index.bt(this);
|
|
343
|
-
u.select(".label-container").remove();
|
|
344
|
-
var p = g(u, h, o).classed("label-container", true);
|
|
345
|
-
stylesE75131e4.ee(p, o.style);
|
|
346
|
-
var v = p.node().getBBox();
|
|
347
|
-
o.width = v.width, o.height = v.height;
|
|
348
|
-
});
|
|
349
|
-
var s;
|
|
350
|
-
return a.exit ? s = a.exit() : s = a.selectAll(null), stylesE75131e4.ue(s, e).style("opacity", 0).remove(), a;
|
|
351
|
-
};
|
|
352
|
-
function te(r) {
|
|
353
|
-
Q = r;
|
|
354
|
-
}
|
|
355
|
-
function ee(r, e) {
|
|
356
|
-
var t = r.filter(function() {
|
|
357
|
-
return !index.bt(this).classed("update");
|
|
358
|
-
});
|
|
359
|
-
function n(a) {
|
|
360
|
-
var s = e.node(a);
|
|
361
|
-
return "translate(" + s.x + "," + s.y + ")";
|
|
362
|
-
}
|
|
363
|
-
t.attr("transform", n), stylesE75131e4.ue(r, e).style("opacity", 1).attr("transform", n), stylesE75131e4.ue(t.selectAll("rect"), e).attr("width", function(a) {
|
|
364
|
-
return e.node(a).width;
|
|
365
|
-
}).attr("height", function(a) {
|
|
366
|
-
return e.node(a).height;
|
|
367
|
-
}).attr("x", function(a) {
|
|
368
|
-
var s = e.node(a);
|
|
369
|
-
return -s.width / 2;
|
|
370
|
-
}).attr("y", function(a) {
|
|
371
|
-
var s = e.node(a);
|
|
372
|
-
return -s.height / 2;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
function re(r, e) {
|
|
376
|
-
var t = r.filter(function() {
|
|
377
|
-
return !index.bt(this).classed("update");
|
|
378
|
-
});
|
|
379
|
-
function n(a) {
|
|
380
|
-
var s = e.edge(a);
|
|
381
|
-
return graph0ee63739.E(s, "x") ? "translate(" + s.x + "," + s.y + ")" : "";
|
|
382
|
-
}
|
|
383
|
-
t.attr("transform", n), stylesE75131e4.ue(r, e).style("opacity", 1).attr("transform", n);
|
|
384
|
-
}
|
|
385
|
-
function ae(r, e) {
|
|
386
|
-
var t = r.filter(function() {
|
|
387
|
-
return !index.bt(this).classed("update");
|
|
388
|
-
});
|
|
389
|
-
function n(a) {
|
|
390
|
-
var s = e.node(a);
|
|
391
|
-
return "translate(" + s.x + "," + s.y + ")";
|
|
392
|
-
}
|
|
393
|
-
t.attr("transform", n), stylesE75131e4.ue(r, e).style("opacity", 1).attr("transform", n);
|
|
394
|
-
}
|
|
395
|
-
function ct(r, e, t, n) {
|
|
396
|
-
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);
|
|
397
|
-
n.x < a && (d = -d);
|
|
398
|
-
var l = Math.abs(e * t * o / c);
|
|
399
|
-
return n.y < s && (l = -l), {
|
|
400
|
-
x: a + d,
|
|
401
|
-
y: s + l
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function ne(r, e, t) {
|
|
405
|
-
return ct(r, e, e, t);
|
|
406
|
-
}
|
|
407
|
-
function se(r, e, t, n) {
|
|
408
|
-
var a, s, i, o, c, d, l, g, h, u, p, v, f, y, k;
|
|
409
|
-
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, g = s * e.x + o * e.y + d, !(l !== 0 && g !== 0 && j(l, g)) && (p = a * o - s * i, p !== 0))) return v = Math.abs(p / 2), f = i * d - o * c, y = f < 0 ? (f - v) / p : (f + v) / p, f = s * c - a * d, k = f < 0 ? (f - v) / p : (f + v) / p, {
|
|
410
|
-
x: y,
|
|
411
|
-
y: k
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
function j(r, e) {
|
|
415
|
-
return r * e > 0;
|
|
416
|
-
}
|
|
417
|
-
function T(r, e, t) {
|
|
418
|
-
var n = r.x, a = r.y, s = [], i = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY;
|
|
419
|
-
e.forEach(function(p) {
|
|
420
|
-
i = Math.min(i, p.x), o = Math.min(o, p.y);
|
|
421
|
-
});
|
|
422
|
-
for(var c = n - r.width / 2 - i, d = a - r.height / 2 - o, l = 0; l < e.length; l++){
|
|
423
|
-
var g = e[l], h = e[l < e.length - 1 ? l + 1 : 0], u = se(r, t, {
|
|
424
|
-
x: c + g.x,
|
|
425
|
-
y: d + g.y
|
|
426
|
-
}, {
|
|
427
|
-
x: c + h.x,
|
|
428
|
-
y: d + h.y
|
|
429
|
-
});
|
|
430
|
-
u && s.push(u);
|
|
431
|
-
}
|
|
432
|
-
return s.length ? (s.length > 1 && s.sort(function(p, v) {
|
|
433
|
-
var f = p.x - t.x, y = p.y - t.y, k = Math.sqrt(f * f + y * y), I = v.x - t.x, _ = v.y - t.y, W = Math.sqrt(I * I + _ * _);
|
|
434
|
-
return k < W ? -1 : k === W ? 0 : 1;
|
|
435
|
-
}), s[0]) : (console.log("NO INTERSECTION FOUND, RETURN NODE CENTER", r), r);
|
|
436
|
-
}
|
|
437
|
-
function Z(r, e) {
|
|
438
|
-
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;
|
|
439
|
-
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), {
|
|
440
|
-
x: t + c,
|
|
441
|
-
y: n + d
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
var K = {
|
|
445
|
-
rect: oe,
|
|
446
|
-
ellipse: le,
|
|
447
|
-
circle: ce,
|
|
448
|
-
diamond: de
|
|
449
|
-
};
|
|
450
|
-
function ie(r) {
|
|
451
|
-
K = r;
|
|
452
|
-
}
|
|
453
|
-
function oe(r, e, t) {
|
|
454
|
-
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);
|
|
455
|
-
return t.intersect = function(a) {
|
|
456
|
-
return Z(t, a);
|
|
457
|
-
}, n;
|
|
458
|
-
}
|
|
459
|
-
function le(r, e, t) {
|
|
460
|
-
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);
|
|
461
|
-
return t.intersect = function(i) {
|
|
462
|
-
return ct(t, n, a, i);
|
|
463
|
-
}, s;
|
|
464
|
-
}
|
|
465
|
-
function ce(r, e, t) {
|
|
466
|
-
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);
|
|
467
|
-
return t.intersect = function(s) {
|
|
468
|
-
return ne(t, n, s);
|
|
469
|
-
}, a;
|
|
470
|
-
}
|
|
471
|
-
function de(r, e, t) {
|
|
472
|
-
var n = e.width * Math.SQRT2 / 2, a = e.height * Math.SQRT2 / 2, s = [
|
|
473
|
-
{
|
|
474
|
-
x: 0,
|
|
475
|
-
y: -a
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
x: -n,
|
|
479
|
-
y: 0
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
x: 0,
|
|
483
|
-
y: a
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
x: n,
|
|
487
|
-
y: 0
|
|
488
|
-
}
|
|
489
|
-
], i = r.insert("polygon", ":first-child").attr("points", s.map(function(o) {
|
|
490
|
-
return o.x + "," + o.y;
|
|
491
|
-
}).join(" "));
|
|
492
|
-
return t.intersect = function(o) {
|
|
493
|
-
return T(t, s, o);
|
|
494
|
-
}, i;
|
|
495
|
-
}
|
|
496
|
-
function he() {
|
|
497
|
-
var r = function r(e, t) {
|
|
498
|
-
pe(t);
|
|
499
|
-
var n = D(e, "output"), a = D(n, "clusters"), s = D(n, "edgePaths"), i = F(D(n, "edgeLabels"), t), o = Q(D(n, "nodes"), t, K);
|
|
500
|
-
layoutFd473db2.Yt(t), ae(o, t), re(i, t), q(s, t, H);
|
|
501
|
-
var c = X(a, t);
|
|
502
|
-
ee(c, t), ge(t);
|
|
503
|
-
};
|
|
504
|
-
return r.createNodes = function(e) {
|
|
505
|
-
return arguments.length ? (te(e), r) : Q;
|
|
506
|
-
}, r.createClusters = function(e) {
|
|
507
|
-
return arguments.length ? (Ft(e), r) : X;
|
|
508
|
-
}, r.createEdgeLabels = function(e) {
|
|
509
|
-
return arguments.length ? (qt(e), r) : F;
|
|
510
|
-
}, r.createEdgePaths = function(e) {
|
|
511
|
-
return arguments.length ? (Qt(e), r) : q;
|
|
512
|
-
}, r.shapes = function(e) {
|
|
513
|
-
return arguments.length ? (ie(e), r) : K;
|
|
514
|
-
}, r.arrows = function(e) {
|
|
515
|
-
return arguments.length ? (Wt(e), r) : H;
|
|
516
|
-
}, r;
|
|
517
|
-
}
|
|
518
|
-
var ue = {
|
|
519
|
-
paddingLeft: 10,
|
|
520
|
-
paddingRight: 10,
|
|
521
|
-
paddingTop: 10,
|
|
522
|
-
paddingBottom: 10,
|
|
523
|
-
rx: 0,
|
|
524
|
-
ry: 0,
|
|
525
|
-
shape: "rect"
|
|
526
|
-
}, fe = {
|
|
527
|
-
arrowhead: "normal",
|
|
528
|
-
curve: index.Df
|
|
529
|
-
};
|
|
530
|
-
function pe(r) {
|
|
531
|
-
r.nodes().forEach(function(e) {
|
|
532
|
-
var t = r.node(e);
|
|
533
|
-
!graph0ee63739.E(t, "label") && !r.children(e).length && (t.label = e), graph0ee63739.E(t, "paddingX") && layoutFd473db2._e(t, {
|
|
534
|
-
paddingLeft: t.paddingX,
|
|
535
|
-
paddingRight: t.paddingX
|
|
536
|
-
}), graph0ee63739.E(t, "paddingY") && layoutFd473db2._e(t, {
|
|
537
|
-
paddingTop: t.paddingY,
|
|
538
|
-
paddingBottom: t.paddingY
|
|
539
|
-
}), graph0ee63739.E(t, "padding") && layoutFd473db2._e(t, {
|
|
540
|
-
paddingLeft: t.padding,
|
|
541
|
-
paddingRight: t.padding,
|
|
542
|
-
paddingTop: t.padding,
|
|
543
|
-
paddingBottom: t.padding
|
|
544
|
-
}), layoutFd473db2._e(t, ue), graph0ee63739.m([
|
|
545
|
-
"paddingLeft",
|
|
546
|
-
"paddingRight",
|
|
547
|
-
"paddingTop",
|
|
548
|
-
"paddingBottom"
|
|
549
|
-
], function(n) {
|
|
550
|
-
t[n] = Number(t[n]);
|
|
551
|
-
}), graph0ee63739.E(t, "width") && (t._prevWidth = t.width), graph0ee63739.E(t, "height") && (t._prevHeight = t.height);
|
|
552
|
-
}), r.edges().forEach(function(e) {
|
|
553
|
-
var t = r.edge(e);
|
|
554
|
-
graph0ee63739.E(t, "label") || (t.label = ""), layoutFd473db2._e(t, fe);
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
function ge(r) {
|
|
558
|
-
graph0ee63739.m(r.nodes(), function(e) {
|
|
559
|
-
var t = r.node(e);
|
|
560
|
-
graph0ee63739.E(t, "_prevWidth") ? t.width = t._prevWidth : delete t.width, graph0ee63739.E(t, "_prevHeight") ? t.height = t._prevHeight : delete t.height, delete t._prevWidth, delete t._prevHeight;
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
function D(r, e) {
|
|
564
|
-
var t = r.select("g." + e);
|
|
565
|
-
return t.empty() && (t = r.append("g").attr("class", e)), t;
|
|
566
|
-
}
|
|
567
|
-
function dt(r, e, t) {
|
|
568
|
-
var n = e.width, a = e.height, s = (n + a) * 0.9, i = [
|
|
569
|
-
{
|
|
570
|
-
x: s / 2,
|
|
571
|
-
y: 0
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
x: s,
|
|
575
|
-
y: -s / 2
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
x: s / 2,
|
|
579
|
-
y: -s
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
x: 0,
|
|
583
|
-
y: -s / 2
|
|
584
|
-
}
|
|
585
|
-
], o = A(r, s, s, i);
|
|
586
|
-
return t.intersect = function(c) {
|
|
587
|
-
return T(t, i, c);
|
|
588
|
-
}, o;
|
|
589
|
-
}
|
|
590
|
-
function ht(r, e, t) {
|
|
591
|
-
var a = e.height, s = a / 4, i = e.width + 2 * s, o = [
|
|
592
|
-
{
|
|
593
|
-
x: s,
|
|
594
|
-
y: 0
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
x: i - s,
|
|
598
|
-
y: 0
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
x: i,
|
|
602
|
-
y: -a / 2
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
x: i - s,
|
|
606
|
-
y: -a
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
x: s,
|
|
610
|
-
y: -a
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
x: 0,
|
|
614
|
-
y: -a / 2
|
|
615
|
-
}
|
|
616
|
-
], c = A(r, i, a, o);
|
|
617
|
-
return t.intersect = function(d) {
|
|
618
|
-
return T(t, o, d);
|
|
619
|
-
}, c;
|
|
620
|
-
}
|
|
621
|
-
function ut(r, e, t) {
|
|
622
|
-
var n = e.width, a = e.height, s = [
|
|
623
|
-
{
|
|
624
|
-
x: -a / 2,
|
|
625
|
-
y: 0
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
x: n,
|
|
629
|
-
y: 0
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
x: n,
|
|
633
|
-
y: -a
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
x: -a / 2,
|
|
637
|
-
y: -a
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
x: 0,
|
|
641
|
-
y: -a / 2
|
|
642
|
-
}
|
|
643
|
-
], i = A(r, n, a, s);
|
|
644
|
-
return t.intersect = function(o) {
|
|
645
|
-
return T(t, s, o);
|
|
646
|
-
}, i;
|
|
647
|
-
}
|
|
648
|
-
function ft(r, e, t) {
|
|
649
|
-
var n = e.width, a = e.height, s = [
|
|
650
|
-
{
|
|
651
|
-
x: -2 * a / 6,
|
|
652
|
-
y: 0
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
x: n - a / 6,
|
|
656
|
-
y: 0
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
x: n + 2 * a / 6,
|
|
660
|
-
y: -a
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
x: a / 6,
|
|
664
|
-
y: -a
|
|
665
|
-
}
|
|
666
|
-
], i = A(r, n, a, s);
|
|
667
|
-
return t.intersect = function(o) {
|
|
668
|
-
return T(t, s, o);
|
|
669
|
-
}, i;
|
|
670
|
-
}
|
|
671
|
-
function pt(r, e, t) {
|
|
672
|
-
var n = e.width, a = e.height, s = [
|
|
673
|
-
{
|
|
674
|
-
x: 2 * a / 6,
|
|
675
|
-
y: 0
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
x: n + a / 6,
|
|
679
|
-
y: 0
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
x: n - 2 * a / 6,
|
|
683
|
-
y: -a
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
x: -a / 6,
|
|
687
|
-
y: -a
|
|
688
|
-
}
|
|
689
|
-
], i = A(r, n, a, s);
|
|
690
|
-
return t.intersect = function(o) {
|
|
691
|
-
return T(t, s, o);
|
|
692
|
-
}, i;
|
|
693
|
-
}
|
|
694
|
-
function gt(r, e, t) {
|
|
695
|
-
var n = e.width, a = e.height, s = [
|
|
696
|
-
{
|
|
697
|
-
x: -2 * a / 6,
|
|
698
|
-
y: 0
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
x: n + 2 * a / 6,
|
|
702
|
-
y: 0
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
x: n - a / 6,
|
|
706
|
-
y: -a
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
x: a / 6,
|
|
710
|
-
y: -a
|
|
711
|
-
}
|
|
712
|
-
], i = A(r, n, a, s);
|
|
713
|
-
return t.intersect = function(o) {
|
|
714
|
-
return T(t, s, o);
|
|
715
|
-
}, i;
|
|
716
|
-
}
|
|
717
|
-
function yt(r, e, t) {
|
|
718
|
-
var n = e.width, a = e.height, s = [
|
|
719
|
-
{
|
|
720
|
-
x: a / 6,
|
|
721
|
-
y: 0
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
x: n - a / 6,
|
|
725
|
-
y: 0
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
x: n + 2 * a / 6,
|
|
729
|
-
y: -a
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
x: -2 * a / 6,
|
|
733
|
-
y: -a
|
|
734
|
-
}
|
|
735
|
-
], i = A(r, n, a, s);
|
|
736
|
-
return t.intersect = function(o) {
|
|
737
|
-
return T(t, s, o);
|
|
738
|
-
}, i;
|
|
739
|
-
}
|
|
740
|
-
function vt(r, e, t) {
|
|
741
|
-
var n = e.width, a = e.height, s = [
|
|
742
|
-
{
|
|
743
|
-
x: 0,
|
|
744
|
-
y: 0
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
x: n + a / 2,
|
|
748
|
-
y: 0
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
x: n,
|
|
752
|
-
y: -a / 2
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
x: n + a / 2,
|
|
756
|
-
y: -a
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
x: 0,
|
|
760
|
-
y: -a
|
|
761
|
-
}
|
|
762
|
-
], i = A(r, n, a, s);
|
|
763
|
-
return t.intersect = function(o) {
|
|
764
|
-
return T(t, s, o);
|
|
765
|
-
}, i;
|
|
766
|
-
}
|
|
767
|
-
function wt(r, e, t) {
|
|
768
|
-
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);
|
|
769
|
-
return t.intersect = function(i) {
|
|
770
|
-
return Z(t, i);
|
|
771
|
-
}, s;
|
|
772
|
-
}
|
|
773
|
-
function mt(r, e, t) {
|
|
774
|
-
var n = e.width, a = e.height, s = [
|
|
775
|
-
{
|
|
776
|
-
x: 0,
|
|
777
|
-
y: 0
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
x: n,
|
|
781
|
-
y: 0
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
x: n,
|
|
785
|
-
y: -a
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
x: 0,
|
|
789
|
-
y: -a
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
x: 0,
|
|
793
|
-
y: 0
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
x: -8,
|
|
797
|
-
y: 0
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
x: n + 8,
|
|
801
|
-
y: 0
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
x: n + 8,
|
|
805
|
-
y: -a
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
x: -8,
|
|
809
|
-
y: -a
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
x: -8,
|
|
813
|
-
y: 0
|
|
814
|
-
}
|
|
815
|
-
], i = A(r, n, a, s);
|
|
816
|
-
return t.intersect = function(o) {
|
|
817
|
-
return T(t, s, o);
|
|
818
|
-
}, i;
|
|
819
|
-
}
|
|
820
|
-
function xt(r, e, t) {
|
|
821
|
-
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) + ")");
|
|
822
|
-
return t.intersect = function(d) {
|
|
823
|
-
var l = Z(t, d), g = l.x - t.x;
|
|
824
|
-
if (a != 0 && (Math.abs(g) < t.width / 2 || Math.abs(g) == t.width / 2 && Math.abs(l.y - t.y) > t.height / 2 - s)) {
|
|
825
|
-
var h = s * s * (1 - g * g / (a * a));
|
|
826
|
-
h != 0 && (h = Math.sqrt(h)), h = s - h, d.y - t.y > 0 && (h = -h), l.y += h;
|
|
827
|
-
}
|
|
828
|
-
return l;
|
|
829
|
-
}, c;
|
|
830
|
-
}
|
|
831
|
-
function ye(r) {
|
|
832
|
-
r.shapes().question = dt, r.shapes().hexagon = ht, r.shapes().stadium = wt, r.shapes().subroutine = mt, r.shapes().cylinder = xt, r.shapes().rect_left_inv_arrow = ut, r.shapes().lean_right = ft, r.shapes().lean_left = pt, r.shapes().trapezoid = gt, r.shapes().inv_trapezoid = yt, r.shapes().rect_right_inv_arrow = vt;
|
|
833
|
-
}
|
|
834
|
-
function ve(r) {
|
|
835
|
-
r({
|
|
836
|
-
question: dt
|
|
837
|
-
}), r({
|
|
838
|
-
hexagon: ht
|
|
839
|
-
}), r({
|
|
840
|
-
stadium: wt
|
|
841
|
-
}), r({
|
|
842
|
-
subroutine: mt
|
|
843
|
-
}), r({
|
|
844
|
-
cylinder: xt
|
|
845
|
-
}), r({
|
|
846
|
-
rect_left_inv_arrow: ut
|
|
847
|
-
}), r({
|
|
848
|
-
lean_right: ft
|
|
849
|
-
}), r({
|
|
850
|
-
lean_left: pt
|
|
851
|
-
}), r({
|
|
852
|
-
trapezoid: gt
|
|
853
|
-
}), r({
|
|
854
|
-
inv_trapezoid: yt
|
|
855
|
-
}), r({
|
|
856
|
-
rect_right_inv_arrow: vt
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
function A(r, e, t, n) {
|
|
860
|
-
return r.insert("polygon", ":first-child").attr("points", n.map(function(a) {
|
|
861
|
-
return a.x + "," + a.y;
|
|
862
|
-
}).join(" ")).attr("transform", "translate(" + -e / 2 + "," + t / 2 + ")");
|
|
863
|
-
}
|
|
864
|
-
var we = {
|
|
865
|
-
addToRender: ye,
|
|
866
|
-
addToRenderV2: ve
|
|
867
|
-
}, bt = {}, me = function me(r) {
|
|
868
|
-
var e = Object.keys(r);
|
|
869
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
870
|
-
try {
|
|
871
|
-
for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
872
|
-
var t = _step.value;
|
|
873
|
-
bt[t] = r[t];
|
|
874
|
-
}
|
|
875
|
-
} catch (err) {
|
|
876
|
-
_didIteratorError = true;
|
|
877
|
-
_iteratorError = err;
|
|
878
|
-
} finally{
|
|
879
|
-
try {
|
|
880
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
881
|
-
_iterator.return();
|
|
882
|
-
}
|
|
883
|
-
} finally{
|
|
884
|
-
if (_didIteratorError) {
|
|
885
|
-
throw _iteratorError;
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
}, kt = function() {
|
|
890
|
-
var _ref = _async_to_generator(function(r, e, t, n, a, s) {
|
|
891
|
-
var i, o, c, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
|
|
892
|
-
return _ts_generator(this, function(_state) {
|
|
893
|
-
switch(_state.label){
|
|
894
|
-
case 0:
|
|
895
|
-
i = n ? n.select('[id="'.concat(t, '"]')) : index.bt('[id="'.concat(t, '"]')), o = a || document, c = Object.keys(r);
|
|
896
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
897
|
-
_state.label = 1;
|
|
898
|
-
case 1:
|
|
899
|
-
_state.trys.push([
|
|
900
|
-
1,
|
|
901
|
-
6,
|
|
902
|
-
7,
|
|
903
|
-
8
|
|
904
|
-
]);
|
|
905
|
-
_loop = function() {
|
|
906
|
-
var d, l, g, h, u, p, y, _tmp, y1, k, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step1, I, _, v, f;
|
|
907
|
-
return _ts_generator(this, function(_state) {
|
|
908
|
-
switch(_state.label){
|
|
909
|
-
case 0:
|
|
910
|
-
d = _step.value;
|
|
911
|
-
l = r[d];
|
|
912
|
-
g = "default";
|
|
913
|
-
l.classes.length > 0 && (g = l.classes.join(" "));
|
|
914
|
-
h = index.B0(l.styles);
|
|
915
|
-
u = l.text !== void 0 ? l.text : l.id, p = void 0;
|
|
916
|
-
if (!index.La(index.Vn().flowchart.htmlLabels)) return [
|
|
917
|
-
3,
|
|
918
|
-
2
|
|
919
|
-
];
|
|
920
|
-
_tmp = {};
|
|
921
|
-
return [
|
|
922
|
-
4,
|
|
923
|
-
index.Od(u.replace(/fa[blrs]?:fa-[\w-]+/g, // cspell:disable-line
|
|
924
|
-
function(k) {
|
|
925
|
-
return "<i class='".concat(k.replace(":", " "), "'></i>");
|
|
926
|
-
}), index.Vn())
|
|
927
|
-
];
|
|
928
|
-
case 1:
|
|
929
|
-
y = (_tmp.label = _state.sent(), _tmp);
|
|
930
|
-
p = stylesE75131e4.te(i, y).node(), p.parentNode.removeChild(p);
|
|
931
|
-
return [
|
|
932
|
-
3,
|
|
933
|
-
3
|
|
934
|
-
];
|
|
935
|
-
case 2:
|
|
936
|
-
y1 = o.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
937
|
-
y1.setAttribute("style", h.labelStyle.replace("color:", "fill:"));
|
|
938
|
-
k = u.split(index.$n.lineBreakRegex);
|
|
939
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
940
|
-
try {
|
|
941
|
-
for(_iterator = k[Symbol.iterator](); !(_iteratorNormalCompletion = (_step1 = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
942
|
-
I = _step1.value;
|
|
943
|
-
_ = o.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
944
|
-
_.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), _.setAttribute("dy", "1em"), _.setAttribute("x", "1"), _.textContent = I, y1.appendChild(_);
|
|
945
|
-
}
|
|
946
|
-
} catch (err) {
|
|
947
|
-
_didIteratorError = true;
|
|
948
|
-
_iteratorError = err;
|
|
949
|
-
} finally{
|
|
950
|
-
try {
|
|
951
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
952
|
-
_iterator.return();
|
|
953
|
-
}
|
|
954
|
-
} finally{
|
|
955
|
-
if (_didIteratorError) {
|
|
956
|
-
throw _iteratorError;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
p = y1;
|
|
961
|
-
_state.label = 3;
|
|
962
|
-
case 3:
|
|
963
|
-
v = 0, f = "";
|
|
964
|
-
switch(l.type){
|
|
965
|
-
case "round":
|
|
966
|
-
v = 5, f = "rect";
|
|
967
|
-
break;
|
|
968
|
-
case "square":
|
|
969
|
-
f = "rect";
|
|
970
|
-
break;
|
|
971
|
-
case "diamond":
|
|
972
|
-
f = "question";
|
|
973
|
-
break;
|
|
974
|
-
case "hexagon":
|
|
975
|
-
f = "hexagon";
|
|
976
|
-
break;
|
|
977
|
-
case "odd":
|
|
978
|
-
f = "rect_left_inv_arrow";
|
|
979
|
-
break;
|
|
980
|
-
case "lean_right":
|
|
981
|
-
f = "lean_right";
|
|
982
|
-
break;
|
|
983
|
-
case "lean_left":
|
|
984
|
-
f = "lean_left";
|
|
985
|
-
break;
|
|
986
|
-
case "trapezoid":
|
|
987
|
-
f = "trapezoid";
|
|
988
|
-
break;
|
|
989
|
-
case "inv_trapezoid":
|
|
990
|
-
f = "inv_trapezoid";
|
|
991
|
-
break;
|
|
992
|
-
case "odd_right":
|
|
993
|
-
f = "rect_left_inv_arrow";
|
|
994
|
-
break;
|
|
995
|
-
case "circle":
|
|
996
|
-
f = "circle";
|
|
997
|
-
break;
|
|
998
|
-
case "ellipse":
|
|
999
|
-
f = "ellipse";
|
|
1000
|
-
break;
|
|
1001
|
-
case "stadium":
|
|
1002
|
-
f = "stadium";
|
|
1003
|
-
break;
|
|
1004
|
-
case "subroutine":
|
|
1005
|
-
f = "subroutine";
|
|
1006
|
-
break;
|
|
1007
|
-
case "cylinder":
|
|
1008
|
-
f = "cylinder";
|
|
1009
|
-
break;
|
|
1010
|
-
case "group":
|
|
1011
|
-
f = "rect";
|
|
1012
|
-
break;
|
|
1013
|
-
default:
|
|
1014
|
-
f = "rect";
|
|
1015
|
-
}
|
|
1016
|
-
index.L.warn("Adding node", l.id, l.domId), e.setNode(s.db.lookUpDomId(l.id), {
|
|
1017
|
-
labelType: "svg",
|
|
1018
|
-
labelStyle: h.labelStyle,
|
|
1019
|
-
shape: f,
|
|
1020
|
-
label: p,
|
|
1021
|
-
rx: v,
|
|
1022
|
-
ry: v,
|
|
1023
|
-
class: g,
|
|
1024
|
-
style: h.style,
|
|
1025
|
-
id: s.db.lookUpDomId(l.id)
|
|
1026
|
-
});
|
|
1027
|
-
return [
|
|
1028
|
-
2
|
|
1029
|
-
];
|
|
1030
|
-
}
|
|
1031
|
-
});
|
|
1032
|
-
};
|
|
1033
|
-
_iterator = c[Symbol.iterator]();
|
|
1034
|
-
_state.label = 2;
|
|
1035
|
-
case 2:
|
|
1036
|
-
if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
|
|
1037
|
-
3,
|
|
1038
|
-
5
|
|
1039
|
-
];
|
|
1040
|
-
return [
|
|
1041
|
-
5,
|
|
1042
|
-
_ts_values(_loop())
|
|
1043
|
-
];
|
|
1044
|
-
case 3:
|
|
1045
|
-
_state.sent();
|
|
1046
|
-
_state.label = 4;
|
|
1047
|
-
case 4:
|
|
1048
|
-
_iteratorNormalCompletion = true;
|
|
1049
|
-
return [
|
|
1050
|
-
3,
|
|
1051
|
-
2
|
|
1052
|
-
];
|
|
1053
|
-
case 5:
|
|
1054
|
-
return [
|
|
1055
|
-
3,
|
|
1056
|
-
8
|
|
1057
|
-
];
|
|
1058
|
-
case 6:
|
|
1059
|
-
err = _state.sent();
|
|
1060
|
-
_didIteratorError = true;
|
|
1061
|
-
_iteratorError = err;
|
|
1062
|
-
return [
|
|
1063
|
-
3,
|
|
1064
|
-
8
|
|
1065
|
-
];
|
|
1066
|
-
case 7:
|
|
1067
|
-
try {
|
|
1068
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1069
|
-
_iterator.return();
|
|
1070
|
-
}
|
|
1071
|
-
} finally{
|
|
1072
|
-
if (_didIteratorError) {
|
|
1073
|
-
throw _iteratorError;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
return [
|
|
1077
|
-
7
|
|
1078
|
-
];
|
|
1079
|
-
case 8:
|
|
1080
|
-
return [
|
|
1081
|
-
2
|
|
1082
|
-
];
|
|
1083
|
-
}
|
|
1084
|
-
});
|
|
1085
|
-
});
|
|
1086
|
-
return function kt(r, e, t, n, a, s) {
|
|
1087
|
-
return _ref.apply(this, arguments);
|
|
1088
|
-
};
|
|
1089
|
-
}(), St = function() {
|
|
1090
|
-
var _ref = _async_to_generator(function(r, e, t) {
|
|
1091
|
-
var n, a, s, i, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, i1, o, c, d, l, g, h, u, _, _1, err;
|
|
1092
|
-
return _ts_generator(this, function(_state) {
|
|
1093
|
-
switch(_state.label){
|
|
1094
|
-
case 0:
|
|
1095
|
-
n = 0;
|
|
1096
|
-
if (r.defaultStyle !== void 0) {
|
|
1097
|
-
i = index.B0(r.defaultStyle);
|
|
1098
|
-
a = i.style, s = i.labelStyle;
|
|
1099
|
-
}
|
|
1100
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1101
|
-
_state.label = 1;
|
|
1102
|
-
case 1:
|
|
1103
|
-
_state.trys.push([
|
|
1104
|
-
1,
|
|
1105
|
-
10,
|
|
1106
|
-
11,
|
|
1107
|
-
12
|
|
1108
|
-
]);
|
|
1109
|
-
_iterator = r[Symbol.iterator]();
|
|
1110
|
-
_state.label = 2;
|
|
1111
|
-
case 2:
|
|
1112
|
-
if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
|
|
1113
|
-
3,
|
|
1114
|
-
9
|
|
1115
|
-
];
|
|
1116
|
-
i1 = _step.value;
|
|
1117
|
-
n++;
|
|
1118
|
-
o = "L-" + i1.start + "-" + i1.end, c = "LS-" + i1.start, d = "LE-" + i1.end, l = {};
|
|
1119
|
-
i1.type === "arrow_open" ? l.arrowhead = "none" : l.arrowhead = "normal";
|
|
1120
|
-
g = "", h = "";
|
|
1121
|
-
if (i1.style !== void 0) {
|
|
1122
|
-
u = index.B0(i1.style);
|
|
1123
|
-
g = u.style, h = u.labelStyle;
|
|
1124
|
-
} else switch(i1.stroke){
|
|
1125
|
-
case "normal":
|
|
1126
|
-
g = "fill:none", a !== void 0 && (g = a), s !== void 0 && (h = s);
|
|
1127
|
-
break;
|
|
1128
|
-
case "dotted":
|
|
1129
|
-
g = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
1130
|
-
break;
|
|
1131
|
-
case "thick":
|
|
1132
|
-
g = " stroke-width: 3.5px;fill:none";
|
|
1133
|
-
break;
|
|
1134
|
-
}
|
|
1135
|
-
l.style = g, l.labelStyle = h, i1.interpolate !== void 0 ? l.curve = index.x0(i1.interpolate, index.Df) : r.defaultInterpolate !== void 0 ? l.curve = index.x0(r.defaultInterpolate, index.Df) : l.curve = index.x0(bt.curve, index.Df);
|
|
1136
|
-
if (!(i1.text === void 0)) return [
|
|
1137
|
-
3,
|
|
1138
|
-
3
|
|
1139
|
-
];
|
|
1140
|
-
i1.style !== void 0 && (l.arrowheadStyle = "fill: #333");
|
|
1141
|
-
return [
|
|
1142
|
-
3,
|
|
1143
|
-
7
|
|
1144
|
-
];
|
|
1145
|
-
case 3:
|
|
1146
|
-
l.arrowheadStyle = "fill: #333", l.labelpos = "c";
|
|
1147
|
-
if (!index.La(index.Vn().flowchart.htmlLabels)) return [
|
|
1148
|
-
3,
|
|
1149
|
-
5
|
|
1150
|
-
];
|
|
1151
|
-
l.labelType = "html";
|
|
1152
|
-
_1 = (_ = '<span id="L-'.concat(o, '" class="edgeLabel L-').concat(c, "' L-").concat(d, '" style="').concat(l.labelStyle, '">')).concat;
|
|
1153
|
-
return [
|
|
1154
|
-
4,
|
|
1155
|
-
index.Od(i1.text.replace(/fa[blrs]?:fa-[\w-]+/g, // cspell:disable-line
|
|
1156
|
-
function(u) {
|
|
1157
|
-
return "<i class='".concat(u.replace(":", " "), "'></i>");
|
|
1158
|
-
}), index.Vn())
|
|
1159
|
-
];
|
|
1160
|
-
case 4:
|
|
1161
|
-
l.label = _1.apply(_, [
|
|
1162
|
-
_state.sent(),
|
|
1163
|
-
"</span>"
|
|
1164
|
-
]);
|
|
1165
|
-
return [
|
|
1166
|
-
3,
|
|
1167
|
-
6
|
|
1168
|
-
];
|
|
1169
|
-
case 5:
|
|
1170
|
-
(l.labelType = "text", l.label = i1.text.replace(index.$n.lineBreakRegex, "\n"), i1.style === void 0 && (l.style = l.style || "stroke: #333; stroke-width: 1.5px;fill:none"), l.labelStyle = l.labelStyle.replace("color:", "fill:"));
|
|
1171
|
-
_state.label = 6;
|
|
1172
|
-
case 6:
|
|
1173
|
-
_state.label = 7;
|
|
1174
|
-
case 7:
|
|
1175
|
-
l.id = o, l.class = c + " " + d, l.minlen = i1.length || 1, e.setEdge(t.db.lookUpDomId(i1.start), t.db.lookUpDomId(i1.end), l, n);
|
|
1176
|
-
_state.label = 8;
|
|
1177
|
-
case 8:
|
|
1178
|
-
_iteratorNormalCompletion = true;
|
|
1179
|
-
return [
|
|
1180
|
-
3,
|
|
1181
|
-
2
|
|
1182
|
-
];
|
|
1183
|
-
case 9:
|
|
1184
|
-
return [
|
|
1185
|
-
3,
|
|
1186
|
-
12
|
|
1187
|
-
];
|
|
1188
|
-
case 10:
|
|
1189
|
-
err = _state.sent();
|
|
1190
|
-
_didIteratorError = true;
|
|
1191
|
-
_iteratorError = err;
|
|
1192
|
-
return [
|
|
1193
|
-
3,
|
|
1194
|
-
12
|
|
1195
|
-
];
|
|
1196
|
-
case 11:
|
|
1197
|
-
try {
|
|
1198
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1199
|
-
_iterator.return();
|
|
1200
|
-
}
|
|
1201
|
-
} finally{
|
|
1202
|
-
if (_didIteratorError) {
|
|
1203
|
-
throw _iteratorError;
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
return [
|
|
1207
|
-
7
|
|
1208
|
-
];
|
|
1209
|
-
case 12:
|
|
1210
|
-
return [
|
|
1211
|
-
2
|
|
1212
|
-
];
|
|
1213
|
-
}
|
|
1214
|
-
});
|
|
1215
|
-
});
|
|
1216
|
-
return function St(r, e, t) {
|
|
1217
|
-
return _ref.apply(this, arguments);
|
|
1218
|
-
};
|
|
1219
|
-
}(), xe = function xe(r, e) {
|
|
1220
|
-
return index.L.info("Extracting classes"), e.db.getClasses();
|
|
1221
|
-
}, be = function() {
|
|
1222
|
-
var _ref = _async_to_generator(function(r, e, t, n) {
|
|
1223
|
-
var _G, a, s, i, o, c, d, l, g, h, u, p, w, v, f, y, w1, k, I, _, w2, b, L, m, B, C, $, w3, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, b1, L1, m1;
|
|
1224
|
-
return _ts_generator(this, function(_state) {
|
|
1225
|
-
switch(_state.label){
|
|
1226
|
-
case 0:
|
|
1227
|
-
index.L.info("Drawing flowchart");
|
|
1228
|
-
_G = index.Vn(), a = _G.securityLevel, s = _G.flowchart;
|
|
1229
|
-
a === "sandbox" && (i = index.bt("#i" + e));
|
|
1230
|
-
o = a === "sandbox" ? index.bt(i.nodes()[0].contentDocument.body) : index.bt("body"), c = a === "sandbox" ? i.nodes()[0].contentDocument : document;
|
|
1231
|
-
d = n.db.getDirection();
|
|
1232
|
-
d === void 0 && (d = "TD");
|
|
1233
|
-
l = s.nodeSpacing || 50, g = s.rankSpacing || 50, h = new graph0ee63739.Ze({
|
|
1234
|
-
multigraph: true,
|
|
1235
|
-
compound: true
|
|
1236
|
-
}).setGraph({
|
|
1237
|
-
rankdir: d,
|
|
1238
|
-
nodesep: l,
|
|
1239
|
-
ranksep: g,
|
|
1240
|
-
marginx: 8,
|
|
1241
|
-
marginy: 8
|
|
1242
|
-
}).setDefaultEdgeLabel(function() {
|
|
1243
|
-
return {};
|
|
1244
|
-
});
|
|
1245
|
-
p = n.db.getSubGraphs();
|
|
1246
|
-
for(w = p.length - 1; w >= 0; w--)u = p[w], n.db.addVertex(u.id, u.title, "group", void 0, u.classes);
|
|
1247
|
-
v = n.db.getVertices();
|
|
1248
|
-
index.L.warn("Get vertices", v);
|
|
1249
|
-
f = n.db.getEdges();
|
|
1250
|
-
y = 0;
|
|
1251
|
-
for(y = p.length - 1; y >= 0; y--){
|
|
1252
|
-
u = p[y], stylesE75131e4.Z("cluster").append("text");
|
|
1253
|
-
for(w1 = 0; w1 < u.nodes.length; w1++)index.L.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));
|
|
1254
|
-
}
|
|
1255
|
-
return [
|
|
1256
|
-
4,
|
|
1257
|
-
kt(v, h, e, o, c, n)
|
|
1258
|
-
];
|
|
1259
|
-
case 1:
|
|
1260
|
-
_state.sent();
|
|
1261
|
-
return [
|
|
1262
|
-
4,
|
|
1263
|
-
St(f, h, n)
|
|
1264
|
-
];
|
|
1265
|
-
case 2:
|
|
1266
|
-
_state.sent();
|
|
1267
|
-
k = new he();
|
|
1268
|
-
we.addToRender(k), k.arrows().none = function(b, L, m, B) {
|
|
1269
|
-
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");
|
|
1270
|
-
stylesE75131e4.ee(C, m[B + "Style"]);
|
|
1271
|
-
}, k.arrows().normal = function(b, L) {
|
|
1272
|
-
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");
|
|
1273
|
-
};
|
|
1274
|
-
I = o.select('[id="'.concat(e, '"]')), _ = o.select("#" + e + " g");
|
|
1275
|
-
for(k(_, h), _.selectAll("g.node").attr("title", function() {
|
|
1276
|
-
return n.db.getTooltip(this.id);
|
|
1277
|
-
}), n.db.indexNodes("subGraph" + y), y = 0; y < p.length; y++)if (u = p[y], u.title !== "undefined") {
|
|
1278
|
-
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.bt(b[0]).select(".label");
|
|
1279
|
-
C.attr("transform", "translate(".concat(L + B / 2, ", ").concat(m + 14, ")")), C.attr("id", e + "Text");
|
|
1280
|
-
for($ = 0; $ < u.classes.length; $++)b[0].classList.add(u.classes[$]);
|
|
1281
|
-
}
|
|
1282
|
-
if (!s.htmlLabels) {
|
|
1283
|
-
w3 = c.querySelectorAll('[id="' + e + '"] .edgeLabel .label');
|
|
1284
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1285
|
-
try {
|
|
1286
|
-
for(_iterator = w3[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1287
|
-
b1 = _step.value;
|
|
1288
|
-
L1 = b1.getBBox(), m1 = c.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
1289
|
-
m1.setAttribute("rx", 0), m1.setAttribute("ry", 0), m1.setAttribute("width", L1.width), m1.setAttribute("height", L1.height), b1.insertBefore(m1, b1.firstChild);
|
|
1290
|
-
}
|
|
1291
|
-
} catch (err) {
|
|
1292
|
-
_didIteratorError = true;
|
|
1293
|
-
_iteratorError = err;
|
|
1294
|
-
} finally{
|
|
1295
|
-
try {
|
|
1296
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1297
|
-
_iterator.return();
|
|
1298
|
-
}
|
|
1299
|
-
} finally{
|
|
1300
|
-
if (_didIteratorError) {
|
|
1301
|
-
throw _iteratorError;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
index.k_(h, I, s.diagramPadding, s.useMaxWidth), Object.keys(v).forEach(function(w) {
|
|
1307
|
-
var b = v[w];
|
|
1308
|
-
if (b.link) {
|
|
1309
|
-
var L = o.select("#" + e + ' [id="' + n.db.lookUpDomId(w) + '"]');
|
|
1310
|
-
if (L) {
|
|
1311
|
-
var m = c.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
1312
|
-
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);
|
|
1313
|
-
var B = L.insert(function() {
|
|
1314
|
-
return m;
|
|
1315
|
-
}, ":first-child"), P = L.select(".label-container");
|
|
1316
|
-
P && B.append(function() {
|
|
1317
|
-
return P.node();
|
|
1318
|
-
});
|
|
1319
|
-
var C = L.select(".label");
|
|
1320
|
-
C && B.append(function() {
|
|
1321
|
-
return C.node();
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
return [
|
|
1327
|
-
2
|
|
1328
|
-
];
|
|
1329
|
-
}
|
|
1330
|
-
});
|
|
1331
|
-
});
|
|
1332
|
-
return function be(r, e, t, n) {
|
|
1333
|
-
return _ref.apply(this, arguments);
|
|
1334
|
-
};
|
|
1335
|
-
}(), ke = {
|
|
1336
|
-
setConf: me,
|
|
1337
|
-
addVertices: kt,
|
|
1338
|
-
addEdges: St,
|
|
1339
|
-
getClasses: xe,
|
|
1340
|
-
draw: be
|
|
1341
|
-
}, Ge = {
|
|
1342
|
-
parser: flowDb9a89ea33.Xe,
|
|
1343
|
-
db: flowDb9a89ea33.je,
|
|
1344
|
-
renderer: stylesE75131e4.we,
|
|
1345
|
-
styles: stylesE75131e4.he,
|
|
1346
|
-
init: function(r) {
|
|
1347
|
-
r.flowchart || (r.flowchart = {}), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, ke.setConf(r.flowchart), flowDb9a89ea33.je.clear(), flowDb9a89ea33.je.setGen("gen-1");
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
exports.diagram = Ge;
|