@mkbabb/keyframes.js 6.2.1 → 6.3.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 +2 -0
- package/dist/engine/index.d.ts +11 -2
- package/dist/engine/index.js +1004 -1004
- package/dist/keyframes.d.ts +15 -2
- package/dist/keyframes.js +114 -114
- package/dist/registry-8bG0FhGi.js +163 -0
- package/dist/{registry-Dd7GzvJm.js → registry-Bs7A0T_s.js} +1 -1
- package/dist/{sequence-BUgKKePR.js → sequence-CPGHHEVM.js} +72 -69
- package/package.json +1 -1
- package/dist/registry-CPtiwlwX.js +0 -162
package/README.md
CHANGED
|
@@ -247,6 +247,8 @@ anim.fromVars([{ opacity: 0 }, { opacity: 1 }]);
|
|
|
247
247
|
|
|
248
248
|
The default transform applies interpolated values to `element.style` for each target.
|
|
249
249
|
|
|
250
|
+
Each of the three is an ingest, and an ingest **replaces** the animation's frames: a second `fromString` (or `fromKeyframes`, or `fromVars`) on the same instance yields that call's frames alone, never a union with the last ones. `addFrame` is the incremental append.
|
|
251
|
+
|
|
250
252
|
### Parsing CSS keyframes
|
|
251
253
|
|
|
252
254
|
`keyframes.ts` covers most of the CSS spec:
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -438,6 +438,8 @@ declare const blurOut: PresetFactory;
|
|
|
438
438
|
|
|
439
439
|
declare const bounce: PresetFactory;
|
|
440
440
|
|
|
441
|
+
export declare const bumpLayoutEpoch: () => number;
|
|
442
|
+
|
|
441
443
|
/** The compile result — the artifact + the CC-3 ineligibility report. */
|
|
442
444
|
declare interface CompiledCSS {
|
|
443
445
|
/**
|
|
@@ -666,7 +668,14 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
|
|
|
666
668
|
*/
|
|
667
669
|
bindTimeline(timeline: Timeline): this;
|
|
668
670
|
/**
|
|
669
|
-
*
|
|
671
|
+
* The one ingest head for the three `from*` entry points. An ingest
|
|
672
|
+
* REPLACES the animation's source (COHESION §0j.C KF-W5R4(1), G-FROMSTRING):
|
|
673
|
+
* the template set is reset here, so a second `fromString` / `fromKeyframes`
|
|
674
|
+
* / `fromVars` yields the parsed set alone, never a union with the last one.
|
|
675
|
+
* `addFrame` stays the incremental append. The setter re-marks the compiled
|
|
676
|
+
* set stale; `parse()` at the end of each entry recompiles it.
|
|
677
|
+
*
|
|
678
|
+
* It is also the one transform-resolution seam:
|
|
670
679
|
* a supplied transform is the consumer's renderer (vars arrive
|
|
671
680
|
* unflattened); genuine omission resolves to the instance's ONE
|
|
672
681
|
* default DOM-style renderer, which keeps WAAPI eligibility a
|
|
@@ -682,7 +691,7 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
|
|
|
682
691
|
* renderer with a foreign instance's default, and every frame then
|
|
683
692
|
* answered `usesDefaultRenderer` FALSE for a renderer nobody supplied.
|
|
684
693
|
*/
|
|
685
|
-
private
|
|
694
|
+
private beginIngest;
|
|
686
695
|
fromVars(vars: V[], transform?: TransformFunction<V>): this;
|
|
687
696
|
fromKeyframes(keyframes: Map<string, Partial<V>> | Record<string, Partial<V>>, transform?: TransformFunction<V>): this;
|
|
688
697
|
/**
|