lowcoder-comps 0.0.31 → 0.0.33
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/00bb478a.js +1102 -0
- package/02bef5a4.js +505 -0
- package/057d2a44.js +1127 -0
- package/0964fcc6.js +34 -0
- package/14220e98.js +1276 -0
- package/1c074fe4.js +25 -0
- package/250a6954.js +804 -0
- package/256b619e.js +92 -0
- package/2cd27cf0.js +2501 -0
- package/2f064957.js +64 -0
- package/2ff2c7a6.js +6 -0
- package/2ff7471d.js +9 -0
- package/30c4916b.js +8 -0
- package/36ec7270.js +915 -0
- package/38c14832.js +960 -0
- package/3ae34bed.js +819 -0
- package/3e2939fa.js +237 -0
- package/3f5f874f.js +86 -0
- package/3fb86fb9.js +447 -0
- package/415177f9.js +1579 -0
- package/47848c42.js +11636 -0
- package/4c6a0ece.js +162535 -0
- package/4db8e48b.js +2284 -0
- package/531065f1.js +1089 -0
- package/5a398ea8.js +881 -0
- package/5ab1614c.js +268 -0
- package/65bbb6ae.js +1536 -0
- package/777cd15c.js +48428 -0
- package/7dacfa82.js +220 -0
- package/800cf0d0.js +796 -0
- package/92e85b65.js +65 -0
- package/93e9bd3a.js +391 -0
- package/98622dfa.js +16582 -0
- package/a2e74e62.js +2967 -0
- package/a61c3bd3.js +5 -0
- package/b8f48ff4.js +769 -0
- package/bd0f5f65.js +319 -0
- package/bf4428f5.js +1269 -0
- package/cb1972f7.js +455 -0
- package/dfc10c94.js +818 -0
- package/ed2c9753.js +208 -0
- package/ef2833e6.js +927 -0
- package/f9637058.js +16 -0
- package/f9e72519.js +1284 -0
- package/fe063d15.js +19339 -0
- package/index.js +5 -0
- package/package.json +30 -3
- package/README.md +0 -120
- package/index.html +0 -26
- package/index.tsx +0 -21
- package/jest.config.js +0 -6
- package/src/__test__/allComp.test.tsx +0 -61
- package/src/app-env.d.ts +0 -3
- package/src/comps/calendarComp/calendarComp.tsx +0 -633
- package/src/comps/calendarComp/calendarConstants.tsx +0 -1048
- package/src/comps/calendarComp/errorBoundary.tsx +0 -30
- package/src/comps/chartComp/chartComp.tsx +0 -442
- package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +0 -51
- package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +0 -307
- package/src/comps/chartComp/chartConfigs/chartUrls.tsx +0 -9
- package/src/comps/chartComp/chartConfigs/legendConfig.tsx +0 -55
- package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +0 -96
- package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +0 -83
- package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +0 -62
- package/src/comps/chartComp/chartConstants.tsx +0 -299
- package/src/comps/chartComp/chartPropertyView.tsx +0 -235
- package/src/comps/chartComp/chartUtils.ts +0 -291
- package/src/comps/chartComp/reactEcharts/core.tsx +0 -194
- package/src/comps/chartComp/reactEcharts/index.ts +0 -21
- package/src/comps/chartComp/reactEcharts/types.ts +0 -76
- package/src/comps/chartComp/seriesComp.tsx +0 -119
- package/src/comps/imageEditorComp/imageEditorClass.tsx +0 -52
- package/src/comps/imageEditorComp/imageEditorConstants.tsx +0 -109
- package/src/comps/imageEditorComp/index.tsx +0 -184
- package/src/comps/mermaidComp/index.tsx +0 -44
- package/src/comps/mermaidComp/mermaid.tsx +0 -29
- package/src/global.ts +0 -1
- package/src/i18n/comps/index.tsx +0 -29
- package/src/i18n/comps/locales/en.ts +0 -163
- package/src/i18n/comps/locales/enObj.tsx +0 -198
- package/src/i18n/comps/locales/index.ts +0 -7
- package/src/i18n/comps/locales/types.tsx +0 -10
- package/src/i18n/comps/locales/zh.ts +0 -156
- package/src/i18n/comps/locales/zhObj.tsx +0 -4
- package/src/index.ts +0 -11
- package/tsconfig.json +0 -22
- package/vite.config.js +0 -10
package/3e2939fa.js
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var H = Object.defineProperty;
|
|
2
|
+
var A = Object.getOwnPropertySymbols;
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var $ = (l, t, n) => t in l ? H(l, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[t] = n, k = (l, t) => {
|
|
5
|
+
for (var n in t || (t = {}))
|
|
6
|
+
V.call(t, n) && $(l, n, t[n]);
|
|
7
|
+
if (A)
|
|
8
|
+
for (var n of A(t))
|
|
9
|
+
W.call(t, n) && $(l, n, t[n]);
|
|
10
|
+
return l;
|
|
11
|
+
};
|
|
12
|
+
var I = (l, t, n) => new Promise((i, e) => {
|
|
13
|
+
var c = (o) => {
|
|
14
|
+
try {
|
|
15
|
+
r(n.next(o));
|
|
16
|
+
} catch (a) {
|
|
17
|
+
e(a);
|
|
18
|
+
}
|
|
19
|
+
}, s = (o) => {
|
|
20
|
+
try {
|
|
21
|
+
r(n.throw(o));
|
|
22
|
+
} catch (a) {
|
|
23
|
+
e(a);
|
|
24
|
+
}
|
|
25
|
+
}, r = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(c, s);
|
|
26
|
+
r((n = n.apply(l, t)).next());
|
|
27
|
+
});
|
|
28
|
+
import { p as J, d as M, s as K } from "./531065f1.js";
|
|
29
|
+
import { l as p, e as d, j as S, C as Q, v as U, q as B, u as G, p as q, m as z } from "./4c6a0ece.js";
|
|
30
|
+
import { G as X } from "./5a398ea8.js";
|
|
31
|
+
import { r as Y } from "./93e9bd3a.js";
|
|
32
|
+
import "./65bbb6ae.js";
|
|
33
|
+
import "./30c4916b.js";
|
|
34
|
+
import "./00bb478a.js";
|
|
35
|
+
import "./a2e74e62.js";
|
|
36
|
+
import "./0964fcc6.js";
|
|
37
|
+
import "./2ff2c7a6.js";
|
|
38
|
+
import "./256b619e.js";
|
|
39
|
+
const L = (l) => z.sanitizeText(l, d());
|
|
40
|
+
let T = {
|
|
41
|
+
dividerMargin: 10,
|
|
42
|
+
padding: 5,
|
|
43
|
+
textHeight: 10,
|
|
44
|
+
curve: void 0
|
|
45
|
+
};
|
|
46
|
+
const Z = function(l, t, n, i) {
|
|
47
|
+
const e = Object.keys(l);
|
|
48
|
+
p.info("keys:", e), p.info(l), e.forEach(function(c) {
|
|
49
|
+
var y;
|
|
50
|
+
var s, r;
|
|
51
|
+
const o = l[c], f = {
|
|
52
|
+
shape: "rect",
|
|
53
|
+
id: o.id,
|
|
54
|
+
domId: o.domId,
|
|
55
|
+
labelText: L(o.id),
|
|
56
|
+
labelStyle: "",
|
|
57
|
+
style: "fill: none; stroke: black",
|
|
58
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
59
|
+
padding: (y = (s = d().flowchart) == null ? void 0 : s.padding) != null ? y : (r = d().class) == null ? void 0 : r.padding
|
|
60
|
+
};
|
|
61
|
+
t.setNode(o.id, f), P(o.classes, t, n, i, o.id), p.info("setNode", f);
|
|
62
|
+
});
|
|
63
|
+
}, P = function(l, t, n, i, e) {
|
|
64
|
+
const c = Object.keys(l);
|
|
65
|
+
p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent == e).forEach(function(s) {
|
|
66
|
+
var x, m;
|
|
67
|
+
var r, o;
|
|
68
|
+
const a = l[s], f = a.cssClasses.join(" "), y = B(a.styles), v = (x = a.label) != null ? x : a.id, b = 0, h = "class_box", u = {
|
|
69
|
+
labelStyle: y.labelStyle,
|
|
70
|
+
shape: h,
|
|
71
|
+
labelText: L(v),
|
|
72
|
+
classData: a,
|
|
73
|
+
rx: b,
|
|
74
|
+
ry: b,
|
|
75
|
+
class: f,
|
|
76
|
+
style: y.style,
|
|
77
|
+
id: a.id,
|
|
78
|
+
domId: a.domId,
|
|
79
|
+
tooltip: i.db.getTooltip(a.id, e) || "",
|
|
80
|
+
haveCallback: a.haveCallback,
|
|
81
|
+
link: a.link,
|
|
82
|
+
width: a.type === "group" ? 500 : void 0,
|
|
83
|
+
type: a.type,
|
|
84
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
85
|
+
padding: (m = (r = d().flowchart) == null ? void 0 : r.padding) != null ? m : (o = d().class) == null ? void 0 : o.padding
|
|
86
|
+
};
|
|
87
|
+
t.setNode(a.id, u), e && t.setParent(a.id, e), p.info("setNode", u);
|
|
88
|
+
});
|
|
89
|
+
}, j = function(l, t, n, i) {
|
|
90
|
+
p.info(l), l.forEach(function(e, c) {
|
|
91
|
+
var m;
|
|
92
|
+
var s, r;
|
|
93
|
+
const o = e, a = "", f = { labelStyle: "", style: "" }, y = o.text, v = 0, b = "note", h = {
|
|
94
|
+
labelStyle: f.labelStyle,
|
|
95
|
+
shape: b,
|
|
96
|
+
labelText: L(y),
|
|
97
|
+
noteData: o,
|
|
98
|
+
rx: v,
|
|
99
|
+
ry: v,
|
|
100
|
+
class: a,
|
|
101
|
+
style: f.style,
|
|
102
|
+
id: o.id,
|
|
103
|
+
domId: o.id,
|
|
104
|
+
tooltip: "",
|
|
105
|
+
type: "note",
|
|
106
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
107
|
+
padding: (m = (s = d().flowchart) == null ? void 0 : s.padding) != null ? m : (r = d().class) == null ? void 0 : r.padding
|
|
108
|
+
};
|
|
109
|
+
if (t.setNode(o.id, h), p.info("setNode", h), !o.class || !(o.class in i))
|
|
110
|
+
return;
|
|
111
|
+
const u = n + c, x = {
|
|
112
|
+
id: `edgeNote${u}`,
|
|
113
|
+
//Set relationship style and line type
|
|
114
|
+
classes: "relation",
|
|
115
|
+
pattern: "dotted",
|
|
116
|
+
// Set link type for rendering
|
|
117
|
+
arrowhead: "none",
|
|
118
|
+
//Set edge extra labels
|
|
119
|
+
startLabelRight: "",
|
|
120
|
+
endLabelLeft: "",
|
|
121
|
+
//Set relation arrow types
|
|
122
|
+
arrowTypeStart: "none",
|
|
123
|
+
arrowTypeEnd: "none",
|
|
124
|
+
style: "fill:none",
|
|
125
|
+
labelStyle: "",
|
|
126
|
+
curve: G(T.curve, q)
|
|
127
|
+
};
|
|
128
|
+
t.setEdge(o.id, o.class, x, u);
|
|
129
|
+
});
|
|
130
|
+
}, O = function(l, t) {
|
|
131
|
+
const n = d().flowchart;
|
|
132
|
+
let i = 0;
|
|
133
|
+
l.forEach(function(e) {
|
|
134
|
+
var r;
|
|
135
|
+
var c;
|
|
136
|
+
i++;
|
|
137
|
+
const s = {
|
|
138
|
+
//Set relationship style and line type
|
|
139
|
+
classes: "relation",
|
|
140
|
+
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
141
|
+
id: `id_${e.id1}_${e.id2}_${i}`,
|
|
142
|
+
// Set link type for rendering
|
|
143
|
+
arrowhead: e.type === "arrow_open" ? "none" : "normal",
|
|
144
|
+
//Set edge extra labels
|
|
145
|
+
startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
|
|
146
|
+
endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
|
|
147
|
+
//Set relation arrow types
|
|
148
|
+
arrowTypeStart: R(e.relation.type1),
|
|
149
|
+
arrowTypeEnd: R(e.relation.type2),
|
|
150
|
+
style: "fill:none",
|
|
151
|
+
labelStyle: "",
|
|
152
|
+
curve: G(n == null ? void 0 : n.curve, q)
|
|
153
|
+
};
|
|
154
|
+
if (p.info(s, e), e.style !== void 0) {
|
|
155
|
+
const o = B(e.style);
|
|
156
|
+
s.style = o.style, s.labelStyle = o.labelStyle;
|
|
157
|
+
}
|
|
158
|
+
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((r = (c = d().flowchart) == null ? void 0 : c.htmlLabels) != null ? r : d().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(z.lineBreakRegex, `
|
|
159
|
+
`), 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, i);
|
|
160
|
+
});
|
|
161
|
+
}, ee = function(l) {
|
|
162
|
+
T = k(k({}, T), l);
|
|
163
|
+
}, te = function(l, t, n, i) {
|
|
164
|
+
return I(this, null, function* () {
|
|
165
|
+
var m, _, N, C;
|
|
166
|
+
p.info("Drawing class - ", t);
|
|
167
|
+
const e = (m = d().flowchart) != null ? m : d().class, c = d().securityLevel;
|
|
168
|
+
p.info("config:", e);
|
|
169
|
+
const s = (_ = e == null ? void 0 : e.nodeSpacing) != null ? _ : 50, r = (N = e == null ? void 0 : e.rankSpacing) != null ? N : 50, o = new X({
|
|
170
|
+
multigraph: !0,
|
|
171
|
+
compound: !0
|
|
172
|
+
}).setGraph({
|
|
173
|
+
rankdir: i.db.getDirection(),
|
|
174
|
+
nodesep: s,
|
|
175
|
+
ranksep: r,
|
|
176
|
+
marginx: 8,
|
|
177
|
+
marginy: 8
|
|
178
|
+
}).setDefaultEdgeLabel(function() {
|
|
179
|
+
return {};
|
|
180
|
+
}), a = i.db.getNamespaces(), f = i.db.getClasses(), y = i.db.getRelations(), v = i.db.getNotes();
|
|
181
|
+
p.info(y), Z(a, o, t, i), P(f, o, t, i), O(y, o), j(v, o, y.length + 1, f);
|
|
182
|
+
let b;
|
|
183
|
+
c === "sandbox" && (b = S("#i" + t));
|
|
184
|
+
const h = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = h.select(`[id="${t}"]`), x = h.select("#" + t + " g");
|
|
185
|
+
if (yield Y(
|
|
186
|
+
x,
|
|
187
|
+
o,
|
|
188
|
+
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
189
|
+
"classDiagram",
|
|
190
|
+
t
|
|
191
|
+
), Q.insertTitle(u, "classTitleText", (C = e == null ? void 0 : e.titleTopMargin) != null ? C : 5, i.db.getDiagramTitle()), U(o, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
192
|
+
const D = c === "sandbox" ? b.nodes()[0].contentDocument : document, F = D.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
193
|
+
for (const w of F) {
|
|
194
|
+
const E = w.getBBox(), g = D.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
195
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", E.width), g.setAttribute("height", E.height), w.insertBefore(g, w.firstChild);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
function R(l) {
|
|
201
|
+
let t;
|
|
202
|
+
switch (l) {
|
|
203
|
+
case 0:
|
|
204
|
+
t = "aggregation";
|
|
205
|
+
break;
|
|
206
|
+
case 1:
|
|
207
|
+
t = "extension";
|
|
208
|
+
break;
|
|
209
|
+
case 2:
|
|
210
|
+
t = "composition";
|
|
211
|
+
break;
|
|
212
|
+
case 3:
|
|
213
|
+
t = "dependency";
|
|
214
|
+
break;
|
|
215
|
+
case 4:
|
|
216
|
+
t = "lollipop";
|
|
217
|
+
break;
|
|
218
|
+
default:
|
|
219
|
+
t = "none";
|
|
220
|
+
}
|
|
221
|
+
return t;
|
|
222
|
+
}
|
|
223
|
+
const oe = {
|
|
224
|
+
setConf: ee,
|
|
225
|
+
draw: te
|
|
226
|
+
}, ue = {
|
|
227
|
+
parser: J,
|
|
228
|
+
db: M,
|
|
229
|
+
renderer: oe,
|
|
230
|
+
styles: K,
|
|
231
|
+
init: (l) => {
|
|
232
|
+
l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute, M.clear();
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
export {
|
|
236
|
+
ue as diagram
|
|
237
|
+
};
|
package/3f5f874f.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { w as ln, c as H } from "./256b619e.js";
|
|
2
|
+
import { aw as an, ax as V, ay as D, az as rn, aA as y, V as on, aB as K, aC as _, aD as un, aE as t, aF as sn, aG as tn, aH as fn } from "./4c6a0ece.js";
|
|
3
|
+
function cn(l) {
|
|
4
|
+
return l.innerRadius;
|
|
5
|
+
}
|
|
6
|
+
function yn(l) {
|
|
7
|
+
return l.outerRadius;
|
|
8
|
+
}
|
|
9
|
+
function gn(l) {
|
|
10
|
+
return l.startAngle;
|
|
11
|
+
}
|
|
12
|
+
function mn(l) {
|
|
13
|
+
return l.endAngle;
|
|
14
|
+
}
|
|
15
|
+
function pn(l) {
|
|
16
|
+
return l && l.padAngle;
|
|
17
|
+
}
|
|
18
|
+
function xn(l, h, z, E, v, A, I, a) {
|
|
19
|
+
var B = z - l, i = E - h, n = I - v, m = a - A, r = m * B - n * i;
|
|
20
|
+
if (!(r * r < y))
|
|
21
|
+
return r = (n * (h - A) - m * (l - v)) / r, [l + r * B, h + r * i];
|
|
22
|
+
}
|
|
23
|
+
function W(l, h, z, E, v, A, I) {
|
|
24
|
+
var a = l - z, B = h - E, i = (I ? A : -A) / K(a * a + B * B), n = i * B, m = -i * a, r = l + n, s = h + m, f = z + n, c = E + m, O = (r + f) / 2, o = (s + c) / 2, p = f - r, g = c - s, R = p * p + g * g, T = v - A, w = r * c - f * s, C = (g < 0 ? -1 : 1) * K(fn(0, T * T * R - w * w)), F = (w * g - p * C) / R, G = (-w * p - g * C) / R, P = (w * g + p * C) / R, x = (-w * p + g * C) / R, d = F - O, e = G - o, u = P - O, S = x - o;
|
|
25
|
+
return d * d + e * e > u * u + S * S && (F = P, G = x), {
|
|
26
|
+
cx: F,
|
|
27
|
+
cy: G,
|
|
28
|
+
x01: -n,
|
|
29
|
+
y01: -m,
|
|
30
|
+
x11: F * (v / T - 1),
|
|
31
|
+
y11: G * (v / T - 1)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function vn() {
|
|
35
|
+
var l = cn, h = yn, z = H(0), E = null, v = gn, A = mn, I = pn, a = null, B = ln(i);
|
|
36
|
+
function i() {
|
|
37
|
+
var n, m, r = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - rn, c = A.apply(this, arguments) - rn, O = un(c - f), o = c > f;
|
|
38
|
+
if (a || (a = n = B()), s < r && (m = s, s = r, r = m), !(s > y))
|
|
39
|
+
a.moveTo(0, 0);
|
|
40
|
+
else if (O > on - y)
|
|
41
|
+
a.moveTo(s * V(f), s * D(f)), a.arc(0, 0, s, f, c, !o), r > y && (a.moveTo(r * V(c), r * D(c)), a.arc(0, 0, r, c, f, o));
|
|
42
|
+
else {
|
|
43
|
+
var p = f, g = c, R = f, T = c, w = O, C = O, F = I.apply(this, arguments) / 2, G = F > y && (E ? +E.apply(this, arguments) : K(r * r + s * s)), P = _(un(s - r) / 2, +z.apply(this, arguments)), x = P, d = P, e, u;
|
|
44
|
+
if (G > y) {
|
|
45
|
+
var S = sn(G / r * D(F)), L = sn(G / s * D(F));
|
|
46
|
+
(w -= S * 2) > y ? (S *= o ? 1 : -1, R += S, T -= S) : (w = 0, R = T = (f + c) / 2), (C -= L * 2) > y ? (L *= o ? 1 : -1, p += L, g -= L) : (C = 0, p = g = (f + c) / 2);
|
|
47
|
+
}
|
|
48
|
+
var j = s * V(p), J = s * D(p), M = r * V(T), N = r * D(T);
|
|
49
|
+
if (P > y) {
|
|
50
|
+
var Q = s * V(g), U = s * D(g), X = r * V(R), Y = r * D(R), q;
|
|
51
|
+
if (O < an)
|
|
52
|
+
if (q = xn(j, J, X, Y, Q, U, M, N)) {
|
|
53
|
+
var Z = j - q[0], $ = J - q[1], k = Q - q[0], b = U - q[1], nn = 1 / D(tn((Z * k + $ * b) / (K(Z * Z + $ * $) * K(k * k + b * b))) / 2), en = K(q[0] * q[0] + q[1] * q[1]);
|
|
54
|
+
x = _(P, (r - en) / (nn - 1)), d = _(P, (s - en) / (nn + 1));
|
|
55
|
+
} else
|
|
56
|
+
x = d = 0;
|
|
57
|
+
}
|
|
58
|
+
C > y ? d > y ? (e = W(X, Y, j, J, s, d, o), u = W(Q, U, M, N, s, d, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), d < P ? a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, d, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(j, J), a.arc(0, 0, s, p, g, !o)) : a.moveTo(j, J), !(r > y) || !(w > y) ? a.lineTo(M, N) : x > y ? (e = W(M, N, Q, U, r, -x, o), u = W(j, J, X, Y, r, -x, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), x < P ? a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, x, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, r, T, R, o);
|
|
59
|
+
}
|
|
60
|
+
if (a.closePath(), n)
|
|
61
|
+
return a = null, n + "" || null;
|
|
62
|
+
}
|
|
63
|
+
return i.centroid = function() {
|
|
64
|
+
var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, m = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2;
|
|
65
|
+
return [V(m) * n, D(m) * n];
|
|
66
|
+
}, i.innerRadius = function(n) {
|
|
67
|
+
return arguments.length ? (l = typeof n == "function" ? n : H(+n), i) : l;
|
|
68
|
+
}, i.outerRadius = function(n) {
|
|
69
|
+
return arguments.length ? (h = typeof n == "function" ? n : H(+n), i) : h;
|
|
70
|
+
}, i.cornerRadius = function(n) {
|
|
71
|
+
return arguments.length ? (z = typeof n == "function" ? n : H(+n), i) : z;
|
|
72
|
+
}, i.padRadius = function(n) {
|
|
73
|
+
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : H(+n), i) : E;
|
|
74
|
+
}, i.startAngle = function(n) {
|
|
75
|
+
return arguments.length ? (v = typeof n == "function" ? n : H(+n), i) : v;
|
|
76
|
+
}, i.endAngle = function(n) {
|
|
77
|
+
return arguments.length ? (A = typeof n == "function" ? n : H(+n), i) : A;
|
|
78
|
+
}, i.padAngle = function(n) {
|
|
79
|
+
return arguments.length ? (I = typeof n == "function" ? n : H(+n), i) : I;
|
|
80
|
+
}, i.context = function(n) {
|
|
81
|
+
return arguments.length ? (a = n == null ? null : n, i) : a;
|
|
82
|
+
}, i;
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
vn as a
|
|
86
|
+
};
|