mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(animations): export declarations parser (#4370)
This commit is contained in:
@@ -21,7 +21,10 @@ const ANIMATION_PROPERTY_HANDLERS = Object.freeze({
|
||||
});
|
||||
|
||||
export class CssAnimationParser {
|
||||
public static keyframeAnimationsFromCSSDeclarations(declarations: { property: string, value: string }[]): Array<KeyframeAnimationInfo> {
|
||||
public static keyframeAnimationsFromCSSDeclarations(
|
||||
declarations: Array<KeyframeDeclaration>)
|
||||
: Array<KeyframeAnimationInfo> {
|
||||
|
||||
if (declarations === null || declarations === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -124,7 +127,7 @@ function keyframeAnimationsFromCSSProperty(value: any, animations: Array<Keyfram
|
||||
}
|
||||
}
|
||||
|
||||
function parseKeyframeDeclarations(unparsedKeyframeDeclarations: Array<KeyframeDeclaration>)
|
||||
export function parseKeyframeDeclarations(unparsedKeyframeDeclarations: Array<KeyframeDeclaration>)
|
||||
: Array<KeyframeDeclaration> {
|
||||
|
||||
const declarations = unparsedKeyframeDeclarations
|
||||
|
||||
Reference in New Issue
Block a user