@digipair/skill-web-chatbot 0.8.36 → 0.8.39
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
package/arc-da8fd8d8.cjs.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var constant2fe7eae5 = require('./constant-2fe7eae5.cjs.js');
|
|
4
|
-
var index = require('./index.cjs2.js');
|
|
5
|
-
|
|
6
|
-
function fn(l) {
|
|
7
|
-
return l.innerRadius;
|
|
8
|
-
}
|
|
9
|
-
function cn(l) {
|
|
10
|
-
return l.outerRadius;
|
|
11
|
-
}
|
|
12
|
-
function yn(l) {
|
|
13
|
-
return l.startAngle;
|
|
14
|
-
}
|
|
15
|
-
function gn(l) {
|
|
16
|
-
return l.endAngle;
|
|
17
|
-
}
|
|
18
|
-
function mn(l) {
|
|
19
|
-
return l && l.padAngle;
|
|
20
|
-
}
|
|
21
|
-
function pn(l, x, q, E, h, v, K, a) {
|
|
22
|
-
var s = q - l, n = E - x, m = K - h, i = a - v, r = i * s - m * n;
|
|
23
|
-
if (!(r * r < index.bo)) return r = (m * (x - v) - i * (l - h)) / r, [
|
|
24
|
-
l + r * s,
|
|
25
|
-
x + r * n
|
|
26
|
-
];
|
|
27
|
-
}
|
|
28
|
-
function U(l, x, q, E, h, v, K) {
|
|
29
|
-
var a = l - q, s = x - E, n = (K ? v : -v) / index.Ox(a * a + s * s), m = n * s, i = -n * a, r = l + m, f = x + i, c = q + m, w = E + i, o = (r + c) / 2, C = (f + w) / 2, p = c - r, g = w - f, A = p * p + g * g, F = h - v, P = r * w - c * f, G = (g < 0 ? -1 : 1) * index.Ox(index.Ax(0, F * F * A - P * P)), H = (P * g - p * G) / A, d = (-P * p - g * G) / A, R = (P * g + p * G) / A, T = (-P * p + g * G) / A, e = H - o, u = d - C, L = R - o, M = T - C;
|
|
30
|
-
return e * e + u * u > L * L + M * M && (H = R, d = T), {
|
|
31
|
-
cx: H,
|
|
32
|
-
cy: d,
|
|
33
|
-
x01: -m,
|
|
34
|
-
y01: -i,
|
|
35
|
-
x11: H * (h / F - 1),
|
|
36
|
-
y11: d * (h / F - 1)
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function hn() {
|
|
40
|
-
var l = fn, x = cn, q = constant2fe7eae5.E(0), E = null, h = yn, v = gn, K = mn, a = null;
|
|
41
|
-
function s() {
|
|
42
|
-
var n, m, i = +l.apply(this, arguments), r = +x.apply(this, arguments), f = h.apply(this, arguments) - index.To, c = v.apply(this, arguments) - index.To, w = index.Bx(c - f), o = c > f;
|
|
43
|
-
if (a || (a = n = constant2fe7eae5.C()), r < i && (m = r, r = i, i = m), !(r > index.bo)) a.moveTo(0, 0);
|
|
44
|
-
else if (w > index.Ix - index.bo) a.moveTo(r * index.Lx(f), r * index.Mx(f)), a.arc(0, 0, r, f, c, !o), i > index.bo && (a.moveTo(i * index.Lx(c), i * index.Mx(c)), a.arc(0, 0, i, c, f, o));
|
|
45
|
-
else {
|
|
46
|
-
var C = f, p = c, g = f, A = c, F = w, P = w, G = K.apply(this, arguments) / 2, H = G > index.bo && (E ? +E.apply(this, arguments) : index.Ox(i * i + r * r)), d = index.Ex(index.Bx(r - i) / 2, +q.apply(this, arguments)), R = d, T = d, e, u;
|
|
47
|
-
if (H > index.bo) {
|
|
48
|
-
var L = index.Dx(H / i * index.Mx(G)), M = index.Dx(H / r * index.Mx(G));
|
|
49
|
-
(F -= L * 2) > index.bo ? (L *= o ? 1 : -1, g += L, A -= L) : (F = 0, g = A = (f + c) / 2), (P -= M * 2) > index.bo ? (M *= o ? 1 : -1, C += M, p -= M) : (P = 0, C = p = (f + c) / 2);
|
|
50
|
-
}
|
|
51
|
-
var O = r * index.Lx(C), S = r * index.Mx(C), j = i * index.Lx(A), z = i * index.Mx(A);
|
|
52
|
-
if (d > index.bo) {
|
|
53
|
-
var B = r * index.Lx(p), Q = r * index.Mx(p), W = i * index.Lx(g), X = i * index.Mx(g), I;
|
|
54
|
-
if (w < index.Tn && (I = pn(O, S, W, X, B, Q, j, z))) {
|
|
55
|
-
var Y = O - I[0], Z = S - I[1], $ = B - I[0], k = Q - I[1], _ = 1 / index.Mx(index.$x((Y * $ + Z * k) / (index.Ox(Y * Y + Z * Z) * index.Ox($ * $ + k * k))) / 2), nn = index.Ox(I[0] * I[0] + I[1] * I[1]);
|
|
56
|
-
R = index.Ex(d, (i - nn) / (_ - 1)), T = index.Ex(d, (r - nn) / (_ + 1));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
P > index.bo ? T > index.bo ? (e = U(W, X, O, S, r, T, o), u = U(B, Q, j, z, r, T, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), T < d ? a.arc(e.cx, e.cy, T, index.Fx(e.y01, e.x01), index.Fx(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, T, index.Fx(e.y01, e.x01), index.Fx(e.y11, e.x11), !o), a.arc(0, 0, r, index.Fx(e.cy + e.y11, e.cx + e.x11), index.Fx(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, T, index.Fx(u.y11, u.x11), index.Fx(u.y01, u.x01), !o))) : (a.moveTo(O, S), a.arc(0, 0, r, C, p, !o)) : a.moveTo(O, S), !(i > index.bo) || !(F > index.bo) ? a.lineTo(j, z) : R > index.bo ? (e = U(j, z, B, Q, i, -R, o), u = U(O, S, W, X, i, -R, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), R < d ? a.arc(e.cx, e.cy, R, index.Fx(e.y01, e.x01), index.Fx(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, R, index.Fx(e.y01, e.x01), index.Fx(e.y11, e.x11), !o), a.arc(0, 0, i, index.Fx(e.cy + e.y11, e.cx + e.x11), index.Fx(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, R, index.Fx(u.y11, u.x11), index.Fx(u.y01, u.x01), !o))) : a.arc(0, 0, i, A, g, o);
|
|
60
|
-
}
|
|
61
|
-
if (a.closePath(), n) return a = null, n + "" || null;
|
|
62
|
-
}
|
|
63
|
-
return s.centroid = function() {
|
|
64
|
-
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, m = (+h.apply(this, arguments) + +v.apply(this, arguments)) / 2 - index.Tn / 2;
|
|
65
|
-
return [
|
|
66
|
-
index.Lx(m) * n,
|
|
67
|
-
index.Mx(m) * n
|
|
68
|
-
];
|
|
69
|
-
}, s.innerRadius = function(n) {
|
|
70
|
-
return arguments.length ? (l = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : l;
|
|
71
|
-
}, s.outerRadius = function(n) {
|
|
72
|
-
return arguments.length ? (x = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : x;
|
|
73
|
-
}, s.cornerRadius = function(n) {
|
|
74
|
-
return arguments.length ? (q = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : q;
|
|
75
|
-
}, s.padRadius = function(n) {
|
|
76
|
-
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : E;
|
|
77
|
-
}, s.startAngle = function(n) {
|
|
78
|
-
return arguments.length ? (h = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : h;
|
|
79
|
-
}, s.endAngle = function(n) {
|
|
80
|
-
return arguments.length ? (v = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : v;
|
|
81
|
-
}, s.padAngle = function(n) {
|
|
82
|
-
return arguments.length ? (K = typeof n == "function" ? n : constant2fe7eae5.E(+n), s) : K;
|
|
83
|
-
}, s.context = function(n) {
|
|
84
|
-
return arguments.length ? (a = n !== null && n !== void 0 ? n : null, s) : a;
|
|
85
|
-
}, s;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
exports.hn = hn;
|
package/arc-da8fd8d8.esm.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { E, C } from './constant-2fe7eae5.esm.js';
|
|
2
|
-
import { at as Tn, au as Lx, av as Mx, aw as To, ax as bo, as as Ix, ay as Ox, az as Ex, aA as Bx, aB as Fx, aC as Dx, aD as $x, aE as Ax } from './index.esm2.js';
|
|
3
|
-
|
|
4
|
-
function fn(l) {
|
|
5
|
-
return l.innerRadius;
|
|
6
|
-
}
|
|
7
|
-
function cn(l) {
|
|
8
|
-
return l.outerRadius;
|
|
9
|
-
}
|
|
10
|
-
function yn(l) {
|
|
11
|
-
return l.startAngle;
|
|
12
|
-
}
|
|
13
|
-
function gn(l) {
|
|
14
|
-
return l.endAngle;
|
|
15
|
-
}
|
|
16
|
-
function mn(l) {
|
|
17
|
-
return l && l.padAngle;
|
|
18
|
-
}
|
|
19
|
-
function pn(l, x, q, E, h, v, K, a) {
|
|
20
|
-
var s = q - l, n = E - x, m = K - h, i = a - v, r = i * s - m * n;
|
|
21
|
-
if (!(r * r < bo)) return r = (m * (x - v) - i * (l - h)) / r, [
|
|
22
|
-
l + r * s,
|
|
23
|
-
x + r * n
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
function U(l, x, q, E, h, v, K) {
|
|
27
|
-
var a = l - q, s = x - E, n = (K ? v : -v) / Ox(a * a + s * s), m = n * s, i = -n * a, r = l + m, f = x + i, c = q + m, w = E + i, o = (r + c) / 2, C = (f + w) / 2, p = c - r, g = w - f, A = p * p + g * g, F = h - v, P = r * w - c * f, G = (g < 0 ? -1 : 1) * Ox(Ax(0, F * F * A - P * P)), H = (P * g - p * G) / A, d = (-P * p - g * G) / A, R = (P * g + p * G) / A, T = (-P * p + g * G) / A, e = H - o, u = d - C, L = R - o, M = T - C;
|
|
28
|
-
return e * e + u * u > L * L + M * M && (H = R, d = T), {
|
|
29
|
-
cx: H,
|
|
30
|
-
cy: d,
|
|
31
|
-
x01: -m,
|
|
32
|
-
y01: -i,
|
|
33
|
-
x11: H * (h / F - 1),
|
|
34
|
-
y11: d * (h / F - 1)
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function hn() {
|
|
38
|
-
var l = fn, x = cn, q = E(0), E$1 = null, h = yn, v = gn, K = mn, a = null;
|
|
39
|
-
function s() {
|
|
40
|
-
var n, m, i = +l.apply(this, arguments), r = +x.apply(this, arguments), f = h.apply(this, arguments) - To, c = v.apply(this, arguments) - To, w = Bx(c - f), o = c > f;
|
|
41
|
-
if (a || (a = n = C()), r < i && (m = r, r = i, i = m), !(r > bo)) a.moveTo(0, 0);
|
|
42
|
-
else if (w > Ix - bo) a.moveTo(r * Lx(f), r * Mx(f)), a.arc(0, 0, r, f, c, !o), i > bo && (a.moveTo(i * Lx(c), i * Mx(c)), a.arc(0, 0, i, c, f, o));
|
|
43
|
-
else {
|
|
44
|
-
var C$1 = f, p = c, g = f, A = c, F = w, P = w, G = K.apply(this, arguments) / 2, H = G > bo && (E$1 ? +E$1.apply(this, arguments) : Ox(i * i + r * r)), d = Ex(Bx(r - i) / 2, +q.apply(this, arguments)), R = d, T = d, e, u;
|
|
45
|
-
if (H > bo) {
|
|
46
|
-
var L = Dx(H / i * Mx(G)), M = Dx(H / r * Mx(G));
|
|
47
|
-
(F -= L * 2) > bo ? (L *= o ? 1 : -1, g += L, A -= L) : (F = 0, g = A = (f + c) / 2), (P -= M * 2) > bo ? (M *= o ? 1 : -1, C$1 += M, p -= M) : (P = 0, C$1 = p = (f + c) / 2);
|
|
48
|
-
}
|
|
49
|
-
var O = r * Lx(C$1), S = r * Mx(C$1), j = i * Lx(A), z = i * Mx(A);
|
|
50
|
-
if (d > bo) {
|
|
51
|
-
var B = r * Lx(p), Q = r * Mx(p), W = i * Lx(g), X = i * Mx(g), I;
|
|
52
|
-
if (w < Tn && (I = pn(O, S, W, X, B, Q, j, z))) {
|
|
53
|
-
var Y = O - I[0], Z = S - I[1], $ = B - I[0], k = Q - I[1], _ = 1 / Mx($x((Y * $ + Z * k) / (Ox(Y * Y + Z * Z) * Ox($ * $ + k * k))) / 2), nn = Ox(I[0] * I[0] + I[1] * I[1]);
|
|
54
|
-
R = Ex(d, (i - nn) / (_ - 1)), T = Ex(d, (r - nn) / (_ + 1));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
P > bo ? T > bo ? (e = U(W, X, O, S, r, T, o), u = U(B, Q, j, z, r, T, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), T < d ? a.arc(e.cx, e.cy, T, Fx(e.y01, e.x01), Fx(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, T, Fx(e.y01, e.x01), Fx(e.y11, e.x11), !o), a.arc(0, 0, r, Fx(e.cy + e.y11, e.cx + e.x11), Fx(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, T, Fx(u.y11, u.x11), Fx(u.y01, u.x01), !o))) : (a.moveTo(O, S), a.arc(0, 0, r, C$1, p, !o)) : a.moveTo(O, S), !(i > bo) || !(F > bo) ? a.lineTo(j, z) : R > bo ? (e = U(j, z, B, Q, i, -R, o), u = U(O, S, W, X, i, -R, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), R < d ? a.arc(e.cx, e.cy, R, Fx(e.y01, e.x01), Fx(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, R, Fx(e.y01, e.x01), Fx(e.y11, e.x11), !o), a.arc(0, 0, i, Fx(e.cy + e.y11, e.cx + e.x11), Fx(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, R, Fx(u.y11, u.x11), Fx(u.y01, u.x01), !o))) : a.arc(0, 0, i, A, g, o);
|
|
58
|
-
}
|
|
59
|
-
if (a.closePath(), n) return a = null, n + "" || null;
|
|
60
|
-
}
|
|
61
|
-
return s.centroid = function() {
|
|
62
|
-
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, m = (+h.apply(this, arguments) + +v.apply(this, arguments)) / 2 - Tn / 2;
|
|
63
|
-
return [
|
|
64
|
-
Lx(m) * n,
|
|
65
|
-
Mx(m) * n
|
|
66
|
-
];
|
|
67
|
-
}, s.innerRadius = function(n) {
|
|
68
|
-
return arguments.length ? (l = typeof n == "function" ? n : E(+n), s) : l;
|
|
69
|
-
}, s.outerRadius = function(n) {
|
|
70
|
-
return arguments.length ? (x = typeof n == "function" ? n : E(+n), s) : x;
|
|
71
|
-
}, s.cornerRadius = function(n) {
|
|
72
|
-
return arguments.length ? (q = typeof n == "function" ? n : E(+n), s) : q;
|
|
73
|
-
}, s.padRadius = function(n) {
|
|
74
|
-
return arguments.length ? (E$1 = n == null ? null : typeof n == "function" ? n : E(+n), s) : E$1;
|
|
75
|
-
}, s.startAngle = function(n) {
|
|
76
|
-
return arguments.length ? (h = typeof n == "function" ? n : E(+n), s) : h;
|
|
77
|
-
}, s.endAngle = function(n) {
|
|
78
|
-
return arguments.length ? (v = typeof n == "function" ? n : E(+n), s) : v;
|
|
79
|
-
}, s.padAngle = function(n) {
|
|
80
|
-
return arguments.length ? (K = typeof n == "function" ? n : E(+n), s) : K;
|
|
81
|
-
}, s.context = function(n) {
|
|
82
|
-
return arguments.length ? (a = n !== null && n !== void 0 ? n : null, s) : a;
|
|
83
|
-
}, s;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { hn as h };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles659d7242 = require('./styles-659d7242.cjs.js');
|
|
4
|
-
var index = require('./index.cjs2.js');
|
|
5
|
-
var layoutC5a37d74 = require('./layout-c5a37d74.cjs.js');
|
|
6
|
-
var svgDrawAf99a425 = require('./svgDraw-af99a425.cjs.js');
|
|
7
|
-
require('./line-ce5d1152.cjs.js');
|
|
8
|
-
require('./array-2ff2c7a6.cjs.js');
|
|
9
|
-
require('./constant-2fe7eae5.cjs.js');
|
|
10
|
-
|
|
11
|
-
var h = {};
|
|
12
|
-
var g = 20, p = function p(r) {
|
|
13
|
-
var o = Object.entries(h).find(function(k) {
|
|
14
|
-
return k[1].label === r;
|
|
15
|
-
});
|
|
16
|
-
if (o) return o[0];
|
|
17
|
-
}, D = function D(r) {
|
|
18
|
-
r.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), r.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), r.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
19
|
-
}, $ = function $(r, o, k, a) {
|
|
20
|
-
var c = index.Ut().class;
|
|
21
|
-
h = {}, index.S.info("Rendering diagram " + r);
|
|
22
|
-
var L = index.Ut().securityLevel;
|
|
23
|
-
var y;
|
|
24
|
-
L === "sandbox" && (y = index.At("#i" + o));
|
|
25
|
-
var x = L === "sandbox" ? index.At(y.nodes()[0].contentDocument.body) : index.At("body"), n = x.select("[id='".concat(o, "']"));
|
|
26
|
-
D(n);
|
|
27
|
-
var e = new layoutC5a37d74.A({
|
|
28
|
-
multigraph: !0
|
|
29
|
-
});
|
|
30
|
-
e.setGraph({
|
|
31
|
-
isMultiGraph: !0
|
|
32
|
-
}), e.setDefaultEdgeLabel(function() {
|
|
33
|
-
return {};
|
|
34
|
-
});
|
|
35
|
-
var u = a.db.getClasses(), N = Object.keys(u);
|
|
36
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
37
|
-
try {
|
|
38
|
-
for(var _iterator = N[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
39
|
-
var t = _step.value;
|
|
40
|
-
var s = u[t], i = svgDrawAf99a425.R.drawClass(n, s, c, a);
|
|
41
|
-
h[i.id] = i, e.setNode(i.id, i), index.S.info("Org height: " + i.height);
|
|
42
|
-
}
|
|
43
|
-
} catch (err) {
|
|
44
|
-
_didIteratorError = true;
|
|
45
|
-
_iteratorError = err;
|
|
46
|
-
} finally{
|
|
47
|
-
try {
|
|
48
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
49
|
-
_iterator.return();
|
|
50
|
-
}
|
|
51
|
-
} finally{
|
|
52
|
-
if (_didIteratorError) {
|
|
53
|
-
throw _iteratorError;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
a.db.getRelations().forEach(function(t) {
|
|
58
|
-
index.S.info("tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)), e.setEdge(p(t.id1), p(t.id2), {
|
|
59
|
-
relation: t
|
|
60
|
-
}, t.title || "DEFAULT");
|
|
61
|
-
}), a.db.getNotes().forEach(function(t) {
|
|
62
|
-
index.S.debug("Adding note: ".concat(JSON.stringify(t)));
|
|
63
|
-
var s = svgDrawAf99a425.R.drawNote(n, t, c, a);
|
|
64
|
-
h[s.id] = s, e.setNode(s.id, s), t.class && t.class in u && e.setEdge(t.id, p(t.class), {
|
|
65
|
-
relation: {
|
|
66
|
-
id1: t.id,
|
|
67
|
-
id2: t.class,
|
|
68
|
-
relation: {
|
|
69
|
-
type1: "none",
|
|
70
|
-
type2: "none",
|
|
71
|
-
lineType: 10
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, "DEFAULT");
|
|
75
|
-
}), layoutC5a37d74.zs(e), e.nodes().forEach(function(t) {
|
|
76
|
-
t !== void 0 && e.node(t) !== void 0 && (index.S.debug("Node " + t + ": " + JSON.stringify(e.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr("transform", "translate(" + (e.node(t).x - e.node(t).width / 2) + "," + (e.node(t).y - e.node(t).height / 2) + " )"));
|
|
77
|
-
}), e.edges().forEach(function(t) {
|
|
78
|
-
t !== void 0 && e.edge(t) !== void 0 && (index.S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t))), svgDrawAf99a425.R.drawEdge(n, e.edge(t), e.edge(t).relation, c, a));
|
|
79
|
-
});
|
|
80
|
-
var f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
81
|
-
index.Yg(n, b, E, c.useMaxWidth);
|
|
82
|
-
var w = "".concat(f.x - g, " ").concat(f.y - g, " ").concat(E, " ").concat(b);
|
|
83
|
-
index.S.debug("viewBox ".concat(w)), n.attr("viewBox", w);
|
|
84
|
-
}, B = {
|
|
85
|
-
draw: $
|
|
86
|
-
}, V = {
|
|
87
|
-
parser: styles659d7242.Lt,
|
|
88
|
-
db: styles659d7242.It,
|
|
89
|
-
renderer: B,
|
|
90
|
-
styles: styles659d7242.xt,
|
|
91
|
-
init: function(r) {
|
|
92
|
-
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, styles659d7242.It.clear();
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
exports.diagram = V;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { L as Lt, I as It, x as xt } from './styles-659d7242.esm.js';
|
|
2
|
-
import { U as Ut, S, a as At, Y as Yg } from './index.esm2.js';
|
|
3
|
-
import { A, z as zs } from './layout-c5a37d74.esm.js';
|
|
4
|
-
import { R } from './svgDraw-af99a425.esm.js';
|
|
5
|
-
import './line-ce5d1152.esm.js';
|
|
6
|
-
import './array-2ff2c7a6.esm.js';
|
|
7
|
-
import './constant-2fe7eae5.esm.js';
|
|
8
|
-
|
|
9
|
-
var h = {};
|
|
10
|
-
var g = 20, p = function p(r) {
|
|
11
|
-
var o = Object.entries(h).find(function(k) {
|
|
12
|
-
return k[1].label === r;
|
|
13
|
-
});
|
|
14
|
-
if (o) return o[0];
|
|
15
|
-
}, D = function D(r) {
|
|
16
|
-
r.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), r.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), r.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
17
|
-
}, $ = function $(r, o, k, a) {
|
|
18
|
-
var c = Ut().class;
|
|
19
|
-
h = {}, S.info("Rendering diagram " + r);
|
|
20
|
-
var L = Ut().securityLevel;
|
|
21
|
-
var y;
|
|
22
|
-
L === "sandbox" && (y = At("#i" + o));
|
|
23
|
-
var x = L === "sandbox" ? At(y.nodes()[0].contentDocument.body) : At("body"), n = x.select("[id='".concat(o, "']"));
|
|
24
|
-
D(n);
|
|
25
|
-
var e = new A({
|
|
26
|
-
multigraph: !0
|
|
27
|
-
});
|
|
28
|
-
e.setGraph({
|
|
29
|
-
isMultiGraph: !0
|
|
30
|
-
}), e.setDefaultEdgeLabel(function() {
|
|
31
|
-
return {};
|
|
32
|
-
});
|
|
33
|
-
var u = a.db.getClasses(), N = Object.keys(u);
|
|
34
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
35
|
-
try {
|
|
36
|
-
for(var _iterator = N[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
37
|
-
var t = _step.value;
|
|
38
|
-
var s = u[t], i = R.drawClass(n, s, c, a);
|
|
39
|
-
h[i.id] = i, e.setNode(i.id, i), S.info("Org height: " + i.height);
|
|
40
|
-
}
|
|
41
|
-
} catch (err) {
|
|
42
|
-
_didIteratorError = true;
|
|
43
|
-
_iteratorError = err;
|
|
44
|
-
} finally{
|
|
45
|
-
try {
|
|
46
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47
|
-
_iterator.return();
|
|
48
|
-
}
|
|
49
|
-
} finally{
|
|
50
|
-
if (_didIteratorError) {
|
|
51
|
-
throw _iteratorError;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
a.db.getRelations().forEach(function(t) {
|
|
56
|
-
S.info("tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)), e.setEdge(p(t.id1), p(t.id2), {
|
|
57
|
-
relation: t
|
|
58
|
-
}, t.title || "DEFAULT");
|
|
59
|
-
}), a.db.getNotes().forEach(function(t) {
|
|
60
|
-
S.debug("Adding note: ".concat(JSON.stringify(t)));
|
|
61
|
-
var s = R.drawNote(n, t, c, a);
|
|
62
|
-
h[s.id] = s, e.setNode(s.id, s), t.class && t.class in u && e.setEdge(t.id, p(t.class), {
|
|
63
|
-
relation: {
|
|
64
|
-
id1: t.id,
|
|
65
|
-
id2: t.class,
|
|
66
|
-
relation: {
|
|
67
|
-
type1: "none",
|
|
68
|
-
type2: "none",
|
|
69
|
-
lineType: 10
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, "DEFAULT");
|
|
73
|
-
}), zs(e), e.nodes().forEach(function(t) {
|
|
74
|
-
t !== void 0 && e.node(t) !== void 0 && (S.debug("Node " + t + ": " + JSON.stringify(e.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr("transform", "translate(" + (e.node(t).x - e.node(t).width / 2) + "," + (e.node(t).y - e.node(t).height / 2) + " )"));
|
|
75
|
-
}), e.edges().forEach(function(t) {
|
|
76
|
-
t !== void 0 && e.edge(t) !== void 0 && (S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t))), R.drawEdge(n, e.edge(t), e.edge(t).relation, c, a));
|
|
77
|
-
});
|
|
78
|
-
var f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
79
|
-
Yg(n, b, E, c.useMaxWidth);
|
|
80
|
-
var w = "".concat(f.x - g, " ").concat(f.y - g, " ").concat(E, " ").concat(b);
|
|
81
|
-
S.debug("viewBox ".concat(w)), n.attr("viewBox", w);
|
|
82
|
-
}, B = {
|
|
83
|
-
draw: $
|
|
84
|
-
}, V = {
|
|
85
|
-
parser: Lt,
|
|
86
|
-
db: It,
|
|
87
|
-
renderer: B,
|
|
88
|
-
styles: xt,
|
|
89
|
-
init: function(r) {
|
|
90
|
-
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, It.clear();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export { V as diagram };
|
package/constant-2fe7eae5.cjs.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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;
|
package/constant-2fe7eae5.esm.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
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 };
|