aptechka 0.13.1 → 0.14.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/lib/attribute/index.js +12 -12
- package/lib/canvas/index.cjs +7 -1
- package/lib/canvas/index.js +54 -58
- package/lib/controls/index.js +1 -1
- package/lib/{createStylesheet-COAZH1Mw.js → createStylesheet-C68ja-RS.js} +3 -3
- package/lib/css-property/index.js +4 -4
- package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +133 -122
- package/lib/element-resizer/index.js +8 -8
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/index.js +1 -1
- package/lib/en3/loaders/index.js +1 -1
- package/lib/en3/utils/index.js +2 -2
- package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
- package/lib/file-BEr-o55N.js +31 -0
- package/lib/file-C9BbxzVU.cjs +1 -0
- package/lib/intersector/index.js +7 -7
- package/lib/layout-box/index.js +14 -14
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1343 -0
- package/lib/pointer/index.js +1 -1
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +60 -62
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +104 -105
- package/lib/scroll-entries/index.js +15 -15
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/{tags-BL3kQp9o.js → tags-zft1DGBz.js} +92 -92
- package/lib/ticker/index.js +1 -1
- package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +56 -57
- package/package.json +7 -47
- package/lib/accordion/index.cjs +0 -1
- package/lib/accordion/index.js +0 -167
- package/lib/checkbox/index.cjs +0 -1
- package/lib/checkbox/index.js +0 -112
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/events-BGwqaxVW.cjs +0 -1
- package/lib/events-CJTUMSLU.js +0 -20
- package/lib/file-EevnUtRj.cjs +0 -1
- package/lib/file-lxi_oXJf.js +0 -13
- package/lib/index-BuAuBz2_.cjs +0 -9
- package/lib/index-CenF0JbH.js +0 -261
- package/lib/modal/index.cjs +0 -1
- package/lib/modal/index.js +0 -133
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.js +0 -7
- package/lib/theme/index.cjs +0 -1
- package/lib/theme/index.js +0 -25
- package/lib/tweaker/index.cjs +0 -10
- package/lib/tweaker/index.js +0 -989
package/lib/slicer/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var L=n=>{throw TypeError(n)};var w=(n,t,s)=>t.has(n)||L("Cannot "+s);var e=(n,t,s)=>(w(n,t,"read from private field"),s?s.call(n):t.get(n)),l=(n,t,s)=>t.has(n)?L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,s),i=(n,t,s,d)=>(w(n,t,"write to private field"),d?d.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a,h,u;class T{constructor(t){l(this,a);l(this,h);l(this,u);i(this,a,t.index),i(this,h,document.createElement("span")),i(this,u,[]),t.letters&&t.letterConstructor&&t.lettersAcc!==void 0?(i(this,u,t.text.split("").map((s,d)=>new t.letterConstructor({index:t.lettersAcc+d,text:s,clone:t.clone}))),e(this,h).append(...e(this,u).map(s=>s.element))):t.clone?e(this,h).innerHTML=`
|
|
2
2
|
<span class="original">${t.text}</span>
|
|
3
3
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
4
|
-
`:
|
|
4
|
+
`:e(this,h).innerHTML=`
|
|
5
5
|
<span class="value">${t.text}</span>
|
|
6
|
-
`,
|
|
6
|
+
`,e(this,h).classList.add("word")}get index(){return e(this,a)}get element(){return e(this,h)}get letters(){return e(this,u)}}a=new WeakMap,h=new WeakMap,u=new WeakMap;var p,c;class b{constructor(t){l(this,p);l(this,c);i(this,p,t.index),i(this,c,document.createElement("span")),e(this,c).classList.add("letter"),t.clone?e(this,c).innerHTML=`
|
|
7
7
|
<span class="original">${t.text}</span>
|
|
8
8
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
9
|
-
`:
|
|
9
|
+
`:e(this,c).innerHTML=`
|
|
10
10
|
<span class="value">${t.text}</span>
|
|
11
|
-
`}get index(){return
|
|
11
|
+
`}get index(){return e(this,p)}get element(){return e(this,c)}}p=new WeakMap,c=new WeakMap;var g,r,x,C,f;class A extends HTMLElement{constructor(s){super();l(this,g,"");l(this,r,[]);l(this,x,[]);l(this,C);l(this,f);i(this,C,(s==null?void 0:s.wordConstructor)||T),i(this,f,(s==null?void 0:s.letterConstructor)||b)}get wordsArray(){return e(this,r)}get lettersArray(){return e(this,x)}get originalText(){return e(this,g)}connectedCallback(){var d;i(this,g,((d=this.textContent)==null?void 0:d.trim())||""),this.innerHTML="";let s=0;i(this,r,e(this,g).replace(/ +/g," ").split(" ").map((o,E)=>{const y=new(e(this,C))({index:E,text:o,letters:this.hasAttribute("letters"),lettersAcc:s,letterConstructor:e(this,f),clone:this.hasAttribute("clone")});return s+=y.letters.length,e(this,x).push(...y.letters),y})),this.hasAttribute("index")&&(e(this,r).forEach(o=>{o.element.style.setProperty("--word-index",o.index.toString())}),e(this,x).forEach(o=>{o.element.style.setProperty("--letter-index",o.index.toString())})),e(this,r).forEach((o,E)=>{if(this.appendChild(o.element),E!==e(this,r).length-1){const y=document.createElement("span");y.innerHTML=" ",this.appendChild(y)}}),this.style.setProperty("--words-length",e(this,r).length.toString()),this.style.setProperty("--letters-length",e(this,x).length.toString())}disconnectedCallback(){i(this,r,[]),this.textContent=e(this,g),this.style.removeProperty("--words-length"),this.style.removeProperty("--letters-length")}}g=new WeakMap,r=new WeakMap,x=new WeakMap,C=new WeakMap,f=new WeakMap;customElements.get("e-slicer")||customElements.define("e-slicer",A);exports.Letter=b;exports.SlicerElement=A;exports.Word=T;
|
package/lib/slicer/index.js
CHANGED
|
@@ -1,143 +1,112 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E = (n) => {
|
|
2
2
|
throw TypeError(n);
|
|
3
3
|
};
|
|
4
|
-
var L = (n, t,
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class b {
|
|
4
|
+
var L = (n, t, s) => t.has(n) || E("Cannot " + s);
|
|
5
|
+
var e = (n, t, s) => (L(n, t, "read from private field"), s ? s.call(n) : t.get(n)), l = (n, t, s) => t.has(n) ? E("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), i = (n, t, s, d) => (L(n, t, "write to private field"), d ? d.call(n, s) : t.set(n, s), s);
|
|
6
|
+
var y, o, u;
|
|
7
|
+
class T {
|
|
9
8
|
constructor(t) {
|
|
10
9
|
l(this, y);
|
|
11
|
-
l(this,
|
|
10
|
+
l(this, o);
|
|
12
11
|
l(this, u);
|
|
13
|
-
i(this, y, t.index), i(this,
|
|
14
|
-
index: t.lettersAcc +
|
|
15
|
-
text:
|
|
12
|
+
i(this, y, t.index), i(this, o, document.createElement("span")), i(this, u, []), t.letters && t.letterConstructor && t.lettersAcc !== void 0 ? (i(this, u, t.text.split("").map((s, d) => new t.letterConstructor({
|
|
13
|
+
index: t.lettersAcc + d,
|
|
14
|
+
text: s,
|
|
16
15
|
clone: t.clone
|
|
17
|
-
}))),
|
|
16
|
+
}))), e(this, o).append(...e(this, u).map((s) => s.element))) : t.clone ? e(this, o).innerHTML = `
|
|
18
17
|
<span class="original">${t.text}</span>
|
|
19
18
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
20
|
-
` :
|
|
19
|
+
` : e(this, o).innerHTML = `
|
|
21
20
|
<span class="value">${t.text}</span>
|
|
22
|
-
`,
|
|
21
|
+
`, e(this, o).classList.add("word");
|
|
23
22
|
}
|
|
24
23
|
get index() {
|
|
25
|
-
return
|
|
24
|
+
return e(this, y);
|
|
26
25
|
}
|
|
27
26
|
get element() {
|
|
28
|
-
return
|
|
27
|
+
return e(this, o);
|
|
29
28
|
}
|
|
30
29
|
get letters() {
|
|
31
|
-
return
|
|
30
|
+
return e(this, u);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
y = new WeakMap(),
|
|
35
|
-
var
|
|
36
|
-
class
|
|
33
|
+
y = new WeakMap(), o = new WeakMap(), u = new WeakMap();
|
|
34
|
+
var a, c;
|
|
35
|
+
class A {
|
|
37
36
|
constructor(t) {
|
|
38
|
-
l(this,
|
|
39
|
-
l(this,
|
|
40
|
-
i(this,
|
|
37
|
+
l(this, a);
|
|
38
|
+
l(this, c);
|
|
39
|
+
i(this, a, t.index), i(this, c, document.createElement("span")), e(this, c).classList.add("letter"), t.clone ? e(this, c).innerHTML = `
|
|
41
40
|
<span class="original">${t.text}</span>
|
|
42
41
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
43
|
-
` :
|
|
42
|
+
` : e(this, c).innerHTML = `
|
|
44
43
|
<span class="value">${t.text}</span>
|
|
45
44
|
`;
|
|
46
45
|
}
|
|
47
46
|
get index() {
|
|
48
|
-
return
|
|
47
|
+
return e(this, a);
|
|
49
48
|
}
|
|
50
49
|
get element() {
|
|
51
|
-
return
|
|
50
|
+
return e(this, c);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
var g, r, x, C,
|
|
56
|
-
class
|
|
57
|
-
constructor(
|
|
53
|
+
a = new WeakMap(), c = new WeakMap();
|
|
54
|
+
var g, r, x, C, f;
|
|
55
|
+
class H extends HTMLElement {
|
|
56
|
+
constructor(s) {
|
|
58
57
|
super();
|
|
59
58
|
l(this, g, "");
|
|
60
59
|
l(this, r, []);
|
|
61
60
|
l(this, x, []);
|
|
62
61
|
l(this, C);
|
|
63
|
-
l(this,
|
|
64
|
-
i(this, C, (
|
|
62
|
+
l(this, f);
|
|
63
|
+
i(this, C, (s == null ? void 0 : s.wordConstructor) || T), i(this, f, (s == null ? void 0 : s.letterConstructor) || A);
|
|
65
64
|
}
|
|
66
65
|
get wordsArray() {
|
|
67
|
-
return
|
|
66
|
+
return e(this, r);
|
|
68
67
|
}
|
|
69
68
|
get lettersArray() {
|
|
70
|
-
return
|
|
69
|
+
return e(this, x);
|
|
71
70
|
}
|
|
72
71
|
get originalText() {
|
|
73
|
-
return
|
|
72
|
+
return e(this, g);
|
|
74
73
|
}
|
|
75
74
|
connectedCallback() {
|
|
76
|
-
var
|
|
77
|
-
i(this, g, ((
|
|
78
|
-
let
|
|
79
|
-
i(this, r,
|
|
80
|
-
const
|
|
81
|
-
index:
|
|
75
|
+
var d;
|
|
76
|
+
i(this, g, ((d = this.textContent) == null ? void 0 : d.trim()) || ""), this.innerHTML = "";
|
|
77
|
+
let s = 0;
|
|
78
|
+
i(this, r, e(this, g).replace(/ +/g, " ").split(" ").map((h, w) => {
|
|
79
|
+
const p = new (e(this, C))({
|
|
80
|
+
index: w,
|
|
82
81
|
text: h,
|
|
83
82
|
letters: this.hasAttribute("letters"),
|
|
84
|
-
lettersAcc:
|
|
85
|
-
letterConstructor:
|
|
83
|
+
lettersAcc: s,
|
|
84
|
+
letterConstructor: e(this, f),
|
|
86
85
|
clone: this.hasAttribute("clone")
|
|
87
86
|
});
|
|
88
|
-
return
|
|
89
|
-
})), this.hasAttribute("index") && (
|
|
87
|
+
return s += p.letters.length, e(this, x).push(...p.letters), p;
|
|
88
|
+
})), this.hasAttribute("index") && (e(this, r).forEach((h) => {
|
|
90
89
|
h.element.style.setProperty("--word-index", h.index.toString());
|
|
91
|
-
}),
|
|
90
|
+
}), e(this, x).forEach((h) => {
|
|
92
91
|
h.element.style.setProperty(
|
|
93
92
|
"--letter-index",
|
|
94
93
|
h.index.toString()
|
|
95
94
|
);
|
|
96
|
-
})),
|
|
97
|
-
if (this.appendChild(h.element),
|
|
98
|
-
const
|
|
99
|
-
|
|
95
|
+
})), e(this, r).forEach((h, w) => {
|
|
96
|
+
if (this.appendChild(h.element), w !== e(this, r).length - 1) {
|
|
97
|
+
const p = document.createElement("span");
|
|
98
|
+
p.innerHTML = " ", this.appendChild(p);
|
|
100
99
|
}
|
|
101
|
-
}), this.style.setProperty("--words-length",
|
|
100
|
+
}), this.style.setProperty("--words-length", e(this, r).length.toString()), this.style.setProperty("--letters-length", e(this, x).length.toString());
|
|
102
101
|
}
|
|
103
102
|
disconnectedCallback() {
|
|
104
|
-
i(this, r, []), this.textContent =
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
g = new WeakMap(), r = new WeakMap(), x = new WeakMap(), C = new WeakMap(), E = new WeakMap();
|
|
108
|
-
customElements.get("e-slicer") || customElements.define("e-slicer", A);
|
|
109
|
-
var p;
|
|
110
|
-
class H extends M {
|
|
111
|
-
constructor(e) {
|
|
112
|
-
super(e);
|
|
113
|
-
l(this, p);
|
|
114
|
-
i(this, p, T(
|
|
115
|
-
2 + Math.floor(Math.random() * 15),
|
|
116
|
-
"abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?"
|
|
117
|
-
) + e.text), this.play(0);
|
|
118
|
-
}
|
|
119
|
-
play(e) {
|
|
120
|
-
const o = Math.floor(e * (s(this, p).length - 1));
|
|
121
|
-
this.element.textContent = s(this, p)[o];
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
p = new WeakMap();
|
|
125
|
-
class $ extends A {
|
|
126
|
-
constructor() {
|
|
127
|
-
super({
|
|
128
|
-
letterConstructor: H
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
play(t) {
|
|
132
|
-
this.lettersArray.forEach((e) => {
|
|
133
|
-
e.play(t);
|
|
134
|
-
});
|
|
103
|
+
i(this, r, []), this.textContent = e(this, g), this.style.removeProperty("--words-length"), this.style.removeProperty("--letters-length");
|
|
135
104
|
}
|
|
136
105
|
}
|
|
137
|
-
|
|
106
|
+
g = new WeakMap(), r = new WeakMap(), x = new WeakMap(), C = new WeakMap(), f = new WeakMap();
|
|
107
|
+
customElements.get("e-slicer") || customElements.define("e-slicer", H);
|
|
138
108
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
b as Word
|
|
109
|
+
A as Letter,
|
|
110
|
+
H as SlicerElement,
|
|
111
|
+
T as Word
|
|
143
112
|
};
|
|
@@ -713,49 +713,49 @@ function Dt(e) {
|
|
|
713
713
|
}));
|
|
714
714
|
}
|
|
715
715
|
export {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
716
|
+
bn as $,
|
|
717
|
+
Je as A,
|
|
718
|
+
Ie as B,
|
|
719
|
+
Ue as C,
|
|
720
|
+
Ye as D,
|
|
721
721
|
t as E,
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
722
|
+
Ke as F,
|
|
723
|
+
Qe as G,
|
|
724
|
+
Xe as H,
|
|
725
|
+
Ze as I,
|
|
726
|
+
_e as J,
|
|
727
|
+
je as K,
|
|
728
|
+
en as L,
|
|
729
|
+
nn as M,
|
|
730
|
+
tn as N,
|
|
731
|
+
sn as O,
|
|
732
|
+
rn as P,
|
|
733
|
+
an as Q,
|
|
734
|
+
on as R,
|
|
735
|
+
un as S,
|
|
736
|
+
cn as T,
|
|
737
|
+
fn as U,
|
|
738
|
+
ln as V,
|
|
739
|
+
dn as W,
|
|
740
|
+
hn as X,
|
|
741
|
+
wn as Y,
|
|
742
|
+
mn as Z,
|
|
743
|
+
pn as _,
|
|
744
|
+
st as a,
|
|
745
|
+
gn as a0,
|
|
746
|
+
yn as a1,
|
|
747
|
+
En as a2,
|
|
748
|
+
Cn as a3,
|
|
749
|
+
Sn as a4,
|
|
750
|
+
vn as a5,
|
|
751
|
+
kn as a6,
|
|
752
|
+
Tn as a7,
|
|
753
|
+
An as a8,
|
|
754
|
+
xn as a9,
|
|
755
|
+
tt as aA,
|
|
756
|
+
it as aB,
|
|
757
|
+
rt as aC,
|
|
758
|
+
ot as aD,
|
|
759
759
|
ct as aE,
|
|
760
760
|
ft as aF,
|
|
761
761
|
lt as aG,
|
|
@@ -779,55 +779,55 @@ export {
|
|
|
779
779
|
xt as aY,
|
|
780
780
|
Mt as aZ,
|
|
781
781
|
Dt as a_,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
782
|
+
Mn as aa,
|
|
783
|
+
Dn as ab,
|
|
784
|
+
Fn as ac,
|
|
785
|
+
qn as ad,
|
|
786
|
+
Hn as ae,
|
|
787
|
+
Pn as af,
|
|
788
|
+
Rn as ag,
|
|
789
|
+
Bn as ah,
|
|
790
|
+
Gn as ai,
|
|
791
|
+
Vn as aj,
|
|
792
|
+
Wn as ak,
|
|
793
|
+
$n as al,
|
|
794
|
+
zn as am,
|
|
795
|
+
Jn as an,
|
|
796
|
+
In as ao,
|
|
797
|
+
Un as ap,
|
|
798
|
+
Yn as aq,
|
|
799
|
+
Kn as ar,
|
|
800
|
+
Qn as as,
|
|
801
|
+
Xn as at,
|
|
802
|
+
Zn as au,
|
|
803
|
+
_n as av,
|
|
804
|
+
On as aw,
|
|
805
|
+
jn as ax,
|
|
806
|
+
et as ay,
|
|
807
|
+
nt as az,
|
|
808
|
+
Ge as b,
|
|
809
|
+
at as c,
|
|
810
|
+
Oe as d,
|
|
811
811
|
Ne as e,
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
812
|
+
ve as f,
|
|
813
|
+
ke as g,
|
|
814
|
+
Le as h,
|
|
815
|
+
Nn as i,
|
|
816
|
+
Te as j,
|
|
817
|
+
Ae as k,
|
|
818
|
+
Ln as l,
|
|
819
|
+
xe as m,
|
|
820
|
+
Me as n,
|
|
821
|
+
De as o,
|
|
822
|
+
Fe as p,
|
|
823
|
+
qe as q,
|
|
824
|
+
He as r,
|
|
825
|
+
ut as s,
|
|
826
|
+
Pe as t,
|
|
827
|
+
Re as u,
|
|
828
|
+
Be as v,
|
|
829
|
+
Ve as w,
|
|
830
|
+
We as x,
|
|
831
|
+
$e as y,
|
|
832
|
+
ze as z
|
|
833
833
|
};
|
package/lib/ticker/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var q = (r) => {
|
|
|
4
4
|
var L = (r, i, s) => i.has(r) || q("Cannot " + s);
|
|
5
5
|
var e = (r, i, s) => (L(r, i, "read from private field"), s ? s.call(r) : i.get(r)), h = (r, i, s) => i.has(r) ? q("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(r) : i.set(r, s), t = (r, i, s, n) => (L(r, i, "write to private field"), n ? n.call(r, s) : i.set(r, s), s), A = (r, i, s) => (L(r, i, "access private method"), s);
|
|
6
6
|
import { i as S } from "../browser-0zX67oeU.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as P } from "../dom-0S_WDL4g.js";
|
|
8
8
|
var o, u, v, m, b, l, g, F, E;
|
|
9
9
|
class V {
|
|
10
10
|
constructor(i, s) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 as c, OrthographicCamera as p, Mesh as w } from "three";
|
|
2
|
-
import { e as h } from "./en3-
|
|
2
|
+
import { e as h } from "./en3-sK9Z-fp2.js";
|
|
3
3
|
const s = new c(), g = new c();
|
|
4
4
|
function M(a, r = "default") {
|
|
5
5
|
const t = h.getView(r), { width: e, height: o } = h, n = e / o;
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),f=require("../file-C9BbxzVU.cjs"),C=require("../function-MthRj-GJ.cjs"),I=require("../gestures-DHLrn6Q8.cjs"),g=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),h=require("../url-C3dWnJQg.cjs");function y(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function P(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function T(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function v(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function w(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function x(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function q(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.createJSONAndSave=f.createJSONAndSave;exports.dispatchBeforeSizeChangeEvent=f.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=f.dispatchSizeChangeEvent;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=I.setupDrag;exports.getCumulativeOffsetLeft=g.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=g.getCumulativeOffsetTop;exports.getCumulativePosition=g.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=h.changeHistory;exports.normalizeBase=h.normalizeBase;exports.splitPath=h.splitPath;exports.decode=Q;exports.dotCircleCollision=w;exports.dotRectCollision=v;exports.encode=B;exports.formatBytes=T;exports.getRootVariables=x;exports.insert=y;exports.shiftArray=P;exports.wait=q;
|
package/lib/utils/index.js
CHANGED
|
@@ -2,19 +2,18 @@ import { a as b, p as C } from "../attributes-69we3byR.js";
|
|
|
2
2
|
import { i as w } from "../browser-0zX67oeU.js";
|
|
3
3
|
import { a as y, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
|
|
4
4
|
import { g as T, n as v, s as A } from "../coordinates-CgdGoSYs.js";
|
|
5
|
-
import { f as D, b as M,
|
|
5
|
+
import { f as D, b as M, a as R, g as z } from "../dom-0S_WDL4g.js";
|
|
6
6
|
import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { c as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { c as Xe, n as _e, s as ea } from "../url-DMNfW7uN.js";
|
|
7
|
+
import { c as ee, a as ae, d as te } from "../file-BEr-o55N.js";
|
|
8
|
+
import { d as oe, t as ne } from "../function-C10DGppn.js";
|
|
9
|
+
import { s as ie } from "../gestures-D2Fdra_G.js";
|
|
10
|
+
import { g as ce, a as le, b as fe } from "../layout-HoBT_Da2.js";
|
|
11
|
+
import { e as me, f as de, c as ge, d as xe, l as he, m as be, r as Ce, b as Ee, a as we, s as Se } from "../math-BOBiC4TN.js";
|
|
12
|
+
import { n as Oe, p as Be, r as Ie, t as Pe } from "../polyfills-X6KXuHg-.js";
|
|
13
|
+
import { c as ve, d as Ae, i as Qe, b as De, a as Me, m as Re, e as ze, o as ke, p as je } from "../object-D6MVWB4l.js";
|
|
14
|
+
import { c as Ve, a as Ue, g as $e, i as Fe, k as Ke, s as We, t as qe, u as Ge } from "../string-f0Dnk0L1.js";
|
|
15
|
+
import { g as Je, a as Le } from "../style-j2TwriJ_.js";
|
|
16
|
+
import { c as Ze, n as Xe, s as _e } from "../url-DMNfW7uN.js";
|
|
18
17
|
function i(a, e, ...t) {
|
|
19
18
|
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
20
19
|
}
|
|
@@ -85,22 +84,22 @@ function g(a) {
|
|
|
85
84
|
});
|
|
86
85
|
}
|
|
87
86
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
me as calculateDistance,
|
|
88
|
+
de as calculateDistanceWithRadius,
|
|
89
|
+
Ve as camelToKebab,
|
|
90
|
+
Ue as capitalize,
|
|
91
|
+
Ze as changeHistory,
|
|
92
|
+
ge as clamp,
|
|
93
|
+
ve as cloneDeep,
|
|
94
|
+
Ae as compareObjects,
|
|
96
95
|
y as contain,
|
|
97
96
|
O as cover,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
ee as createJSONAndSave,
|
|
98
|
+
xe as damp,
|
|
99
|
+
oe as debounce,
|
|
101
100
|
d as decode,
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
ae as dispatchBeforeSizeChangeEvent,
|
|
102
|
+
te as dispatchSizeChangeEvent,
|
|
104
103
|
f as dotCircleCollision,
|
|
105
104
|
l as dotRectCollision,
|
|
106
105
|
j as easeInCubic,
|
|
@@ -123,50 +122,50 @@ export {
|
|
|
123
122
|
M as findScrollParentElement,
|
|
124
123
|
B as fixPosition,
|
|
125
124
|
c as formatBytes,
|
|
126
|
-
|
|
125
|
+
$e as generateId,
|
|
127
126
|
R as getAllParentElements,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
ce as getCumulativeOffsetLeft,
|
|
128
|
+
le as getCumulativeOffsetTop,
|
|
129
|
+
fe as getCumulativePosition,
|
|
131
130
|
z as getElement,
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
Je as getElementTransitionDurationMS,
|
|
132
|
+
Le as getElementTransitionDurationS,
|
|
134
133
|
T as getPointerPosition,
|
|
135
134
|
p as getRootVariables,
|
|
136
135
|
i as insert,
|
|
137
136
|
w as isBrowser,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
Qe as isESClass,
|
|
138
|
+
De as isNullish,
|
|
139
|
+
Me as isObject,
|
|
140
|
+
Fe as isUppercase,
|
|
141
|
+
Ke as kebabToCamel,
|
|
142
|
+
he as lerp,
|
|
144
143
|
X as linear,
|
|
145
|
-
|
|
144
|
+
be as mapRange,
|
|
146
145
|
I as measureText,
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
Re as mergeDeep,
|
|
147
|
+
ze as mixin,
|
|
149
148
|
v as normalize,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
Xe as normalizeBase,
|
|
150
|
+
Oe as nullishCoalescing,
|
|
151
|
+
ke as omit,
|
|
153
152
|
b as parseAttribute,
|
|
154
153
|
C as parseAttributeValue,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
je as pick,
|
|
155
|
+
Be as preciseNumber,
|
|
156
|
+
Ce as round,
|
|
157
|
+
Ie as roundNumberTo,
|
|
159
158
|
A as screenToCartesian,
|
|
160
|
-
|
|
159
|
+
ie as setupDrag,
|
|
161
160
|
u as shiftArray,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
161
|
+
Ee as smootherstep,
|
|
162
|
+
we as smoothstep,
|
|
163
|
+
We as snakeToDotted,
|
|
164
|
+
_e as splitPath,
|
|
165
|
+
Se as step,
|
|
166
|
+
ne as throttle,
|
|
167
|
+
qe as toPascalCase,
|
|
168
|
+
Pe as toStep,
|
|
169
|
+
Ge as uncapitalize,
|
|
171
170
|
g as wait
|
|
172
171
|
};
|