@scntix/animate 0.0.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/LICENSE +21 -0
- package/README.md +74 -0
- package/_runtime/bundler/scntix_animate_wasm.js +9 -0
- package/_runtime/bundler/scntix_animate_wasm_bg.js +5849 -0
- package/_runtime/node/scntix_animate_wasm.cjs +5922 -0
- package/_runtime/types/bundler.d.ts +1426 -0
- package/_runtime/types/node.d.ts +1426 -0
- package/_runtime/types/web.d.ts +1890 -0
- package/_runtime/wasm/scntix_animate_wasm_bg.wasm +0 -0
- package/_runtime/web/scntix_animate_wasm.js +5950 -0
- package/cjs/animation.cjs +15 -0
- package/cjs/browser.cjs +16 -0
- package/cjs/index.cjs +1 -0
- package/cjs/input.cjs +14 -0
- package/cjs/layout.cjs +10 -0
- package/cjs/motion.cjs +13 -0
- package/cjs/node.cjs +1 -0
- package/cjs/scroll.cjs +10 -0
- package/cjs/svg.cjs +9 -0
- package/cjs/text.cjs +10 -0
- package/cjs/utils.cjs +7 -0
- package/esm/animation.js +13 -0
- package/esm/browser.js +14 -0
- package/esm/bundler.js +1 -0
- package/esm/index.js +1 -0
- package/esm/input.js +12 -0
- package/esm/layout.js +8 -0
- package/esm/motion.js +11 -0
- package/esm/scroll.js +8 -0
- package/esm/svg.js +7 -0
- package/esm/text.js +8 -0
- package/esm/utils.js +5 -0
- package/esm/web.js +2 -0
- package/esm-node/animation.js +13 -0
- package/esm-node/browser.js +14 -0
- package/esm-node/index.js +1 -0
- package/esm-node/input.js +12 -0
- package/esm-node/layout.js +8 -0
- package/esm-node/motion.js +11 -0
- package/esm-node/node.js +72 -0
- package/esm-node/scroll.js +8 -0
- package/esm-node/svg.js +7 -0
- package/esm-node/text.js +8 -0
- package/esm-node/utils.js +5 -0
- package/package.json +149 -0
- package/types/animation.d.ts +13 -0
- package/types/browser.d.ts +14 -0
- package/types/bundler.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/input.d.ts +12 -0
- package/types/layout.d.ts +8 -0
- package/types/motion.d.ts +11 -0
- package/types/node.d.ts +1 -0
- package/types/scroll.d.ts +8 -0
- package/types/svg.d.ts +7 -0
- package/types/text.d.ts +8 -0
- package/types/utils.d.ts +5 -0
- package/types/web.d.ts +2 -0
|
@@ -0,0 +1,1890 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Opaque handle returned to JS after `createDrawable`.
|
|
6
|
+
*
|
|
7
|
+
* Wraps the underlying `Element` (already initialised with `pathLength=1000`
|
|
8
|
+
* and an initial `stroke-dasharray`).
|
|
9
|
+
*/
|
|
10
|
+
export class DrawableHandle {
|
|
11
|
+
private constructor();
|
|
12
|
+
free(): void;
|
|
13
|
+
[Symbol.dispose](): void;
|
|
14
|
+
/**
|
|
15
|
+
* Apply a normalized draw amount from the start of the path.
|
|
16
|
+
*/
|
|
17
|
+
draw(progress: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* Apply a partial normalized draw range `[start, end]`.
|
|
20
|
+
*/
|
|
21
|
+
setRange(start: number, end: number): void;
|
|
22
|
+
/**
|
|
23
|
+
* Apply a partial visible draw range from a spec string like `"20% 80%"`.
|
|
24
|
+
*/
|
|
25
|
+
setRangeSpec(spec: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* The underlying DOM element (for passing to `animate()`).
|
|
28
|
+
*/
|
|
29
|
+
readonly element: Element;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class Easing {
|
|
33
|
+
private constructor();
|
|
34
|
+
free(): void;
|
|
35
|
+
[Symbol.dispose](): void;
|
|
36
|
+
static clearRegistry(): void;
|
|
37
|
+
static customBounce(bounces: number, strength: number): Function;
|
|
38
|
+
static customEase(path: string): Function;
|
|
39
|
+
static easeInBack(t: number): number;
|
|
40
|
+
static easeInBounce(t: number): number;
|
|
41
|
+
static easeInCirc(t: number): number;
|
|
42
|
+
static easeInCubic(t: number): number;
|
|
43
|
+
static easeInElastic(t: number): number;
|
|
44
|
+
static easeInExpo(t: number): number;
|
|
45
|
+
static easeInOutBack(t: number): number;
|
|
46
|
+
static easeInOutBounce(t: number): number;
|
|
47
|
+
static easeInOutCirc(t: number): number;
|
|
48
|
+
static easeInOutCubic(t: number): number;
|
|
49
|
+
static easeInOutElastic(t: number): number;
|
|
50
|
+
static easeInOutExpo(t: number): number;
|
|
51
|
+
static easeInOutQuad(t: number): number;
|
|
52
|
+
static easeInOutQuart(t: number): number;
|
|
53
|
+
static easeInOutQuint(t: number): number;
|
|
54
|
+
static easeInOutSine(t: number): number;
|
|
55
|
+
static easeInQuad(t: number): number;
|
|
56
|
+
static easeInQuart(t: number): number;
|
|
57
|
+
static easeInQuint(t: number): number;
|
|
58
|
+
static easeInSine(t: number): number;
|
|
59
|
+
static easeOutBack(t: number): number;
|
|
60
|
+
static easeOutBounce(t: number): number;
|
|
61
|
+
static easeOutCirc(t: number): number;
|
|
62
|
+
static easeOutCubic(t: number): number;
|
|
63
|
+
static easeOutElastic(t: number): number;
|
|
64
|
+
static easeOutExpo(t: number): number;
|
|
65
|
+
static easeOutInBack(t: number): number;
|
|
66
|
+
static easeOutInBounce(t: number): number;
|
|
67
|
+
static easeOutInCirc(t: number): number;
|
|
68
|
+
static easeOutInCubic(t: number): number;
|
|
69
|
+
static easeOutInElastic(t: number): number;
|
|
70
|
+
static easeOutInExpo(t: number): number;
|
|
71
|
+
static easeOutInQuad(t: number): number;
|
|
72
|
+
static easeOutInQuart(t: number): number;
|
|
73
|
+
static easeOutInQuint(t: number): number;
|
|
74
|
+
static easeOutInSine(t: number): number;
|
|
75
|
+
static easeOutQuad(t: number): number;
|
|
76
|
+
static easeOutQuart(t: number): number;
|
|
77
|
+
static easeOutQuint(t: number): number;
|
|
78
|
+
static easeOutSine(t: number): number;
|
|
79
|
+
static expoScale(start: number, end: number): Function;
|
|
80
|
+
static irregular(steps: number, randomness: number, seed: bigint): Function;
|
|
81
|
+
static linear(t: number): number;
|
|
82
|
+
static register(name: string, easing: any): void;
|
|
83
|
+
static roughEase(steps: number, randomness: number, seed: bigint): Function;
|
|
84
|
+
static slowMo(config: any): Function;
|
|
85
|
+
static unregister(name: string): boolean;
|
|
86
|
+
static wiggle(wiggles: number): Function;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returned to JS as `{ translateX, translateY, rotate }`.
|
|
91
|
+
*
|
|
92
|
+
* Each field is a JS object `{ from: 0, to: totalLength, modifier: fn }`.
|
|
93
|
+
* Fields are exposed via getters because `JsValue` is not `Copy`.
|
|
94
|
+
*/
|
|
95
|
+
export class MotionPathValues {
|
|
96
|
+
private constructor();
|
|
97
|
+
free(): void;
|
|
98
|
+
[Symbol.dispose](): void;
|
|
99
|
+
readonly rotate: any;
|
|
100
|
+
readonly translateX: any;
|
|
101
|
+
readonly translateY: any;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* SVG path morphing utilities.
|
|
106
|
+
*/
|
|
107
|
+
export class PathMorph {
|
|
108
|
+
private constructor();
|
|
109
|
+
free(): void;
|
|
110
|
+
[Symbol.dispose](): void;
|
|
111
|
+
/**
|
|
112
|
+
* Equalize two paths to compatible cubic segment counts.
|
|
113
|
+
*
|
|
114
|
+
* Returns `[normalizedFrom, normalizedTo]`.
|
|
115
|
+
*/
|
|
116
|
+
static equalize(from: string, to: string): Array<any>;
|
|
117
|
+
/**
|
|
118
|
+
* Interpolate between two SVG path data strings.
|
|
119
|
+
* Paths must have compatible structure (same commands, same number of values).
|
|
120
|
+
*/
|
|
121
|
+
static interpolate(from: string, to: string, progress: number): string;
|
|
122
|
+
/**
|
|
123
|
+
* Normalize a path into absolute cubic segments.
|
|
124
|
+
*/
|
|
125
|
+
static normalize(path: string): string;
|
|
126
|
+
/**
|
|
127
|
+
* Sample a position and tangent angle along a path at progress `[0, 1]`.
|
|
128
|
+
*/
|
|
129
|
+
static sample(path: string, progress: number): any;
|
|
130
|
+
/**
|
|
131
|
+
* Parse an SVG path and return the number of segments.
|
|
132
|
+
* Useful for checking compatibility before interpolating.
|
|
133
|
+
*/
|
|
134
|
+
static segmentCount(path: string): number;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export class ReducedMotion {
|
|
138
|
+
private constructor();
|
|
139
|
+
free(): void;
|
|
140
|
+
[Symbol.dispose](): void;
|
|
141
|
+
static getPolicy(): string;
|
|
142
|
+
static prefers(): boolean;
|
|
143
|
+
static resetPolicy(): void;
|
|
144
|
+
static setPolicy(policy: string): boolean;
|
|
145
|
+
static shouldReduce(): boolean;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Math, easing, and conversion utilities.
|
|
150
|
+
*
|
|
151
|
+
* ```js
|
|
152
|
+
* import { Utils } from 'scntix-animate';
|
|
153
|
+
*
|
|
154
|
+
* const x = Utils.clamp(150, 0, 100); // 100
|
|
155
|
+
* const y = Utils.mapRange(0.5, 0, 1, -100, 100); // 0
|
|
156
|
+
* const r = Utils.random(0, 10); // e.g. 7.3
|
|
157
|
+
* const s = Utils.lerp(0, 100, 0.25); // 25
|
|
158
|
+
* const w = Utils.wrap(380, 0, 360); // 20
|
|
159
|
+
* const d = Utils.degToRad(90); // π/2
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
export class Utils {
|
|
163
|
+
private constructor();
|
|
164
|
+
free(): void;
|
|
165
|
+
[Symbol.dispose](): void;
|
|
166
|
+
/**
|
|
167
|
+
* Absolute value.
|
|
168
|
+
*/
|
|
169
|
+
static abs(value: number): number;
|
|
170
|
+
/**
|
|
171
|
+
* Angle from (x1,y1) to (x2,y2) in radians.
|
|
172
|
+
*/
|
|
173
|
+
static angle(x1: number, y1: number, x2: number, y2: number): number;
|
|
174
|
+
/**
|
|
175
|
+
* Ceiling to integer.
|
|
176
|
+
*/
|
|
177
|
+
static ceil(value: number): number;
|
|
178
|
+
/**
|
|
179
|
+
* Clamp a value between min and max.
|
|
180
|
+
*/
|
|
181
|
+
static clamp(value: number, min: number, max: number): number;
|
|
182
|
+
/**
|
|
183
|
+
* Compose functions right-to-left (mathematical composition order).
|
|
184
|
+
*
|
|
185
|
+
* ```js
|
|
186
|
+
* const transform = Utils.compose(Math.round, v => v * 2);
|
|
187
|
+
* transform(1.7); // Math.round(1.7 * 2) = Math.round(3.4) = 3
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
static compose(fns: Array<any>): Function;
|
|
191
|
+
/**
|
|
192
|
+
* Frame-rate independent exponential decay (damped lerp).
|
|
193
|
+
*
|
|
194
|
+
* Useful for smooth mouse following without fixed durations.
|
|
195
|
+
*
|
|
196
|
+
* ```js
|
|
197
|
+
* // In a rAF loop:
|
|
198
|
+
* x = Utils.damp(x, targetX, deltaTime, 0.05); // 5% pull toward target each ms
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
static damp(start: number, end: number, delta_time: number, factor: number): number;
|
|
202
|
+
/**
|
|
203
|
+
* Convert degrees to radians.
|
|
204
|
+
*/
|
|
205
|
+
static degToRad(degrees: number): number;
|
|
206
|
+
/**
|
|
207
|
+
* Distance between two 2D points.
|
|
208
|
+
*/
|
|
209
|
+
static distance(x1: number, y1: number, x2: number, y2: number): number;
|
|
210
|
+
/**
|
|
211
|
+
* Floor to integer.
|
|
212
|
+
*/
|
|
213
|
+
static floor(value: number): number;
|
|
214
|
+
/**
|
|
215
|
+
* Convert frames to milliseconds at a given FPS.
|
|
216
|
+
*/
|
|
217
|
+
static framesToMs(frames: number, fps: number): number | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Get a computed CSS property value from an element as a number.
|
|
220
|
+
*
|
|
221
|
+
* ```js
|
|
222
|
+
* const opacity = Utils.getProperty(el, 'opacity'); // 1.0
|
|
223
|
+
* const x = Utils.getProperty(el, 'translateX'); // 0
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
static getProperty(element: Element, prop: string): number;
|
|
227
|
+
/**
|
|
228
|
+
* Hex color to [r, g, b, a] array (each 0-255, alpha 0-1).
|
|
229
|
+
*/
|
|
230
|
+
static hexToRgba(hex: string): Float64Array;
|
|
231
|
+
/**
|
|
232
|
+
* HSL to RGB conversion.
|
|
233
|
+
* Input: h in [0, 360), s and l in [0, 1].
|
|
234
|
+
* Returns Float64Array [r, g, b] where each is 0-255.
|
|
235
|
+
*/
|
|
236
|
+
static hslToRgb(h: number, s: number, l: number): Float64Array;
|
|
237
|
+
/**
|
|
238
|
+
* Interpolate between two CSS color strings at `progress` ∈ [0, 1].
|
|
239
|
+
*
|
|
240
|
+
* Supports any format recognized by scntix-animate (hex, rgb, rgba, hsl, hsla).
|
|
241
|
+
*
|
|
242
|
+
* ```js
|
|
243
|
+
* Utils.interpolateColor('#ff0000', 'blue', 0.5); // 'rgb(128, 0, 128)'
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
static interpolateColor(from: string, to: string, progress: number): string;
|
|
247
|
+
/**
|
|
248
|
+
* Inverse lerp — where does value fall between start and end? Returns [0, 1].
|
|
249
|
+
*/
|
|
250
|
+
static invLerp(start: number, end: number, value: number): number;
|
|
251
|
+
/**
|
|
252
|
+
* Linear interpolation between start and end.
|
|
253
|
+
*/
|
|
254
|
+
static lerp(start: number, end: number, factor: number): number;
|
|
255
|
+
/**
|
|
256
|
+
* Map a value from one range to another.
|
|
257
|
+
* Equivalent to anime.js `mapRange`.
|
|
258
|
+
*
|
|
259
|
+
* ```js
|
|
260
|
+
* Utils.mapRange(0.5, 0, 1, -100, 100); // 0
|
|
261
|
+
* Utils.mapRange(75, 0, 100, 0, 1); // 0.75
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
static mapRange(value: number, in_low: number, in_high: number, out_low: number, out_high: number): number;
|
|
265
|
+
/**
|
|
266
|
+
* Euclidean modulo (always positive).
|
|
267
|
+
*
|
|
268
|
+
* ```js
|
|
269
|
+
* Utils.modulo(-1, 5); // 4 (not -1 like JS %)
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
static modulo(a: number, b: number): number;
|
|
273
|
+
/**
|
|
274
|
+
* Convert milliseconds to frames at a given FPS.
|
|
275
|
+
*/
|
|
276
|
+
static msToFrames(ms: number, fps: number): number | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* Convert milliseconds to seconds.
|
|
279
|
+
*/
|
|
280
|
+
static msToS(ms: number): number;
|
|
281
|
+
/**
|
|
282
|
+
* Get the current performance timestamp in ms.
|
|
283
|
+
*/
|
|
284
|
+
static now(): number;
|
|
285
|
+
/**
|
|
286
|
+
* Pad start of a number string.
|
|
287
|
+
*
|
|
288
|
+
* ```js
|
|
289
|
+
* Utils.padStart(5, 3, '0'); // '005'
|
|
290
|
+
* ```
|
|
291
|
+
*/
|
|
292
|
+
static padStart(value: number, total_length: number, pad: string): string;
|
|
293
|
+
/**
|
|
294
|
+
* Parse a time string ("1s", "500ms", "30f@60fps") to milliseconds.
|
|
295
|
+
*/
|
|
296
|
+
static parseTime(s: string): number | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* Apply a series of transform functions to a starting value (left-to-right pipe).
|
|
299
|
+
*
|
|
300
|
+
* ```js
|
|
301
|
+
* const transform = Utils.pipe(
|
|
302
|
+
* v => v * 2,
|
|
303
|
+
* v => v + 10,
|
|
304
|
+
* v => Math.round(v),
|
|
305
|
+
* );
|
|
306
|
+
* transform(5); // 20 (5*2=10, 10+10=20, round(20)=20)
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
static pipe(fns: Array<any>): Function;
|
|
310
|
+
/**
|
|
311
|
+
* Convert radians to degrees.
|
|
312
|
+
*/
|
|
313
|
+
static radToDeg(radians: number): number;
|
|
314
|
+
/**
|
|
315
|
+
* Random float between min (inclusive) and max (exclusive).
|
|
316
|
+
*
|
|
317
|
+
* ```js
|
|
318
|
+
* Utils.random(0, 100); // e.g. 42.7
|
|
319
|
+
* Utils.random(0, 100, 0); // e.g. 73 (integer)
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
static random(min: number, max: number): number;
|
|
323
|
+
/**
|
|
324
|
+
* Random integer between min and max (inclusive).
|
|
325
|
+
*/
|
|
326
|
+
static randomInt(min: number, max: number): number;
|
|
327
|
+
/**
|
|
328
|
+
* Random item from an array.
|
|
329
|
+
*/
|
|
330
|
+
static randomItem(arr: Array<any>): any;
|
|
331
|
+
/**
|
|
332
|
+
* Alias for `mapRange`. Kept for backwards compatibility.
|
|
333
|
+
*/
|
|
334
|
+
static remap(value: number, in_start: number, in_end: number, out_start: number, out_end: number): number;
|
|
335
|
+
/**
|
|
336
|
+
* Round and format a number with fixed decimal places.
|
|
337
|
+
*
|
|
338
|
+
* ```js
|
|
339
|
+
* Utils.roundPad(3.14159, 2); // '3.14'
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
static roundPad(value: number, decimal_length: number): string;
|
|
343
|
+
/**
|
|
344
|
+
* Round to specified decimal places.
|
|
345
|
+
*/
|
|
346
|
+
static roundTo(value: number, decimals: number): number;
|
|
347
|
+
/**
|
|
348
|
+
* Convert seconds to milliseconds.
|
|
349
|
+
*/
|
|
350
|
+
static sToMs(s: number): number;
|
|
351
|
+
/**
|
|
352
|
+
* Set a CSS property on an element immediately (no animation).
|
|
353
|
+
*
|
|
354
|
+
* ```js
|
|
355
|
+
* Utils.setProperty(el, 'opacity', 0.5);
|
|
356
|
+
* Utils.setProperty(el, 'translateX', 100); // applies as transform
|
|
357
|
+
* ```
|
|
358
|
+
*/
|
|
359
|
+
static setProperty(element: Element, prop: string, value: number): void;
|
|
360
|
+
/**
|
|
361
|
+
* Shuffle an array (Fisher-Yates). Returns a new array.
|
|
362
|
+
*/
|
|
363
|
+
static shuffle(arr: Array<any>): Array<any>;
|
|
364
|
+
/**
|
|
365
|
+
* Get the sign of a number (-1, 0, or 1).
|
|
366
|
+
*/
|
|
367
|
+
static sign(value: number): number;
|
|
368
|
+
/**
|
|
369
|
+
* Snap value to nearest multiple of step.
|
|
370
|
+
*
|
|
371
|
+
* ```js
|
|
372
|
+
* Utils.snap(47, 50); // 50
|
|
373
|
+
* Utils.snap(24, 50); // 0
|
|
374
|
+
* ```
|
|
375
|
+
*/
|
|
376
|
+
static snap(value: number, step: number): number;
|
|
377
|
+
/**
|
|
378
|
+
* Snap to the nearest value in a list of snap points.
|
|
379
|
+
*
|
|
380
|
+
* ```js
|
|
381
|
+
* Utils.snapToPoints(42, [0, 50, 100, 200]); // 50
|
|
382
|
+
* ```
|
|
383
|
+
*/
|
|
384
|
+
static snapToPoints(value: number, points: Array<any>): number;
|
|
385
|
+
/**
|
|
386
|
+
* Truncate to integer (towards zero).
|
|
387
|
+
*/
|
|
388
|
+
static trunc(value: number): number;
|
|
389
|
+
/**
|
|
390
|
+
* Wrap a value within a range [min, max).
|
|
391
|
+
*
|
|
392
|
+
* ```js
|
|
393
|
+
* Utils.wrap(380, 0, 360); // 20
|
|
394
|
+
* Utils.wrap(-10, 0, 360); // 350
|
|
395
|
+
* ```
|
|
396
|
+
*/
|
|
397
|
+
static wrap(value: number, min: number, max: number): number;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Persistent per-property animation binder.
|
|
402
|
+
*/
|
|
403
|
+
export class WasmAnimatable {
|
|
404
|
+
private constructor();
|
|
405
|
+
free(): void;
|
|
406
|
+
[Symbol.dispose](): void;
|
|
407
|
+
/**
|
|
408
|
+
* Get the currently cached target value for a property.
|
|
409
|
+
* To get the live DOM value, use `getLive(prop)`.
|
|
410
|
+
*/
|
|
411
|
+
get(prop: string): number;
|
|
412
|
+
/**
|
|
413
|
+
* Get the live computed CSS value (reads from DOM each call).
|
|
414
|
+
*/
|
|
415
|
+
getLive(prop: string): number;
|
|
416
|
+
/**
|
|
417
|
+
* Cancel all running animations and restore initial values.
|
|
418
|
+
*/
|
|
419
|
+
revert(): void;
|
|
420
|
+
/**
|
|
421
|
+
* Animate a property to a new value.
|
|
422
|
+
*
|
|
423
|
+
* Parameters:
|
|
424
|
+
* - `prop` — CSS property or transform (e.g. `"translateX"`, `"opacity"`)
|
|
425
|
+
* - `to` — Target value as a number
|
|
426
|
+
* - `duration` — Override duration in ms (`null` = use per-property default)
|
|
427
|
+
* - `easing` — Override easing string (`null` = use per-property default)
|
|
428
|
+
*/
|
|
429
|
+
set(prop: string, to: number, duration?: number | null, easing?: string | null): void;
|
|
430
|
+
/**
|
|
431
|
+
* Immediately set a property value without animation.
|
|
432
|
+
*/
|
|
433
|
+
setImmediate(prop: string, value: number): void;
|
|
434
|
+
/**
|
|
435
|
+
* Stop all running animations without restoring values.
|
|
436
|
+
*/
|
|
437
|
+
stop(): void;
|
|
438
|
+
/**
|
|
439
|
+
* Whether any property animation is currently running.
|
|
440
|
+
*/
|
|
441
|
+
readonly isAnimating: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* The underlying target element.
|
|
444
|
+
*/
|
|
445
|
+
readonly target: Element;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Animation handle exposed to JavaScript.
|
|
450
|
+
*/
|
|
451
|
+
export class WasmAnimation {
|
|
452
|
+
private constructor();
|
|
453
|
+
free(): void;
|
|
454
|
+
[Symbol.dispose](): void;
|
|
455
|
+
/**
|
|
456
|
+
* Remove this animation and clean up resources.
|
|
457
|
+
*/
|
|
458
|
+
destroy(): void;
|
|
459
|
+
/**
|
|
460
|
+
* Set onBegin callback.
|
|
461
|
+
*/
|
|
462
|
+
onBegin(cb: Function): void;
|
|
463
|
+
/**
|
|
464
|
+
* Set onComplete callback.
|
|
465
|
+
*/
|
|
466
|
+
onComplete(cb: Function): void;
|
|
467
|
+
/**
|
|
468
|
+
* Set onLoop callback (receives iteration number).
|
|
469
|
+
*/
|
|
470
|
+
onLoop(cb: Function): void;
|
|
471
|
+
/**
|
|
472
|
+
* Set onUpdate callback (receives progress 0.0–1.0).
|
|
473
|
+
*/
|
|
474
|
+
onUpdate(cb: Function): void;
|
|
475
|
+
/**
|
|
476
|
+
* Pause the animation. Returns true if the animation was paused.
|
|
477
|
+
*/
|
|
478
|
+
pause(): boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Play the animation (or resume if paused). Returns true if an action was taken.
|
|
481
|
+
*/
|
|
482
|
+
play(): boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Restart the animation from the beginning. Returns true if restarted.
|
|
485
|
+
*/
|
|
486
|
+
restart(): boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Reverse the playback direction. Returns true if reversed.
|
|
489
|
+
*/
|
|
490
|
+
reverse(): boolean;
|
|
491
|
+
/**
|
|
492
|
+
* Seek to a specific time in milliseconds.
|
|
493
|
+
*/
|
|
494
|
+
seek(time: number): void;
|
|
495
|
+
/**
|
|
496
|
+
* Set playback speed (1.0 = normal, 2.0 = double, 0.5 = half).
|
|
497
|
+
*/
|
|
498
|
+
setSpeed(speed: number): void;
|
|
499
|
+
/**
|
|
500
|
+
* Whether the animation has completed.
|
|
501
|
+
*/
|
|
502
|
+
readonly completed: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* Get the total duration in milliseconds.
|
|
505
|
+
*/
|
|
506
|
+
readonly duration: number;
|
|
507
|
+
/**
|
|
508
|
+
* Get a Promise that resolves when the animation completes.
|
|
509
|
+
*/
|
|
510
|
+
readonly finished: Promise<any>;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Physics-based draggable element.
|
|
515
|
+
*/
|
|
516
|
+
export class WasmDraggable {
|
|
517
|
+
private constructor();
|
|
518
|
+
free(): void;
|
|
519
|
+
[Symbol.dispose](): void;
|
|
520
|
+
/**
|
|
521
|
+
* Destroy the draggable, release all event listeners and observers.
|
|
522
|
+
*/
|
|
523
|
+
destroy(): void;
|
|
524
|
+
/**
|
|
525
|
+
* Disable dragging (cannot be grabbed).
|
|
526
|
+
*/
|
|
527
|
+
disable(): void;
|
|
528
|
+
/**
|
|
529
|
+
* Enable dragging.
|
|
530
|
+
*/
|
|
531
|
+
enable(): void;
|
|
532
|
+
/**
|
|
533
|
+
* Refresh container bounds (re-read from DOM). Called automatically on resize.
|
|
534
|
+
*/
|
|
535
|
+
refresh(): void;
|
|
536
|
+
/**
|
|
537
|
+
* Reset position to (0, 0) and clear all state.
|
|
538
|
+
*/
|
|
539
|
+
reset(): void;
|
|
540
|
+
/**
|
|
541
|
+
* Revert the draggable: reset position and destroy.
|
|
542
|
+
*/
|
|
543
|
+
revert(): void;
|
|
544
|
+
/**
|
|
545
|
+
* Set X position immediately.
|
|
546
|
+
*/
|
|
547
|
+
setX(x: number): void;
|
|
548
|
+
/**
|
|
549
|
+
* Set Y position immediately.
|
|
550
|
+
*/
|
|
551
|
+
setY(y: number): void;
|
|
552
|
+
/**
|
|
553
|
+
* Apply current snap config to position.
|
|
554
|
+
*/
|
|
555
|
+
snap(): void;
|
|
556
|
+
/**
|
|
557
|
+
* Current drag angle in radians.
|
|
558
|
+
*/
|
|
559
|
+
readonly angle: number;
|
|
560
|
+
/**
|
|
561
|
+
* Delta X since last frame.
|
|
562
|
+
*/
|
|
563
|
+
readonly deltaX: number;
|
|
564
|
+
/**
|
|
565
|
+
* Delta Y since last frame.
|
|
566
|
+
*/
|
|
567
|
+
readonly deltaY: number;
|
|
568
|
+
/**
|
|
569
|
+
* Destination X (after snap/release calculation).
|
|
570
|
+
*/
|
|
571
|
+
readonly destX: number;
|
|
572
|
+
/**
|
|
573
|
+
* Destination Y (after snap/release calculation).
|
|
574
|
+
*/
|
|
575
|
+
readonly destY: number;
|
|
576
|
+
/**
|
|
577
|
+
* Whether currently being dragged.
|
|
578
|
+
*/
|
|
579
|
+
readonly isDragging: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* Whether the draggable is enabled.
|
|
582
|
+
*/
|
|
583
|
+
readonly isEnabled: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* Whether currently in release/settle phase.
|
|
586
|
+
*/
|
|
587
|
+
readonly isReleasing: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* X progress within container bounds [0, 1].
|
|
590
|
+
*/
|
|
591
|
+
progressX: number;
|
|
592
|
+
/**
|
|
593
|
+
* Y progress within container bounds [0, 1].
|
|
594
|
+
*/
|
|
595
|
+
progressY: number;
|
|
596
|
+
/**
|
|
597
|
+
* Current velocity magnitude (px/ms).
|
|
598
|
+
*/
|
|
599
|
+
readonly velocity: number;
|
|
600
|
+
/**
|
|
601
|
+
* Current X velocity component.
|
|
602
|
+
*/
|
|
603
|
+
readonly velocityX: number;
|
|
604
|
+
/**
|
|
605
|
+
* Current Y velocity component.
|
|
606
|
+
*/
|
|
607
|
+
readonly velocityY: number;
|
|
608
|
+
/**
|
|
609
|
+
* Current X position (px).
|
|
610
|
+
*/
|
|
611
|
+
readonly x: number;
|
|
612
|
+
/**
|
|
613
|
+
* Current Y position (px).
|
|
614
|
+
*/
|
|
615
|
+
readonly y: number;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Global engine control exposed to JavaScript.
|
|
620
|
+
*/
|
|
621
|
+
export class WasmEngine {
|
|
622
|
+
private constructor();
|
|
623
|
+
free(): void;
|
|
624
|
+
[Symbol.dispose](): void;
|
|
625
|
+
/**
|
|
626
|
+
* Number of currently active animations.
|
|
627
|
+
*/
|
|
628
|
+
static activeCount(): number;
|
|
629
|
+
/**
|
|
630
|
+
* Resume after a manual `suspend()`.
|
|
631
|
+
*/
|
|
632
|
+
static resume(): void;
|
|
633
|
+
/**
|
|
634
|
+
* Set target FPS (0 = no limit, use native rAF rate).
|
|
635
|
+
*/
|
|
636
|
+
static setFPS(fps: number): void;
|
|
637
|
+
/**
|
|
638
|
+
* Stop all animations and clear the engine.
|
|
639
|
+
*/
|
|
640
|
+
static stopAll(): void;
|
|
641
|
+
/**
|
|
642
|
+
* Manually suspend ALL animations (independent of page visibility).
|
|
643
|
+
*
|
|
644
|
+
* ```js
|
|
645
|
+
* WasmEngine.suspend(); // freeze everything
|
|
646
|
+
* WasmEngine.resume(); // unfreeze
|
|
647
|
+
* ```
|
|
648
|
+
*/
|
|
649
|
+
static suspend(): void;
|
|
650
|
+
/**
|
|
651
|
+
* Add a per-frame tick subscriber. Returns a subscriber ID for removal.
|
|
652
|
+
*
|
|
653
|
+
* ```js
|
|
654
|
+
* const id = WasmEngine.tickerAdd((time, deltaTime) => {
|
|
655
|
+
* console.log(`frame at ${time}ms, delta=${deltaTime}ms`);
|
|
656
|
+
* });
|
|
657
|
+
* WasmEngine.tickerRemove(id);
|
|
658
|
+
* ```
|
|
659
|
+
*/
|
|
660
|
+
static tickerAdd(cb: Function): bigint;
|
|
661
|
+
/**
|
|
662
|
+
* Remove all tick subscribers.
|
|
663
|
+
*/
|
|
664
|
+
static tickerClear(): void;
|
|
665
|
+
/**
|
|
666
|
+
* Remove a tick subscriber by its ID.
|
|
667
|
+
*/
|
|
668
|
+
static tickerRemove(id: bigint): void;
|
|
669
|
+
/**
|
|
670
|
+
* Number of DOM write errors encountered.
|
|
671
|
+
*/
|
|
672
|
+
static writeErrorCount(): number;
|
|
673
|
+
/**
|
|
674
|
+
* Current measured frames-per-second (rolling 16-frame average).
|
|
675
|
+
*/
|
|
676
|
+
static readonly fps: number;
|
|
677
|
+
/**
|
|
678
|
+
* Whether the engine is currently manually suspended.
|
|
679
|
+
*/
|
|
680
|
+
static readonly suspended: boolean;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export class WasmFlipAnimation {
|
|
684
|
+
private constructor();
|
|
685
|
+
free(): void;
|
|
686
|
+
[Symbol.dispose](): void;
|
|
687
|
+
cancel(): void;
|
|
688
|
+
destroy(): void;
|
|
689
|
+
finish(): void;
|
|
690
|
+
pause(): void;
|
|
691
|
+
resume(): void;
|
|
692
|
+
revert(): void;
|
|
693
|
+
readonly isActive: boolean;
|
|
694
|
+
readonly progress: number;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export class WasmFlipState {
|
|
698
|
+
private constructor();
|
|
699
|
+
free(): void;
|
|
700
|
+
[Symbol.dispose](): void;
|
|
701
|
+
readonly length: number;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export class WasmHoverGesture {
|
|
705
|
+
private constructor();
|
|
706
|
+
free(): void;
|
|
707
|
+
[Symbol.dispose](): void;
|
|
708
|
+
destroy(): void;
|
|
709
|
+
disable(): void;
|
|
710
|
+
enable(): void;
|
|
711
|
+
revert(): void;
|
|
712
|
+
readonly isActive: boolean;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Standalone inertia simulation handle.
|
|
717
|
+
*/
|
|
718
|
+
export class WasmInertia {
|
|
719
|
+
free(): void;
|
|
720
|
+
[Symbol.dispose](): void;
|
|
721
|
+
constructor(config: any);
|
|
722
|
+
/**
|
|
723
|
+
* Advance the inertia simulation and return `[position, settled_flag]`.
|
|
724
|
+
*
|
|
725
|
+
* `settled_flag` is `1.0` when the simulation is settled and `0.0` otherwise.
|
|
726
|
+
* A `Float64Array` is used here to keep the JS bridge allocation-light.
|
|
727
|
+
*/
|
|
728
|
+
tick(delta_ms: number): Float64Array;
|
|
729
|
+
readonly isSettled: boolean;
|
|
730
|
+
readonly position: number;
|
|
731
|
+
readonly velocity: number;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Keyframe sequence for multi-stop animations.
|
|
736
|
+
*
|
|
737
|
+
* ```js
|
|
738
|
+
* const seq = new WasmKeyframeSequence('target', 'opacity', 1000);
|
|
739
|
+
* seq.addKeyframe(0.0, 0);
|
|
740
|
+
* seq.addKeyframe(0.5, 1, 'easeInQuad');
|
|
741
|
+
* seq.addKeyframe(1.0, 0.5);
|
|
742
|
+
* console.log(seq.valueAt(500)); // 1.0
|
|
743
|
+
* ```
|
|
744
|
+
*/
|
|
745
|
+
export class WasmKeyframeSequence {
|
|
746
|
+
free(): void;
|
|
747
|
+
[Symbol.dispose](): void;
|
|
748
|
+
addKeyframe(offset: number, value: any, easing?: string | null): void;
|
|
749
|
+
formattedValueAt(time: number): string | undefined;
|
|
750
|
+
keyframeCount(): number;
|
|
751
|
+
constructor(target: string, property: string, duration: number);
|
|
752
|
+
valueAt(time: number): number | undefined;
|
|
753
|
+
readonly duration: number;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export class WasmLayoutTransition {
|
|
757
|
+
private constructor();
|
|
758
|
+
free(): void;
|
|
759
|
+
[Symbol.dispose](): void;
|
|
760
|
+
cancel(): void;
|
|
761
|
+
destroy(): void;
|
|
762
|
+
finish(): void;
|
|
763
|
+
pause(): void;
|
|
764
|
+
resume(): void;
|
|
765
|
+
revert(): void;
|
|
766
|
+
readonly isActive: boolean;
|
|
767
|
+
readonly progress: number;
|
|
768
|
+
readonly targetCount: number;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* A reactive numeric motion value handle.
|
|
773
|
+
*/
|
|
774
|
+
export class WasmMotionValue {
|
|
775
|
+
free(): void;
|
|
776
|
+
[Symbol.dispose](): void;
|
|
777
|
+
connectDOM(element: Element, property: string): void;
|
|
778
|
+
destroy(): void;
|
|
779
|
+
get(): number;
|
|
780
|
+
getVelocity(): number;
|
|
781
|
+
jump(value: number): void;
|
|
782
|
+
constructor(init: number);
|
|
783
|
+
on(callback: Function): Function;
|
|
784
|
+
set(value: number): void;
|
|
785
|
+
setWithVelocity(previous: number, current: number, delta_ms: number): void;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export class WasmObserver {
|
|
789
|
+
private constructor();
|
|
790
|
+
free(): void;
|
|
791
|
+
[Symbol.dispose](): void;
|
|
792
|
+
destroy(): void;
|
|
793
|
+
disable(): void;
|
|
794
|
+
enable(): void;
|
|
795
|
+
refresh(): void;
|
|
796
|
+
revert(): void;
|
|
797
|
+
readonly enabled: boolean;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export class WasmPanGesture {
|
|
801
|
+
private constructor();
|
|
802
|
+
free(): void;
|
|
803
|
+
[Symbol.dispose](): void;
|
|
804
|
+
destroy(): void;
|
|
805
|
+
disable(): void;
|
|
806
|
+
enable(): void;
|
|
807
|
+
revert(): void;
|
|
808
|
+
readonly isActive: boolean;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Standalone 2D physics simulation handle.
|
|
813
|
+
*/
|
|
814
|
+
export class WasmPhysics2D {
|
|
815
|
+
free(): void;
|
|
816
|
+
[Symbol.dispose](): void;
|
|
817
|
+
clearAttractor(): void;
|
|
818
|
+
impulse(vx: number, vy: number): void;
|
|
819
|
+
constructor(config: any);
|
|
820
|
+
setAttractor(x: number, y: number, strength: number, max_force: number): void;
|
|
821
|
+
tick(delta_ms: number): Float64Array;
|
|
822
|
+
readonly isResting: boolean;
|
|
823
|
+
readonly velocityX: number;
|
|
824
|
+
readonly velocityY: number;
|
|
825
|
+
readonly x: number;
|
|
826
|
+
readonly y: number;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Standalone multi-property physics simulation handle.
|
|
831
|
+
*/
|
|
832
|
+
export class WasmPhysicsProps {
|
|
833
|
+
free(): void;
|
|
834
|
+
[Symbol.dispose](): void;
|
|
835
|
+
constructor(config: any);
|
|
836
|
+
tick(delta_ms: number): any;
|
|
837
|
+
readonly isSettled: boolean;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export class WasmPressGesture {
|
|
841
|
+
private constructor();
|
|
842
|
+
free(): void;
|
|
843
|
+
[Symbol.dispose](): void;
|
|
844
|
+
destroy(): void;
|
|
845
|
+
disable(): void;
|
|
846
|
+
enable(): void;
|
|
847
|
+
revert(): void;
|
|
848
|
+
readonly isActive: boolean;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Scoped animation manager.
|
|
853
|
+
*
|
|
854
|
+
* ```js
|
|
855
|
+
* const scope = createScope({ mediaQueries: { sm: '(max-width: 768px)' } });
|
|
856
|
+
* scope.add(() => {
|
|
857
|
+
* animate('.box', { translateX: [0, 100], duration: 500 });
|
|
858
|
+
* });
|
|
859
|
+
* // Later:
|
|
860
|
+
* scope.revert(); // stops everything
|
|
861
|
+
* ```
|
|
862
|
+
*/
|
|
863
|
+
export class WasmScope {
|
|
864
|
+
private constructor();
|
|
865
|
+
free(): void;
|
|
866
|
+
[Symbol.dispose](): void;
|
|
867
|
+
/**
|
|
868
|
+
* Add a constructor callback. Executed immediately; any animations created
|
|
869
|
+
* during execution are tracked for cleanup.
|
|
870
|
+
*/
|
|
871
|
+
add(callback: Function): void;
|
|
872
|
+
/**
|
|
873
|
+
* Revert all current instances, then re-run all constructors.
|
|
874
|
+
*/
|
|
875
|
+
refresh(): void;
|
|
876
|
+
/**
|
|
877
|
+
* Revert all tracked animations, observers, and splitters.
|
|
878
|
+
*/
|
|
879
|
+
revert(): void;
|
|
880
|
+
/**
|
|
881
|
+
* Current media query match state.
|
|
882
|
+
*/
|
|
883
|
+
readonly matches: object;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export class WasmScrambleText {
|
|
887
|
+
private constructor();
|
|
888
|
+
free(): void;
|
|
889
|
+
[Symbol.dispose](): void;
|
|
890
|
+
cancel(): void;
|
|
891
|
+
destroy(): void;
|
|
892
|
+
finish(): void;
|
|
893
|
+
pause(): void;
|
|
894
|
+
resume(): void;
|
|
895
|
+
revert(): void;
|
|
896
|
+
readonly currentText: string;
|
|
897
|
+
readonly isActive: boolean;
|
|
898
|
+
readonly progress: number;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export class WasmScrollObserver {
|
|
902
|
+
private constructor();
|
|
903
|
+
free(): void;
|
|
904
|
+
[Symbol.dispose](): void;
|
|
905
|
+
/**
|
|
906
|
+
* Destroy the observer and remove all listeners. This is an alias for `revert()`.
|
|
907
|
+
*/
|
|
908
|
+
destroy(): void;
|
|
909
|
+
/**
|
|
910
|
+
* Link an animation to this scroll observer.
|
|
911
|
+
*/
|
|
912
|
+
link(animation: WasmAnimation): void;
|
|
913
|
+
/**
|
|
914
|
+
* Recompute scroll offsets (call after layout changes).
|
|
915
|
+
*/
|
|
916
|
+
refresh(): void;
|
|
917
|
+
/**
|
|
918
|
+
* Clean up the observer and remove scroll listeners if no longer needed.
|
|
919
|
+
*/
|
|
920
|
+
revert(): void;
|
|
921
|
+
/**
|
|
922
|
+
* Whether the observed element is currently in the scroll view.
|
|
923
|
+
*/
|
|
924
|
+
readonly isInView: boolean;
|
|
925
|
+
/**
|
|
926
|
+
* The scroll position (in px) where the leave threshold fires.
|
|
927
|
+
*/
|
|
928
|
+
readonly offsetEnd: number;
|
|
929
|
+
/**
|
|
930
|
+
* The scroll position (in px) where the enter threshold fires.
|
|
931
|
+
*/
|
|
932
|
+
readonly offsetStart: number;
|
|
933
|
+
/**
|
|
934
|
+
* Current scroll progress [0.0, 1.0].
|
|
935
|
+
*/
|
|
936
|
+
readonly progress: number;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export class WasmScrollSmoother {
|
|
940
|
+
private constructor();
|
|
941
|
+
free(): void;
|
|
942
|
+
[Symbol.dispose](): void;
|
|
943
|
+
destroy(): void;
|
|
944
|
+
pause(): void;
|
|
945
|
+
refresh(): void;
|
|
946
|
+
resume(): void;
|
|
947
|
+
revert(): void;
|
|
948
|
+
readonly currentY: number;
|
|
949
|
+
readonly paused: boolean;
|
|
950
|
+
readonly progress: number;
|
|
951
|
+
readonly targetY: number;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export class WasmScrollTo {
|
|
955
|
+
private constructor();
|
|
956
|
+
free(): void;
|
|
957
|
+
[Symbol.dispose](): void;
|
|
958
|
+
cancel(): void;
|
|
959
|
+
destroy(): void;
|
|
960
|
+
revert(): void;
|
|
961
|
+
readonly isActive: boolean;
|
|
962
|
+
readonly progress: number;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Spring physics configuration and evaluation.
|
|
967
|
+
*/
|
|
968
|
+
export class WasmSpring {
|
|
969
|
+
free(): void;
|
|
970
|
+
[Symbol.dispose](): void;
|
|
971
|
+
static fromBounce(bounce: number, duration: number): WasmSpring;
|
|
972
|
+
constructor(mass: number, stiffness: number, damping: number, velocity?: number | null);
|
|
973
|
+
/**
|
|
974
|
+
* Sample the spring at evenly spaced points from t=0 to t=1.
|
|
975
|
+
*
|
|
976
|
+
* For `count > 0`, returns `count + 1` samples (including endpoints).
|
|
977
|
+
* For `count == 0`, returns a single sample at t=0.
|
|
978
|
+
*/
|
|
979
|
+
sample(count: number): Float64Array;
|
|
980
|
+
solve(t: number): number;
|
|
981
|
+
readonly dampingRatio: number;
|
|
982
|
+
readonly duration: number;
|
|
983
|
+
readonly isBouncy: boolean;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export class WasmTextReplace {
|
|
987
|
+
private constructor();
|
|
988
|
+
free(): void;
|
|
989
|
+
[Symbol.dispose](): void;
|
|
990
|
+
cancel(): void;
|
|
991
|
+
destroy(): void;
|
|
992
|
+
finish(): void;
|
|
993
|
+
pause(): void;
|
|
994
|
+
resume(): void;
|
|
995
|
+
revert(): void;
|
|
996
|
+
readonly currentText: string;
|
|
997
|
+
readonly isActive: boolean;
|
|
998
|
+
readonly progress: number;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export class WasmTextSplitter {
|
|
1002
|
+
private constructor();
|
|
1003
|
+
free(): void;
|
|
1004
|
+
[Symbol.dispose](): void;
|
|
1005
|
+
destroy(): void;
|
|
1006
|
+
refresh(): void;
|
|
1007
|
+
revert(): void;
|
|
1008
|
+
readonly chars: Array<any>;
|
|
1009
|
+
readonly isAutoResplit: boolean;
|
|
1010
|
+
readonly lines: Array<any>;
|
|
1011
|
+
readonly words: Array<any>;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Timeline for sequencing multiple animations.
|
|
1016
|
+
*/
|
|
1017
|
+
export class WasmTimeline {
|
|
1018
|
+
free(): void;
|
|
1019
|
+
[Symbol.dispose](): void;
|
|
1020
|
+
/**
|
|
1021
|
+
* Add an animation at a position in the timeline.
|
|
1022
|
+
*/
|
|
1023
|
+
add(config: any, position?: string | null): void;
|
|
1024
|
+
/**
|
|
1025
|
+
* Add a label at the current end.
|
|
1026
|
+
*/
|
|
1027
|
+
addLabel(label: string): void;
|
|
1028
|
+
/**
|
|
1029
|
+
* Insert a callback at a position in the timeline.
|
|
1030
|
+
*/
|
|
1031
|
+
call(cb: Function, position?: string | null): void;
|
|
1032
|
+
constructor();
|
|
1033
|
+
/**
|
|
1034
|
+
* Set onBegin callback.
|
|
1035
|
+
*/
|
|
1036
|
+
onBegin(cb: Function): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Set onComplete callback.
|
|
1039
|
+
*/
|
|
1040
|
+
onComplete(cb: Function): void;
|
|
1041
|
+
/**
|
|
1042
|
+
* Set onLoop callback (receives iteration number).
|
|
1043
|
+
*/
|
|
1044
|
+
onLoop(cb: Function): void;
|
|
1045
|
+
/**
|
|
1046
|
+
* Set onPause callback.
|
|
1047
|
+
*/
|
|
1048
|
+
onPause(cb: Function): void;
|
|
1049
|
+
/**
|
|
1050
|
+
* Set onResume callback.
|
|
1051
|
+
*/
|
|
1052
|
+
onResume(cb: Function): void;
|
|
1053
|
+
/**
|
|
1054
|
+
* Set onUpdate callback (receives progress 0.0–1.0).
|
|
1055
|
+
*/
|
|
1056
|
+
onUpdate(cb: Function): void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Pause the timeline. Returns true if an active instance was paused.
|
|
1059
|
+
*/
|
|
1060
|
+
pause(): boolean;
|
|
1061
|
+
/**
|
|
1062
|
+
* Play the timeline.
|
|
1063
|
+
*/
|
|
1064
|
+
play(): void;
|
|
1065
|
+
/**
|
|
1066
|
+
* Restart the timeline. Returns true if an active instance was restarted.
|
|
1067
|
+
*/
|
|
1068
|
+
restart(): boolean;
|
|
1069
|
+
/**
|
|
1070
|
+
* Reverse the timeline playback. Returns true if an action was taken.
|
|
1071
|
+
*/
|
|
1072
|
+
reverse(): boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* Seek the timeline to a specific time and apply values.
|
|
1075
|
+
*/
|
|
1076
|
+
seek(time: number): void;
|
|
1077
|
+
/**
|
|
1078
|
+
* Set repeat count (0 = infinite).
|
|
1079
|
+
*/
|
|
1080
|
+
setRepeat(count: number): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Set playback speed (1.0 = normal, 2.0 = double, 0.5 = half).
|
|
1083
|
+
*/
|
|
1084
|
+
setSpeed(speed: number): void;
|
|
1085
|
+
/**
|
|
1086
|
+
* Enable yoyo.
|
|
1087
|
+
*/
|
|
1088
|
+
setYoyo(yoyo: boolean): void;
|
|
1089
|
+
/**
|
|
1090
|
+
* Duration of a single play-through.
|
|
1091
|
+
*/
|
|
1092
|
+
readonly duration: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* Get a Promise that resolves when the timeline completes.
|
|
1095
|
+
*/
|
|
1096
|
+
readonly finished: Promise<any>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Total duration including repeats.
|
|
1099
|
+
*/
|
|
1100
|
+
readonly totalDuration: number;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* A frame-accurate, fully-controllable timer.
|
|
1105
|
+
*/
|
|
1106
|
+
export class WasmTimer {
|
|
1107
|
+
private constructor();
|
|
1108
|
+
free(): void;
|
|
1109
|
+
[Symbol.dispose](): void;
|
|
1110
|
+
/**
|
|
1111
|
+
* Cancel the timer (does not fire onComplete).
|
|
1112
|
+
*/
|
|
1113
|
+
cancel(): void;
|
|
1114
|
+
/**
|
|
1115
|
+
* Pause the timer at the current position.
|
|
1116
|
+
*/
|
|
1117
|
+
pause(): boolean;
|
|
1118
|
+
/**
|
|
1119
|
+
* Play the timer from its current position (or restart if completed).
|
|
1120
|
+
*/
|
|
1121
|
+
play(): boolean;
|
|
1122
|
+
/**
|
|
1123
|
+
* Restart from the beginning.
|
|
1124
|
+
*/
|
|
1125
|
+
restart(): boolean;
|
|
1126
|
+
/**
|
|
1127
|
+
* Reverse playback direction.
|
|
1128
|
+
*/
|
|
1129
|
+
reverse(): void;
|
|
1130
|
+
/**
|
|
1131
|
+
* Seek to a specific time in ms.
|
|
1132
|
+
*/
|
|
1133
|
+
seek(time: number): void;
|
|
1134
|
+
/**
|
|
1135
|
+
* Set playback speed multiplier.
|
|
1136
|
+
*/
|
|
1137
|
+
setSpeed(speed: number): void;
|
|
1138
|
+
/**
|
|
1139
|
+
* Whether the timer has completed.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly completed: boolean;
|
|
1142
|
+
/**
|
|
1143
|
+
* Get the current elapsed time in ms.
|
|
1144
|
+
*/
|
|
1145
|
+
readonly currentTime: number;
|
|
1146
|
+
/**
|
|
1147
|
+
* Total duration in ms.
|
|
1148
|
+
*/
|
|
1149
|
+
readonly duration: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* A Promise that resolves when the timer completes.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly finished: Promise<any>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Whether the timer is currently paused.
|
|
1156
|
+
*/
|
|
1157
|
+
readonly paused: boolean;
|
|
1158
|
+
/**
|
|
1159
|
+
* Get current progress [0.0, 1.0].
|
|
1160
|
+
*/
|
|
1161
|
+
readonly progress: number;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
export class WasmViewTransition {
|
|
1165
|
+
private constructor();
|
|
1166
|
+
free(): void;
|
|
1167
|
+
[Symbol.dispose](): void;
|
|
1168
|
+
skipTransition(): void;
|
|
1169
|
+
readonly finished: any;
|
|
1170
|
+
readonly isNative: boolean;
|
|
1171
|
+
readonly ready: any;
|
|
1172
|
+
readonly updateCallbackDone: any;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
export class WasmWaapiAnimation {
|
|
1176
|
+
private constructor();
|
|
1177
|
+
free(): void;
|
|
1178
|
+
[Symbol.dispose](): void;
|
|
1179
|
+
cancel(): void;
|
|
1180
|
+
commitStyles(): void;
|
|
1181
|
+
destroy(): void;
|
|
1182
|
+
finish(): void;
|
|
1183
|
+
pause(): void;
|
|
1184
|
+
play(): void;
|
|
1185
|
+
reverse(): void;
|
|
1186
|
+
revert(): void;
|
|
1187
|
+
readonly animations: Array<any>;
|
|
1188
|
+
readonly currentTime: number;
|
|
1189
|
+
readonly duration: number;
|
|
1190
|
+
readonly persist: boolean;
|
|
1191
|
+
readonly progress: number;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Create and start an animation.
|
|
1196
|
+
*
|
|
1197
|
+
* ```js
|
|
1198
|
+
* const anim = animate({
|
|
1199
|
+
* targets: '.box',
|
|
1200
|
+
* translateX: [0, 250],
|
|
1201
|
+
* opacity: [0, 1],
|
|
1202
|
+
* scale: [0.5, 1],
|
|
1203
|
+
* duration: 1000,
|
|
1204
|
+
* delay: 0,
|
|
1205
|
+
* easing: 'easeOutCubic',
|
|
1206
|
+
* loop: 1,
|
|
1207
|
+
* direction: 'normal',
|
|
1208
|
+
* autoplay: true,
|
|
1209
|
+
* stagger: 100,
|
|
1210
|
+
* composition: 'replace', // or 'add', 'accumulate'
|
|
1211
|
+
* begin: (anim) => {},
|
|
1212
|
+
* update: (progress) => {},
|
|
1213
|
+
* complete: (anim) => {},
|
|
1214
|
+
* });
|
|
1215
|
+
*
|
|
1216
|
+
* // Control
|
|
1217
|
+
* anim.pause();
|
|
1218
|
+
* anim.play();
|
|
1219
|
+
* anim.seek(500);
|
|
1220
|
+
* anim.reverse();
|
|
1221
|
+
* anim.restart();
|
|
1222
|
+
*
|
|
1223
|
+
* // Promise
|
|
1224
|
+
* await anim.finished;
|
|
1225
|
+
* ```
|
|
1226
|
+
*/
|
|
1227
|
+
export function animate(config: any): WasmAnimation;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Animate properties of a plain JavaScript object.
|
|
1231
|
+
*
|
|
1232
|
+
* All numeric properties are interpolated each frame and written back to the
|
|
1233
|
+
* object via `Reflect.set`. Use the `update` callback to react to changes.
|
|
1234
|
+
*
|
|
1235
|
+
* ```js
|
|
1236
|
+
* const state = { progress: 0 };
|
|
1237
|
+
* const anim = animateObject(state, {
|
|
1238
|
+
* progress: [0, 1],
|
|
1239
|
+
* duration: 2000,
|
|
1240
|
+
* update: () => draw(state.progress),
|
|
1241
|
+
* });
|
|
1242
|
+
* ```
|
|
1243
|
+
*/
|
|
1244
|
+
export function animateObject(obj: any, config: any): WasmAnimation;
|
|
1245
|
+
|
|
1246
|
+
export function commitStyles(value: any): void;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Create a persistent property animator for a DOM element.
|
|
1250
|
+
*
|
|
1251
|
+
* Property configs are specified per-property in the `config` object:
|
|
1252
|
+
* - A number means duration in ms (uses default easing)
|
|
1253
|
+
* - An object `{ duration, easing }` sets both defaults
|
|
1254
|
+
*
|
|
1255
|
+
* ```js
|
|
1256
|
+
* const box = createAnimatable('.box', {
|
|
1257
|
+
* translateX: { duration: 600, easing: 'spring(1,80,12,0)' },
|
|
1258
|
+
* translateY: { duration: 600, easing: 'spring(1,80,12,0)' },
|
|
1259
|
+
* opacity: { duration: 200, easing: 'easeOutQuad' },
|
|
1260
|
+
* scale: 400, // 400ms, default easing
|
|
1261
|
+
* });
|
|
1262
|
+
* ```
|
|
1263
|
+
*/
|
|
1264
|
+
export function createAnimatable(target: any, config: any): WasmAnimatable;
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Create a fully-featured draggable element.
|
|
1268
|
+
*/
|
|
1269
|
+
export function createDraggable(target: any, config: any): WasmDraggable;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Set up an SVG geometry element for stroke-drawing animation.
|
|
1273
|
+
*
|
|
1274
|
+
* - Resolves `selector` in the document.
|
|
1275
|
+
* - Casts the element to `SVGGeometryElement` (returns `Err` if not geometry).
|
|
1276
|
+
* - Sets `pathLength="1000"` so that dash values are normalised.
|
|
1277
|
+
* - Applies the initial draw state using `start`.
|
|
1278
|
+
* - Returns a `DrawableHandle` wrapping the element.
|
|
1279
|
+
*/
|
|
1280
|
+
export function createDrawable(selector: string, start: number, end: number): DrawableHandle;
|
|
1281
|
+
|
|
1282
|
+
export function createHover(target: any, config: any): WasmHoverGesture;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* Resolve an SVG geometry element, read its total length once, and return
|
|
1286
|
+
* three tween-object values for `translateX`, `translateY`, and `rotate`.
|
|
1287
|
+
*
|
|
1288
|
+
* `offset` (clamped to `[0.0, 1.0]`) shifts the starting position along
|
|
1289
|
+
* the path.
|
|
1290
|
+
*/
|
|
1291
|
+
export function createMotionPath(path_selector: string, offset: number): MotionPathValues;
|
|
1292
|
+
|
|
1293
|
+
export function createObserver(config: any): WasmObserver;
|
|
1294
|
+
|
|
1295
|
+
export function createPan(target: any, config: any): WasmPanGesture;
|
|
1296
|
+
|
|
1297
|
+
export function createPress(target: any, config: any): WasmPressGesture;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Create a new scope.
|
|
1301
|
+
*
|
|
1302
|
+
* ```js
|
|
1303
|
+
* const scope = createScope({
|
|
1304
|
+
* mediaQueries: { sm: '(max-width: 768px)', lg: '(min-width: 1024px)' }
|
|
1305
|
+
* });
|
|
1306
|
+
* ```
|
|
1307
|
+
*/
|
|
1308
|
+
export function createScope(config: any): WasmScope;
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Create a scroll observer from a JS config object.
|
|
1312
|
+
*
|
|
1313
|
+
* ```js
|
|
1314
|
+
* const obs = createScrollObserver({
|
|
1315
|
+
* target: '.hero',
|
|
1316
|
+
* enter: 'end start',
|
|
1317
|
+
* leave: 'start end',
|
|
1318
|
+
* sync: 'linear',
|
|
1319
|
+
* axis: 'y',
|
|
1320
|
+
* });
|
|
1321
|
+
* obs.link(animation);
|
|
1322
|
+
* ```
|
|
1323
|
+
*/
|
|
1324
|
+
export function createScrollObserver(config: any): WasmScrollObserver;
|
|
1325
|
+
|
|
1326
|
+
export function createScrollSmoother(config: any): WasmScrollSmoother;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Create a new timer.
|
|
1330
|
+
*
|
|
1331
|
+
* ```js
|
|
1332
|
+
* const timer = createTimer({
|
|
1333
|
+
* duration: 2000,
|
|
1334
|
+
* loop: 3,
|
|
1335
|
+
* easing: 'linear',
|
|
1336
|
+
* onBegin: (t) => console.log('start'),
|
|
1337
|
+
* onUpdate: (t) => draw(t.progress),
|
|
1338
|
+
* onLoop: (t) => console.log('loop', t.currentIteration),
|
|
1339
|
+
* onComplete: (t) => console.log('done'),
|
|
1340
|
+
* });
|
|
1341
|
+
*
|
|
1342
|
+
* // Infinite: use `duration: Infinity` or `loop: Infinity`
|
|
1343
|
+
* const ticker = createTimer({
|
|
1344
|
+
* duration: Infinity,
|
|
1345
|
+
* onUpdate: (t) => physics.step(t.deltaTime),
|
|
1346
|
+
* });
|
|
1347
|
+
* ```
|
|
1348
|
+
*/
|
|
1349
|
+
export function createTimer(config: any): WasmTimer;
|
|
1350
|
+
|
|
1351
|
+
export function easingToLinear(easing: any, samples: number): string;
|
|
1352
|
+
|
|
1353
|
+
export function flipCapture(targets: any): WasmFlipState;
|
|
1354
|
+
|
|
1355
|
+
export function flipFrom(state: WasmFlipState, config: any): WasmFlipAnimation;
|
|
1356
|
+
|
|
1357
|
+
export function followValue(source: WasmMotionValue, spring_config: any): WasmMotionValue;
|
|
1358
|
+
|
|
1359
|
+
export function init(): void;
|
|
1360
|
+
|
|
1361
|
+
export function layoutTransition(targets: any, update: Function, config: any): WasmLayoutTransition;
|
|
1362
|
+
|
|
1363
|
+
export function mapValue(source: WasmMotionValue, input_range: Array<any>, output_range: Array<any>): WasmMotionValue;
|
|
1364
|
+
|
|
1365
|
+
export function motionValue(init: number): WasmMotionValue;
|
|
1366
|
+
|
|
1367
|
+
export function registerTransformProperties(): boolean;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Register a JS object (scroll observer, text splitter, draggable, etc.) with the currently
|
|
1371
|
+
* active scope. The object must have a `.revert()` or `.destroy()` method.
|
|
1372
|
+
*
|
|
1373
|
+
* This is called automatically for `animate()` and `animateObject()` calls.
|
|
1374
|
+
* For other objects (draggable, scroll observer, text splitter), call this manually
|
|
1375
|
+
* inside a scope constructor, or call `scope.add(() => { ... })` which auto-tracks them.
|
|
1376
|
+
*
|
|
1377
|
+
* ```js
|
|
1378
|
+
* scope.add(() => {
|
|
1379
|
+
* const drag = createDraggable('.el', {...});
|
|
1380
|
+
* scopeRegisterJs(drag); // register for auto-destroy on scope.revert()
|
|
1381
|
+
* });
|
|
1382
|
+
* ```
|
|
1383
|
+
*/
|
|
1384
|
+
export function scopeRegisterJs(val: any): void;
|
|
1385
|
+
|
|
1386
|
+
export function scrambleText(target: any, config: any): WasmScrambleText;
|
|
1387
|
+
|
|
1388
|
+
export function scrollTo(config: any): WasmScrollTo;
|
|
1389
|
+
|
|
1390
|
+
export function splitText(target: any, config: any): WasmTextSplitter;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Calculate stagger delays.
|
|
1394
|
+
*
|
|
1395
|
+
* ```js
|
|
1396
|
+
* // Simple: 100ms between each
|
|
1397
|
+
* const delays = stagger(100, 5); // [0, 100, 200, 300, 400]
|
|
1398
|
+
*
|
|
1399
|
+
* // From center
|
|
1400
|
+
* const delays = stagger(100, 5, { from: 'center' }); // [200, 100, 0, 100, 200]
|
|
1401
|
+
*
|
|
1402
|
+
* // Value range [min, max] mapped across elements
|
|
1403
|
+
* const delays = stagger([100, 500], 5); // [100, 200, 300, 400, 500]
|
|
1404
|
+
*
|
|
1405
|
+
* // Grid stagger (2D)
|
|
1406
|
+
* const delays = stagger(50, 20, { grid: [5, 4], from: 'center', axis: 'x' });
|
|
1407
|
+
* ```
|
|
1408
|
+
*/
|
|
1409
|
+
export function stagger(value: any, count: number, options: any): Float64Array;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Simple stagger with count + optional from string (backwards-compatible API).
|
|
1413
|
+
*
|
|
1414
|
+
* ```js
|
|
1415
|
+
* const delays = staggerSimple(100, 5, 'center');
|
|
1416
|
+
* ```
|
|
1417
|
+
*/
|
|
1418
|
+
export function staggerSimple(delay: number, count: number, from?: string | null): Float64Array;
|
|
1419
|
+
|
|
1420
|
+
export function startViewTransition(update: Function, config: any): WasmViewTransition;
|
|
1421
|
+
|
|
1422
|
+
export function textReplace(target: any, config: any): WasmTextReplace;
|
|
1423
|
+
|
|
1424
|
+
export function version(): string;
|
|
1425
|
+
|
|
1426
|
+
export function waapi(targets: any, config: any): WasmWaapiAnimation;
|
|
1427
|
+
|
|
1428
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1429
|
+
|
|
1430
|
+
export interface InitOutput {
|
|
1431
|
+
readonly memory: WebAssembly.Memory;
|
|
1432
|
+
readonly __wbg_wasmanimatable_free: (a: number, b: number) => void;
|
|
1433
|
+
readonly wasmanimatable_set: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
1434
|
+
readonly wasmanimatable_get: (a: number, b: number, c: number) => number;
|
|
1435
|
+
readonly wasmanimatable_getLive: (a: number, b: number, c: number) => number;
|
|
1436
|
+
readonly wasmanimatable_setImmediate: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1437
|
+
readonly wasmanimatable_revert: (a: number, b: number) => void;
|
|
1438
|
+
readonly wasmanimatable_stop: (a: number) => void;
|
|
1439
|
+
readonly wasmanimatable_isAnimating: (a: number) => number;
|
|
1440
|
+
readonly wasmanimatable_target: (a: number) => number;
|
|
1441
|
+
readonly createAnimatable: (a: number, b: number, c: number) => void;
|
|
1442
|
+
readonly animate: (a: number, b: number) => void;
|
|
1443
|
+
readonly animateObject: (a: number, b: number, c: number) => void;
|
|
1444
|
+
readonly __wbg_wasmanimation_free: (a: number, b: number) => void;
|
|
1445
|
+
readonly wasmanimation_play: (a: number) => number;
|
|
1446
|
+
readonly wasmanimation_pause: (a: number) => number;
|
|
1447
|
+
readonly wasmanimation_seek: (a: number, b: number, c: number) => void;
|
|
1448
|
+
readonly wasmanimation_reverse: (a: number) => number;
|
|
1449
|
+
readonly wasmanimation_restart: (a: number) => number;
|
|
1450
|
+
readonly wasmanimation_setSpeed: (a: number, b: number) => void;
|
|
1451
|
+
readonly wasmanimation_duration: (a: number) => number;
|
|
1452
|
+
readonly wasmanimation_completed: (a: number) => number;
|
|
1453
|
+
readonly wasmanimation_finished: (a: number) => number;
|
|
1454
|
+
readonly wasmanimation_onBegin: (a: number, b: number) => void;
|
|
1455
|
+
readonly wasmanimation_onUpdate: (a: number, b: number) => void;
|
|
1456
|
+
readonly wasmanimation_onComplete: (a: number, b: number) => void;
|
|
1457
|
+
readonly wasmanimation_onLoop: (a: number, b: number) => void;
|
|
1458
|
+
readonly wasmanimation_destroy: (a: number) => void;
|
|
1459
|
+
readonly __wbg_wasmkeyframesequence_free: (a: number, b: number) => void;
|
|
1460
|
+
readonly wasmkeyframesequence_new: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1461
|
+
readonly wasmkeyframesequence_addKeyframe: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1462
|
+
readonly wasmkeyframesequence_valueAt: (a: number, b: number, c: number) => void;
|
|
1463
|
+
readonly wasmkeyframesequence_formattedValueAt: (a: number, b: number, c: number) => void;
|
|
1464
|
+
readonly wasmkeyframesequence_duration: (a: number) => number;
|
|
1465
|
+
readonly wasmkeyframesequence_keyframeCount: (a: number) => number;
|
|
1466
|
+
readonly stagger: (a: number, b: number, c: number, d: number) => void;
|
|
1467
|
+
readonly staggerSimple: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1468
|
+
readonly __wbg_wasmtimeline_free: (a: number, b: number) => void;
|
|
1469
|
+
readonly wasmtimeline_new: () => number;
|
|
1470
|
+
readonly wasmtimeline_call: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1471
|
+
readonly wasmtimeline_add: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1472
|
+
readonly wasmtimeline_addLabel: (a: number, b: number, c: number) => void;
|
|
1473
|
+
readonly wasmtimeline_setRepeat: (a: number, b: number) => void;
|
|
1474
|
+
readonly wasmtimeline_setYoyo: (a: number, b: number) => void;
|
|
1475
|
+
readonly wasmtimeline_duration: (a: number) => number;
|
|
1476
|
+
readonly wasmtimeline_totalDuration: (a: number) => number;
|
|
1477
|
+
readonly wasmtimeline_play: (a: number, b: number) => void;
|
|
1478
|
+
readonly wasmtimeline_seek: (a: number, b: number, c: number) => void;
|
|
1479
|
+
readonly wasmtimeline_pause: (a: number) => number;
|
|
1480
|
+
readonly wasmtimeline_reverse: (a: number) => number;
|
|
1481
|
+
readonly wasmtimeline_setSpeed: (a: number, b: number) => void;
|
|
1482
|
+
readonly wasmtimeline_restart: (a: number) => number;
|
|
1483
|
+
readonly wasmtimeline_finished: (a: number) => number;
|
|
1484
|
+
readonly wasmtimeline_onBegin: (a: number, b: number) => void;
|
|
1485
|
+
readonly wasmtimeline_onUpdate: (a: number, b: number) => void;
|
|
1486
|
+
readonly wasmtimeline_onComplete: (a: number, b: number) => void;
|
|
1487
|
+
readonly wasmtimeline_onLoop: (a: number, b: number) => void;
|
|
1488
|
+
readonly wasmtimeline_onPause: (a: number, b: number) => void;
|
|
1489
|
+
readonly wasmtimeline_onResume: (a: number, b: number) => void;
|
|
1490
|
+
readonly wasmtimer_play: (a: number) => number;
|
|
1491
|
+
readonly wasmtimer_pause: (a: number) => number;
|
|
1492
|
+
readonly wasmtimer_restart: (a: number) => number;
|
|
1493
|
+
readonly wasmtimer_seek: (a: number, b: number, c: number) => void;
|
|
1494
|
+
readonly wasmtimer_cancel: (a: number) => void;
|
|
1495
|
+
readonly wasmtimer_setSpeed: (a: number, b: number) => void;
|
|
1496
|
+
readonly wasmtimer_reverse: (a: number) => void;
|
|
1497
|
+
readonly wasmtimer_currentTime: (a: number) => number;
|
|
1498
|
+
readonly wasmtimer_progress: (a: number) => number;
|
|
1499
|
+
readonly wasmtimer_duration: (a: number) => number;
|
|
1500
|
+
readonly wasmtimer_paused: (a: number) => number;
|
|
1501
|
+
readonly wasmtimer_completed: (a: number) => number;
|
|
1502
|
+
readonly wasmtimer_finished: (a: number) => number;
|
|
1503
|
+
readonly createTimer: (a: number, b: number) => void;
|
|
1504
|
+
readonly reducedmotion_prefers: () => number;
|
|
1505
|
+
readonly reducedmotion_shouldReduce: () => number;
|
|
1506
|
+
readonly reducedmotion_getPolicy: (a: number) => void;
|
|
1507
|
+
readonly reducedmotion_setPolicy: (a: number, b: number) => number;
|
|
1508
|
+
readonly __wbg_wasmscope_free: (a: number, b: number) => void;
|
|
1509
|
+
readonly wasmscope_add: (a: number, b: number, c: number) => void;
|
|
1510
|
+
readonly wasmscope_revert: (a: number) => void;
|
|
1511
|
+
readonly wasmscope_refresh: (a: number, b: number) => void;
|
|
1512
|
+
readonly wasmscope_matches: (a: number) => number;
|
|
1513
|
+
readonly createScope: (a: number, b: number) => void;
|
|
1514
|
+
readonly __wbg_wasmviewtransition_free: (a: number, b: number) => void;
|
|
1515
|
+
readonly wasmviewtransition_isNative: (a: number) => number;
|
|
1516
|
+
readonly wasmviewtransition_ready: (a: number) => number;
|
|
1517
|
+
readonly wasmviewtransition_finished: (a: number) => number;
|
|
1518
|
+
readonly wasmviewtransition_updateCallbackDone: (a: number) => number;
|
|
1519
|
+
readonly wasmviewtransition_skipTransition: (a: number, b: number) => void;
|
|
1520
|
+
readonly startViewTransition: (a: number, b: number, c: number) => void;
|
|
1521
|
+
readonly __wbg_wasmwaapianimation_free: (a: number, b: number) => void;
|
|
1522
|
+
readonly wasmwaapianimation_play: (a: number, b: number) => void;
|
|
1523
|
+
readonly wasmwaapianimation_pause: (a: number, b: number) => void;
|
|
1524
|
+
readonly wasmwaapianimation_reverse: (a: number, b: number) => void;
|
|
1525
|
+
readonly wasmwaapianimation_finish: (a: number, b: number) => void;
|
|
1526
|
+
readonly wasmwaapianimation_cancel: (a: number, b: number) => void;
|
|
1527
|
+
readonly wasmwaapianimation_commitStyles: (a: number, b: number) => void;
|
|
1528
|
+
readonly wasmwaapianimation_destroy: (a: number, b: number) => void;
|
|
1529
|
+
readonly wasmwaapianimation_animations: (a: number) => number;
|
|
1530
|
+
readonly wasmwaapianimation_currentTime: (a: number) => number;
|
|
1531
|
+
readonly wasmwaapianimation_persist: (a: number) => number;
|
|
1532
|
+
readonly wasmwaapianimation_progress: (a: number) => number;
|
|
1533
|
+
readonly waapi: (a: number, b: number, c: number) => void;
|
|
1534
|
+
readonly easingToLinear: (a: number, b: number, c: number) => void;
|
|
1535
|
+
readonly commitStyles: (a: number, b: number) => void;
|
|
1536
|
+
readonly registerTransformProperties: () => number;
|
|
1537
|
+
readonly __wbg_wasmdraggable_free: (a: number, b: number) => void;
|
|
1538
|
+
readonly wasmdraggable_x: (a: number) => number;
|
|
1539
|
+
readonly wasmdraggable_y: (a: number) => number;
|
|
1540
|
+
readonly wasmdraggable_destX: (a: number) => number;
|
|
1541
|
+
readonly wasmdraggable_destY: (a: number) => number;
|
|
1542
|
+
readonly wasmdraggable_velocity: (a: number) => number;
|
|
1543
|
+
readonly wasmdraggable_velocityX: (a: number) => number;
|
|
1544
|
+
readonly wasmdraggable_velocityY: (a: number) => number;
|
|
1545
|
+
readonly wasmdraggable_angle: (a: number) => number;
|
|
1546
|
+
readonly wasmdraggable_deltaX: (a: number) => number;
|
|
1547
|
+
readonly wasmdraggable_deltaY: (a: number) => number;
|
|
1548
|
+
readonly wasmdraggable_progressX: (a: number) => number;
|
|
1549
|
+
readonly wasmdraggable_progressY: (a: number) => number;
|
|
1550
|
+
readonly wasmdraggable_set_progressX: (a: number, b: number) => void;
|
|
1551
|
+
readonly wasmdraggable_set_progressY: (a: number, b: number) => void;
|
|
1552
|
+
readonly wasmdraggable_setX: (a: number, b: number) => void;
|
|
1553
|
+
readonly wasmdraggable_setY: (a: number, b: number) => void;
|
|
1554
|
+
readonly wasmdraggable_isDragging: (a: number) => number;
|
|
1555
|
+
readonly wasmdraggable_isReleasing: (a: number) => number;
|
|
1556
|
+
readonly wasmdraggable_isEnabled: (a: number) => number;
|
|
1557
|
+
readonly wasmdraggable_enable: (a: number) => void;
|
|
1558
|
+
readonly wasmdraggable_disable: (a: number) => void;
|
|
1559
|
+
readonly wasmdraggable_snap: (a: number) => void;
|
|
1560
|
+
readonly wasmdraggable_refresh: (a: number) => void;
|
|
1561
|
+
readonly wasmdraggable_reset: (a: number) => void;
|
|
1562
|
+
readonly wasmdraggable_destroy: (a: number) => void;
|
|
1563
|
+
readonly wasmdraggable_revert: (a: number) => void;
|
|
1564
|
+
readonly createDraggable: (a: number, b: number, c: number) => void;
|
|
1565
|
+
readonly __wbg_wasmhovergesture_free: (a: number, b: number) => void;
|
|
1566
|
+
readonly wasmhovergesture_enable: (a: number) => void;
|
|
1567
|
+
readonly wasmhovergesture_disable: (a: number) => void;
|
|
1568
|
+
readonly wasmhovergesture_isActive: (a: number) => number;
|
|
1569
|
+
readonly wasmhovergesture_destroy: (a: number) => void;
|
|
1570
|
+
readonly __wbg_wasmpressgesture_free: (a: number, b: number) => void;
|
|
1571
|
+
readonly wasmpressgesture_enable: (a: number) => void;
|
|
1572
|
+
readonly wasmpressgesture_disable: (a: number) => void;
|
|
1573
|
+
readonly wasmpressgesture_isActive: (a: number) => number;
|
|
1574
|
+
readonly wasmpressgesture_destroy: (a: number) => void;
|
|
1575
|
+
readonly __wbg_wasmpangesture_free: (a: number, b: number) => void;
|
|
1576
|
+
readonly wasmpangesture_enable: (a: number) => void;
|
|
1577
|
+
readonly wasmpangesture_disable: (a: number) => void;
|
|
1578
|
+
readonly wasmpangesture_isActive: (a: number) => number;
|
|
1579
|
+
readonly wasmpangesture_destroy: (a: number) => void;
|
|
1580
|
+
readonly createHover: (a: number, b: number, c: number) => void;
|
|
1581
|
+
readonly createPress: (a: number, b: number, c: number) => void;
|
|
1582
|
+
readonly createPan: (a: number, b: number, c: number) => void;
|
|
1583
|
+
readonly __wbg_wasmobserver_free: (a: number, b: number) => void;
|
|
1584
|
+
readonly wasmobserver_enable: (a: number) => void;
|
|
1585
|
+
readonly wasmobserver_disable: (a: number) => void;
|
|
1586
|
+
readonly wasmobserver_enabled: (a: number) => number;
|
|
1587
|
+
readonly wasmobserver_refresh: (a: number) => void;
|
|
1588
|
+
readonly wasmobserver_destroy: (a: number) => void;
|
|
1589
|
+
readonly createObserver: (a: number, b: number) => void;
|
|
1590
|
+
readonly __wbg_wasmflipstate_free: (a: number, b: number) => void;
|
|
1591
|
+
readonly __wbg_wasmflipanimation_free: (a: number, b: number) => void;
|
|
1592
|
+
readonly wasmflipstate_length: (a: number) => number;
|
|
1593
|
+
readonly wasmflipanimation_pause: (a: number) => void;
|
|
1594
|
+
readonly wasmflipanimation_resume: (a: number) => void;
|
|
1595
|
+
readonly wasmflipanimation_cancel: (a: number) => void;
|
|
1596
|
+
readonly wasmflipanimation_finish: (a: number) => void;
|
|
1597
|
+
readonly wasmflipanimation_destroy: (a: number) => void;
|
|
1598
|
+
readonly wasmflipanimation_isActive: (a: number) => number;
|
|
1599
|
+
readonly wasmflipanimation_progress: (a: number) => number;
|
|
1600
|
+
readonly flipCapture: (a: number, b: number) => void;
|
|
1601
|
+
readonly flipFrom: (a: number, b: number, c: number) => void;
|
|
1602
|
+
readonly __wbg_wasmlayouttransition_free: (a: number, b: number) => void;
|
|
1603
|
+
readonly wasmlayouttransition_pause: (a: number) => void;
|
|
1604
|
+
readonly wasmlayouttransition_resume: (a: number) => void;
|
|
1605
|
+
readonly wasmlayouttransition_cancel: (a: number) => void;
|
|
1606
|
+
readonly wasmlayouttransition_finish: (a: number) => void;
|
|
1607
|
+
readonly wasmlayouttransition_isActive: (a: number) => number;
|
|
1608
|
+
readonly wasmlayouttransition_progress: (a: number) => number;
|
|
1609
|
+
readonly wasmlayouttransition_targetCount: (a: number) => number;
|
|
1610
|
+
readonly layoutTransition: (a: number, b: number, c: number, d: number) => void;
|
|
1611
|
+
readonly __wbg_easing_free: (a: number, b: number) => void;
|
|
1612
|
+
readonly easing_linear: (a: number) => number;
|
|
1613
|
+
readonly easing_easeInQuad: (a: number) => number;
|
|
1614
|
+
readonly easing_easeOutQuad: (a: number) => number;
|
|
1615
|
+
readonly easing_easeInOutQuad: (a: number) => number;
|
|
1616
|
+
readonly easing_easeOutInQuad: (a: number) => number;
|
|
1617
|
+
readonly easing_easeInCubic: (a: number) => number;
|
|
1618
|
+
readonly easing_easeOutCubic: (a: number) => number;
|
|
1619
|
+
readonly easing_easeInOutCubic: (a: number) => number;
|
|
1620
|
+
readonly easing_easeOutInCubic: (a: number) => number;
|
|
1621
|
+
readonly easing_easeInQuart: (a: number) => number;
|
|
1622
|
+
readonly easing_easeOutQuart: (a: number) => number;
|
|
1623
|
+
readonly easing_easeInOutQuart: (a: number) => number;
|
|
1624
|
+
readonly easing_easeOutInQuart: (a: number) => number;
|
|
1625
|
+
readonly easing_easeInQuint: (a: number) => number;
|
|
1626
|
+
readonly easing_easeOutQuint: (a: number) => number;
|
|
1627
|
+
readonly easing_easeInOutQuint: (a: number) => number;
|
|
1628
|
+
readonly easing_easeOutInQuint: (a: number) => number;
|
|
1629
|
+
readonly easing_easeInSine: (a: number) => number;
|
|
1630
|
+
readonly easing_easeOutSine: (a: number) => number;
|
|
1631
|
+
readonly easing_easeInOutSine: (a: number) => number;
|
|
1632
|
+
readonly easing_easeOutInSine: (a: number) => number;
|
|
1633
|
+
readonly easing_easeInExpo: (a: number) => number;
|
|
1634
|
+
readonly easing_easeOutExpo: (a: number) => number;
|
|
1635
|
+
readonly easing_easeInOutExpo: (a: number) => number;
|
|
1636
|
+
readonly easing_easeOutInExpo: (a: number) => number;
|
|
1637
|
+
readonly easing_easeInCirc: (a: number) => number;
|
|
1638
|
+
readonly easing_easeOutCirc: (a: number) => number;
|
|
1639
|
+
readonly easing_easeInOutCirc: (a: number) => number;
|
|
1640
|
+
readonly easing_easeOutInCirc: (a: number) => number;
|
|
1641
|
+
readonly easing_easeInBack: (a: number) => number;
|
|
1642
|
+
readonly easing_easeOutBack: (a: number) => number;
|
|
1643
|
+
readonly easing_easeInOutBack: (a: number) => number;
|
|
1644
|
+
readonly easing_easeOutInBack: (a: number) => number;
|
|
1645
|
+
readonly easing_easeInElastic: (a: number) => number;
|
|
1646
|
+
readonly easing_easeOutElastic: (a: number) => number;
|
|
1647
|
+
readonly easing_easeInOutElastic: (a: number) => number;
|
|
1648
|
+
readonly easing_easeOutInElastic: (a: number) => number;
|
|
1649
|
+
readonly easing_easeInBounce: (a: number) => number;
|
|
1650
|
+
readonly easing_easeOutBounce: (a: number) => number;
|
|
1651
|
+
readonly easing_easeInOutBounce: (a: number) => number;
|
|
1652
|
+
readonly easing_easeOutInBounce: (a: number) => number;
|
|
1653
|
+
readonly easing_slowMo: (a: number) => number;
|
|
1654
|
+
readonly easing_expoScale: (a: number, b: number) => number;
|
|
1655
|
+
readonly easing_irregular: (a: number, b: number, c: bigint) => number;
|
|
1656
|
+
readonly easing_wiggle: (a: number) => number;
|
|
1657
|
+
readonly easing_customBounce: (a: number, b: number) => number;
|
|
1658
|
+
readonly easing_customEase: (a: number, b: number, c: number) => void;
|
|
1659
|
+
readonly easing_register: (a: number, b: number, c: number, d: number) => void;
|
|
1660
|
+
readonly easing_unregister: (a: number, b: number) => number;
|
|
1661
|
+
readonly __wbg_wasminertia_free: (a: number, b: number) => void;
|
|
1662
|
+
readonly wasminertia_new: (a: number) => number;
|
|
1663
|
+
readonly wasminertia_tick: (a: number, b: number) => number;
|
|
1664
|
+
readonly wasminertia_position: (a: number) => number;
|
|
1665
|
+
readonly wasminertia_velocity: (a: number) => number;
|
|
1666
|
+
readonly wasminertia_isSettled: (a: number) => number;
|
|
1667
|
+
readonly wasmmotionvalue_get: (a: number) => number;
|
|
1668
|
+
readonly wasmmotionvalue_set: (a: number, b: number) => void;
|
|
1669
|
+
readonly wasmmotionvalue_setWithVelocity: (a: number, b: number, c: number, d: number) => void;
|
|
1670
|
+
readonly wasmmotionvalue_jump: (a: number, b: number) => void;
|
|
1671
|
+
readonly wasmmotionvalue_getVelocity: (a: number) => number;
|
|
1672
|
+
readonly wasmmotionvalue_on: (a: number, b: number) => number;
|
|
1673
|
+
readonly wasmmotionvalue_connectDOM: (a: number, b: number, c: number, d: number) => void;
|
|
1674
|
+
readonly wasmmotionvalue_destroy: (a: number) => void;
|
|
1675
|
+
readonly motionValue: (a: number) => number;
|
|
1676
|
+
readonly mapValue: (a: number, b: number, c: number) => number;
|
|
1677
|
+
readonly followValue: (a: number, b: number) => number;
|
|
1678
|
+
readonly __wbg_wasmphysics2d_free: (a: number, b: number) => void;
|
|
1679
|
+
readonly wasmphysics2d_new: (a: number) => number;
|
|
1680
|
+
readonly wasmphysics2d_tick: (a: number, b: number) => number;
|
|
1681
|
+
readonly wasmphysics2d_impulse: (a: number, b: number, c: number) => void;
|
|
1682
|
+
readonly wasmphysics2d_setAttractor: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1683
|
+
readonly wasmphysics2d_clearAttractor: (a: number) => void;
|
|
1684
|
+
readonly wasmphysics2d_x: (a: number) => number;
|
|
1685
|
+
readonly wasmphysics2d_y: (a: number) => number;
|
|
1686
|
+
readonly wasmphysics2d_velocityX: (a: number) => number;
|
|
1687
|
+
readonly wasmphysics2d_velocityY: (a: number) => number;
|
|
1688
|
+
readonly wasmphysics2d_isResting: (a: number) => number;
|
|
1689
|
+
readonly __wbg_wasmphysicsprops_free: (a: number, b: number) => void;
|
|
1690
|
+
readonly wasmphysicsprops_new: (a: number) => number;
|
|
1691
|
+
readonly wasmphysicsprops_tick: (a: number, b: number) => number;
|
|
1692
|
+
readonly wasmphysicsprops_isSettled: (a: number) => number;
|
|
1693
|
+
readonly __wbg_wasmspring_free: (a: number, b: number) => void;
|
|
1694
|
+
readonly wasmspring_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1695
|
+
readonly wasmspring_fromBounce: (a: number, b: number) => number;
|
|
1696
|
+
readonly wasmspring_duration: (a: number) => number;
|
|
1697
|
+
readonly wasmspring_dampingRatio: (a: number) => number;
|
|
1698
|
+
readonly wasmspring_isBouncy: (a: number) => number;
|
|
1699
|
+
readonly wasmspring_solve: (a: number, b: number) => number;
|
|
1700
|
+
readonly wasmspring_sample: (a: number, b: number, c: number) => void;
|
|
1701
|
+
readonly pathmorph_interpolate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1702
|
+
readonly pathmorph_normalize: (a: number, b: number, c: number) => void;
|
|
1703
|
+
readonly pathmorph_equalize: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1704
|
+
readonly pathmorph_sample: (a: number, b: number, c: number, d: number) => void;
|
|
1705
|
+
readonly pathmorph_segmentCount: (a: number, b: number) => number;
|
|
1706
|
+
readonly __wbg_wasmscrollobserver_free: (a: number, b: number) => void;
|
|
1707
|
+
readonly wasmscrollobserver_link: (a: number, b: number) => void;
|
|
1708
|
+
readonly wasmscrollobserver_refresh: (a: number) => void;
|
|
1709
|
+
readonly wasmscrollobserver_destroy: (a: number) => void;
|
|
1710
|
+
readonly wasmscrollobserver_progress: (a: number) => number;
|
|
1711
|
+
readonly wasmscrollobserver_isInView: (a: number) => number;
|
|
1712
|
+
readonly wasmscrollobserver_offsetStart: (a: number) => number;
|
|
1713
|
+
readonly wasmscrollobserver_offsetEnd: (a: number) => number;
|
|
1714
|
+
readonly createScrollObserver: (a: number, b: number) => void;
|
|
1715
|
+
readonly __wbg_wasmscrollsmoother_free: (a: number, b: number) => void;
|
|
1716
|
+
readonly wasmscrollsmoother_pause: (a: number) => void;
|
|
1717
|
+
readonly wasmscrollsmoother_resume: (a: number) => void;
|
|
1718
|
+
readonly wasmscrollsmoother_refresh: (a: number) => void;
|
|
1719
|
+
readonly wasmscrollsmoother_destroy: (a: number) => void;
|
|
1720
|
+
readonly wasmscrollsmoother_paused: (a: number) => number;
|
|
1721
|
+
readonly wasmscrollsmoother_currentY: (a: number) => number;
|
|
1722
|
+
readonly wasmscrollsmoother_targetY: (a: number) => number;
|
|
1723
|
+
readonly wasmscrollsmoother_progress: (a: number) => number;
|
|
1724
|
+
readonly createScrollSmoother: (a: number, b: number) => void;
|
|
1725
|
+
readonly __wbg_wasmscrollto_free: (a: number, b: number) => void;
|
|
1726
|
+
readonly wasmscrollto_cancel: (a: number) => void;
|
|
1727
|
+
readonly wasmscrollto_destroy: (a: number) => void;
|
|
1728
|
+
readonly wasmscrollto_isActive: (a: number) => number;
|
|
1729
|
+
readonly wasmscrollto_progress: (a: number) => number;
|
|
1730
|
+
readonly scrollTo: (a: number, b: number) => void;
|
|
1731
|
+
readonly __wbg_wasmscrambletext_free: (a: number, b: number) => void;
|
|
1732
|
+
readonly wasmscrambletext_pause: (a: number) => void;
|
|
1733
|
+
readonly wasmscrambletext_resume: (a: number) => void;
|
|
1734
|
+
readonly wasmscrambletext_cancel: (a: number) => void;
|
|
1735
|
+
readonly wasmscrambletext_finish: (a: number) => void;
|
|
1736
|
+
readonly wasmscrambletext_revert: (a: number) => void;
|
|
1737
|
+
readonly wasmscrambletext_destroy: (a: number) => void;
|
|
1738
|
+
readonly wasmscrambletext_isActive: (a: number) => number;
|
|
1739
|
+
readonly wasmscrambletext_progress: (a: number) => number;
|
|
1740
|
+
readonly wasmscrambletext_currentText: (a: number, b: number) => void;
|
|
1741
|
+
readonly scrambleText: (a: number, b: number, c: number) => void;
|
|
1742
|
+
readonly __wbg_wasmtextreplace_free: (a: number, b: number) => void;
|
|
1743
|
+
readonly wasmtextreplace_pause: (a: number) => void;
|
|
1744
|
+
readonly wasmtextreplace_resume: (a: number) => void;
|
|
1745
|
+
readonly wasmtextreplace_cancel: (a: number) => void;
|
|
1746
|
+
readonly wasmtextreplace_finish: (a: number) => void;
|
|
1747
|
+
readonly wasmtextreplace_revert: (a: number) => void;
|
|
1748
|
+
readonly wasmtextreplace_destroy: (a: number) => void;
|
|
1749
|
+
readonly wasmtextreplace_isActive: (a: number) => number;
|
|
1750
|
+
readonly wasmtextreplace_progress: (a: number) => number;
|
|
1751
|
+
readonly wasmtextreplace_currentText: (a: number, b: number) => void;
|
|
1752
|
+
readonly textReplace: (a: number, b: number, c: number) => void;
|
|
1753
|
+
readonly __wbg_wasmtextsplitter_free: (a: number, b: number) => void;
|
|
1754
|
+
readonly wasmtextsplitter_words: (a: number) => number;
|
|
1755
|
+
readonly wasmtextsplitter_chars: (a: number) => number;
|
|
1756
|
+
readonly wasmtextsplitter_lines: (a: number) => number;
|
|
1757
|
+
readonly wasmtextsplitter_isAutoResplit: (a: number) => number;
|
|
1758
|
+
readonly wasmtextsplitter_revert: (a: number) => void;
|
|
1759
|
+
readonly wasmtextsplitter_refresh: (a: number, b: number) => void;
|
|
1760
|
+
readonly wasmtextsplitter_destroy: (a: number) => void;
|
|
1761
|
+
readonly splitText: (a: number, b: number, c: number) => void;
|
|
1762
|
+
readonly utils_clamp: (a: number, b: number, c: number) => number;
|
|
1763
|
+
readonly utils_lerp: (a: number, b: number, c: number) => number;
|
|
1764
|
+
readonly utils_invLerp: (a: number, b: number, c: number) => number;
|
|
1765
|
+
readonly utils_mapRange: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1766
|
+
readonly utils_damp: (a: number, b: number, c: number, d: number) => number;
|
|
1767
|
+
readonly utils_roundTo: (a: number, b: number) => number;
|
|
1768
|
+
readonly utils_wrap: (a: number, b: number, c: number) => number;
|
|
1769
|
+
readonly utils_snap: (a: number, b: number) => number;
|
|
1770
|
+
readonly utils_snapToPoints: (a: number, b: number) => number;
|
|
1771
|
+
readonly utils_sign: (a: number) => number;
|
|
1772
|
+
readonly utils_abs: (a: number) => number;
|
|
1773
|
+
readonly utils_trunc: (a: number) => number;
|
|
1774
|
+
readonly utils_floor: (a: number) => number;
|
|
1775
|
+
readonly utils_ceil: (a: number) => number;
|
|
1776
|
+
readonly utils_modulo: (a: number, b: number) => number;
|
|
1777
|
+
readonly utils_random: (a: number, b: number) => number;
|
|
1778
|
+
readonly utils_randomInt: (a: number, b: number) => number;
|
|
1779
|
+
readonly utils_randomItem: (a: number) => number;
|
|
1780
|
+
readonly utils_shuffle: (a: number) => number;
|
|
1781
|
+
readonly utils_degToRad: (a: number) => number;
|
|
1782
|
+
readonly utils_radToDeg: (a: number) => number;
|
|
1783
|
+
readonly utils_distance: (a: number, b: number, c: number, d: number) => number;
|
|
1784
|
+
readonly utils_angle: (a: number, b: number, c: number, d: number) => number;
|
|
1785
|
+
readonly utils_msToS: (a: number) => number;
|
|
1786
|
+
readonly utils_sToMs: (a: number) => number;
|
|
1787
|
+
readonly utils_framesToMs: (a: number, b: number, c: number) => void;
|
|
1788
|
+
readonly utils_msToFrames: (a: number, b: number, c: number) => void;
|
|
1789
|
+
readonly utils_parseTime: (a: number, b: number, c: number) => void;
|
|
1790
|
+
readonly utils_padStart: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1791
|
+
readonly utils_roundPad: (a: number, b: number, c: number) => void;
|
|
1792
|
+
readonly utils_interpolateColor: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1793
|
+
readonly utils_hslToRgb: (a: number, b: number, c: number) => number;
|
|
1794
|
+
readonly utils_hexToRgba: (a: number, b: number, c: number) => void;
|
|
1795
|
+
readonly utils_pipe: (a: number) => number;
|
|
1796
|
+
readonly utils_compose: (a: number) => number;
|
|
1797
|
+
readonly utils_now: () => number;
|
|
1798
|
+
readonly utils_getProperty: (a: number, b: number, c: number) => number;
|
|
1799
|
+
readonly utils_setProperty: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1800
|
+
readonly wasmengine_activeCount: () => number;
|
|
1801
|
+
readonly wasmengine_stopAll: () => void;
|
|
1802
|
+
readonly wasmengine_writeErrorCount: () => number;
|
|
1803
|
+
readonly wasmengine_fps: () => number;
|
|
1804
|
+
readonly wasmengine_suspend: () => void;
|
|
1805
|
+
readonly wasmengine_resume: () => void;
|
|
1806
|
+
readonly wasmengine_suspended: () => number;
|
|
1807
|
+
readonly wasmengine_tickerAdd: (a: number) => bigint;
|
|
1808
|
+
readonly wasmengine_tickerRemove: (a: bigint) => void;
|
|
1809
|
+
readonly wasmengine_tickerClear: () => void;
|
|
1810
|
+
readonly __wbg_drawablehandle_free: (a: number, b: number) => void;
|
|
1811
|
+
readonly drawablehandle_element: (a: number) => number;
|
|
1812
|
+
readonly drawablehandle_draw: (a: number, b: number, c: number) => void;
|
|
1813
|
+
readonly drawablehandle_setRange: (a: number, b: number, c: number, d: number) => void;
|
|
1814
|
+
readonly drawablehandle_setRangeSpec: (a: number, b: number, c: number, d: number) => void;
|
|
1815
|
+
readonly createDrawable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1816
|
+
readonly __wbg_motionpathvalues_free: (a: number, b: number) => void;
|
|
1817
|
+
readonly motionpathvalues_translate_x: (a: number) => number;
|
|
1818
|
+
readonly motionpathvalues_translate_y: (a: number) => number;
|
|
1819
|
+
readonly motionpathvalues_rotate: (a: number) => number;
|
|
1820
|
+
readonly createMotionPath: (a: number, b: number, c: number, d: number) => void;
|
|
1821
|
+
readonly version: (a: number) => void;
|
|
1822
|
+
readonly init: () => void;
|
|
1823
|
+
readonly scopeRegisterJs: (a: number) => void;
|
|
1824
|
+
readonly utils_remap: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1825
|
+
readonly easing_clearRegistry: () => void;
|
|
1826
|
+
readonly wasmmotionvalue_new: (a: number) => number;
|
|
1827
|
+
readonly easing_roughEase: (a: number, b: number, c: bigint) => number;
|
|
1828
|
+
readonly wasmhovergesture_revert: (a: number) => void;
|
|
1829
|
+
readonly wasmpressgesture_revert: (a: number) => void;
|
|
1830
|
+
readonly wasmpangesture_revert: (a: number) => void;
|
|
1831
|
+
readonly wasmobserver_revert: (a: number) => void;
|
|
1832
|
+
readonly wasmflipanimation_revert: (a: number) => void;
|
|
1833
|
+
readonly wasmscrollsmoother_revert: (a: number) => void;
|
|
1834
|
+
readonly wasmscrollto_revert: (a: number) => void;
|
|
1835
|
+
readonly wasmwaapianimation_revert: (a: number, b: number) => void;
|
|
1836
|
+
readonly wasmscrollobserver_revert: (a: number) => void;
|
|
1837
|
+
readonly wasmlayouttransition_revert: (a: number) => void;
|
|
1838
|
+
readonly wasmlayouttransition_destroy: (a: number) => void;
|
|
1839
|
+
readonly wasmengine_setFPS: (a: number) => void;
|
|
1840
|
+
readonly reducedmotion_resetPolicy: () => void;
|
|
1841
|
+
readonly wasmwaapianimation_duration: (a: number) => number;
|
|
1842
|
+
readonly __wbg_reducedmotion_free: (a: number, b: number) => void;
|
|
1843
|
+
readonly __wbg_wasmmotionvalue_free: (a: number, b: number) => void;
|
|
1844
|
+
readonly __wbg_pathmorph_free: (a: number, b: number) => void;
|
|
1845
|
+
readonly __wbg_wasmtimer_free: (a: number, b: number) => void;
|
|
1846
|
+
readonly __wbg_utils_free: (a: number, b: number) => void;
|
|
1847
|
+
readonly __wbg_wasmengine_free: (a: number, b: number) => void;
|
|
1848
|
+
readonly __wasm_bindgen_func_elem_172: (a: number, b: number) => void;
|
|
1849
|
+
readonly __wasm_bindgen_func_elem_182: (a: number, b: number, c: number, d: number) => void;
|
|
1850
|
+
readonly __wasm_bindgen_func_elem_189: (a: number, b: number, c: number) => number;
|
|
1851
|
+
readonly __wasm_bindgen_func_elem_176: (a: number, b: number, c: number) => number;
|
|
1852
|
+
readonly __wasm_bindgen_func_elem_185: (a: number, b: number, c: number) => void;
|
|
1853
|
+
readonly __wasm_bindgen_func_elem_192: (a: number, b: number, c: number, d: number) => void;
|
|
1854
|
+
readonly __wasm_bindgen_func_elem_1953: (a: number, b: number, c: number, d: number) => void;
|
|
1855
|
+
readonly __wasm_bindgen_func_elem_178: (a: number, b: number, c: number) => number;
|
|
1856
|
+
readonly __wasm_bindgen_func_elem_173: (a: number, b: number, c: number) => void;
|
|
1857
|
+
readonly __wasm_bindgen_func_elem_173_7: (a: number, b: number, c: number) => void;
|
|
1858
|
+
readonly __wasm_bindgen_func_elem_173_8: (a: number, b: number, c: number) => void;
|
|
1859
|
+
readonly __wasm_bindgen_func_elem_173_9: (a: number, b: number, c: number) => void;
|
|
1860
|
+
readonly __wasm_bindgen_func_elem_173_10: (a: number, b: number, c: number) => void;
|
|
1861
|
+
readonly __wasm_bindgen_func_elem_187: (a: number, b: number) => void;
|
|
1862
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
1863
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
1864
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
1865
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
1866
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1867
|
+
readonly __wbindgen_start: () => void;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
1874
|
+
* a precompiled `WebAssembly.Module`.
|
|
1875
|
+
*
|
|
1876
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1877
|
+
*
|
|
1878
|
+
* @returns {InitOutput}
|
|
1879
|
+
*/
|
|
1880
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1884
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1885
|
+
*
|
|
1886
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1887
|
+
*
|
|
1888
|
+
* @returns {Promise<InitOutput>}
|
|
1889
|
+
*/
|
|
1890
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|