aptechka 0.25.2 → 0.26.1
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/Animation-B9m8bw96.cjs +1 -0
- package/lib/Animation-DN95L7Xo.js +105 -0
- package/lib/Damped-CTsV8tl_.cjs +1 -0
- package/lib/Damped-Chu29wn-.js +53 -0
- package/lib/Tweened-BUuSLSF7.js +44 -0
- package/lib/Tweened-BttGiyB0.cjs +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -53
- package/lib/canvas-CU5Xjahf.cjs +1 -0
- package/lib/canvas-DeZ0SLUJ.js +34 -0
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/coordinates-CgdGoSYs.js +24 -0
- package/lib/coordinates-D8Np3cPD.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-resizer/react/index.cjs +1 -0
- package/lib/element-resizer/react/index.js +8 -0
- package/lib/element-resizer/vanilla/index.cjs +1 -0
- package/lib/element-resizer/{index.js → vanilla/index.js} +2 -2
- package/lib/en3/index.cjs +8 -0
- package/lib/en3/index.js +374 -0
- package/lib/events-CsVF98U6.js +6 -0
- package/lib/events-KVanG9sR.cjs +1 -0
- package/lib/intersector/react/index.cjs +1 -0
- package/lib/intersector/react/index.js +12 -0
- package/lib/intersector/vanilla/index.cjs +1 -0
- package/lib/intersector/{index.js → vanilla/index.js} +2 -2
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +3 -3
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +42 -85
- package/lib/math-BOBiC4TN.js +45 -0
- package/lib/math-GDWEqu7y.cjs +1 -0
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/media-elements/index.cjs +5 -0
- package/lib/media-elements/index.js +389 -0
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.js +227 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +6 -4
- package/lib/object-CCiXnER2.cjs +1 -0
- package/lib/object-D6MVWB4l.js +85 -0
- package/lib/pointer/index.cjs +1 -0
- package/lib/pointer/index.js +151 -0
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/router/index.cjs +1 -0
- package/lib/router/index.js +266 -0
- package/lib/scroll/react/index.cjs +30 -0
- package/lib/scroll/react/index.js +761 -0
- package/lib/scroll/vanilla/index.cjs +1 -0
- package/lib/scroll/vanilla/index.js +1120 -0
- package/lib/slicer/index.cjs +11 -0
- package/lib/slicer/index.js +108 -0
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/store/react/index.cjs +1 -0
- package/lib/store/react/index.js +14 -0
- package/lib/store/vanilla/index.cjs +1 -0
- package/lib/store/{index.js → vanilla/index.js} +3 -3
- package/lib/style-BqzUd8Fy.cjs +1 -0
- package/lib/style-M-RBTQxT.js +21 -0
- package/lib/ticker/react/index.cjs +1 -0
- package/lib/ticker/react/index.js +19 -0
- package/lib/ticker/vanilla/index.cjs +1 -0
- package/lib/ticker/{index.js → vanilla/index.js} +2 -2
- package/lib/url-BuZrUXAO.js +25 -0
- package/lib/url-qZNgg7IM.cjs +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +147 -223
- package/lib/window-resizer/react/index.cjs +1 -0
- package/lib/window-resizer/react/index.js +8 -0
- package/lib/window-resizer/vanilla/index.cjs +1 -0
- package/lib/window-resizer/vanilla/index.js +32 -0
- package/package.json +146 -26
- package/lib/Tweened-CDYmG9hk.js +0 -138
- package/lib/Tweened-DlyMbHu_.cjs +0 -1
- package/lib/element-resizer/index.cjs +0 -1
- package/lib/intersector/index.cjs +0 -1
- package/lib/polyfills-AItxku8u.js +0 -76
- package/lib/polyfills-Caa6z-Ay.cjs +0 -1
- package/lib/store/index.cjs +0 -1
- package/lib/style-B2GS6rev.js +0 -104
- package/lib/style-qftK_UJp.cjs +0 -1
- package/lib/ticker/index.cjs +0 -1
- package/lib/window-resizer/index.cjs +0 -1
- package/lib/window-resizer/index.js +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"default": "./lib/attribute/index.js",
|
|
29
29
|
"types": "./lib/attribute/index.d.ts"
|
|
30
30
|
},
|
|
31
|
+
"./canvas": {
|
|
32
|
+
"require": "./lib/canvas/index.cjs",
|
|
33
|
+
"default": "./lib/canvas/index.js",
|
|
34
|
+
"types": "./lib/canvas/index.d.ts"
|
|
35
|
+
},
|
|
31
36
|
"./class-linked-status": {
|
|
32
37
|
"require": "./lib/class-linked-status/index.cjs",
|
|
33
38
|
"default": "./lib/class-linked-status/index.js",
|
|
@@ -73,10 +78,20 @@
|
|
|
73
78
|
"default": "./lib/element-resizer/index.js",
|
|
74
79
|
"types": "./lib/element-resizer/index.d.ts"
|
|
75
80
|
},
|
|
76
|
-
"./
|
|
77
|
-
"require": "./lib/
|
|
78
|
-
"default": "./lib/
|
|
79
|
-
"types": "./lib/
|
|
81
|
+
"./en3": {
|
|
82
|
+
"require": "./lib/en3/index.cjs",
|
|
83
|
+
"default": "./lib/en3/index.js",
|
|
84
|
+
"types": "./lib/en3/index.d.ts"
|
|
85
|
+
},
|
|
86
|
+
"./intersector/vanilla": {
|
|
87
|
+
"require": "./lib/intersector/vanilla/index.cjs",
|
|
88
|
+
"default": "./lib/intersector/vanilla/index.js",
|
|
89
|
+
"types": "./lib/intersector/vanilla/index.d.ts"
|
|
90
|
+
},
|
|
91
|
+
"./intersector/react": {
|
|
92
|
+
"require": "./lib/intersector/react/index.cjs",
|
|
93
|
+
"default": "./lib/intersector/react/index.js",
|
|
94
|
+
"types": "./lib/intersector/react/index.d.ts"
|
|
80
95
|
},
|
|
81
96
|
"./ladder": {
|
|
82
97
|
"require": "./lib/ladder/index.cjs",
|
|
@@ -98,6 +113,16 @@
|
|
|
98
113
|
"default": "./lib/media/index.js",
|
|
99
114
|
"types": "./lib/media/index.d.ts"
|
|
100
115
|
},
|
|
116
|
+
"./media-elements": {
|
|
117
|
+
"require": "./lib/media-elements/index.cjs",
|
|
118
|
+
"default": "./lib/media-elements/index.js",
|
|
119
|
+
"types": "./lib/media-elements/index.d.ts"
|
|
120
|
+
},
|
|
121
|
+
"./morph": {
|
|
122
|
+
"require": "./lib/morph/index.cjs",
|
|
123
|
+
"default": "./lib/morph/index.js",
|
|
124
|
+
"types": "./lib/morph/index.d.ts"
|
|
125
|
+
},
|
|
101
126
|
"./notifier": {
|
|
102
127
|
"require": "./lib/notifier/index.cjs",
|
|
103
128
|
"default": "./lib/notifier/index.js",
|
|
@@ -108,25 +133,60 @@
|
|
|
108
133
|
"default": "./lib/order/index.js",
|
|
109
134
|
"types": "./lib/order/index.d.ts"
|
|
110
135
|
},
|
|
136
|
+
"./pointer": {
|
|
137
|
+
"require": "./lib/pointer/index.cjs",
|
|
138
|
+
"default": "./lib/pointer/index.js",
|
|
139
|
+
"types": "./lib/pointer/index.d.ts"
|
|
140
|
+
},
|
|
141
|
+
"./router": {
|
|
142
|
+
"require": "./lib/router/index.cjs",
|
|
143
|
+
"default": "./lib/router/index.js",
|
|
144
|
+
"types": "./lib/router/index.d.ts"
|
|
145
|
+
},
|
|
146
|
+
"./scroll/vanilla": {
|
|
147
|
+
"require": "./lib/scroll/vanilla/index.cjs",
|
|
148
|
+
"default": "./lib/scroll/vanilla/index.js",
|
|
149
|
+
"types": "./lib/scroll/vanilla/index.d.ts"
|
|
150
|
+
},
|
|
151
|
+
"./scroll/react": {
|
|
152
|
+
"require": "./lib/scroll/react/index.cjs",
|
|
153
|
+
"default": "./lib/scroll/react/index.js",
|
|
154
|
+
"types": "./lib/scroll/react/index.d.ts"
|
|
155
|
+
},
|
|
111
156
|
"./scroll-entries": {
|
|
112
157
|
"require": "./lib/scroll-entries/index.cjs",
|
|
113
158
|
"default": "./lib/scroll-entries/index.js",
|
|
114
159
|
"types": "./lib/scroll-entries/index.d.ts"
|
|
115
160
|
},
|
|
161
|
+
"./slicer": {
|
|
162
|
+
"require": "./lib/slicer/index.cjs",
|
|
163
|
+
"default": "./lib/slicer/index.js",
|
|
164
|
+
"types": "./lib/slicer/index.d.ts"
|
|
165
|
+
},
|
|
116
166
|
"./source": {
|
|
117
167
|
"require": "./lib/source/index.cjs",
|
|
118
168
|
"default": "./lib/source/index.js",
|
|
119
169
|
"types": "./lib/source/index.d.ts"
|
|
120
170
|
},
|
|
121
|
-
"./store": {
|
|
122
|
-
"require": "./lib/store/index.cjs",
|
|
123
|
-
"default": "./lib/store/index.js",
|
|
124
|
-
"types": "./lib/store/index.d.ts"
|
|
171
|
+
"./store/vanill": {
|
|
172
|
+
"require": "./lib/store/vanill/index.cjs",
|
|
173
|
+
"default": "./lib/store/vanill/index.js",
|
|
174
|
+
"types": "./lib/store/vanill/index.d.ts"
|
|
175
|
+
},
|
|
176
|
+
"./store/react": {
|
|
177
|
+
"require": "./lib/store/react/index.cjs",
|
|
178
|
+
"default": "./lib/store/react/index.js",
|
|
179
|
+
"types": "./lib/store/react/index.d.ts"
|
|
125
180
|
},
|
|
126
|
-
"./ticker": {
|
|
127
|
-
"require": "./lib/ticker/index.cjs",
|
|
128
|
-
"default": "./lib/ticker/index.js",
|
|
129
|
-
"types": "./lib/ticker/index.d.ts"
|
|
181
|
+
"./ticker/vanilla": {
|
|
182
|
+
"require": "./lib/ticker/vanilla/index.cjs",
|
|
183
|
+
"default": "./lib/ticker/vanilla/index.js",
|
|
184
|
+
"types": "./lib/ticker/vanilla/index.d.ts"
|
|
185
|
+
},
|
|
186
|
+
"./ticker/react": {
|
|
187
|
+
"require": "./lib/ticker/react/index.cjs",
|
|
188
|
+
"default": "./lib/ticker/react/index.js",
|
|
189
|
+
"types": "./lib/ticker/react/index.d.ts"
|
|
130
190
|
},
|
|
131
191
|
"./need_redo_tweaker": {
|
|
132
192
|
"require": "./lib/need_redo_tweaker/index.cjs",
|
|
@@ -138,10 +198,15 @@
|
|
|
138
198
|
"default": "./lib/utils/index.js",
|
|
139
199
|
"types": "./lib/utils/index.d.ts"
|
|
140
200
|
},
|
|
141
|
-
"./window-resizer": {
|
|
142
|
-
"require": "./lib/window-resizer/index.cjs",
|
|
143
|
-
"default": "./lib/window-resizer/index.js",
|
|
144
|
-
"types": "./lib/window-resizer/index.d.ts"
|
|
201
|
+
"./window-resizer/vanilla": {
|
|
202
|
+
"require": "./lib/window-resizer/vanilla/index.cjs",
|
|
203
|
+
"default": "./lib/window-resizer/vanilla/index.js",
|
|
204
|
+
"types": "./lib/window-resizer/vanilla/index.d.ts"
|
|
205
|
+
},
|
|
206
|
+
"./window-resizer/react": {
|
|
207
|
+
"require": "./lib/window-resizer/react/index.cjs",
|
|
208
|
+
"default": "./lib/window-resizer/react/index.js",
|
|
209
|
+
"types": "./lib/window-resizer/react/index.d.ts"
|
|
145
210
|
}
|
|
146
211
|
},
|
|
147
212
|
"typesVersions": {
|
|
@@ -152,6 +217,9 @@
|
|
|
152
217
|
"attribute": [
|
|
153
218
|
"lib/attribute/index.d.ts"
|
|
154
219
|
],
|
|
220
|
+
"canvas": [
|
|
221
|
+
"lib/canvas/index.d.ts"
|
|
222
|
+
],
|
|
155
223
|
"class-linked-status": [
|
|
156
224
|
"lib/class-linked-status/index.d.ts"
|
|
157
225
|
],
|
|
@@ -179,11 +247,20 @@
|
|
|
179
247
|
"device": [
|
|
180
248
|
"lib/device/index.d.ts"
|
|
181
249
|
],
|
|
182
|
-
"element-resizer": [
|
|
183
|
-
"lib/element-resizer/index.d.ts"
|
|
250
|
+
"element-resizer/vanilla": [
|
|
251
|
+
"lib/element-resizer/vanilla/index.d.ts"
|
|
184
252
|
],
|
|
185
|
-
"
|
|
186
|
-
"lib/
|
|
253
|
+
"element-resizer/react": [
|
|
254
|
+
"lib/element-resizer/react/index.d.ts"
|
|
255
|
+
],
|
|
256
|
+
"en3": [
|
|
257
|
+
"lib/en3/index.d.ts"
|
|
258
|
+
],
|
|
259
|
+
"intersector/vanilla": [
|
|
260
|
+
"lib/intersector/vanilla/index.d.ts"
|
|
261
|
+
],
|
|
262
|
+
"intersector/react": [
|
|
263
|
+
"lib/intersector/react/index.d.ts"
|
|
187
264
|
],
|
|
188
265
|
"ladder": [
|
|
189
266
|
"lib/ladder/index.d.ts"
|
|
@@ -197,23 +274,50 @@
|
|
|
197
274
|
"media": [
|
|
198
275
|
"lib/media/index.d.ts"
|
|
199
276
|
],
|
|
277
|
+
"media-elements": [
|
|
278
|
+
"lib/media-elements/index.d.ts"
|
|
279
|
+
],
|
|
280
|
+
"morph": [
|
|
281
|
+
"lib/morph/index.d.ts"
|
|
282
|
+
],
|
|
200
283
|
"notifier": [
|
|
201
284
|
"lib/notifier/index.d.ts"
|
|
202
285
|
],
|
|
203
286
|
"order": [
|
|
204
287
|
"lib/order/index.d.ts"
|
|
205
288
|
],
|
|
289
|
+
"pointer": [
|
|
290
|
+
"lib/pointer/index.d.ts"
|
|
291
|
+
],
|
|
292
|
+
"router": [
|
|
293
|
+
"lib/router/index.d.ts"
|
|
294
|
+
],
|
|
295
|
+
"scroll/vanilla": [
|
|
296
|
+
"lib/scroll/vanilla/index.d.ts"
|
|
297
|
+
],
|
|
298
|
+
"scroll/react": [
|
|
299
|
+
"lib/scroll/react/index.d.ts"
|
|
300
|
+
],
|
|
206
301
|
"scroll-entries": [
|
|
207
302
|
"lib/scroll-entries/index.d.ts"
|
|
208
303
|
],
|
|
304
|
+
"slicer": [
|
|
305
|
+
"lib/slicer/index.d.ts"
|
|
306
|
+
],
|
|
209
307
|
"source": [
|
|
210
308
|
"lib/source/index.d.ts"
|
|
211
309
|
],
|
|
212
|
-
"store": [
|
|
213
|
-
"lib/store/index.d.ts"
|
|
310
|
+
"store/vanilla": [
|
|
311
|
+
"lib/store/vanilla/index.d.ts"
|
|
312
|
+
],
|
|
313
|
+
"store/react": [
|
|
314
|
+
"lib/store/react/index.d.ts"
|
|
214
315
|
],
|
|
215
|
-
"ticker": [
|
|
216
|
-
"lib/ticker/index.d.ts"
|
|
316
|
+
"ticker/vanilla": [
|
|
317
|
+
"lib/ticker/vanilla/index.d.ts"
|
|
318
|
+
],
|
|
319
|
+
"ticker/react": [
|
|
320
|
+
"lib/ticker/react/index.d.ts"
|
|
217
321
|
],
|
|
218
322
|
"need_redo_tweaker": [
|
|
219
323
|
"lib/need_redo_tweaker/index.d.ts"
|
|
@@ -234,9 +338,25 @@
|
|
|
234
338
|
},
|
|
235
339
|
"devDependencies": {
|
|
236
340
|
"@types/node": "^22.2.0",
|
|
341
|
+
"@types/react": "^18.3.3",
|
|
342
|
+
"@types/react-dom": "^18.3.0",
|
|
343
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
344
|
+
"@types/three": "^0.167.1",
|
|
237
345
|
"tsx": "^4.17.0",
|
|
238
346
|
"vite": "5.4.0",
|
|
239
347
|
"vite-plugin-dts": "^4.0.2",
|
|
240
|
-
"vite-plugin-htmc": "
|
|
348
|
+
"vite-plugin-htmc": "0.1.15"
|
|
349
|
+
},
|
|
350
|
+
"dependencies": {
|
|
351
|
+
"react": "^18.3.1",
|
|
352
|
+
"react-dom": "^18.3.1",
|
|
353
|
+
"three": "^0.167.1",
|
|
354
|
+
"urlpattern-polyfill": "^10.0.0"
|
|
355
|
+
},
|
|
356
|
+
"peerDependencies": {
|
|
357
|
+
"react": "^18.3.1",
|
|
358
|
+
"react-dom": "^18.3.1",
|
|
359
|
+
"three": "^0.167.1",
|
|
360
|
+
"urlpattern-polyfill": "^10.0.0"
|
|
241
361
|
}
|
|
242
362
|
}
|
package/lib/Tweened-CDYmG9hk.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
var K = Object.defineProperty, L = Object.defineProperties;
|
|
2
|
-
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var I = Object.getOwnPropertySymbols;
|
|
4
|
-
var _ = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var T = (i) => {
|
|
6
|
-
throw TypeError(i);
|
|
7
|
-
};
|
|
8
|
-
var P = (i, s, t) => s in i ? K(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t, R = (i, s) => {
|
|
9
|
-
for (var t in s || (s = {}))
|
|
10
|
-
_.call(s, t) && P(i, t, s[t]);
|
|
11
|
-
if (I)
|
|
12
|
-
for (var t of I(s))
|
|
13
|
-
j.call(s, t) && P(i, t, s[t]);
|
|
14
|
-
return i;
|
|
15
|
-
}, y = (i, s) => L(i, V(s));
|
|
16
|
-
var q = (i, s, t) => s.has(i) || T("Cannot " + t);
|
|
17
|
-
var e = (i, s, t) => (q(i, s, "read from private field"), t ? t.call(i) : s.get(i)), a = (i, s, t) => s.has(i) ? T("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, t), h = (i, s, t, r) => (q(i, s, "write to private field"), r ? r.call(i, t) : s.set(i, t), t), N = (i, s, t) => (q(i, s, "access private method"), t);
|
|
18
|
-
import { l as B } from "./easings-BKi40vHz.js";
|
|
19
|
-
import { p as z, n as c, c as E } from "./polyfills-AItxku8u.js";
|
|
20
|
-
import { S as w } from "./Store-OTdcl6SX.js";
|
|
21
|
-
import { ticker as C } from "./ticker/index.js";
|
|
22
|
-
import { TICK_ORDER as G } from "./order/index.js";
|
|
23
|
-
var f, A, F, l, S, n, u, m, d, g, M, k, O;
|
|
24
|
-
class H extends w {
|
|
25
|
-
constructor(t, r) {
|
|
26
|
-
super(t || 0, r);
|
|
27
|
-
a(this, M);
|
|
28
|
-
a(this, f);
|
|
29
|
-
a(this, A, G.ANIMATION);
|
|
30
|
-
a(this, F);
|
|
31
|
-
a(this, l, new w(!1));
|
|
32
|
-
a(this, S, 0);
|
|
33
|
-
a(this, n, 0);
|
|
34
|
-
a(this, u, -1 / 0);
|
|
35
|
-
a(this, m, 1 / 0);
|
|
36
|
-
a(this, d, 0);
|
|
37
|
-
a(this, g, null);
|
|
38
|
-
a(this, O, (t) => {
|
|
39
|
-
this.handleAnimationFrame(t);
|
|
40
|
-
});
|
|
41
|
-
h(this, n, this.current);
|
|
42
|
-
}
|
|
43
|
-
get direction() {
|
|
44
|
-
return e(this, S);
|
|
45
|
-
}
|
|
46
|
-
get target() {
|
|
47
|
-
return e(this, n);
|
|
48
|
-
}
|
|
49
|
-
get min() {
|
|
50
|
-
return e(this, u);
|
|
51
|
-
}
|
|
52
|
-
set min(t) {
|
|
53
|
-
h(this, u, t), this.set(e(this, n), {
|
|
54
|
-
equalize: !0
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
get max() {
|
|
58
|
-
return e(this, m);
|
|
59
|
-
}
|
|
60
|
-
set max(t) {
|
|
61
|
-
h(this, m, t), this.set(e(this, n), {
|
|
62
|
-
equalize: !0
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
get from() {
|
|
66
|
-
return e(this, d);
|
|
67
|
-
}
|
|
68
|
-
get isRunning() {
|
|
69
|
-
return e(this, l);
|
|
70
|
-
}
|
|
71
|
-
get delta() {
|
|
72
|
-
return Math.abs(e(this, n) - e(this, d));
|
|
73
|
-
}
|
|
74
|
-
get deltaProgress() {
|
|
75
|
-
return this.delta ? z(Math.abs(this.current - e(this, d)) / this.delta, 6) : 0;
|
|
76
|
-
}
|
|
77
|
-
get distance() {
|
|
78
|
-
return Math.abs(e(this, m) - e(this, u));
|
|
79
|
-
}
|
|
80
|
-
get distanceProgress() {
|
|
81
|
-
return this.distance ? z(Math.abs(this.current - e(this, u)) / this.distance, 6) : 0;
|
|
82
|
-
}
|
|
83
|
-
set(t, r) {
|
|
84
|
-
(e(this, n) !== t || r != null && r.restart) && (h(this, g, t), this.updateOptions(r), h(this, g, null), e(this, n) !== this.current && this.start());
|
|
85
|
-
}
|
|
86
|
-
shift(t, r) {
|
|
87
|
-
this.set(e(this, n) + t, r);
|
|
88
|
-
}
|
|
89
|
-
reset() {
|
|
90
|
-
super.reset(), this.set(this.initial, { equalize: !0 });
|
|
91
|
-
}
|
|
92
|
-
close() {
|
|
93
|
-
super.close(), this.reset(), this.unlistenAnimationFrame();
|
|
94
|
-
}
|
|
95
|
-
listenAnimationFrame() {
|
|
96
|
-
e(this, l).current || (e(this, l).current = !0, C.subscribe(e(this, O), {
|
|
97
|
-
maxFPS: e(this, f),
|
|
98
|
-
order: e(this, A),
|
|
99
|
-
culling: e(this, F)
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
unlistenAnimationFrame() {
|
|
103
|
-
e(this, l).current && (e(this, l).current = !1, C.unsubscribe(e(this, O)));
|
|
104
|
-
}
|
|
105
|
-
updateOptions(t) {
|
|
106
|
-
h(this, f, c(t == null ? void 0 : t.maxFPS, e(this, f))), h(this, A, c(t == null ? void 0 : t.order, e(this, A))), h(this, F, c(t == null ? void 0 : t.culling, e(this, F))), h(this, u, c(t == null ? void 0 : t.min, e(this, u))), h(this, m, c(t == null ? void 0 : t.max, e(this, m))), N(this, M, k).call(this, typeof e(this, g) == "number" ? e(this, g) : e(this, n)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, n)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
|
|
107
|
-
}
|
|
108
|
-
start() {
|
|
109
|
-
this.listenAnimationFrame();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
f = new WeakMap(), A = new WeakMap(), F = new WeakMap(), l = new WeakMap(), S = new WeakMap(), n = new WeakMap(), u = new WeakMap(), m = new WeakMap(), d = new WeakMap(), g = new WeakMap(), M = new WeakSet(), k = function(t) {
|
|
113
|
-
h(this, S, Math.sign(t - e(this, n))), h(this, n, E(t, e(this, u), e(this, m))), h(this, d, this.current);
|
|
114
|
-
}, O = new WeakMap();
|
|
115
|
-
var b, x;
|
|
116
|
-
class Z extends H {
|
|
117
|
-
constructor(t, r) {
|
|
118
|
-
super(t || 0, r);
|
|
119
|
-
a(this, b, B);
|
|
120
|
-
a(this, x, 1e3);
|
|
121
|
-
this.updateOptions(y(R({}, r), { equalize: !0 }));
|
|
122
|
-
}
|
|
123
|
-
updateOptions(t) {
|
|
124
|
-
super.updateOptions(t), h(this, b, c(t == null ? void 0 : t.easing, e(this, b))), h(this, x, c(t == null ? void 0 : t.duration, e(this, x)));
|
|
125
|
-
}
|
|
126
|
-
handleAnimationFrame(t) {
|
|
127
|
-
const r = t.timeElapsedSinceSubscription / 1e3 / (e(this, x) / 1e3), D = e(this, b).call(this, E(r, 0, 1));
|
|
128
|
-
this.current = z(this.from + (this.target - this.from) * D, 6), r > 1 && this.unlistenAnimationFrame();
|
|
129
|
-
}
|
|
130
|
-
start() {
|
|
131
|
-
this.unlistenAnimationFrame(), this.listenAnimationFrame();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
b = new WeakMap(), x = new WeakMap();
|
|
135
|
-
export {
|
|
136
|
-
H as A,
|
|
137
|
-
Z as T
|
|
138
|
-
};
|
package/lib/Tweened-DlyMbHu_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var E=Object.defineProperty,D=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var I=i=>{throw TypeError(i)};var z=(i,s,t)=>s in i?E(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,N=(i,s)=>{for(var t in s||(s={}))L.call(s,t)&&z(i,t,s[t]);if(M)for(var t of M(s))V.call(s,t)&&z(i,t,s[t]);return i},P=(i,s)=>D(i,K(s));var O=(i,s,t)=>s.has(i)||I("Cannot "+t);var e=(i,s,t)=>(O(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?I("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,r)=>(O(i,s,"write to private field"),r?r.call(i,t):s.set(i,t),t),T=(i,s,t)=>(O(i,s,"access private method"),t);const j=require("./easings-DsS5-Kqc.cjs"),u=require("./polyfills-Caa6z-Ay.cjs"),y=require("./Store-CDb6RMce.cjs"),R=require("./ticker/index.cjs"),B=require("./order/index.cjs");var f,A,F,m,q,n,l,c,g,d,C,w,S;class k extends y.Store{constructor(t,r){super(t||0,r);a(this,C);a(this,f);a(this,A,B.TICK_ORDER.ANIMATION);a(this,F);a(this,m,new y.Store(!1));a(this,q,0);a(this,n,0);a(this,l,-1/0);a(this,c,1/0);a(this,g,0);a(this,d,null);a(this,S,t=>{this.handleAnimationFrame(t)});h(this,n,this.current)}get direction(){return e(this,q)}get target(){return e(this,n)}get min(){return e(this,l)}set min(t){h(this,l,t),this.set(e(this,n),{equalize:!0})}get max(){return e(this,c)}set max(t){h(this,c,t),this.set(e(this,n),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,m)}get delta(){return Math.abs(e(this,n)-e(this,g))}get deltaProgress(){return this.delta?u.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,c)-e(this,l))}get distanceProgress(){return this.distance?u.preciseNumber(Math.abs(this.current-e(this,l))/this.distance,6):0}set(t,r){(e(this,n)!==t||r!=null&&r.restart)&&(h(this,d,t),this.updateOptions(r),h(this,d,null),e(this,n)!==this.current&&this.start())}shift(t,r){this.set(e(this,n)+t,r)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,m).current||(e(this,m).current=!0,R.ticker.subscribe(e(this,S),{maxFPS:e(this,f),order:e(this,A),culling:e(this,F)}))}unlistenAnimationFrame(){e(this,m).current&&(e(this,m).current=!1,R.ticker.unsubscribe(e(this,S)))}updateOptions(t){h(this,f,u.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,A,u.nullishCoalescing(t==null?void 0:t.order,e(this,A))),h(this,F,u.nullishCoalescing(t==null?void 0:t.culling,e(this,F))),h(this,l,u.nullishCoalescing(t==null?void 0:t.min,e(this,l))),h(this,c,u.nullishCoalescing(t==null?void 0:t.max,e(this,c))),T(this,C,w).call(this,typeof e(this,d)=="number"?e(this,d):e(this,n)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,n)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,A=new WeakMap,F=new WeakMap,m=new WeakMap,q=new WeakMap,n=new WeakMap,l=new WeakMap,c=new WeakMap,g=new WeakMap,d=new WeakMap,C=new WeakSet,w=function(t){h(this,q,Math.sign(t-e(this,n))),h(this,n,u.clamp(t,e(this,l),e(this,c))),h(this,g,this.current)},S=new WeakMap;var b,x;class G extends k{constructor(t,r){super(t||0,r);a(this,b,j.linear);a(this,x,1e3);this.updateOptions(P(N({},r),{equalize:!0}))}updateOptions(t){super.updateOptions(t),h(this,b,u.nullishCoalescing(t==null?void 0:t.easing,e(this,b))),h(this,x,u.nullishCoalescing(t==null?void 0:t.duration,e(this,x)))}handleAnimationFrame(t){const r=t.timeElapsedSinceSubscription/1e3/(e(this,x)/1e3),_=e(this,b).call(this,u.clamp(r,0,1));this.current=u.preciseNumber(this.from+(this.target-this.from)*_,6),r>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}b=new WeakMap,x=new WeakMap;exports.Animation=k;exports.Tweened=G;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var h=r=>{throw TypeError(r)};var y=(r,t,s)=>t.has(r)||h("Cannot "+s);var n=(r,t,s)=>(y(r,t,"read from private field"),s?s.call(r):t.get(r)),b=(r,t,s)=>t.has(r)?h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,s),f=(r,t,s,e)=>(y(r,t,"write to private field"),e?e.call(r,s):t.set(r,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");var i,o,u;class z{constructor(){b(this,i,[]);b(this,o,null);b(this,u,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});d.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(n(this,u)))}subscribe(t,s){const e=w.getElement(t);if(!e)return()=>{};const l=n(this,i).find(c=>c.element===e);if(!l)n(this,o).observe(e);else{const c=n(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&s(c.entry)}return n(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=n(this,i).find(e=>e.callback===t);s&&(f(this,i,n(this,i).filter(e=>e.callback!==s.callback)),n(this,i).find(e=>e.element===s.element)||n(this,o).unobserve(s.element))}}i=new WeakMap,o=new WeakMap,u=new WeakMap;const v=new z;exports.ElementResizer=z;exports.elementResizer=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=n=>{throw TypeError(n)};var m=(n,t,s)=>t.has(n)||y("Cannot "+s);var r=(n,t,s)=>(m(n,t,"read from private field"),s?s.call(n):t.get(n)),b=(n,t,s)=>t.has(n)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,s),f=(n,t,s,e)=>(m(n,t,"write to private field"),e?e.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");var i,u,l;class g{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{r(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(r(this,l)))}subscribe(t,s){const e=d.getElement(t);if(!e)return()=>{};const o=r(this,i).find(c=>c.element===e);if(!o)r(this,u).observe(e);else{const c=r(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&s(c.entry)}return r(this,i).push({element:e,callback:s,entry:(o==null?void 0:o.entry)||null}),console.log(r(this,i)),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=r(this,i).find(e=>e.callback===t);s&&(f(this,i,r(this,i).filter(e=>e.callback===t)),r(this,i).find(e=>e.element===s.element)||r(this,u).unobserve(s.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const v=new g;exports.Intersector=g;exports.intersector=v;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
function i(t, n, e) {
|
|
2
|
-
return (1 - e) * t + e * n;
|
|
3
|
-
}
|
|
4
|
-
function d(t, n, e, r) {
|
|
5
|
-
return i(t, n, 1 - Math.exp(-e * r));
|
|
6
|
-
}
|
|
7
|
-
function l(t, n, e = 0, r = 1) {
|
|
8
|
-
return n < t ? e : r;
|
|
9
|
-
}
|
|
10
|
-
function h(t, n = 5) {
|
|
11
|
-
return +t.toFixed(n);
|
|
12
|
-
}
|
|
13
|
-
function f(t, n = 0, e = 0) {
|
|
14
|
-
return Math.max(n, Math.min(t, e));
|
|
15
|
-
}
|
|
16
|
-
function M(t, n, e) {
|
|
17
|
-
const s = (t - n[0]) / (n[1] - n[0]) * (e[1] - e[0]) + e[0];
|
|
18
|
-
return f(s, e[0], e[1]);
|
|
19
|
-
}
|
|
20
|
-
function m(t, n, e) {
|
|
21
|
-
return t <= n ? 0 : t >= e ? 1 : (t = (t - n) / (e - n), t * t * (3 - 2 * t));
|
|
22
|
-
}
|
|
23
|
-
function y(t, n, e) {
|
|
24
|
-
return t <= n ? 0 : t >= e ? 1 : (t = (t - n) / (e - n), t * t * t * (t * (t * 6 - 15) + 10));
|
|
25
|
-
}
|
|
26
|
-
function D(t, n) {
|
|
27
|
-
const e = n.x - t.x, r = n.y - t.y;
|
|
28
|
-
return Math.sqrt(Math.pow(e, 2) + Math.pow(r, 2));
|
|
29
|
-
}
|
|
30
|
-
function b(t, n, e, r, s, o) {
|
|
31
|
-
const u = r - t, c = s - n;
|
|
32
|
-
return Math.sqrt(u * u + c * c) - (e + o);
|
|
33
|
-
}
|
|
34
|
-
const a = [
|
|
35
|
-
1,
|
|
36
|
-
10,
|
|
37
|
-
100,
|
|
38
|
-
1e3,
|
|
39
|
-
1e4,
|
|
40
|
-
1e5,
|
|
41
|
-
1e6,
|
|
42
|
-
1e7,
|
|
43
|
-
1e8,
|
|
44
|
-
1e9,
|
|
45
|
-
1e10
|
|
46
|
-
];
|
|
47
|
-
function V(t, n = 5) {
|
|
48
|
-
return Math.round(t * a[n]) / a[n];
|
|
49
|
-
}
|
|
50
|
-
function q(t, n) {
|
|
51
|
-
return Math.round(t / n) * n;
|
|
52
|
-
}
|
|
53
|
-
function w(t, n) {
|
|
54
|
-
var r;
|
|
55
|
-
const e = ((r = n.toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
56
|
-
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
57
|
-
}
|
|
58
|
-
function F(t, n) {
|
|
59
|
-
return typeof t == "undefined" ? n : t;
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
m as a,
|
|
63
|
-
y as b,
|
|
64
|
-
f as c,
|
|
65
|
-
d,
|
|
66
|
-
D as e,
|
|
67
|
-
b as f,
|
|
68
|
-
q as g,
|
|
69
|
-
i as l,
|
|
70
|
-
M as m,
|
|
71
|
-
F as n,
|
|
72
|
-
V as p,
|
|
73
|
-
h as r,
|
|
74
|
-
l as s,
|
|
75
|
-
w as t
|
|
76
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(t,e,n){return(1-n)*t+n*e}function l(t,e,n,r){return a(t,e,1-Math.exp(-n*r))}function d(t,e,n=0,r=1){return e<t?n:r}function f(t,e=5){return+t.toFixed(e)}function p(t,e=0,n=0){return Math.max(e,Math.min(t,n))}function h(t,e,n){const u=(t-e[0])/(e[1]-e[0])*(n[1]-n[0])+n[0];return p(u,n[0],n[1])}function m(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function M(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function D(t,e){const n=e.x-t.x,r=e.y-t.y;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}function y(t,e,n,r,u,c){const o=r-t,i=u-e;return Math.sqrt(o*o+i*i)-(n+c)}const s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function b(t,e=5){return Math.round(t*s[e])/s[e]}function N(t,e){return Math.round(t/e)*e}function R(t,e){var r;const n=((r=e.toString().split(".")[1])==null?void 0:r.length)||0;return n?+t.toFixed(n):Math.ceil(t)}function S(t,e){return typeof t=="undefined"?e:t}exports.calculateDistance=D;exports.calculateDistanceWithRadius=y;exports.clamp=p;exports.damp=l;exports.lerp=a;exports.mapRange=h;exports.nullishCoalescing=S;exports.preciseNumber=b;exports.round=f;exports.roundNumberTo=N;exports.smootherstep=M;exports.smoothstep=m;exports.step=d;exports.toStep=R;
|
package/lib/store/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var g=r=>{throw TypeError(r)};var v=(r,s,e)=>s.has(r)||g("Cannot "+e);var c=(r,s,e)=>(v(r,s,"read from private field"),e?e.call(r):s.get(r)),n=(r,s,e)=>s.has(r)?g("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),h=(r,s,e,t)=>(v(r,s,"write to private field"),t?t.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Store-CDb6RMce.cjs"),m=require("../function-MthRj-GJ.cjs");var d;class D extends i.Store{constructor(e,t,u){super(null,u);n(this,d);h(this,d,e.subscribe(a=>{this.current=t(a.current)}))}close(){super.close(),c(this,d).call(this)}}d=new WeakMap;var b;class R extends i.Store{constructor(e,t,u){super(null,u);n(this,b);h(this,b,e.subscribe(a=>{this.current=a.current.map((p,x,y)=>t(p,x,y))}))}close(){super.close(),c(this,b).call(this)}}b=new WeakMap;var f,o,l;class C extends i.Store{constructor(e,t,u){super(e,u);n(this,f);n(this,o);n(this,l,0);h(this,o,new i.Store(!1)),h(this,f,t),u!=null&&u.manualControl||this.refetch()}get isPending(){return c(this,o)}refetch(){c(this,o).current=!0,h(this,l,c(this,l)+1);const e=c(this,l);c(this,f).call(this).then(t=>{e===c(this,l)&&(c(this,o).current=!1,this.current=t)})}}f=new WeakMap,o=new WeakMap,l=new WeakMap;var S;class P extends i.Store{constructor(e,t,u){super(null,u);n(this,S,[]);const a=m.debounce(()=>{this.current=t()},0);e.forEach(p=>{c(this,S).push(p.subscribe(()=>{a()}))})}close(){super.close(),c(this,S).forEach(e=>e())}}S=new WeakMap;exports.Store=i.Store;exports.activeStores=i.activeStores;exports.storeRegistry=i.storeRegistry;exports.Composed=P;exports.Derived=D;exports.DerivedArray=R;exports.Resource=C;
|
package/lib/style-B2GS6rev.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function p(e, t) {
|
|
2
|
-
const n = new Blob([JSON.stringify(t)], { type: "application/json" }), r = document.createElement("a");
|
|
3
|
-
r.download = e + ".json", r.href = window.URL.createObjectURL(n), r.dataset.downloadurl = ["application/json", r.download, r.href].join(":");
|
|
4
|
-
const i = new MouseEvent("click", {
|
|
5
|
-
view: window,
|
|
6
|
-
bubbles: !0,
|
|
7
|
-
cancelable: !0
|
|
8
|
-
});
|
|
9
|
-
r.dispatchEvent(i), r.remove();
|
|
10
|
-
}
|
|
11
|
-
function o(e) {
|
|
12
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
13
|
-
}
|
|
14
|
-
function a(e) {
|
|
15
|
-
if (e === null || typeof e != "object")
|
|
16
|
-
return e;
|
|
17
|
-
if (e instanceof Date)
|
|
18
|
-
return new Date(e.getTime());
|
|
19
|
-
if (e instanceof Node)
|
|
20
|
-
return e;
|
|
21
|
-
const t = Array.isArray(e) ? [] : {};
|
|
22
|
-
for (const n in e)
|
|
23
|
-
e.hasOwnProperty(n) && (t[n] = a(e[n]));
|
|
24
|
-
return t;
|
|
25
|
-
}
|
|
26
|
-
function f(e, t, n = o) {
|
|
27
|
-
for (const r in t)
|
|
28
|
-
n(t[r]) ? (e[r] || Object.assign(e, { [r]: {} }), f(e[r], t[r], n)) : Object.assign(e, { [r]: t[r] });
|
|
29
|
-
return e;
|
|
30
|
-
}
|
|
31
|
-
function u(e) {
|
|
32
|
-
return e === null || typeof e == "undefined";
|
|
33
|
-
}
|
|
34
|
-
function s(e, t) {
|
|
35
|
-
if (typeof e != typeof t)
|
|
36
|
-
return !1;
|
|
37
|
-
if ([e, t].some((n) => u(n)))
|
|
38
|
-
return e === t;
|
|
39
|
-
if (Array.isArray(e)) {
|
|
40
|
-
const n = e.length > t.length ? e : t, r = e.length > t.length ? t : e;
|
|
41
|
-
return n.every(
|
|
42
|
-
(i, c) => s(i, r[c])
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
|
|
46
|
-
return e === t;
|
|
47
|
-
for (const n in e) {
|
|
48
|
-
if (!t.hasOwnProperty(n))
|
|
49
|
-
return !1;
|
|
50
|
-
if (typeof e[n] == "object" && typeof t[n] == "object") {
|
|
51
|
-
if (!s(e[n], t[n]))
|
|
52
|
-
return !1;
|
|
53
|
-
} else if (e[n] !== t[n])
|
|
54
|
-
return !1;
|
|
55
|
-
}
|
|
56
|
-
return !0;
|
|
57
|
-
}
|
|
58
|
-
function y(e, t) {
|
|
59
|
-
const n = {};
|
|
60
|
-
for (const r in e)
|
|
61
|
-
t.includes(r) && (n[r] = e[r]);
|
|
62
|
-
return n;
|
|
63
|
-
}
|
|
64
|
-
function d(e, t) {
|
|
65
|
-
const n = {};
|
|
66
|
-
for (const r in e)
|
|
67
|
-
t.includes(r) || (n[r] = e[r]);
|
|
68
|
-
return n;
|
|
69
|
-
}
|
|
70
|
-
function w(e) {
|
|
71
|
-
var t;
|
|
72
|
-
return typeof e == "function" && ((t = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : t.writable) === !1;
|
|
73
|
-
}
|
|
74
|
-
function O(e, ...t) {
|
|
75
|
-
t.forEach((n) => {
|
|
76
|
-
Object.getOwnPropertyNames(n.prototype).forEach((r) => {
|
|
77
|
-
Object.defineProperty(
|
|
78
|
-
e.prototype,
|
|
79
|
-
r,
|
|
80
|
-
Object.getOwnPropertyDescriptor(n.prototype, r) || /* @__PURE__ */ Object.create(null)
|
|
81
|
-
);
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function l(e) {
|
|
86
|
-
return parseFloat(getComputedStyle(e).transitionDuration || "");
|
|
87
|
-
}
|
|
88
|
-
function m(e) {
|
|
89
|
-
return l(e) * 1e3;
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
a,
|
|
93
|
-
u as b,
|
|
94
|
-
p as c,
|
|
95
|
-
s as d,
|
|
96
|
-
w as e,
|
|
97
|
-
O as f,
|
|
98
|
-
l as g,
|
|
99
|
-
m as h,
|
|
100
|
-
o as i,
|
|
101
|
-
f as m,
|
|
102
|
-
d as o,
|
|
103
|
-
y as p
|
|
104
|
-
};
|
package/lib/style-qftK_UJp.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function p(e,t){const n=new Blob([JSON.stringify(t)],{type:"application/json"}),r=document.createElement("a");r.download=e+".json",r.href=window.URL.createObjectURL(n),r.dataset.downloadurl=["application/json",r.download,r.href].join(":");const i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});r.dispatchEvent(i),r.remove()}function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function o(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]=o(e[n]));return t}function f(e,t,n=s){for(const r in t)n(t[r])?(e[r]||Object.assign(e,{[r]:{}}),f(e[r],t[r],n)):Object.assign(e,{[r]:t[r]});return e}function a(e){return e===null||typeof e=="undefined"}function c(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(n=>a(n)))return e===t;if(Array.isArray(e)){const n=e.length>t.length?e:t,r=e.length>t.length?t:e;return n.every((i,l)=>c(i,r[l]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(typeof e[n]=="object"&&typeof t[n]=="object"){if(!c(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1}return!0}function y(e,t){const n={};for(const r in e)t.includes(r)&&(n[r]=e[r]);return n}function d(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function m(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(r=>{Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(n.prototype,r)||Object.create(null))})})}function u(e){return parseFloat(getComputedStyle(e).transitionDuration||"")}function w(e){return u(e)*1e3}exports.cloneDeep=o;exports.compareObjects=c;exports.createJSONAndSave=p;exports.getElementTransitionDurationMS=w;exports.getElementTransitionDurationS=u;exports.isESClass=m;exports.isNullish=a;exports.isObject=s;exports.mergeDeep=f;exports.mixin=O;exports.omit=d;exports.pick=y;
|
package/lib/ticker/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var L=r=>{throw TypeError(r)};var A=(r,i,s)=>i.has(r)||L("Cannot "+s);var e=(r,i,s)=>(A(r,i,"read from private field"),s?s.call(r):i.get(r)),h=(r,i,s)=>i.has(r)?L("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(r):i.set(r,s),t=(r,i,s,n)=>(A(r,i,"write to private field"),n?n.call(r,s):i.set(r,s),s),S=(r,i,s)=>(A(r,i,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../browser-CpzFX2xg.cjs"),M=require("../dom-JBOkFLTh.cjs");var o,u,v,b,m,l,g,y,q;class V{constructor(i,s){h(this,o);h(this,u);h(this,v);h(this,b,0);h(this,m,0);h(this,l,0);h(this,g,!1);h(this,y,null);h(this,q,i=>{const s=i[0];t(this,g,s.isIntersecting)});if(t(this,o,i),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&B.isBrowser){const n=M.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(e(this,q))),e(this,y).observe(n))}else t(this,g,!0)}get callback(){return e(this,o)}get order(){return e(this,v)}sync(i){t(this,b,i-e(this,l))}tick(i){if(t(this,l,Math.max(0,i-e(this,b))),e(this,m)||t(this,m,i),e(this,u))if(e(this,l)>=1e3/e(this,u))t(this,b,i-e(this,l)%e(this,u));else return;else t(this,b,i);e(this,g)&&e(this,o).call(this,{timeBetweenFrames:e(this,l),timestamp:i,subscribeTimestamp:e(this,m),timeElapsedSinceSubscription:i-e(this,m)})}destroy(){var i;(i=e(this,y))==null||i.disconnect()}}o=new WeakMap,u=new WeakMap,v=new WeakMap,b=new WeakMap,m=new WeakMap,l=new WeakMap,g=new WeakMap,y=new WeakMap,q=new WeakMap;var w,f,a,F,c,d,I,E,k,T;class x{constructor(){h(this,d);h(this,w,0);h(this,f,0);h(this,a);h(this,F,!1);h(this,c,[]);h(this,k,i=>{if(e(this,F)){t(this,F,!1),t(this,w,i-e(this,f));for(const s of e(this,c))s.sync(e(this,f))}t(this,a,requestAnimationFrame(e(this,k))),t(this,f,i-e(this,w));for(const s of e(this,c))s.tick(e(this,f))});h(this,T,()=>{document.hidden&&t(this,F,!0)});B.isBrowser&&document.addEventListener("visibilitychange",e(this,T))}subscribe(i,s){if(!e(this,c).find(n=>n.callback===i)){const n=new V(i,s);n.sync(performance.now()),e(this,c).push(n),t(this,c,e(this,c).sort((O,P)=>O.order-P.order))}return S(this,d,I).call(this),()=>this.unsubscribe(i)}unsubscribe(i){const s=e(this,c).filter(n=>n.callback===i);s.length&&(s.forEach(n=>n.destroy()),t(this,c,e(this,c).filter(n=>n.callback!==i)),e(this,c).length||S(this,d,E).call(this))}destroy(){B.isBrowser&&(S(this,d,E).call(this),document.removeEventListener("visibilitychange",e(this,T)))}}w=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,d=new WeakSet,I=function(){e(this,c).length&&!e(this,a)&&t(this,a,requestAnimationFrame(e(this,k)))},E=function(){e(this,a)&&(cancelAnimationFrame(e(this,a)),t(this,a,void 0))},k=new WeakMap,T=new WeakMap;const j=new x;exports.Ticker=x;exports.ticker=j;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=e=>{throw TypeError(e)};var h=(e,i,s)=>i.has(e)||c("Cannot "+s);var n=(e,i,s)=>(h(e,i,"read from private field"),s?s.call(e):i.get(e)),d=(e,i,s)=>i.has(e)?c("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),w=(e,i,s,o)=>(h(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../notifier/index.cjs"),v=require("../browser-CpzFX2xg.cjs"),z=require("../function-MthRj-GJ.cjs"),l=z.debounce(e=>{e?window.dispatchEvent(new CustomEvent("resize",{detail:{cause:e}})):window.dispatchEvent(new Event("resize"))},0);var t,r,u;class f extends a.Notifier{constructor(){super();d(this,t,!1);d(this,r,()=>{n(this,t)||(w(this,t,!0),n(this,u).call(this))});d(this,u,z.debounce(()=>{this.notify(),w(this,t,!1)},0));v.isBrowser&&(window.addEventListener("resize",n(this,r)),n(this,r).call(this))}subscribe(s,o){const b=super.subscribe(s,o);return n(this,t)||s(),b}}t=new WeakMap,r=new WeakMap,u=new WeakMap;const p=new f;exports.WindowResizer=f;exports.dispatchWindowResizeEvent=l;exports.windowResizer=p;
|