aptechka 0.5.31 → 0.5.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/lib/Animation-AkD1vhRW.js +217 -0
- package/lib/Animation-BIRIzLIL.cjs +1 -0
- package/lib/Damped-3daHRLIW.cjs +1 -0
- package/lib/Damped-CH96byE8.js +67 -0
- package/lib/Tweened-Bv9mgPvl.cjs +1 -0
- package/lib/Tweened-DzckT3pw.js +52 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -53
- package/lib/en3/index.cjs +194 -7
- package/lib/en3/index.d.ts +1 -0
- package/lib/en3/index.js +2131 -1224
- package/lib/en3/objects/En3ImageLike.d.ts +2 -3
- package/lib/en3/objects/fluid/Advection.d.ts +30 -0
- package/lib/en3/objects/fluid/Divergence.d.ts +23 -0
- package/lib/en3/objects/fluid/En3Fluid.d.ts +16 -0
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +14 -0
- package/lib/en3/objects/fluid/En3FluidPointer.d.ts +13 -0
- package/lib/en3/objects/fluid/ExternalForce.d.ts +19 -0
- package/lib/en3/objects/fluid/Poisson.d.ts +24 -0
- package/lib/en3/objects/fluid/Pressure.d.ts +26 -0
- package/lib/en3/objects/fluid/ShaderPass.d.ts +24 -0
- package/lib/en3/objects/fluid/Simulation.d.ts +33 -0
- package/lib/en3/objects/fluid/Viscous.d.ts +30 -0
- package/lib/en3/objects/fluid/index.d.ts +6 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +1 -1
- package/package.json +1 -1
- package/lib/Damped-DxwUBxOC.cjs +0 -1
- package/lib/Damped-QZAoXO5Z.js +0 -257
package/lib/Damped-QZAoXO5Z.js
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
var Z = Object.defineProperty, $ = Object.defineProperties;
|
|
2
|
-
var tt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var H = Object.getOwnPropertySymbols;
|
|
4
|
-
var st = Object.prototype.hasOwnProperty, it = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var J = (r, i, t) => i in r ? Z(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, E = (r, i) => {
|
|
6
|
-
for (var t in i || (i = {}))
|
|
7
|
-
st.call(i, t) && J(r, t, i[t]);
|
|
8
|
-
if (H)
|
|
9
|
-
for (var t of H(i))
|
|
10
|
-
it.call(i, t) && J(r, t, i[t]);
|
|
11
|
-
return r;
|
|
12
|
-
}, N = (r, i) => $(r, tt(i));
|
|
13
|
-
var j = (r, i, t) => {
|
|
14
|
-
if (!i.has(r))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var s = (r, i, t) => (j(r, i, "read from private field"), t ? t.call(r) : i.get(r)), e = (r, i, t) => {
|
|
18
|
-
if (i.has(r))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
i instanceof WeakSet ? i.add(r) : i.set(r, t);
|
|
21
|
-
}, h = (r, i, t, n) => (j(r, i, "write to private field"), n ? n.call(r, t) : i.set(r, t), t);
|
|
22
|
-
var O = (r, i, t) => (j(r, i, "access private method"), t);
|
|
23
|
-
import { c as et, d as rt } from "./math-BOBiC4TN.js";
|
|
24
|
-
import { p as v } from "./number-Bo5RdrA1.js";
|
|
25
|
-
import { n as g } from "./polyfills-DJUYczFm.js";
|
|
26
|
-
import { S as C } from "./Store-BQXXikps.js";
|
|
27
|
-
import { ticker as Q } from "./ticker/index.js";
|
|
28
|
-
import { TICK_ORDER as ht } from "./order/index.js";
|
|
29
|
-
var u, d, p, D, k, M, o, P, V, U, K, W, I, G, _, X, L;
|
|
30
|
-
class nt {
|
|
31
|
-
constructor(i, t, n, z, b) {
|
|
32
|
-
e(this, V);
|
|
33
|
-
e(this, K);
|
|
34
|
-
e(this, I);
|
|
35
|
-
e(this, _);
|
|
36
|
-
e(this, u, void 0);
|
|
37
|
-
e(this, d, void 0);
|
|
38
|
-
e(this, p, void 0);
|
|
39
|
-
e(this, D, void 0);
|
|
40
|
-
e(this, k, !1);
|
|
41
|
-
e(this, M, !1);
|
|
42
|
-
e(this, o, !1);
|
|
43
|
-
e(this, P, void 0);
|
|
44
|
-
e(this, L, (i) => {
|
|
45
|
-
!s(this, o) && s(this, u).initial !== s(this, u).current && h(this, o, !0), s(this, o) && (i.direction > 0 && i.progress >= s(this, p).current ? O(this, V, U).call(this) : i.direction < 0 && i.progress <= s(this, p).current && O(this, K, W).call(this));
|
|
46
|
-
});
|
|
47
|
-
h(this, u, i), h(this, d, t), h(this, p, new C(n, {
|
|
48
|
-
passport: t.passport ? {
|
|
49
|
-
name: t.passport + "-start",
|
|
50
|
-
manager: {
|
|
51
|
-
type: "number"
|
|
52
|
-
}
|
|
53
|
-
} : void 0
|
|
54
|
-
})), h(this, D, new C(z, {
|
|
55
|
-
passport: t.passport ? {
|
|
56
|
-
name: t.passport + "-set",
|
|
57
|
-
manager: {
|
|
58
|
-
type: "number"
|
|
59
|
-
}
|
|
60
|
-
} : void 0
|
|
61
|
-
})), h(this, P, b), s(this, u).subscribe(s(this, L)), s(this, u).linked.add(this);
|
|
62
|
-
}
|
|
63
|
-
get targetAnimation() {
|
|
64
|
-
return s(this, d);
|
|
65
|
-
}
|
|
66
|
-
get triggerAnimation() {
|
|
67
|
-
return s(this, u);
|
|
68
|
-
}
|
|
69
|
-
destroy() {
|
|
70
|
-
s(this, D).close(), s(this, p).close(), s(this, u).unsubscribe(s(this, L)), s(this, u).linked.delete(this);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
u = new WeakMap(), d = new WeakMap(), p = new WeakMap(), D = new WeakMap(), k = new WeakMap(), M = new WeakMap(), o = new WeakMap(), P = new WeakMap(), V = new WeakSet(), U = function() {
|
|
74
|
-
s(this, k) || (h(this, M, !1), h(this, k, !0), O(this, I, G).call(this, s(this, D).current));
|
|
75
|
-
}, K = new WeakSet(), W = function() {
|
|
76
|
-
s(this, k) && !s(this, M) && (h(this, k, !1), h(this, M, !0), O(this, I, G).call(this, s(this, d).initial));
|
|
77
|
-
}, I = new WeakSet(), G = function(i) {
|
|
78
|
-
O(this, _, X).call(this), s(this, d).updateOptions(s(this, P)), s(this, d).set(i);
|
|
79
|
-
}, _ = new WeakSet(), X = function() {
|
|
80
|
-
var i;
|
|
81
|
-
(i = s(this, P)) != null && i.once && this.destroy();
|
|
82
|
-
}, L = new WeakMap();
|
|
83
|
-
var S, T, q, f, y, A, R, a, c, m, F, x, B;
|
|
84
|
-
class at extends C {
|
|
85
|
-
constructor(t, n) {
|
|
86
|
-
super(t || 0, n);
|
|
87
|
-
e(this, S, void 0);
|
|
88
|
-
e(this, T, ht.ANIMATION);
|
|
89
|
-
e(this, q, void 0);
|
|
90
|
-
e(this, f, new C(!1));
|
|
91
|
-
e(this, y, /* @__PURE__ */ new Set());
|
|
92
|
-
e(this, A, null);
|
|
93
|
-
e(this, R, 0);
|
|
94
|
-
e(this, a, 0);
|
|
95
|
-
e(this, c, -1 / 0);
|
|
96
|
-
e(this, m, 1 / 0);
|
|
97
|
-
e(this, F, 0);
|
|
98
|
-
e(this, x, 1);
|
|
99
|
-
e(this, B, (t) => {
|
|
100
|
-
this.handleAnimationFrame(t);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
get linked() {
|
|
104
|
-
return s(this, y);
|
|
105
|
-
}
|
|
106
|
-
get animationLink() {
|
|
107
|
-
return s(this, A);
|
|
108
|
-
}
|
|
109
|
-
get direction() {
|
|
110
|
-
return s(this, R);
|
|
111
|
-
}
|
|
112
|
-
get target() {
|
|
113
|
-
return s(this, a);
|
|
114
|
-
}
|
|
115
|
-
get min() {
|
|
116
|
-
return s(this, c);
|
|
117
|
-
}
|
|
118
|
-
set min(t) {
|
|
119
|
-
h(this, c, t), this.set(s(this, a), {
|
|
120
|
-
equalize: !0
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
get max() {
|
|
124
|
-
return s(this, m);
|
|
125
|
-
}
|
|
126
|
-
set max(t) {
|
|
127
|
-
h(this, m, t), this.set(s(this, a), {
|
|
128
|
-
equalize: !0
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
get from() {
|
|
132
|
-
return s(this, F);
|
|
133
|
-
}
|
|
134
|
-
get to() {
|
|
135
|
-
return s(this, x);
|
|
136
|
-
}
|
|
137
|
-
get isRunning() {
|
|
138
|
-
return s(this, f);
|
|
139
|
-
}
|
|
140
|
-
get currentDistance() {
|
|
141
|
-
return Math.abs(s(this, x) - s(this, F));
|
|
142
|
-
}
|
|
143
|
-
get distance() {
|
|
144
|
-
return Math.abs(s(this, m) - s(this, c));
|
|
145
|
-
}
|
|
146
|
-
get currentProgress() {
|
|
147
|
-
return this.currentDistance ? v(
|
|
148
|
-
Math.abs(this.current - s(this, F)) / this.currentDistance,
|
|
149
|
-
6
|
|
150
|
-
) : 0;
|
|
151
|
-
}
|
|
152
|
-
get progress() {
|
|
153
|
-
return this.distance ? v(Math.abs(this.current - s(this, c)) / this.distance, 6) : 0;
|
|
154
|
-
}
|
|
155
|
-
get entry() {
|
|
156
|
-
return N(E({}, super.entry), {
|
|
157
|
-
from: s(this, F),
|
|
158
|
-
to: s(this, x),
|
|
159
|
-
currentDistance: this.currentDistance,
|
|
160
|
-
distance: this.distance,
|
|
161
|
-
direction: this.direction,
|
|
162
|
-
currentProgress: this.currentProgress,
|
|
163
|
-
progress: this.progress
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
setTarget(t) {
|
|
167
|
-
h(this, R, Math.sign(t - s(this, a))), h(this, a, et(t, s(this, c), s(this, m))), h(this, F, this.current), h(this, x, t);
|
|
168
|
-
}
|
|
169
|
-
set(t, n) {
|
|
170
|
-
s(this, a) !== t && (this.setTarget(t), n && this.updateOptions(n), s(this, a) !== this.current && this.start());
|
|
171
|
-
}
|
|
172
|
-
shift(t, n) {
|
|
173
|
-
this.set(s(this, a) + t, n);
|
|
174
|
-
}
|
|
175
|
-
reset() {
|
|
176
|
-
this.set(this.initial, { equalize: !0 }), super.reset(), s(this, y).forEach((t) => {
|
|
177
|
-
t.targetAnimation.reset();
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
close() {
|
|
181
|
-
super.close(), this.unlistenAnimationFrame(), this.unlink(), s(this, y).clear();
|
|
182
|
-
}
|
|
183
|
-
listenAnimationFrame() {
|
|
184
|
-
s(this, f).current || (s(this, f).current = !0, Q.subscribe(s(this, B), {
|
|
185
|
-
maxFPS: s(this, S),
|
|
186
|
-
order: s(this, T),
|
|
187
|
-
culling: s(this, q)
|
|
188
|
-
}));
|
|
189
|
-
}
|
|
190
|
-
unlistenAnimationFrame() {
|
|
191
|
-
s(this, f).current && (s(this, f).current = !1, Q.unsubscribe(s(this, B)), s(this, y).forEach((t) => {
|
|
192
|
-
t.targetAnimation.unlistenAnimationFrame();
|
|
193
|
-
}));
|
|
194
|
-
}
|
|
195
|
-
updateOptions(t) {
|
|
196
|
-
h(this, S, g(t == null ? void 0 : t.maxFPS, s(this, S))), h(this, T, g(t == null ? void 0 : t.order, s(this, T))), h(this, q, g(t == null ? void 0 : t.culling, s(this, q))), h(this, c, g(t == null ? void 0 : t.min, s(this, c))), h(this, m, g(t == null ? void 0 : t.max, s(this, m))), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = s(this, a));
|
|
197
|
-
}
|
|
198
|
-
linkTo(t, n, z, b) {
|
|
199
|
-
this.unlink(), h(this, A, new nt(
|
|
200
|
-
t,
|
|
201
|
-
this,
|
|
202
|
-
n,
|
|
203
|
-
z,
|
|
204
|
-
b
|
|
205
|
-
));
|
|
206
|
-
}
|
|
207
|
-
unlink() {
|
|
208
|
-
s(this, A) && (s(this, A).destroy(), h(this, A, null));
|
|
209
|
-
}
|
|
210
|
-
start() {
|
|
211
|
-
this.listenAnimationFrame();
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
S = new WeakMap(), T = new WeakMap(), q = new WeakMap(), f = new WeakMap(), y = new WeakMap(), A = new WeakMap(), R = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), F = new WeakMap(), x = new WeakMap(), B = new WeakMap();
|
|
215
|
-
var l, w;
|
|
216
|
-
class At extends at {
|
|
217
|
-
constructor(t, n) {
|
|
218
|
-
super(t, n);
|
|
219
|
-
e(this, l, void 0);
|
|
220
|
-
e(this, w, void 0);
|
|
221
|
-
this.damping = 20, this.stiffness = 0, this.mass = 0, h(this, l, 0), h(this, w, 0), this.updateOptions(N(E({}, n), { equalize: !0 }));
|
|
222
|
-
}
|
|
223
|
-
get velocity() {
|
|
224
|
-
return s(this, l);
|
|
225
|
-
}
|
|
226
|
-
get speed() {
|
|
227
|
-
return s(this, w);
|
|
228
|
-
}
|
|
229
|
-
get entry() {
|
|
230
|
-
return N(E({}, super.entry), {
|
|
231
|
-
velocity: s(this, l),
|
|
232
|
-
speed: s(this, w)
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
updateOptions(t) {
|
|
236
|
-
this.damping = g(t == null ? void 0 : t.damping, this.damping), this.mass = g(t == null ? void 0 : t.mass, this.mass), this.stiffness = g(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
|
|
237
|
-
}
|
|
238
|
-
updateManually(t) {
|
|
239
|
-
this.setTarget(t), this.current = this.target;
|
|
240
|
-
}
|
|
241
|
-
handleAnimationFrame(t) {
|
|
242
|
-
v(this.current, 4) === v(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
|
|
243
|
-
const n = this.current, z = Math.abs(n - this.target);
|
|
244
|
-
h(this, w, z / t.timeBetweenFrames);
|
|
245
|
-
const b = t.timeBetweenFrames / 1e3;
|
|
246
|
-
if (this.mass || this.stiffness) {
|
|
247
|
-
const Y = (this.target - this.current) * this.stiffness - s(this, l) * this.damping;
|
|
248
|
-
h(this, l, s(this, l) + Y / this.mass * b), this.current += s(this, l) * b;
|
|
249
|
-
} else
|
|
250
|
-
this.current = rt(this.current, this.target, this.damping, b);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
l = new WeakMap(), w = new WeakMap();
|
|
254
|
-
export {
|
|
255
|
-
at as A,
|
|
256
|
-
At as D
|
|
257
|
-
};
|