@mkbabb/keyframes.js 6.1.0 → 6.2.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/README.md +2 -2
- package/dist/engine/index.d.ts +14 -5
- package/dist/engine/index.js +820 -782
- package/dist/keyframes.d.ts +16 -5
- package/package.json +2 -2
package/dist/keyframes.d.ts
CHANGED
|
@@ -306,9 +306,9 @@ export declare class AnimationGroup<V extends Vars> {
|
|
|
306
306
|
/** The master elapsed time a child's current position sits at (its delay +
|
|
307
307
|
* its completed iterations + its `t`) — the read `seek` inverts. */
|
|
308
308
|
elapsedOf(nameOrAnim: string | KeyframesAnimation<V>): number;
|
|
309
|
-
/** Advance all child animations to absolute clock `t`. SYNC
|
|
310
|
-
*
|
|
311
|
-
*
|
|
309
|
+
/** Advance all child animations to absolute clock `t`. SYNC (J.W6 S1; 6.2.1:
|
|
310
|
+
* a child's delay is a phase on `t`, never a sleep): a thenable only on the
|
|
311
|
+
* over-`YIELD_BATCH` yield path. */
|
|
312
312
|
advanceTo(t: number): this | Promise<this>;
|
|
313
313
|
/** The completion front-door (G.W13) — `await group.finished` resolves once
|
|
314
314
|
* the in-flight composite play settles. Exposes the ONE held `_playingPromise`
|
|
@@ -561,6 +561,8 @@ declare namespace AnimationPresets {
|
|
|
561
561
|
slideInRight,
|
|
562
562
|
slideOutRight,
|
|
563
563
|
hover,
|
|
564
|
+
garlandSway,
|
|
565
|
+
unfurl,
|
|
564
566
|
jumpUp,
|
|
565
567
|
jumpDown,
|
|
566
568
|
springScaleIn,
|
|
@@ -1647,6 +1649,8 @@ export declare function fromMotionPath<V extends Vars = Vars>(target: HTMLElemen
|
|
|
1647
1649
|
*/
|
|
1648
1650
|
export declare const fromStyleSheets: <V extends Vars = Vars>(source?: Document | ShadowRoot | CSSStyleSheet[] | CSSStyleSheet, options?: IngestOptions) => IngestResult<V>;
|
|
1649
1651
|
|
|
1652
|
+
declare const garlandSway: PresetFactory;
|
|
1653
|
+
|
|
1650
1654
|
/**
|
|
1651
1655
|
* Resolve a stable name for an animation reference: the explicit `name` when
|
|
1652
1656
|
* set, else the numeric `id` stringified. A bare string passes through (the ONE
|
|
@@ -1915,9 +1919,9 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
|
|
|
1915
1919
|
* allocation-free.
|
|
1916
1920
|
*/
|
|
1917
1921
|
interpFrames(t: number, transformFrames?: boolean, out?: FlatAuthoredValues): FlatAuthoredValues;
|
|
1918
|
-
onStart():
|
|
1922
|
+
onStart(): void;
|
|
1919
1923
|
onEnd(): void;
|
|
1920
|
-
advanceTo(t: number): number
|
|
1924
|
+
advanceTo(t: number): number;
|
|
1921
1925
|
/** One frame of the standalone rAF play path (driven by `RAFPlayback.loop`). */
|
|
1922
1926
|
private _frame;
|
|
1923
1927
|
/** The completion front-door (G.W13) — `await anim.finished` resolves once
|
|
@@ -2471,6 +2475,9 @@ declare class PlaybackState {
|
|
|
2471
2475
|
* next rAF tick re-anchors the play to the first presented frame
|
|
2472
2476
|
* (`presentAnchor`). Any external `startTime` write clears it. */
|
|
2473
2477
|
anchorTick: number | undefined;
|
|
2478
|
+
/** True from a delayed play's anchor until its clock reaches it: the CSS
|
|
2479
|
+
* before-phase, whose end opens the active phase (`animationstart`). */
|
|
2480
|
+
startOwed: boolean;
|
|
2474
2481
|
pausedTime: number;
|
|
2475
2482
|
t: number;
|
|
2476
2483
|
iteration: number;
|
|
@@ -2517,6 +2524,8 @@ export declare namespace presets {
|
|
|
2517
2524
|
slideInRight,
|
|
2518
2525
|
slideOutRight,
|
|
2519
2526
|
hover,
|
|
2527
|
+
garlandSway,
|
|
2528
|
+
unfurl,
|
|
2520
2529
|
jumpUp,
|
|
2521
2530
|
jumpDown,
|
|
2522
2531
|
springScaleIn,
|
|
@@ -4439,6 +4448,8 @@ declare const typewriter: PresetFactory;
|
|
|
4439
4448
|
|
|
4440
4449
|
declare const typingCursor: PresetFactory;
|
|
4441
4450
|
|
|
4451
|
+
declare const unfurl: PresetFactory;
|
|
4452
|
+
|
|
4442
4453
|
/** Thrown when a string easing name cannot be resolved through the registry. */
|
|
4443
4454
|
export declare class UnknownEasingError extends Error {
|
|
4444
4455
|
readonly easingName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkbabb/keyframes.js",
|
|
3
|
-
"version": "6.1
|
|
3
|
+
"version": "6.2.1",
|
|
4
4
|
"description": "Create keyframe animations for anything in JavaScript; specify your keyframes in standards-complaint CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://github.com/mkbabb/keyframes.js#readme",
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@mkbabb/value.js": "4.
|
|
71
|
+
"@mkbabb/value.js": "4.2.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@iconify-json/radix-icons": "^1.2.6",
|