public sealed class KeyframesTableThe @keyframes rules a stylesheet declared.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
ExCSS parses these, which the spike did not establish and which saves the work @layer needed: a keyframes rule arrives typed, with from and to already normalised to 0% and 100%.
Stops are kept sorted by offset, because an animation asks "which two stops am I between" on every element every frame and a stylesheet may list them in any order. Declarations go in one flat arena for the same reason the rules' do.
Fields and properties (1)
public int CountHow many named rules there are.
Methods (5)
public void Add(string name, float offset, ReadOnlySpan<Declaration> block)Adds a stop to a named rule.
public void Remove(string name)Forgets a name, so that a redefinition replaces rather than merges.
public bool TryGet(string name, out IReadOnlyList<Keyframe> stops)The stops of a named rule.
public ReadOnlySpan<Declaration> DeclarationsOf(DeclarationRange range)The declarations of a stop.
public static bool TryParseOffset(ReadOnlySpan<char> text, out float offset)Reads a keyframe selector such as 0%, from or 50%.
Used by (4)
- AnimationTestsVixen.Ui.Styling.Tests
- AnimatorVixen.Ui.Styling
- StyleEngineVixen.Ui.Styling
- StyleSheetLoaderVixen.Ui.Styling