lowcoder-comps 0.0.29 → 0.0.31
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/README.md +120 -0
- package/index.html +26 -0
- package/index.tsx +21 -0
- package/jest.config.js +6 -0
- package/package.json +3 -4
- package/src/__test__/allComp.test.tsx +61 -0
- package/src/app-env.d.ts +3 -0
- package/src/comps/calendarComp/calendarComp.tsx +633 -0
- package/src/comps/calendarComp/calendarConstants.tsx +1048 -0
- package/src/comps/calendarComp/errorBoundary.tsx +30 -0
- package/src/comps/chartComp/chartComp.tsx +442 -0
- package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +51 -0
- package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +307 -0
- package/src/comps/chartComp/chartConfigs/chartUrls.tsx +9 -0
- package/src/comps/chartComp/chartConfigs/legendConfig.tsx +55 -0
- package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +96 -0
- package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +83 -0
- package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +62 -0
- package/src/comps/chartComp/chartConstants.tsx +299 -0
- package/src/comps/chartComp/chartPropertyView.tsx +235 -0
- package/src/comps/chartComp/chartUtils.ts +291 -0
- package/src/comps/chartComp/reactEcharts/core.tsx +194 -0
- package/src/comps/chartComp/reactEcharts/index.ts +21 -0
- package/src/comps/chartComp/reactEcharts/types.ts +76 -0
- package/src/comps/chartComp/seriesComp.tsx +119 -0
- package/src/comps/imageEditorComp/imageEditorClass.tsx +52 -0
- package/src/comps/imageEditorComp/imageEditorConstants.tsx +109 -0
- package/src/comps/imageEditorComp/index.tsx +184 -0
- package/src/comps/mermaidComp/index.tsx +44 -0
- package/src/comps/mermaidComp/mermaid.tsx +29 -0
- package/src/global.ts +1 -0
- package/src/i18n/comps/index.tsx +29 -0
- package/src/i18n/comps/locales/en.ts +163 -0
- package/src/i18n/comps/locales/enObj.tsx +198 -0
- package/src/i18n/comps/locales/index.ts +7 -0
- package/src/i18n/comps/locales/types.tsx +10 -0
- package/src/i18n/comps/locales/zh.ts +156 -0
- package/src/i18n/comps/locales/zhObj.tsx +4 -0
- package/src/index.ts +11 -0
- package/tsconfig.json +22 -0
- package/vite.config.js +10 -0
- package/2085da13.js +0 -960
- package/250691b5.js +0 -5
- package/256b619e.js +0 -92
- package/274f545c.js +0 -881
- package/289305a1.js +0 -208
- package/2eae45c2.js +0 -34
- package/2ff2c7a6.js +0 -6
- package/2ff7471d.js +0 -9
- package/335b22a2.js +0 -220
- package/38c826fe.js +0 -1127
- package/44011c1d.js +0 -818
- package/4fc06812.js +0 -64
- package/56a787cf.js +0 -915
- package/590941ff.js +0 -86
- package/6341867f.js +0 -804
- package/657fd065.js +0 -8
- package/78a5e50d.js +0 -1579
- package/820c3641.js +0 -25
- package/88b4e75a.js +0 -2967
- package/8d999722.js +0 -1102
- package/92e85b65.js +0 -65
- package/989caea2.js +0 -505
- package/99b984d1.js +0 -237
- package/9e5f02d6.js +0 -19104
- package/a40faea7.js +0 -11624
- package/abac9104.js +0 -1536
- package/af2f19b3.js +0 -819
- package/af5ee3de.js +0 -268
- package/b24707c2.js +0 -48428
- package/b68f8b69.js +0 -1276
- package/ba68ba65.js +0 -391
- package/bafb8599.js +0 -319
- package/bba60c35.js +0 -2501
- package/bd7c2a8e.js +0 -1089
- package/c71dadea.js +0 -455
- package/d05c1762.js +0 -933
- package/d073ab24.js +0 -134353
- package/d838cd10.js +0 -769
- package/dc36a6eb.js +0 -796
- package/ed143450.js +0 -1284
- package/ee8ec8f2.js +0 -2284
- package/f6755210.js +0 -1269
- package/f9637058.js +0 -16
- package/fba4c8e4.js +0 -447
- package/index.js +0 -5
package/250691b5.js
DELETED
package/256b619e.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
var E = Math.pow;
|
|
2
|
-
const c = Math.PI, x = 2 * c, u = 1e-6, A = x - u;
|
|
3
|
-
function T(e) {
|
|
4
|
-
this._ += e[0];
|
|
5
|
-
for (let t = 1, h = e.length; t < h; ++t)
|
|
6
|
-
this._ += arguments[t] + e[t];
|
|
7
|
-
}
|
|
8
|
-
function L(e) {
|
|
9
|
-
let t = Math.floor(e);
|
|
10
|
-
if (!(t >= 0))
|
|
11
|
-
throw new Error(`invalid digits: ${e}`);
|
|
12
|
-
if (t > 15)
|
|
13
|
-
return T;
|
|
14
|
-
const h = E(10, t);
|
|
15
|
-
return function(i) {
|
|
16
|
-
this._ += i[0];
|
|
17
|
-
for (let s = 1, n = i.length; s < n; ++s)
|
|
18
|
-
this._ += Math.round(arguments[s] * h) / h + i[s];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
class P {
|
|
22
|
-
constructor(t) {
|
|
23
|
-
this._x0 = this._y0 = // start of current subpath
|
|
24
|
-
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? T : L(t);
|
|
25
|
-
}
|
|
26
|
-
moveTo(t, h) {
|
|
27
|
-
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}`;
|
|
28
|
-
}
|
|
29
|
-
closePath() {
|
|
30
|
-
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
31
|
-
}
|
|
32
|
-
lineTo(t, h) {
|
|
33
|
-
this._append`L${this._x1 = +t},${this._y1 = +h}`;
|
|
34
|
-
}
|
|
35
|
-
quadraticCurveTo(t, h, i, s) {
|
|
36
|
-
this._append`Q${+t},${+h},${this._x1 = +i},${this._y1 = +s}`;
|
|
37
|
-
}
|
|
38
|
-
bezierCurveTo(t, h, i, s, n, $) {
|
|
39
|
-
this._append`C${+t},${+h},${+i},${+s},${this._x1 = +n},${this._y1 = +$}`;
|
|
40
|
-
}
|
|
41
|
-
arcTo(t, h, i, s, n) {
|
|
42
|
-
if (t = +t, h = +h, i = +i, s = +s, n = +n, n < 0)
|
|
43
|
-
throw new Error(`negative radius: ${n}`);
|
|
44
|
-
let $ = this._x1, r = this._y1, p = i - t, l = s - h, _ = $ - t, o = r - h, a = _ * _ + o * o;
|
|
45
|
-
if (this._x1 === null)
|
|
46
|
-
this._append`M${this._x1 = t},${this._y1 = h}`;
|
|
47
|
-
else if (a > u)
|
|
48
|
-
if (!(Math.abs(o * p - l * _) > u) || !n)
|
|
49
|
-
this._append`L${this._x1 = t},${this._y1 = h}`;
|
|
50
|
-
else {
|
|
51
|
-
let d = i - $, f = s - r, y = p * p + l * l, m = d * d + f * f, g = Math.sqrt(y), v = Math.sqrt(a), w = n * Math.tan((c - Math.acos((y + a - m) / (2 * g * v))) / 2), M = w / v, b = w / g;
|
|
52
|
-
Math.abs(M - 1) > u && this._append`L${t + M * _},${h + M * o}`, this._append`A${n},${n},0,0,${+(o * d > _ * f)},${this._x1 = t + b * p},${this._y1 = h + b * l}`;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
arc(t, h, i, s, n, $) {
|
|
56
|
-
if (t = +t, h = +h, i = +i, $ = !!$, i < 0)
|
|
57
|
-
throw new Error(`negative radius: ${i}`);
|
|
58
|
-
let r = i * Math.cos(s), p = i * Math.sin(s), l = t + r, _ = h + p, o = 1 ^ $, a = $ ? s - n : n - s;
|
|
59
|
-
this._x1 === null ? this._append`M${l},${_}` : (Math.abs(this._x1 - l) > u || Math.abs(this._y1 - _) > u) && this._append`L${l},${_}`, i && (a < 0 && (a = a % x + x), a > A ? this._append`A${i},${i},0,1,${o},${t - r},${h - p}A${i},${i},0,1,${o},${this._x1 = l},${this._y1 = _}` : a > u && this._append`A${i},${i},0,${+(a >= c)},${o},${this._x1 = t + i * Math.cos(n)},${this._y1 = h + i * Math.sin(n)}`);
|
|
60
|
-
}
|
|
61
|
-
rect(t, h, i, s) {
|
|
62
|
-
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}h${i = +i}v${+s}h${-i}Z`;
|
|
63
|
-
}
|
|
64
|
-
toString() {
|
|
65
|
-
return this._;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function C(e) {
|
|
69
|
-
return function() {
|
|
70
|
-
return e;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function R(e) {
|
|
74
|
-
let t = 3;
|
|
75
|
-
return e.digits = function(h) {
|
|
76
|
-
if (!arguments.length)
|
|
77
|
-
return t;
|
|
78
|
-
if (h == null)
|
|
79
|
-
t = null;
|
|
80
|
-
else {
|
|
81
|
-
const i = Math.floor(h);
|
|
82
|
-
if (!(i >= 0))
|
|
83
|
-
throw new RangeError(`invalid digits: ${h}`);
|
|
84
|
-
t = i;
|
|
85
|
-
}
|
|
86
|
-
return e;
|
|
87
|
-
}, () => new P(t);
|
|
88
|
-
}
|
|
89
|
-
export {
|
|
90
|
-
C as c,
|
|
91
|
-
R as w
|
|
92
|
-
};
|