@vizel/core 0.0.1-alpha.6 → 1.0.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/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/index.d.ts +230 -15
- package/dist/index.js +78 -75
- package/dist/index10.js +1 -1
- package/dist/index11.js +4 -4
- package/dist/index14.js +1 -1
- package/dist/index15.js +134 -127
- package/dist/index17.js +2 -2
- package/dist/index18.js +1 -1
- package/dist/index19.js +86 -86
- package/dist/index20.js +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.js +16 -13
- package/dist/index24.js +164 -11
- package/dist/index25.js +12 -53
- package/dist/index26.js +49 -136
- package/dist/index27.js +132 -59
- package/dist/index28.js +66 -32
- package/dist/index29.js +35 -21
- package/dist/index3.js +91 -90
- package/dist/index30.js +23 -9
- package/dist/index31.js +9 -147
- package/dist/index32.js +138 -256
- package/dist/index33.js +258 -85
- package/dist/index34.js +91 -15
- package/dist/index35.js +63 -57
- package/dist/index36.js +4 -15
- package/dist/index37.js +115 -56
- package/dist/index38.js +327 -4
- package/dist/index39.js +11 -121
- package/dist/index4.js +1 -1
- package/dist/index40.js +481 -321
- package/dist/index41.js +42 -481
- package/dist/index42.js +683 -37
- package/dist/index43.js +4 -679
- package/dist/index44.js +4 -4
- package/dist/index45.js +238 -4
- package/dist/index46.js +54 -210
- package/dist/index47.js +16 -81
- package/dist/index48.js +57 -285
- package/dist/index49.js +14 -1501
- package/dist/index5.js +78 -68
- package/dist/index50.js +286 -5
- package/dist/index51.js +4 -4
- package/dist/index52.js +1408 -1467
- package/dist/index53.js +5 -723
- package/dist/index54.js +1112 -21
- package/dist/index55.js +722 -9
- package/dist/index56.js +83 -6
- package/dist/index57.js +245 -7
- package/dist/index58.js +3 -14
- package/dist/index59.js +1230 -17
- package/dist/index6.js +1 -1
- package/dist/index60.js +733 -24
- package/dist/index61.js +21 -84
- package/dist/index62.js +10 -246
- package/dist/index63.js +7 -3
- package/dist/index64.js +7 -1231
- package/dist/index65.js +11 -731
- package/dist/index66.js +17 -1059
- package/dist/index67.js +21 -51
- package/dist/index68.js +54 -3
- package/dist/index69.js +1061 -98
- package/dist/index7.js +108 -96
- package/dist/index70.js +98 -91
- package/dist/index71.js +93 -0
- package/dist/index72.js +6 -0
- package/dist/index8.js +1 -1
- package/dist/index9.js +75 -65
- package/dist/mathematics.css +1 -0
- package/dist/mathematics.css.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +90 -52
package/dist/index67.js
CHANGED
|
@@ -1,57 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
a = !0;
|
|
11
|
-
else if (/^a(lt)?$/i.test(s))
|
|
12
|
-
i = !0;
|
|
13
|
-
else if (/^(c|ctrl|control)$/i.test(s))
|
|
14
|
-
f = !0;
|
|
15
|
-
else if (/^s(hift)?$/i.test(s))
|
|
16
|
-
o = !0;
|
|
17
|
-
else if (/^mod$/i.test(s))
|
|
18
|
-
d ? a = !0 : f = !0;
|
|
19
|
-
else
|
|
20
|
-
throw new Error("Unrecognized modifier name: " + s);
|
|
1
|
+
function l(e, i = "defs") {
|
|
2
|
+
let f = "";
|
|
3
|
+
const s = e.indexOf("<" + i);
|
|
4
|
+
for (; s >= 0; ) {
|
|
5
|
+
const d = e.indexOf(">", s), r = e.indexOf("</" + i);
|
|
6
|
+
if (d === -1 || r === -1) break;
|
|
7
|
+
const n = e.indexOf(">", r);
|
|
8
|
+
if (n === -1) break;
|
|
9
|
+
f += e.slice(d + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(n + 1);
|
|
21
10
|
}
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
for (let t in e)
|
|
27
|
-
r[h(t)] = e[t];
|
|
28
|
-
return r;
|
|
11
|
+
return {
|
|
12
|
+
defs: f,
|
|
13
|
+
content: e
|
|
14
|
+
};
|
|
29
15
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
16
|
+
function t(e, i) {
|
|
17
|
+
return e ? "<defs>" + e + "</defs>" + i : i;
|
|
32
18
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
return
|
|
36
|
-
let f = c(i), o, a = r[u(f, i)];
|
|
37
|
-
if (a && a(t.state, t.dispatch, t))
|
|
38
|
-
return !0;
|
|
39
|
-
if (f.length == 1 && f != " ") {
|
|
40
|
-
if (i.shiftKey) {
|
|
41
|
-
let l = r[u(f, i, !1)];
|
|
42
|
-
if (l && l(t.state, t.dispatch, t))
|
|
43
|
-
return !0;
|
|
44
|
-
}
|
|
45
|
-
if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
46
|
-
!(y && i.ctrlKey && i.altKey) && (o = n[i.keyCode]) && o != f) {
|
|
47
|
-
let l = r[u(o, i)];
|
|
48
|
-
if (l && l(t.state, t.dispatch, t))
|
|
49
|
-
return !0;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return !1;
|
|
53
|
-
};
|
|
19
|
+
function u(e, i, f) {
|
|
20
|
+
const s = l(e);
|
|
21
|
+
return t(s.defs, i + s.content + f);
|
|
54
22
|
}
|
|
55
23
|
export {
|
|
56
|
-
|
|
24
|
+
t as mergeDefsAndContent,
|
|
25
|
+
l as splitSVGDefs,
|
|
26
|
+
u as wrapSVGContent
|
|
57
27
|
};
|
package/dist/index68.js
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { keyName as c, base as n } from "./index71.js";
|
|
2
|
+
const d = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), y = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
3
|
+
function h(e) {
|
|
4
|
+
let r = e.split(/-(?!$)/), t = r[r.length - 1];
|
|
5
|
+
t == "Space" && (t = " ");
|
|
6
|
+
let i, f, o, a;
|
|
7
|
+
for (let l = 0; l < r.length - 1; l++) {
|
|
8
|
+
let s = r[l];
|
|
9
|
+
if (/^(cmd|meta|m)$/i.test(s))
|
|
10
|
+
a = !0;
|
|
11
|
+
else if (/^a(lt)?$/i.test(s))
|
|
12
|
+
i = !0;
|
|
13
|
+
else if (/^(c|ctrl|control)$/i.test(s))
|
|
14
|
+
f = !0;
|
|
15
|
+
else if (/^s(hift)?$/i.test(s))
|
|
16
|
+
o = !0;
|
|
17
|
+
else if (/^mod$/i.test(s))
|
|
18
|
+
d ? a = !0 : f = !0;
|
|
19
|
+
else
|
|
20
|
+
throw new Error("Unrecognized modifier name: " + s);
|
|
21
|
+
}
|
|
22
|
+
return i && (t = "Alt-" + t), f && (t = "Ctrl-" + t), a && (t = "Meta-" + t), o && (t = "Shift-" + t), t;
|
|
23
|
+
}
|
|
24
|
+
function m(e) {
|
|
25
|
+
let r = /* @__PURE__ */ Object.create(null);
|
|
26
|
+
for (let t in e)
|
|
27
|
+
r[h(t)] = e[t];
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
function u(e, r, t = !0) {
|
|
31
|
+
return r.altKey && (e = "Alt-" + e), r.ctrlKey && (e = "Ctrl-" + e), r.metaKey && (e = "Meta-" + e), t && r.shiftKey && (e = "Shift-" + e), e;
|
|
32
|
+
}
|
|
33
|
+
function K(e) {
|
|
34
|
+
let r = m(e);
|
|
35
|
+
return function(t, i) {
|
|
36
|
+
let f = c(i), o, a = r[u(f, i)];
|
|
37
|
+
if (a && a(t.state, t.dispatch, t))
|
|
38
|
+
return !0;
|
|
39
|
+
if (f.length == 1 && f != " ") {
|
|
40
|
+
if (i.shiftKey) {
|
|
41
|
+
let l = r[u(f, i, !1)];
|
|
42
|
+
if (l && l(t.state, t.dispatch, t))
|
|
43
|
+
return !0;
|
|
44
|
+
}
|
|
45
|
+
if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
46
|
+
!(y && i.ctrlKey && i.altKey) && (o = n[i.keyCode]) && o != f) {
|
|
47
|
+
let l = r[u(o, i)];
|
|
48
|
+
if (l && l(t.state, t.dispatch, t))
|
|
49
|
+
return !0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return !1;
|
|
53
|
+
};
|
|
3
54
|
}
|
|
4
55
|
export {
|
|
5
|
-
|
|
56
|
+
K as keydownHandler
|
|
6
57
|
};
|