coily 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -40
- package/dist/config-OOMMRdK8.d.ts +312 -0
- package/dist/css.d.ts +175 -0
- package/dist/css.js +294 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +91 -2
- package/dist/nuxt.d.ts +46 -0
- package/dist/nuxt.js +14 -14
- package/dist/solver-CVXOTDkZ.js +235 -0
- package/dist/system-Br_cPnaN.js +2188 -0
- package/dist/system-Du_fXXmO.d.ts +940 -0
- package/dist/vue.d.ts +227 -16
- package/dist/vue.js +84 -42
- package/package.json +2 -1
- package/dist/system-86fsXJN_.d.ts +0 -386
- package/dist/system-Csho09XW.js +0 -1384
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
//#region src/config.d.ts
|
|
2
|
-
interface SpringState {
|
|
3
|
-
readonly position: number;
|
|
4
|
-
readonly velocity: number;
|
|
5
|
-
}
|
|
6
|
-
interface BaseOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Decimal places of the resting threshold: a spring rests once its
|
|
9
|
-
* remaining motion cannot reach half a unit in the last place,
|
|
10
|
-
* 0.5 × 10⁻ᵖ. Values are never rounded — precision only decides rest.
|
|
11
|
-
* @default 2
|
|
12
|
-
*/
|
|
13
|
-
readonly precision?: number | undefined;
|
|
14
|
-
}
|
|
15
|
-
interface WithMass {
|
|
16
|
-
/**
|
|
17
|
-
* Mass of the spring system.
|
|
18
|
-
* @default 1
|
|
19
|
-
*/
|
|
20
|
-
readonly mass?: number | undefined;
|
|
21
|
-
}
|
|
22
|
-
interface WithoutMass {
|
|
23
|
-
/**
|
|
24
|
-
* Mass is derived from the other parameters in this input shape
|
|
25
|
-
* and cannot be provided.
|
|
26
|
-
*/
|
|
27
|
-
readonly mass?: undefined;
|
|
28
|
-
}
|
|
29
|
-
interface WithTension {
|
|
30
|
-
/**
|
|
31
|
-
* Spring stiffness coefficient.
|
|
32
|
-
* Must be greater than 0.
|
|
33
|
-
*/
|
|
34
|
-
readonly tension: number;
|
|
35
|
-
}
|
|
36
|
-
interface WithDamping {
|
|
37
|
-
/**
|
|
38
|
-
* Viscous damping coefficient.
|
|
39
|
-
* Must be greater than or equal to 0.
|
|
40
|
-
*/
|
|
41
|
-
readonly damping: number;
|
|
42
|
-
}
|
|
43
|
-
interface WithDampingRatio {
|
|
44
|
-
/**
|
|
45
|
-
* Ratio of damping to critical damping (0 = undamped, 1 = critically damped).
|
|
46
|
-
* Must be greater than or equal to 0.
|
|
47
|
-
*/
|
|
48
|
-
readonly dampingRatio: number;
|
|
49
|
-
}
|
|
50
|
-
interface WithBounce {
|
|
51
|
-
/**
|
|
52
|
-
* Bounciness of the spring. Converted to dampingRatio as `1 - bounce`.
|
|
53
|
-
* [-1, 1]
|
|
54
|
-
*/
|
|
55
|
-
readonly bounce: number;
|
|
56
|
-
}
|
|
57
|
-
interface WithDuration {
|
|
58
|
-
/**
|
|
59
|
-
* Target settle duration in milliseconds.
|
|
60
|
-
* Must be greater than 0.
|
|
61
|
-
*/
|
|
62
|
-
readonly duration: number;
|
|
63
|
-
}
|
|
64
|
-
interface WithDisplacement {
|
|
65
|
-
/**
|
|
66
|
-
* Initial displacement used for duration-based envelope calculation.
|
|
67
|
-
* @default 1
|
|
68
|
-
*/
|
|
69
|
-
readonly displacement?: number | undefined;
|
|
70
|
-
}
|
|
71
|
-
interface DirectOptions extends BaseOptions, WithMass, WithTension, WithDamping {}
|
|
72
|
-
interface TensionRatioOptions extends BaseOptions, WithMass, WithTension, WithDampingRatio {}
|
|
73
|
-
interface TensionBounceOptions extends BaseOptions, WithMass, WithTension, WithBounce {}
|
|
74
|
-
interface DampingRatioOptions extends BaseOptions, WithMass, WithDamping, WithDampingRatio {}
|
|
75
|
-
interface DampingBounceOptions extends BaseOptions, WithMass, WithDamping, WithBounce {}
|
|
76
|
-
interface TensionDampingRatioOptions extends BaseOptions, WithoutMass, WithTension, WithDamping, WithDampingRatio {}
|
|
77
|
-
interface TensionDampingBounceOptions extends BaseOptions, WithoutMass, WithTension, WithDamping, WithBounce {}
|
|
78
|
-
interface DurationOptions extends BaseOptions, WithMass, WithDampingRatio, WithDuration, WithDisplacement {}
|
|
79
|
-
interface BounceDurationOptions extends BaseOptions, WithMass, WithBounce, WithDuration, WithDisplacement {}
|
|
80
|
-
interface TensionDurationOptions extends BaseOptions, WithoutMass, WithTension, WithDampingRatio, WithDuration, WithDisplacement {}
|
|
81
|
-
interface TensionBounceDurationOptions extends BaseOptions, WithoutMass, WithTension, WithBounce, WithDuration, WithDisplacement {}
|
|
82
|
-
interface DampingDurationOptions extends BaseOptions, WithoutMass, WithDamping, WithDampingRatio, WithDuration, WithDisplacement {}
|
|
83
|
-
interface DampingBounceDurationOptions extends BaseOptions, WithoutMass, WithDamping, WithBounce, WithDuration, WithDisplacement {}
|
|
84
|
-
type SpringOptionKeys = 'mass' | 'tension' | 'damping' | 'dampingRatio' | 'bounce' | 'duration' | 'displacement' | 'precision';
|
|
85
|
-
/**
|
|
86
|
-
* Marks every option key foreign to `T` as "absent or undefined", so mixing
|
|
87
|
-
* properties from different input shapes fails to type-check instead of
|
|
88
|
-
* silently resolving to an unintended shape at runtime.
|
|
89
|
-
*/
|
|
90
|
-
type Exact<T> = T & { [K in Exclude<SpringOptionKeys, keyof T>]?: undefined; };
|
|
91
|
-
type SpringOptions = Exact<DirectOptions> | Exact<TensionRatioOptions> | Exact<TensionBounceOptions> | Exact<DampingRatioOptions> | Exact<DampingBounceOptions> | Exact<TensionDampingRatioOptions> | Exact<TensionDampingBounceOptions> | Exact<DurationOptions> | Exact<BounceDurationOptions> | Exact<TensionDurationOptions> | Exact<TensionBounceDurationOptions> | Exact<DampingDurationOptions> | Exact<DampingBounceDurationOptions>;
|
|
92
|
-
/**
|
|
93
|
-
* Immutable spring configuration. Instances are frozen — to change a spring's
|
|
94
|
-
* behavior, assign a new config via `spring.config`.
|
|
95
|
-
*/
|
|
96
|
-
declare class SpringConfig {
|
|
97
|
-
static readonly default: SpringConfig;
|
|
98
|
-
readonly mass: number;
|
|
99
|
-
readonly tension: number;
|
|
100
|
-
readonly damping: number;
|
|
101
|
-
readonly precision: number;
|
|
102
|
-
readonly naturalFrequency: number;
|
|
103
|
-
readonly criticalDamping: number;
|
|
104
|
-
readonly dampingRatio: number;
|
|
105
|
-
/** Resting threshold in value units: half a unit in the last `precision` place. */
|
|
106
|
-
readonly restingMagnitude: number;
|
|
107
|
-
constructor(input: SpringOptions);
|
|
108
|
-
/**
|
|
109
|
-
* Analytically estimates the time remaining for a spring to come to rest,
|
|
110
|
-
* given the current displacement and velocity.
|
|
111
|
-
*
|
|
112
|
-
* Uses the exponential decay envelope common to all three damping regimes.
|
|
113
|
-
* The decay rate depends on the regime:
|
|
114
|
-
* - Underdamped (ζ < 1): σ = ζωₙ
|
|
115
|
-
* - Critically damped (ζ = 1): σ = ωₙ
|
|
116
|
-
* - Overdamped (ζ > 1): σ = (ζ - √(ζ²-1))ωₙ (the slower eigenvalue)
|
|
117
|
-
*
|
|
118
|
-
* The effective initial amplitude accounts for both displacement and velocity,
|
|
119
|
-
* since kinetic energy can convert to additional displacement:
|
|
120
|
-
* A₀ = |x₀| + |v₀| / ωₙ
|
|
121
|
-
*
|
|
122
|
-
* Settling time: t = ln(A₀ / threshold) / σ, with a 2× safety factor
|
|
123
|
-
* to account for polynomial terms in the critically damped solution.
|
|
124
|
-
*
|
|
125
|
-
* Returns the estimated time in milliseconds.
|
|
126
|
-
*/
|
|
127
|
-
computeTimeRemaining(state: SpringState): number;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Direct physical parameters. You control stiffness and friction exactly;
|
|
131
|
-
* mass defaults to 1.
|
|
132
|
-
*/
|
|
133
|
-
declare function defineSpring(input: Exact<DirectOptions>): SpringConfig;
|
|
134
|
-
/**
|
|
135
|
-
* Tension sets the stiffness; dampingRatio controls oscillation character
|
|
136
|
-
* (0 = undamped, 1 = critically damped, >1 = overdamped).
|
|
137
|
-
* Damping is derived as `2 * dampingRatio * sqrt(mass * tension)`.
|
|
138
|
-
*/
|
|
139
|
-
declare function defineSpring(input: Exact<TensionRatioOptions>): SpringConfig;
|
|
140
|
-
/**
|
|
141
|
-
* Tension sets the stiffness; bounce controls how oscillatory the spring is,
|
|
142
|
-
* from -1 (overdamped, no oscillation) to 1 (maximum bounce).
|
|
143
|
-
* Damping is derived to match the requested bounciness.
|
|
144
|
-
*/
|
|
145
|
-
declare function defineSpring(input: Exact<TensionBounceOptions>): SpringConfig;
|
|
146
|
-
/**
|
|
147
|
-
* Damping is given directly; dampingRatio is used to derive tension
|
|
148
|
-
* as `damping² / (4 * dampingRatio² * mass)`.
|
|
149
|
-
* dampingRatio must be greater than 0.
|
|
150
|
-
*/
|
|
151
|
-
declare function defineSpring(input: Exact<DampingRatioOptions>): SpringConfig;
|
|
152
|
-
/**
|
|
153
|
-
* Damping is given directly; bounce controls how oscillatory the spring is.
|
|
154
|
-
* Tension is derived to match the requested bounciness.
|
|
155
|
-
* bounce must be less than 1.
|
|
156
|
-
*/
|
|
157
|
-
declare function defineSpring(input: Exact<DampingBounceOptions>): SpringConfig;
|
|
158
|
-
/**
|
|
159
|
-
* All three physical knobs specified — mass is derived
|
|
160
|
-
* as `damping² / (4 * dampingRatio² * tension)`.
|
|
161
|
-
* dampingRatio must be greater than 0.
|
|
162
|
-
*/
|
|
163
|
-
declare function defineSpring(input: Exact<TensionDampingRatioOptions>): SpringConfig;
|
|
164
|
-
/**
|
|
165
|
-
* All three physical knobs specified — mass is derived
|
|
166
|
-
* from tension, damping, and the requested bounciness.
|
|
167
|
-
* bounce must be less than 1.
|
|
168
|
-
*/
|
|
169
|
-
declare function defineSpring(input: Exact<TensionDampingBounceOptions>): SpringConfig;
|
|
170
|
-
/**
|
|
171
|
-
* Duration-based configuration. The spring is tuned so that its envelope
|
|
172
|
-
* decays to the resting threshold within the given duration.
|
|
173
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
174
|
-
* to match your actual animation range for accurate timing.
|
|
175
|
-
* Tension and damping are both derived from dampingRatio and duration.
|
|
176
|
-
*/
|
|
177
|
-
declare function defineSpring(input: Exact<DurationOptions>): SpringConfig;
|
|
178
|
-
/**
|
|
179
|
-
* Duration-based configuration. The spring is tuned so that its envelope
|
|
180
|
-
* decays to the resting threshold within the given duration.
|
|
181
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
182
|
-
* to match your actual animation range for accurate timing.
|
|
183
|
-
* Bounce controls how oscillatory the motion is while settling.
|
|
184
|
-
* Tension and damping are both derived.
|
|
185
|
-
*/
|
|
186
|
-
declare function defineSpring(input: Exact<BounceDurationOptions>): SpringConfig;
|
|
187
|
-
/**
|
|
188
|
-
* Duration-based with a tension constraint. Mass is derived from tension
|
|
189
|
-
* and the computed natural frequency; damping follows from mass and dampingRatio.
|
|
190
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
191
|
-
* to match your actual animation range for accurate timing.
|
|
192
|
-
*/
|
|
193
|
-
declare function defineSpring(input: Exact<TensionDurationOptions>): SpringConfig;
|
|
194
|
-
/**
|
|
195
|
-
* Duration-based with a tension constraint. Bounce controls how oscillatory
|
|
196
|
-
* the motion is while settling. Mass is derived from tension and the
|
|
197
|
-
* computed natural frequency.
|
|
198
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
199
|
-
* to match your actual animation range for accurate timing.
|
|
200
|
-
*/
|
|
201
|
-
declare function defineSpring(input: Exact<TensionBounceDurationOptions>): SpringConfig;
|
|
202
|
-
/**
|
|
203
|
-
* Duration-based with a damping constraint. Mass is derived from damping,
|
|
204
|
-
* dampingRatio, and the computed natural frequency; tension follows from mass.
|
|
205
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
206
|
-
* to match your actual animation range for accurate timing.
|
|
207
|
-
*/
|
|
208
|
-
declare function defineSpring(input: Exact<DampingDurationOptions>): SpringConfig;
|
|
209
|
-
/**
|
|
210
|
-
* Duration-based with a damping constraint. Bounce controls how oscillatory
|
|
211
|
-
* the motion is while settling. Mass is derived from damping and the
|
|
212
|
-
* computed natural frequency.
|
|
213
|
-
* Duration assumes a displacement of 1 by default — provide `displacement`
|
|
214
|
-
* to match your actual animation range for accurate timing.
|
|
215
|
-
*/
|
|
216
|
-
declare function defineSpring(input: Exact<DampingBounceDurationOptions>): SpringConfig;
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/flush-queue.d.ts
|
|
219
|
-
declare class FlushQueue {
|
|
220
|
-
#private;
|
|
221
|
-
request(callback: () => void): void;
|
|
222
|
-
batch(fn: () => void): void;
|
|
223
|
-
enter(): void;
|
|
224
|
-
exit(): void;
|
|
225
|
-
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/motion.d.ts
|
|
228
|
-
declare class Motion {
|
|
229
|
-
#private;
|
|
230
|
-
_pass: number;
|
|
231
|
-
constructor(config: SpringConfig, position: number, velocity: number);
|
|
232
|
-
get position(): number;
|
|
233
|
-
set position(value: number);
|
|
234
|
-
get velocity(): number;
|
|
235
|
-
set velocity(value: number);
|
|
236
|
-
get timeRemaining(): number;
|
|
237
|
-
get isResting(): boolean;
|
|
238
|
-
configure(config: SpringConfig): void;
|
|
239
|
-
tick(dt: number, emit?: boolean): void;
|
|
240
|
-
finish(): void;
|
|
241
|
-
onUpdate(callback: () => void): () => void;
|
|
242
|
-
onStart(callback: () => void): () => void;
|
|
243
|
-
onStop(callback: () => void): () => void;
|
|
244
|
-
onDispose(callback: () => void): () => void;
|
|
245
|
-
dispose(): void;
|
|
246
|
-
}
|
|
247
|
-
//#endregion
|
|
248
|
-
//#region src/motion-set.d.ts
|
|
249
|
-
declare class MotionSet {
|
|
250
|
-
#private;
|
|
251
|
-
reduced: boolean;
|
|
252
|
-
onWake: (() => void) | null;
|
|
253
|
-
readonly flushes: FlushQueue;
|
|
254
|
-
constructor(debug?: boolean);
|
|
255
|
-
get size(): number;
|
|
256
|
-
add(motion: Motion): void;
|
|
257
|
-
remove(motion: Motion): void;
|
|
258
|
-
finishAll(): void;
|
|
259
|
-
tick(dt: number): void;
|
|
260
|
-
}
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region src/spring.d.ts
|
|
263
|
-
interface SpringWithOffset {
|
|
264
|
-
spring: Spring;
|
|
265
|
-
offset?: number | undefined;
|
|
266
|
-
}
|
|
267
|
-
type SpringTarget = number | Spring | SpringWithOffset;
|
|
268
|
-
interface DisplacedSpringPosition {
|
|
269
|
-
target?: SpringTarget | undefined;
|
|
270
|
-
value?: number | undefined;
|
|
271
|
-
}
|
|
272
|
-
type SpringPosition = number | DisplacedSpringPosition;
|
|
273
|
-
declare class Spring {
|
|
274
|
-
#private;
|
|
275
|
-
constructor(motions: MotionSet, position: SpringPosition, config?: SpringConfig);
|
|
276
|
-
get target(): number;
|
|
277
|
-
set target(value: SpringTarget);
|
|
278
|
-
get value(): number;
|
|
279
|
-
set value(value: number);
|
|
280
|
-
get velocity(): number;
|
|
281
|
-
set velocity(value: number);
|
|
282
|
-
get config(): SpringConfig | null;
|
|
283
|
-
get mass(): number;
|
|
284
|
-
get tension(): number;
|
|
285
|
-
get damping(): number;
|
|
286
|
-
get dampingRatio(): number;
|
|
287
|
-
get precision(): number;
|
|
288
|
-
set config(value: SpringConfig | null);
|
|
289
|
-
get timeRemaining(): number;
|
|
290
|
-
get isResting(): boolean;
|
|
291
|
-
get settled(): Promise<void>;
|
|
292
|
-
jumpTo(value: number): void;
|
|
293
|
-
dispose(): void;
|
|
294
|
-
onUpdate(callback: () => void): () => void;
|
|
295
|
-
onStart(callback: () => void): () => void;
|
|
296
|
-
onStop(callback: () => void): () => void;
|
|
297
|
-
onDispose(callback: () => void): () => void;
|
|
298
|
-
}
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region src/spring-object.d.ts
|
|
301
|
-
/**
|
|
302
|
-
* Compile-time validation of a value shape: every channel must be a `number`,
|
|
303
|
-
* every branch a plain object or array with at least one channel. Used as
|
|
304
|
-
* `value: T & Shape<T>` so an invalid channel errors on that property rather
|
|
305
|
-
* than on the whole argument. Purely structural — interfaces satisfy it
|
|
306
|
-
* without index signatures — and mirrored by the runtime
|
|
307
|
-
* validation for untyped callers. Optional and `undefined`-typed channels
|
|
308
|
-
* are rejected: a channel that may be absent would make two springs of the
|
|
309
|
-
* same declared shape structurally incompatible at runtime.
|
|
310
|
-
*/
|
|
311
|
-
type Shape<T> = 0 extends 1 & T ? T : T extends number ? number : T extends ((...args: never) => unknown) | (abstract new (...args: never) => unknown) ? never : T extends readonly never[] ? never : T extends object ? keyof T extends never ? never : { [K in keyof T]-?: 0 extends 1 & T[K] ? T[K] : undefined extends T[K] ? never : Shape<T[K]>; } : never;
|
|
312
|
-
/**
|
|
313
|
-
* A partial view of a value shape: the same nesting with any subset of the
|
|
314
|
-
* numeric channels present. Absent (or `undefined`) channels are left alone.
|
|
315
|
-
*/
|
|
316
|
-
type PartialShape<T> = T extends number ? number : { readonly [K in keyof T]?: PartialShape<T[K]> | undefined; };
|
|
317
|
-
/**
|
|
318
|
-
* A deep-readonly view of a value shape. Composite reads (`target`, `value`,
|
|
319
|
-
* `velocity`) return the spring's live mirror objects — refreshed in place
|
|
320
|
-
* on every read — so their channels are typed read-only.
|
|
321
|
-
*/
|
|
322
|
-
type ReadonlyShape<T> = T extends number ? number : { readonly [K in keyof T]: ReadonlyShape<T[K]>; };
|
|
323
|
-
/**
|
|
324
|
-
* Configuration for a spring object: a single `SpringConfig` applied to every
|
|
325
|
-
* channel, or an object mirroring the value shape with configs at any level.
|
|
326
|
-
* A config at a subtree applies to every channel below it; deeper configs win.
|
|
327
|
-
* `null` reverts to the default config (or the leader's while following).
|
|
328
|
-
* Configs are always `SpringConfig` instances (from `defineSpring`), so a
|
|
329
|
-
* plain object is unambiguously a config shape and any non-config leaf it
|
|
330
|
-
* reaches is an error.
|
|
331
|
-
*/
|
|
332
|
-
type ConfigShape<T> = SpringConfig | null | (T extends number ? never : { readonly [K in keyof T]?: ConfigShape<T[K]> | undefined; });
|
|
333
|
-
interface SpringObjectWithOffset<T extends object> {
|
|
334
|
-
readonly spring: SpringObject<T>;
|
|
335
|
-
readonly offset?: PartialShape<T> | undefined;
|
|
336
|
-
}
|
|
337
|
-
type SpringObjectTarget<T extends object> = PartialShape<T> | SpringObject<T> | SpringObjectWithOffset<T>;
|
|
338
|
-
declare class SpringObject<in out T extends object> {
|
|
339
|
-
#private;
|
|
340
|
-
constructor(motions: MotionSet, value: T & Shape<T>, config?: ConfigShape<T>);
|
|
341
|
-
get target(): ReadonlyShape<T>;
|
|
342
|
-
set target(value: SpringObjectTarget<T>);
|
|
343
|
-
get value(): ReadonlyShape<T>;
|
|
344
|
-
set value(value: PartialShape<T>);
|
|
345
|
-
get velocity(): ReadonlyShape<T>;
|
|
346
|
-
set velocity(value: PartialShape<T>);
|
|
347
|
-
get config(): SpringConfig | null;
|
|
348
|
-
set config(value: ConfigShape<T>);
|
|
349
|
-
get timeRemaining(): number;
|
|
350
|
-
get isResting(): boolean;
|
|
351
|
-
get settled(): Promise<void>;
|
|
352
|
-
jumpTo(value: PartialShape<T>): void;
|
|
353
|
-
dispose(): void;
|
|
354
|
-
onUpdate(callback: () => void): () => void;
|
|
355
|
-
onStart(callback: () => void): () => void;
|
|
356
|
-
onStop(callback: () => void): () => void;
|
|
357
|
-
onDispose(callback: () => void): () => void;
|
|
358
|
-
}
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region src/ticker.d.ts
|
|
361
|
-
interface TickerOptions {
|
|
362
|
-
readonly fps?: number | undefined;
|
|
363
|
-
readonly lagThreshold?: number | undefined;
|
|
364
|
-
readonly adjustedLag?: number | undefined;
|
|
365
|
-
}
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/system.d.ts
|
|
368
|
-
interface SpringSystemOptions extends TickerOptions {
|
|
369
|
-
debug?: boolean | undefined;
|
|
370
|
-
reducedMotion?: 'user' | 'always' | 'never' | undefined;
|
|
371
|
-
}
|
|
372
|
-
interface SpringSystem {
|
|
373
|
-
createSpring(position: SpringPosition, config?: SpringConfig): Spring;
|
|
374
|
-
createSpringObject<T extends object>(value: T & Shape<T>, config?: ConfigShape<T>): SpringObject<T>;
|
|
375
|
-
advance(dt: number): void;
|
|
376
|
-
start(): void;
|
|
377
|
-
stop(): void;
|
|
378
|
-
readonly running: boolean;
|
|
379
|
-
readonly reducedMotion: boolean;
|
|
380
|
-
fps: number;
|
|
381
|
-
lagThreshold: number;
|
|
382
|
-
adjustedLag: number;
|
|
383
|
-
}
|
|
384
|
-
declare function createSpringSystem(options?: SpringSystemOptions): SpringSystem;
|
|
385
|
-
//#endregion
|
|
386
|
-
export { SpringOptions as _, ConfigShape as a, Shape as c, SpringObjectWithOffset as d, Spring as f, SpringConfig as g, SpringWithOffset as h, TickerOptions as i, SpringObject as l, SpringTarget as m, SpringSystemOptions as n, PartialShape as o, SpringPosition as p, createSpringSystem as r, ReadonlyShape as s, SpringSystem as t, SpringObjectTarget as u, SpringState as v, defineSpring as y };
|