@digipair/skill-web-chatbot 0.3.0
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/SAP-icons.cjs.js +2489 -0
- package/SAP-icons.cjs2.js +2489 -0
- package/SAP-icons.esm.js +2482 -0
- package/SAP-icons.esm2.js +2482 -0
- package/arc-da8fd8d8.cjs.js +88 -0
- package/arc-da8fd8d8.esm.js +86 -0
- package/array-2ff2c7a6.cjs.js +7 -0
- package/array-2ff2c7a6.esm.js +5 -0
- package/c4Diagram-1bdb45a8.cjs.js +4613 -0
- package/c4Diagram-1bdb45a8.esm.js +4611 -0
- package/classDiagram-185c1a10.cjs.js +96 -0
- package/classDiagram-185c1a10.esm.js +94 -0
- package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
- package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
- package/constant-2fe7eae5.cjs.js +58 -0
- package/constant-2fe7eae5.esm.js +55 -0
- package/createText-94e3ebbf.cjs.js +2775 -0
- package/createText-94e3ebbf.esm.js +2773 -0
- package/debug.html +18 -0
- package/edges-558884ee.cjs.js +1450 -0
- package/edges-558884ee.esm.js +1436 -0
- package/erDiagram-97139f44.cjs.js +1949 -0
- package/erDiagram-97139f44.esm.js +1947 -0
- package/flowDb-a4faf166.cjs.js +6918 -0
- package/flowDb-a4faf166.esm.js +6914 -0
- package/flowDiagram-ccbbb58d.cjs.js +999 -0
- package/flowDiagram-ccbbb58d.esm.js +997 -0
- package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
- package/flowDiagram-v2-79ccd6da.esm.js +27 -0
- package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
- package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
- package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
- package/ganttDiagram-3eff0dd8.esm.js +3853 -0
- package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
- package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
- package/index-d0b453e2.cjs.js +609 -0
- package/index-d0b453e2.esm.js +607 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +17 -0
- package/index.cjs2.js +43619 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/index.esm2.js +43493 -0
- package/infoDiagram-9c10eab1.cjs.js +467 -0
- package/infoDiagram-9c10eab1.esm.js +465 -0
- package/init-f9637058.cjs.js +17 -0
- package/init-f9637058.esm.js +15 -0
- package/journeyDiagram-b6904cec.cjs.js +1292 -0
- package/journeyDiagram-b6904cec.esm.js +1290 -0
- package/layout-c5a37d74.cjs.js +2808 -0
- package/layout-c5a37d74.esm.js +2795 -0
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/engine.d.ts +27 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
- package/libs/skill-web-chatbot/src/index.d.ts +3 -0
- package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
- package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
- package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
- package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
- package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
- package/line-ce5d1152.cjs.js +34 -0
- package/line-ce5d1152.esm.js +32 -0
- package/linear-db016d0c.cjs.js +485 -0
- package/linear-db016d0c.esm.js +479 -0
- package/mindmap-definition-a9d0f378.cjs.js +20225 -0
- package/mindmap-definition-a9d0f378.esm.js +20223 -0
- package/ordinal-5695958c.cjs.js +331 -0
- package/ordinal-5695958c.esm.js +329 -0
- package/package.json +8 -0
- package/pieDiagram-fd367f1f.cjs.js +1157 -0
- package/pieDiagram-fd367f1f.esm.js +1155 -0
- package/quadrantDiagram-1763608a.cjs.js +2633 -0
- package/quadrantDiagram-1763608a.esm.js +2631 -0
- package/requirementDiagram-779d93b3.cjs.js +2451 -0
- package/requirementDiagram-779d93b3.esm.js +2449 -0
- package/sankeyDiagram-86a66bae.cjs.js +1850 -0
- package/sankeyDiagram-86a66bae.esm.js +1848 -0
- package/sequenceDiagram-169f11ec.cjs.js +4805 -0
- package/sequenceDiagram-169f11ec.esm.js +4803 -0
- package/stateDiagram-6f4bb19d.cjs.js +282 -0
- package/stateDiagram-6f4bb19d.esm.js +280 -0
- package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
- package/stateDiagram-v2-d72c79bd.esm.js +375 -0
- package/styles-3814544c.cjs.js +534 -0
- package/styles-3814544c.esm.js +524 -0
- package/styles-3fb7b9cf.cjs.js +2377 -0
- package/styles-3fb7b9cf.esm.js +2368 -0
- package/styles-659d7242.cjs.js +3919 -0
- package/styles-659d7242.esm.js +3915 -0
- package/svgDraw-af99a425.cjs.js +144 -0
- package/svgDraw-af99a425.esm.js +141 -0
- package/svgDrawCommon-ebe6c236.cjs.js +70 -0
- package/svgDrawCommon-ebe6c236.esm.js +62 -0
- package/timeline-definition-65183566.cjs.js +1394 -0
- package/timeline-definition-65183566.esm.js +1392 -0
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { L as Lt, I as It, x as xt } from './styles-659d7242.esm.js';
|
|
2
|
+
import { f as Oi, G as Gg, S as S$1, U as Ut, a as At, y as y0, g as gf, v as v0, B as Bn } from './index.esm2.js';
|
|
3
|
+
import { A } from './layout-c5a37d74.esm.js';
|
|
4
|
+
import { g as gt } from './index-d0b453e2.esm.js';
|
|
5
|
+
import './edges-558884ee.esm.js';
|
|
6
|
+
import './createText-94e3ebbf.esm.js';
|
|
7
|
+
import './svgDraw-af99a425.esm.js';
|
|
8
|
+
import './line-ce5d1152.esm.js';
|
|
9
|
+
import './array-2ff2c7a6.esm.js';
|
|
10
|
+
import './constant-2fe7eae5.esm.js';
|
|
11
|
+
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
|
+
try {
|
|
14
|
+
var info = gen[key](arg);
|
|
15
|
+
var value = info.value;
|
|
16
|
+
} catch (error) {
|
|
17
|
+
reject(error);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (info.done) {
|
|
21
|
+
resolve(value);
|
|
22
|
+
} else {
|
|
23
|
+
Promise.resolve(value).then(_next, _throw);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function _async_to_generator(fn) {
|
|
27
|
+
return function() {
|
|
28
|
+
var self = this, args = arguments;
|
|
29
|
+
return new Promise(function(resolve, reject) {
|
|
30
|
+
var gen = fn.apply(self, args);
|
|
31
|
+
function _next(value) {
|
|
32
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33
|
+
}
|
|
34
|
+
function _throw(err) {
|
|
35
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
36
|
+
}
|
|
37
|
+
_next(undefined);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function _define_property(obj, key, value) {
|
|
42
|
+
if (key in obj) {
|
|
43
|
+
Object.defineProperty(obj, key, {
|
|
44
|
+
value: value,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
obj[key] = value;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
function _object_spread(target) {
|
|
55
|
+
for(var i = 1; i < arguments.length; i++){
|
|
56
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
57
|
+
var ownKeys = Object.keys(source);
|
|
58
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
59
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
60
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
ownKeys.forEach(function(key) {
|
|
64
|
+
_define_property(target, key, source[key]);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return target;
|
|
68
|
+
}
|
|
69
|
+
function _ts_generator(thisArg, body) {
|
|
70
|
+
var f, y, t, g, _ = {
|
|
71
|
+
label: 0,
|
|
72
|
+
sent: function() {
|
|
73
|
+
if (t[0] & 1) throw t[1];
|
|
74
|
+
return t[1];
|
|
75
|
+
},
|
|
76
|
+
trys: [],
|
|
77
|
+
ops: []
|
|
78
|
+
};
|
|
79
|
+
return g = {
|
|
80
|
+
next: verb(0),
|
|
81
|
+
"throw": verb(1),
|
|
82
|
+
"return": verb(2)
|
|
83
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
84
|
+
return this;
|
|
85
|
+
}), g;
|
|
86
|
+
function verb(n) {
|
|
87
|
+
return function(v) {
|
|
88
|
+
return step([
|
|
89
|
+
n,
|
|
90
|
+
v
|
|
91
|
+
]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function step(op) {
|
|
95
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
96
|
+
while(_)try {
|
|
97
|
+
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;
|
|
98
|
+
if (y = 0, t) op = [
|
|
99
|
+
op[0] & 2,
|
|
100
|
+
t.value
|
|
101
|
+
];
|
|
102
|
+
switch(op[0]){
|
|
103
|
+
case 0:
|
|
104
|
+
case 1:
|
|
105
|
+
t = op;
|
|
106
|
+
break;
|
|
107
|
+
case 4:
|
|
108
|
+
_.label++;
|
|
109
|
+
return {
|
|
110
|
+
value: op[1],
|
|
111
|
+
done: false
|
|
112
|
+
};
|
|
113
|
+
case 5:
|
|
114
|
+
_.label++;
|
|
115
|
+
y = op[1];
|
|
116
|
+
op = [
|
|
117
|
+
0
|
|
118
|
+
];
|
|
119
|
+
continue;
|
|
120
|
+
case 7:
|
|
121
|
+
op = _.ops.pop();
|
|
122
|
+
_.trys.pop();
|
|
123
|
+
continue;
|
|
124
|
+
default:
|
|
125
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
126
|
+
_ = 0;
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
130
|
+
_.label = op[1];
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
134
|
+
_.label = t[1];
|
|
135
|
+
t = op;
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
if (t && _.label < t[2]) {
|
|
139
|
+
_.label = t[2];
|
|
140
|
+
_.ops.push(op);
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
if (t[2]) _.ops.pop();
|
|
144
|
+
_.trys.pop();
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
op = body.call(thisArg, _);
|
|
148
|
+
} catch (e) {
|
|
149
|
+
op = [
|
|
150
|
+
6,
|
|
151
|
+
e
|
|
152
|
+
];
|
|
153
|
+
y = 0;
|
|
154
|
+
} finally{
|
|
155
|
+
f = t = 0;
|
|
156
|
+
}
|
|
157
|
+
if (op[0] & 5) throw op[1];
|
|
158
|
+
return {
|
|
159
|
+
value: op[0] ? op[1] : void 0,
|
|
160
|
+
done: true
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
var S = function(o) {
|
|
165
|
+
return Bn.sanitizeText(o, Ut());
|
|
166
|
+
};
|
|
167
|
+
var v = {
|
|
168
|
+
dividerMargin: 10,
|
|
169
|
+
padding: 5,
|
|
170
|
+
textHeight: 10,
|
|
171
|
+
curve: void 0
|
|
172
|
+
};
|
|
173
|
+
var q = function q(o, t, p, n) {
|
|
174
|
+
var e = Object.keys(o);
|
|
175
|
+
S$1.info("keys:", e), S$1.info(o), e.forEach(function(s) {
|
|
176
|
+
var y, d;
|
|
177
|
+
var _ref;
|
|
178
|
+
var l = o[s], i = {
|
|
179
|
+
shape: "rect",
|
|
180
|
+
id: l.id,
|
|
181
|
+
domId: l.domId,
|
|
182
|
+
labelText: S(l.id),
|
|
183
|
+
labelStyle: "",
|
|
184
|
+
style: "fill: none; stroke: black",
|
|
185
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
186
|
+
padding: (_ref = (y = Ut().flowchart) == null ? void 0 : y.padding) !== null && _ref !== void 0 ? _ref : (d = Ut().class) == null ? void 0 : d.padding
|
|
187
|
+
};
|
|
188
|
+
t.setNode(l.id, i), I(l.classes, t, p, n, l.id), S$1.info("setNode", i);
|
|
189
|
+
});
|
|
190
|
+
}, I = function I(o, t, p, n, e) {
|
|
191
|
+
var s = Object.keys(o);
|
|
192
|
+
S$1.info("keys:", s), S$1.info(o), s.filter(function(l) {
|
|
193
|
+
return o[l].parent == e;
|
|
194
|
+
}).forEach(function(l) {
|
|
195
|
+
var u, m;
|
|
196
|
+
var _a_label, _ref;
|
|
197
|
+
var a = o[l], i = a.cssClasses.join(" "), y = {
|
|
198
|
+
labelStyle: "",
|
|
199
|
+
style: ""
|
|
200
|
+
}, d = (_a_label = a.label) !== null && _a_label !== void 0 ? _a_label : a.id, f = 0, h = "class_box", b = {
|
|
201
|
+
labelStyle: y.labelStyle,
|
|
202
|
+
shape: h,
|
|
203
|
+
labelText: S(d),
|
|
204
|
+
classData: a,
|
|
205
|
+
rx: f,
|
|
206
|
+
ry: f,
|
|
207
|
+
class: i,
|
|
208
|
+
style: y.style,
|
|
209
|
+
id: a.id,
|
|
210
|
+
domId: a.domId,
|
|
211
|
+
tooltip: n.db.getTooltip(a.id, e) || "",
|
|
212
|
+
haveCallback: a.haveCallback,
|
|
213
|
+
link: a.link,
|
|
214
|
+
width: a.type === "group" ? 500 : void 0,
|
|
215
|
+
type: a.type,
|
|
216
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
217
|
+
padding: (_ref = (u = Ut().flowchart) == null ? void 0 : u.padding) !== null && _ref !== void 0 ? _ref : (m = Ut().class) == null ? void 0 : m.padding
|
|
218
|
+
};
|
|
219
|
+
t.setNode(a.id, b), e && t.setParent(a.id, e), S$1.info("setNode", b);
|
|
220
|
+
});
|
|
221
|
+
}, F = function F(o, t, p, n) {
|
|
222
|
+
S$1.info(o), o.forEach(function(e, s) {
|
|
223
|
+
var m, x;
|
|
224
|
+
var _ref;
|
|
225
|
+
var l = e, a = "", i = {
|
|
226
|
+
labelStyle: "",
|
|
227
|
+
style: ""
|
|
228
|
+
}, y = l.text, d = 0, f = "note", h = {
|
|
229
|
+
labelStyle: i.labelStyle,
|
|
230
|
+
shape: f,
|
|
231
|
+
labelText: S(y),
|
|
232
|
+
noteData: l,
|
|
233
|
+
rx: d,
|
|
234
|
+
ry: d,
|
|
235
|
+
class: a,
|
|
236
|
+
style: i.style,
|
|
237
|
+
id: l.id,
|
|
238
|
+
domId: l.id,
|
|
239
|
+
tooltip: "",
|
|
240
|
+
type: "note",
|
|
241
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
242
|
+
padding: (_ref = (m = Ut().flowchart) == null ? void 0 : m.padding) !== null && _ref !== void 0 ? _ref : (x = Ut().class) == null ? void 0 : x.padding
|
|
243
|
+
};
|
|
244
|
+
if (t.setNode(l.id, h), S$1.info("setNode", h), !l.class || !(l.class in n)) return;
|
|
245
|
+
var b = p + s, u = {
|
|
246
|
+
id: "edgeNote".concat(b),
|
|
247
|
+
//Set relationship style and line type
|
|
248
|
+
classes: "relation",
|
|
249
|
+
pattern: "dotted",
|
|
250
|
+
// Set link type for rendering
|
|
251
|
+
arrowhead: "none",
|
|
252
|
+
//Set edge extra labels
|
|
253
|
+
startLabelRight: "",
|
|
254
|
+
endLabelLeft: "",
|
|
255
|
+
//Set relation arrow types
|
|
256
|
+
arrowTypeStart: "none",
|
|
257
|
+
arrowTypeEnd: "none",
|
|
258
|
+
style: "fill:none",
|
|
259
|
+
labelStyle: "",
|
|
260
|
+
curve: y0(v.curve, gf)
|
|
261
|
+
};
|
|
262
|
+
t.setEdge(l.id, l.class, u, b);
|
|
263
|
+
});
|
|
264
|
+
}, H = function H(o, t) {
|
|
265
|
+
var p = Ut().flowchart;
|
|
266
|
+
var n = 0;
|
|
267
|
+
o.forEach(function(e) {
|
|
268
|
+
var l;
|
|
269
|
+
n++;
|
|
270
|
+
var s = {
|
|
271
|
+
//Set relationship style and line type
|
|
272
|
+
classes: "relation",
|
|
273
|
+
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
274
|
+
id: "id" + n,
|
|
275
|
+
// Set link type for rendering
|
|
276
|
+
arrowhead: e.type === "arrow_open" ? "none" : "normal",
|
|
277
|
+
//Set edge extra labels
|
|
278
|
+
startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
|
|
279
|
+
endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
|
|
280
|
+
//Set relation arrow types
|
|
281
|
+
arrowTypeStart: D(e.relation.type1),
|
|
282
|
+
arrowTypeEnd: D(e.relation.type2),
|
|
283
|
+
style: "fill:none",
|
|
284
|
+
labelStyle: "",
|
|
285
|
+
curve: y0(p == null ? void 0 : p.curve, gf)
|
|
286
|
+
};
|
|
287
|
+
if (S$1.info(s, e), e.style !== void 0) {
|
|
288
|
+
var a = v0(e.style);
|
|
289
|
+
s.style = a.style, s.labelStyle = a.labelStyle;
|
|
290
|
+
}
|
|
291
|
+
var _ref;
|
|
292
|
+
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((_ref = (l = Ut().flowchart) == null ? void 0 : l.htmlLabels) !== null && _ref !== void 0 ? _ref : Ut().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(Bn.lineBreakRegex, "\n"), e.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, s, n);
|
|
293
|
+
});
|
|
294
|
+
}, V = function V(o) {
|
|
295
|
+
v = _object_spread({}, v, o);
|
|
296
|
+
}, W = function() {
|
|
297
|
+
var _ref = _async_to_generator(function(o, t, p, n) {
|
|
298
|
+
var _r_flowchart, e, s, _ref, _ref1, l, a, i, y, d, f, h, b, u, m, x, _ref2, T, M, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, w, L, g;
|
|
299
|
+
return _ts_generator(this, function(_state) {
|
|
300
|
+
switch(_state.label){
|
|
301
|
+
case 0:
|
|
302
|
+
S$1.info("Drawing class - ", t);
|
|
303
|
+
e = (_r_flowchart = Ut().flowchart) !== null && _r_flowchart !== void 0 ? _r_flowchart : Ut().class, s = Ut().securityLevel;
|
|
304
|
+
S$1.info("config:", e);
|
|
305
|
+
l = (_ref = e == null ? void 0 : e.nodeSpacing) !== null && _ref !== void 0 ? _ref : 50, a = (_ref1 = e == null ? void 0 : e.rankSpacing) !== null && _ref1 !== void 0 ? _ref1 : 50, i = new A({
|
|
306
|
+
multigraph: !0,
|
|
307
|
+
compound: !0
|
|
308
|
+
}).setGraph({
|
|
309
|
+
rankdir: n.db.getDirection(),
|
|
310
|
+
nodesep: l,
|
|
311
|
+
ranksep: a,
|
|
312
|
+
marginx: 8,
|
|
313
|
+
marginy: 8
|
|
314
|
+
}).setDefaultEdgeLabel(function() {
|
|
315
|
+
return {};
|
|
316
|
+
}), y = n.db.getNamespaces(), d = n.db.getClasses(), f = n.db.getRelations(), h = n.db.getNotes();
|
|
317
|
+
S$1.info(f), q(y, i, t, n), I(d, i, t, n), H(f, i), F(h, i, f.length + 1, d);
|
|
318
|
+
s === "sandbox" && (b = At("#i" + t));
|
|
319
|
+
u = s === "sandbox" ? At(b.nodes()[0].contentDocument.body) : At("body"), m = u.select('[id="'.concat(t, '"]')), x = u.select("#" + t + " g");
|
|
320
|
+
return [
|
|
321
|
+
4,
|
|
322
|
+
gt(x, i, [
|
|
323
|
+
"aggregation",
|
|
324
|
+
"extension",
|
|
325
|
+
"composition",
|
|
326
|
+
"dependency",
|
|
327
|
+
"lollipop"
|
|
328
|
+
], "classDiagram", t)
|
|
329
|
+
];
|
|
330
|
+
case 1:
|
|
331
|
+
if (_state.sent(), Oi.insertTitle(m, "classTitleText", (_ref2 = e == null ? void 0 : e.titleTopMargin) !== null && _ref2 !== void 0 ? _ref2 : 5, n.db.getDiagramTitle()), Gg(i, m, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
332
|
+
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
333
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
334
|
+
try {
|
|
335
|
+
for(_iterator = M[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
336
|
+
w = _step.value;
|
|
337
|
+
L = w.getBBox(), g = T.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
338
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", L.width), g.setAttribute("height", L.height), w.insertBefore(g, w.firstChild);
|
|
339
|
+
}
|
|
340
|
+
} catch (err) {
|
|
341
|
+
_didIteratorError = true;
|
|
342
|
+
_iteratorError = err;
|
|
343
|
+
} finally{
|
|
344
|
+
try {
|
|
345
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
346
|
+
_iterator.return();
|
|
347
|
+
}
|
|
348
|
+
} finally{
|
|
349
|
+
if (_didIteratorError) {
|
|
350
|
+
throw _iteratorError;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return [
|
|
356
|
+
2
|
|
357
|
+
];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
return function W(o, t, p, n) {
|
|
362
|
+
return _ref.apply(this, arguments);
|
|
363
|
+
};
|
|
364
|
+
}();
|
|
365
|
+
function D(o) {
|
|
366
|
+
var t;
|
|
367
|
+
switch(o){
|
|
368
|
+
case 0:
|
|
369
|
+
t = "aggregation";
|
|
370
|
+
break;
|
|
371
|
+
case 1:
|
|
372
|
+
t = "extension";
|
|
373
|
+
break;
|
|
374
|
+
case 2:
|
|
375
|
+
t = "composition";
|
|
376
|
+
break;
|
|
377
|
+
case 3:
|
|
378
|
+
t = "dependency";
|
|
379
|
+
break;
|
|
380
|
+
case 4:
|
|
381
|
+
t = "lollipop";
|
|
382
|
+
break;
|
|
383
|
+
default:
|
|
384
|
+
t = "none";
|
|
385
|
+
}
|
|
386
|
+
return t;
|
|
387
|
+
}
|
|
388
|
+
var J = {
|
|
389
|
+
setConf: V,
|
|
390
|
+
draw: W
|
|
391
|
+
}, se = {
|
|
392
|
+
parser: Lt,
|
|
393
|
+
db: It,
|
|
394
|
+
renderer: J,
|
|
395
|
+
styles: xt,
|
|
396
|
+
init: function(o) {
|
|
397
|
+
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, It.clear();
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
export { se as diagram };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var p = Math.PI, v = 2 * p, c = 1e-6, q = v - c;
|
|
4
|
+
function y() {
|
|
5
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
|
|
6
|
+
}
|
|
7
|
+
function C() {
|
|
8
|
+
return new y();
|
|
9
|
+
}
|
|
10
|
+
y.prototype = C.prototype = {
|
|
11
|
+
constructor: y,
|
|
12
|
+
moveTo: function moveTo(i, s) {
|
|
13
|
+
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +s);
|
|
14
|
+
},
|
|
15
|
+
closePath: function closePath() {
|
|
16
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
17
|
+
},
|
|
18
|
+
lineTo: function lineTo(i, s) {
|
|
19
|
+
this._ += "L" + (this._x1 = +i) + "," + (this._y1 = +s);
|
|
20
|
+
},
|
|
21
|
+
quadraticCurveTo: function quadraticCurveTo(i, s, t, h) {
|
|
22
|
+
this._ += "Q" + +i + "," + +s + "," + (this._x1 = +t) + "," + (this._y1 = +h);
|
|
23
|
+
},
|
|
24
|
+
bezierCurveTo: function bezierCurveTo(i, s, t, h, _, e) {
|
|
25
|
+
this._ += "C" + +i + "," + +s + "," + +t + "," + +h + "," + (this._x1 = +_) + "," + (this._y1 = +e);
|
|
26
|
+
},
|
|
27
|
+
arcTo: function arcTo(i, s, t, h, _) {
|
|
28
|
+
i = +i, s = +s, t = +t, h = +h, _ = +_;
|
|
29
|
+
var e = this._x1, r = this._y1, f = t - i, a = h - s, n = e - i, u = r - s, o = n * n + u * u;
|
|
30
|
+
if (_ < 0) throw new Error("negative radius: " + _);
|
|
31
|
+
if (this._x1 === null) this._ += "M" + (this._x1 = i) + "," + (this._y1 = s);
|
|
32
|
+
else if (o > c) if (!(Math.abs(u * f - a * n) > c) || !_) this._ += "L" + (this._x1 = i) + "," + (this._y1 = s);
|
|
33
|
+
else {
|
|
34
|
+
var M = t - e, l = h - r, d = f * f + a * a, g = M * M + l * l, b = Math.sqrt(d), T = Math.sqrt(o), A = _ * Math.tan((p - Math.acos((d + o - g) / (2 * b * T))) / 2), x = A / T, L = A / b;
|
|
35
|
+
Math.abs(x - 1) > c && (this._ += "L" + (i + x * n) + "," + (s + x * u)), this._ += "A" + _ + "," + _ + ",0,0," + +(u * M > n * l) + "," + (this._x1 = i + L * f) + "," + (this._y1 = s + L * a);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
arc: function arc(i, s, t, h, _, e) {
|
|
39
|
+
i = +i, s = +s, t = +t, e = !!e;
|
|
40
|
+
var r = t * Math.cos(h), f = t * Math.sin(h), a = i + r, n = s + f, u = 1 ^ e, o = e ? h - _ : _ - h;
|
|
41
|
+
if (t < 0) throw new Error("negative radius: " + t);
|
|
42
|
+
this._x1 === null ? this._ += "M" + a + "," + n : (Math.abs(this._x1 - a) > c || Math.abs(this._y1 - n) > c) && (this._ += "L" + a + "," + n), t && (o < 0 && (o = o % v + v), o > q ? this._ += "A" + t + "," + t + ",0,1," + u + "," + (i - r) + "," + (s - f) + "A" + t + "," + t + ",0,1," + u + "," + (this._x1 = a) + "," + (this._y1 = n) : o > c && (this._ += "A" + t + "," + t + ",0," + +(o >= p) + "," + u + "," + (this._x1 = i + t * Math.cos(_)) + "," + (this._y1 = s + t * Math.sin(_))));
|
|
43
|
+
},
|
|
44
|
+
rect: function rect(i, s, t, h) {
|
|
45
|
+
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +s) + "h" + +t + "v" + +h + "h" + -t + "Z";
|
|
46
|
+
},
|
|
47
|
+
toString: function toString() {
|
|
48
|
+
return this._;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function E(i) {
|
|
52
|
+
return function() {
|
|
53
|
+
return i;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
exports.C = C;
|
|
58
|
+
exports.E = E;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var p = Math.PI, v = 2 * p, c = 1e-6, q = v - c;
|
|
2
|
+
function y() {
|
|
3
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
|
|
4
|
+
}
|
|
5
|
+
function C() {
|
|
6
|
+
return new y();
|
|
7
|
+
}
|
|
8
|
+
y.prototype = C.prototype = {
|
|
9
|
+
constructor: y,
|
|
10
|
+
moveTo: function moveTo(i, s) {
|
|
11
|
+
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +s);
|
|
12
|
+
},
|
|
13
|
+
closePath: function closePath() {
|
|
14
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
15
|
+
},
|
|
16
|
+
lineTo: function lineTo(i, s) {
|
|
17
|
+
this._ += "L" + (this._x1 = +i) + "," + (this._y1 = +s);
|
|
18
|
+
},
|
|
19
|
+
quadraticCurveTo: function quadraticCurveTo(i, s, t, h) {
|
|
20
|
+
this._ += "Q" + +i + "," + +s + "," + (this._x1 = +t) + "," + (this._y1 = +h);
|
|
21
|
+
},
|
|
22
|
+
bezierCurveTo: function bezierCurveTo(i, s, t, h, _, e) {
|
|
23
|
+
this._ += "C" + +i + "," + +s + "," + +t + "," + +h + "," + (this._x1 = +_) + "," + (this._y1 = +e);
|
|
24
|
+
},
|
|
25
|
+
arcTo: function arcTo(i, s, t, h, _) {
|
|
26
|
+
i = +i, s = +s, t = +t, h = +h, _ = +_;
|
|
27
|
+
var e = this._x1, r = this._y1, f = t - i, a = h - s, n = e - i, u = r - s, o = n * n + u * u;
|
|
28
|
+
if (_ < 0) throw new Error("negative radius: " + _);
|
|
29
|
+
if (this._x1 === null) this._ += "M" + (this._x1 = i) + "," + (this._y1 = s);
|
|
30
|
+
else if (o > c) if (!(Math.abs(u * f - a * n) > c) || !_) this._ += "L" + (this._x1 = i) + "," + (this._y1 = s);
|
|
31
|
+
else {
|
|
32
|
+
var M = t - e, l = h - r, d = f * f + a * a, g = M * M + l * l, b = Math.sqrt(d), T = Math.sqrt(o), A = _ * Math.tan((p - Math.acos((d + o - g) / (2 * b * T))) / 2), x = A / T, L = A / b;
|
|
33
|
+
Math.abs(x - 1) > c && (this._ += "L" + (i + x * n) + "," + (s + x * u)), this._ += "A" + _ + "," + _ + ",0,0," + +(u * M > n * l) + "," + (this._x1 = i + L * f) + "," + (this._y1 = s + L * a);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
arc: function arc(i, s, t, h, _, e) {
|
|
37
|
+
i = +i, s = +s, t = +t, e = !!e;
|
|
38
|
+
var r = t * Math.cos(h), f = t * Math.sin(h), a = i + r, n = s + f, u = 1 ^ e, o = e ? h - _ : _ - h;
|
|
39
|
+
if (t < 0) throw new Error("negative radius: " + t);
|
|
40
|
+
this._x1 === null ? this._ += "M" + a + "," + n : (Math.abs(this._x1 - a) > c || Math.abs(this._y1 - n) > c) && (this._ += "L" + a + "," + n), t && (o < 0 && (o = o % v + v), o > q ? this._ += "A" + t + "," + t + ",0,1," + u + "," + (i - r) + "," + (s - f) + "A" + t + "," + t + ",0,1," + u + "," + (this._x1 = a) + "," + (this._y1 = n) : o > c && (this._ += "A" + t + "," + t + ",0," + +(o >= p) + "," + u + "," + (this._x1 = i + t * Math.cos(_)) + "," + (this._y1 = s + t * Math.sin(_))));
|
|
41
|
+
},
|
|
42
|
+
rect: function rect(i, s, t, h) {
|
|
43
|
+
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +s) + "h" + +t + "v" + +h + "h" + -t + "Z";
|
|
44
|
+
},
|
|
45
|
+
toString: function toString() {
|
|
46
|
+
return this._;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
function E(i) {
|
|
50
|
+
return function() {
|
|
51
|
+
return i;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { C, E };
|