@mkbabb/keyframes.js 6.2.0 → 6.2.2
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 +3 -1
- package/dist/engine/index.d.ts +17 -7
- package/dist/engine/index.js +764 -771
- package/dist/keyframes.d.ts +17 -7
- package/package.json +1 -1
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`
|
|
@@ -839,7 +839,14 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
|
|
|
839
839
|
*/
|
|
840
840
|
bindTimeline(timeline: Timeline): this;
|
|
841
841
|
/**
|
|
842
|
-
*
|
|
842
|
+
* The one ingest head for the three `from*` entry points. An ingest
|
|
843
|
+
* REPLACES the animation's source (COHESION §0j.C KF-W5R4(1), G-FROMSTRING):
|
|
844
|
+
* the template set is reset here, so a second `fromString` / `fromKeyframes`
|
|
845
|
+
* / `fromVars` yields the parsed set alone, never a union with the last one.
|
|
846
|
+
* `addFrame` stays the incremental append. The setter re-marks the compiled
|
|
847
|
+
* set stale; `parse()` at the end of each entry recompiles it.
|
|
848
|
+
*
|
|
849
|
+
* It is also the one transform-resolution seam:
|
|
843
850
|
* a supplied transform is the consumer's renderer (vars arrive
|
|
844
851
|
* unflattened); genuine omission resolves to the instance's ONE
|
|
845
852
|
* default DOM-style renderer, which keeps WAAPI eligibility a
|
|
@@ -855,7 +862,7 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
|
|
|
855
862
|
* renderer with a foreign instance's default, and every frame then
|
|
856
863
|
* answered `usesDefaultRenderer` FALSE for a renderer nobody supplied.
|
|
857
864
|
*/
|
|
858
|
-
private
|
|
865
|
+
private beginIngest;
|
|
859
866
|
fromVars(vars: V[], transform?: TransformFunction<V>): this;
|
|
860
867
|
fromKeyframes(keyframes: Map<string, Partial<V>> | Record<string, Partial<V>>, transform?: TransformFunction<V>): this;
|
|
861
868
|
/**
|
|
@@ -1919,9 +1926,9 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
|
|
|
1919
1926
|
* allocation-free.
|
|
1920
1927
|
*/
|
|
1921
1928
|
interpFrames(t: number, transformFrames?: boolean, out?: FlatAuthoredValues): FlatAuthoredValues;
|
|
1922
|
-
onStart():
|
|
1929
|
+
onStart(): void;
|
|
1923
1930
|
onEnd(): void;
|
|
1924
|
-
advanceTo(t: number): number
|
|
1931
|
+
advanceTo(t: number): number;
|
|
1925
1932
|
/** One frame of the standalone rAF play path (driven by `RAFPlayback.loop`). */
|
|
1926
1933
|
private _frame;
|
|
1927
1934
|
/** The completion front-door (G.W13) — `await anim.finished` resolves once
|
|
@@ -2475,6 +2482,9 @@ declare class PlaybackState {
|
|
|
2475
2482
|
* next rAF tick re-anchors the play to the first presented frame
|
|
2476
2483
|
* (`presentAnchor`). Any external `startTime` write clears it. */
|
|
2477
2484
|
anchorTick: number | undefined;
|
|
2485
|
+
/** True from a delayed play's anchor until its clock reaches it: the CSS
|
|
2486
|
+
* before-phase, whose end opens the active phase (`animationstart`). */
|
|
2487
|
+
startOwed: boolean;
|
|
2478
2488
|
pausedTime: number;
|
|
2479
2489
|
t: number;
|
|
2480
2490
|
iteration: number;
|
package/package.json
CHANGED